[{"data":1,"prerenderedAt":2655},["ShallowReactive",2],{"navigation":3,"/integrations/controllers/customers":310,"/integrations/controllers/customers-surround":2520,"/types/pagination-query.type":2529,"T8X8wEDTTq":2546,"RlQfeeH749":2556,"/types/pagination-response.type":2566,"R6VCIDBMAK":2578,"wYpKjgCnmI":2605},[4,13,161,197,211,236,290,300],{"title":5,"_path":6,"children":7,"_id":12,"description":11},"Getting Started","/getting-started",[8],{"title":9,"_path":6,"_id":10,"description":11},"Overview","content:1.getting-started:1.index.md","Everything you need to know about integrating Churnkey with your product and billing stack.","content:1.getting-started:_dir.yml",{"title":14,"_path":15,"children":16,"_id":160},"Cancel Flows","/cancel-flows",[17,22,27,32,37,42,47,52,57,62,67,72,116,130],{"title":18,"_path":19,"_id":20,"description":21},"Quick Start Guide","/cancel-flows/quick-start-guide","content:2.cancel-flows:1.quick-start-guide.md","A 3-step guide on how to implement Cancel Flows in your website",{"title":23,"_path":24,"_id":25,"description":26},"Cancel Flow Structure","/cancel-flows/flow-configuration","content:2.cancel-flows:2.flow configuration.md","Learn about the available components that make up a Cancel Flow, from initial offers to cancellation confirmation, and how each step contributes to the overall flow.",{"title":28,"_path":29,"_id":30,"description":31},"Configuration Options","/cancel-flows/further-configuration","content:2.cancel-flows:3.further-configuration.md","Additional details for all of the following options are included below.",{"title":33,"_path":34,"_id":35,"description":36},"Custom Styling","/cancel-flows/custom-styling","content:2.cancel-flows:4.custom-styling.md","Brand your Churnkey Cancel Flow with your own CSS",{"title":38,"_path":39,"_id":40,"description":41},"Managed Email Flow","/cancel-flows/email-verified-cancel-flow","content:2.cancel-flows:6.email-verified-cancel-flow.md","Our managed email based setup takes care of customer verification for you with an email verification code.",{"title":43,"_path":44,"_id":45,"description":46},"A/B Testing","/cancel-flows/a-b-testing","content:2.cancel-flows:7.a-b-testing.md","Run controlled experiments to optimize your Cancel Flows and maximize customer retention.",{"title":48,"_path":49,"_id":50,"description":51},"Testing","/cancel-flows/cancel-flow-testing","content:2.cancel-flows:8.cancel-flow-testing.md","Ensure that your Cancel Flow is working as intended before going live.",{"title":53,"_path":54,"_id":55,"description":56},"Pause Wall","/cancel-flows/pause-wall","content:2.cancel-flows:9.pause-wall.md","Block access to your application during subscription pauses",{"title":58,"_path":59,"_id":60,"description":61},"Click-to-Cancel Compliance","/cancel-flows/click-to-cancel","content:2.cancel-flows:10.click-to-cancel.md","Implement automatic compliance with global subscription cancellation requirements",{"title":63,"_path":64,"_id":65,"description":66},"Structured Follow-Up Questions","/cancel-flows/structured-follow-up-questions","content:2.cancel-flows:11.structured-follow-up-questions.md","Collect deeper cancellation insights and deliver targeted retention offers with a second layer of predefined follow-up options in your cancel flow survey.",{"title":68,"_path":69,"_id":70,"description":71},"Adaptive Offers","/cancel-flows/adaptive-offers","content:2.cancel-flows:adaptive-offers.md","AI-powered discount optimization that automatically finds the perfect offer for each customer",{"title":73,"_path":74,"children":75},"Analytics","/cancel-flows/analytics",[76,81,86,91,96,101,106,111],{"title":77,"_path":78,"_id":79,"description":80},"Boosted Revenue","/cancel-flows/analytics/average-boosted-revenue","content:2.cancel-flows:analytics:1.average-boosted-revenue.md","Measure the long-term value of retained subscribers",{"title":82,"_path":83,"_id":84,"description":85},"Save Rate","/cancel-flows/analytics/save-rate","content:2.cancel-flows:analytics:2.save-rate.md","The percentage of customers that your Cancel Flows saved from cancellation",{"title":87,"_path":88,"_id":89,"description":90},"Reactivation Rate","/cancel-flows/analytics/reactivation-rate","content:2.cancel-flows:analytics:3.reactivation-rate.md","The percentage of customers who pay at least one invoice after being saved",{"title":92,"_path":93,"_id":94,"description":95},"Sessions","/cancel-flows/analytics/session-outcomes","content:2.cancel-flows:analytics:4.session-outcomes.md","Track each interaction that a customer has with your Cancel Flows",{"title":97,"_path":98,"_id":99,"description":100},"Cancellation Trends","/cancel-flows/analytics/cancellation-trends","content:2.cancel-flows:analytics:5.cancellation-trends.md","Analyze and interpret the selection rates and trends for cancellation reasons in your Cancel Flows.",{"title":102,"_path":103,"_id":104,"description":105},"Feedback AI","/cancel-flows/analytics/feedback-ai","content:2.cancel-flows:analytics:6.feedback-ai.md","Transform customer feedback into actionable insights with AI-powered categorization and analysis",{"title":107,"_path":108,"_id":109,"description":110},"Response Flow","/cancel-flows/analytics/response-flow","content:2.cancel-flows:analytics:7.response-flow.md","Visualize how customers move from primary cancellation reasons to specific follow-up selections with the Sankey diagram",{"title":112,"_path":113,"_id":114,"description":115},"Response Explorer","/cancel-flows/analytics/response-explorer","content:2.cancel-flows:analytics:8.response-explorer.md","Drill into individual follow-up responses with the Treemap visualization, search, trend analysis, and MRR impact sorting",{"title":117,"_path":118,"children":119},"Multi Language Support","/cancel-flows/multi-language-support",[120,125],{"title":121,"_path":122,"_id":123,"description":124},"Manual Translations","/cancel-flows/multi-language-support/multi-language-support","content:2.cancel-flows:multi-language-support:5.multi-language-support.md","Support multiple languages.",{"title":126,"_path":127,"_id":128,"description":129},"Automatic Translations","/cancel-flows/multi-language-support/automatic-translation","content:2.cancel-flows:multi-language-support:automatic-translation.md","Enable AI-powered multilingual support for your Cancel Flows with a single toggle.",{"title":131,"_path":132,"children":133,"_id":159},"Offers","/cancel-flows/offers",[134,139,144,149,154],{"title":135,"_path":136,"_id":137,"description":138},"Discount","/cancel-flows/offers/discounts","content:2.cancel-flows:offers:discounts.md","Offer targeted subscription discounts to reduce churn and increase customer retention",{"title":140,"_path":141,"_id":142,"description":143},"Hidden Plans","/cancel-flows/offers/hidden-plans","content:2.cancel-flows:offers:hidden-plans.md","Use the Switch Subscription Plan offer to present exclusive, non-public plans to customers during cancellation",{"title":145,"_path":146,"_id":147,"description":148},"Pause Subscription","/cancel-flows/offers/pause-subscription","content:2.cancel-flows:offers:pause-subscription.md","Temporarily suspend subscription payments without canceling the service",{"title":150,"_path":151,"_id":152,"description":153},"Switch Subscription Plan","/cancel-flows/offers/switch-subscription","content:2.cancel-flows:offers:switch-subscription.md","Allow customers to change to a different subscription plan during the cancellation flow to retain them with a more suitable option",{"title":155,"_path":156,"_id":157,"description":158},"Trial Extension","/cancel-flows/offers/trial-extension","content:2.cancel-flows:offers:trial-extension.md","Extend customer trial periods to reduce churn and increase conversion rates during the critical trial-to-paid transition","content:2.cancel-flows:offers:_dir.yml","content:2.cancel-flows:_dir.yml",{"title":162,"_path":163,"children":164,"_id":196},"Payment Recovery","/failed-payment-recovery",[165,169,174,179,184,188],{"title":5,"_path":166,"_id":167,"description":168},"/failed-payment-recovery/payment-recovery","content:3.failed-payment-recovery:1.payment-recovery.md","Recover failed payment revenue, automatically.",{"title":170,"_path":171,"_id":172,"description":173},"Customize your Campaigns","/failed-payment-recovery/campaign-customization","content:3.failed-payment-recovery:2.campaign-customization.md","Customize your Payment Recovery Campaigns to match the unique needs of your individual customers.",{"title":175,"_path":176,"_id":177,"description":178},"Failed Payment Wall","/failed-payment-recovery/failed-payment-wall","content:3.failed-payment-recovery:3.failed-payment-wall.md","Block access to your application when payments fail",{"title":180,"_path":181,"_id":182,"description":183},"Billing Contact API","/failed-payment-recovery/billing-contact-api","content:3.failed-payment-recovery:4.billing-contact-api.md","Send Payment Recovery emails to multiple billing contacts",{"title":43,"_path":185,"_id":186,"description":187},"/failed-payment-recovery/ab-testing","content:3.failed-payment-recovery:5.ab-testing.md","Optimize your payment recovery campaigns through controlled experiments that maximize revenue recovery.",{"title":73,"_path":189,"children":190},"/failed-payment-recovery/analytics",[191],{"title":192,"_path":193,"_id":194,"description":195},"Overall Performance","/failed-payment-recovery/analytics/overview","content:3.failed-payment-recovery:analytics:1.overview.md","Key performance metrics for your Payment Recovery campaigns","content:3.failed-payment-recovery:_dir.yml",{"title":198,"_path":199,"children":200,"_id":210},"Reactivations","/reactivations",[201,205],{"title":5,"_path":202,"_id":203,"description":204},"/reactivations/reactivations","content:4.reactivations:1.reactivations.md","Churnkey helps you to recover unsubscribed customers with easy, customizable Reactivation Email Campaigns.",{"title":206,"_path":207,"_id":208,"description":209},"Customization","/reactivations/campaign-customization-guide","content:4.reactivations:2.campaign-customization-guide.md","Customize your Reactivation Campaigns to match the individual needs of your customers.","content:4.reactivations:_dir.yml",{"title":212,"_path":213,"children":214,"_id":235},"Data Integrations","/data-integrations",[215,220,225,230],{"title":216,"_path":217,"_id":218,"description":219},"Data API","/data-integrations/data-api","content:6.data-integrations:1.data-api.md","Access your data through our API.",{"title":221,"_path":222,"_id":223,"description":224},"Slack notifications","/data-integrations/slack","content:6.data-integrations:2.slack.md","Connect Churnkey with your organization's Slack and to send session notifications to a specific channel.",{"title":226,"_path":227,"_id":228,"description":229},"Webhooks","/data-integrations/webhooks","content:6.data-integrations:2.webhooks.md","Churnkey can send webhooks to automatically notify your application whenever a customer completes a session.",{"title":231,"_path":232,"_id":233,"description":234},"Event Tracking","/data-integrations/event-tracking","content:6.data-integrations:3.event-tracking.md","Track your customers' key-value metrics on a per customer basis.","content:6.data-integrations:_dir.yml",{"title":237,"_path":238,"children":239,"_id":289},"Billing Providers","/billing-providers",[240,245,250,255,260,265,270,275],{"title":241,"_path":242,"_id":243,"description":244},"Payment Providers","/billing-providers/payment-provider-overview","content:7.billing-providers:1.payment-provider-overview.md","Feature support for Stripe, Chargebee, Paddle, and Braintree",{"title":246,"_path":247,"_id":248,"description":249},"Stripe","/billing-providers/stripe","content:7.billing-providers:3.stripe.md","Integrate Churnkey with your Stripe account",{"title":251,"_path":252,"_id":253,"description":254},"Chargebee","/billing-providers/chargebee","content:7.billing-providers:4.chargebee.md","Integrate Churnkey with your Chargebee account",{"title":256,"_path":257,"_id":258,"description":259},"Paddle Classic","/billing-providers/paddle-classic","content:7.billing-providers:5.paddle-classic.md","Integrate Churnkey with your Paddle Classic account",{"title":261,"_path":262,"_id":263,"description":264},"Paddle Billing","/billing-providers/paddle-billing","content:7.billing-providers:6.paddle-billing.md","Integrate Churnkey with your Paddle Billing account",{"title":266,"_path":267,"_id":268,"description":269},"Braintree","/billing-providers/braintree","content:7.billing-providers:7.braintree.md","Integrate Churnkey with your Braintree account",{"title":271,"_path":272,"_id":273,"description":274},"Maxio","/billing-providers/maxio","content:7.billing-providers:8.maxio.md","Integrate Churnkey with your Maxio (formerly Chargify) account",{"title":276,"_path":277,"children":278},"Direct Connect","/billing-providers/direct-connect",[279,284],{"title":280,"_path":281,"_id":282,"description":283},"Churnkey Direct","/billing-providers/direct-connect/direct","content:7.billing-providers:9.direct-connect:1.direct.md","Integrate Churnkey with any billing system using Direct mode",{"title":285,"_path":286,"_id":287,"description":288},"Direct Mode Examples","/billing-providers/direct-connect/direct-examples","content:7.billing-providers:9.direct-connect:2.direct-examples.md","Real-world examples for common subscription scenarios","content:7.billing-providers:_dir.yml",{"title":291,"_path":292,"children":293,"_id":299},"Account","/account",[294],{"title":295,"_path":296,"_id":297,"description":298},"Multi-Workspace Support","/account/multi-workspace-support","content:8.account:1.multi-workspace-support.md","Use one email address to access multiple Churnkey workspaces and switch between them instantly.","content:8.account:_dir.yml",{"title":301,"_path":302,"children":303,"_id":309},"Support","/support",[304],{"title":305,"_path":306,"_id":307,"description":308},"Frequently Asked Questions","/support/faqs","content:9.support:1.faqs.md","We want setting up Churnkey to be a breeze.","content:9.support:_dir.yml",{"_path":311,"_dir":312,"_draft":313,"_partial":313,"_locale":314,"title":315,"description":316,"body":317,"_type":2513,"_id":2514,"_source":2515,"_file":2516,"_stem":2517,"_extension":2518,"sitemap":2519},"/integrations/controllers/customers","controllers",false,"","Customers - Controller","List, retrieve and find `Customer` models.",{"type":318,"children":319,"toc":2502},"root",[320,337,344,407,413,425,1130,1136,1146,1155,1184,1232,1498,1507,1516,1528,1538,1547,1554,1852,1862,1871,1892,1897,1933,2171,2180,2189,2210,2215,2251,2486,2491,2496],{"type":321,"tag":322,"props":323,"children":324},"element","p",{},[325,328,335],{"type":326,"value":327},"text","To implement the ",{"type":321,"tag":329,"props":330,"children":332},"code",{"className":331},[],[333],{"type":326,"value":334},"Customers",{"type":326,"value":336}," controller, you need to implement at least 2 API endpoints, we will use these endpoints to fetch customers from your system.",{"type":321,"tag":338,"props":339,"children":341},"h2",{"id":340},"prerequisites",[342],{"type":326,"value":343},"Prerequisites",{"type":321,"tag":345,"props":346,"children":348},"grid",{"cols":347},2,[349,372],{"type":321,"tag":350,"props":351,"children":354},"card-baseline",{"title":352,"to":353},"Customer Model","/integrations/models/customer",[355,360],{"type":321,"tag":322,"props":356,"children":357},{},[358],{"type":326,"value":359},"A user who owns subscriptions.",{"type":321,"tag":361,"props":362,"children":365},"flex",{"className":363},[364],"mt-4",[366],{"type":321,"tag":367,"props":368,"children":371},"badge",{"label":369,"color":370},"Required","green",[],{"type":321,"tag":350,"props":373,"children":376},{"title":374,"to":375},"Coupons - Controller","/integrations/controllers/coupons",[377,390],{"type":321,"tag":322,"props":378,"children":379},{},[380,382,388],{"type":326,"value":381},"If you have customer-level discounts, you may need to implement a ",{"type":321,"tag":329,"props":383,"children":385},{"className":384},[],[386],{"type":326,"value":387},"Coupons",{"type":326,"value":389}," controller first.",{"type":321,"tag":361,"props":391,"children":393},{"className":392},[364],[394],{"type":321,"tag":322,"props":395,"children":396},{},[397,401,403],{"type":321,"tag":367,"props":398,"children":400},{"label":399},"Optional",[],{"type":326,"value":402}," ",{"type":321,"tag":367,"props":404,"children":406},{"label":405},"Discount Offer",[],{"type":321,"tag":338,"props":408,"children":410},{"id":409},"sdk",[411],{"type":326,"value":412},"SDK",{"type":321,"tag":322,"props":414,"children":415},{},[416,418,423],{"type":326,"value":417},"If you are using the SDK, you can implement the ",{"type":321,"tag":329,"props":419,"children":421},{"className":420},[],[422],{"type":326,"value":334},{"type":326,"value":424}," controller by following the code example below. You don't need to get into the details of the API endpoints, the SDK will take care of that for you.",{"type":321,"tag":426,"props":427,"children":428},"code-group",{},[429],{"type":321,"tag":430,"props":431,"children":436},"pre",{"className":432,"code":433,"filename":434,"language":435,"meta":314,"style":314},"language-typescript shiki shiki-themes github-light-default github-light-default github-dark-default","import { Integrator } from '@churnkey/sdk'\nimport { Context } from '../Context'\nimport { Customer } from '../models/Customer'\n\nexport const Customers = Integrator.Customers.config({\n    ctx: Context,\n    async retrieve(ctx, options) {\n        const yourCustomer = await ctx.db.findCustomerById(options.id)\n        return new Customer(yourCustomer) \n    },\n    async list(ctx, options) {\n        const yourCustomers = await ctx.db.findCustomers({\n            limit: options.limit,\n            offset: options.cursor // the value you pass as `next` below\n        })\n        return {\n            data: yourCustomers.map(c => new Customer(c)),\n            // pass the next cursor if there are more items\n            next: yourCustomers.length === options.limit ? offset + limit : undefined\n        }\n    },\n    async findByEmail(ctx, email) { // optional\n        const yourCustomer = await ctx.db.findCustomerByEmail(email)\n        return new Customer(yourCustomer)\n    },\n    async findByPhone(ctx, phone) { // optional\n        const yourCustomer = await ctx.db.findCustomerByPhone(phone)\n        return new Customer(yourCustomer)\n    }\n})\n","Typescript","typescript",[437],{"type":321,"tag":329,"props":438,"children":439},{"__ignoreMap":314},[440,469,490,512,522,563,572,612,650,674,683,716,750,759,774,783,796,837,846,900,909,917,957,991,1012,1020,1058,1092,1112,1121],{"type":321,"tag":441,"props":442,"children":445},"span",{"class":443,"line":444},"line",1,[446,452,458,463],{"type":321,"tag":441,"props":447,"children":449},{"style":448},"--shiki-light:#CF222E;--shiki-default:#CF222E;--shiki-dark:#FF7B72",[450],{"type":326,"value":451},"import",{"type":321,"tag":441,"props":453,"children":455},{"style":454},"--shiki-light:#1F2328;--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[456],{"type":326,"value":457}," { Integrator } ",{"type":321,"tag":441,"props":459,"children":460},{"style":448},[461],{"type":326,"value":462},"from",{"type":321,"tag":441,"props":464,"children":466},{"style":465},"--shiki-light:#0A3069;--shiki-default:#0A3069;--shiki-dark:#A5D6FF",[467],{"type":326,"value":468}," '@churnkey/sdk'\n",{"type":321,"tag":441,"props":470,"children":471},{"class":443,"line":347},[472,476,481,485],{"type":321,"tag":441,"props":473,"children":474},{"style":448},[475],{"type":326,"value":451},{"type":321,"tag":441,"props":477,"children":478},{"style":454},[479],{"type":326,"value":480}," { Context } ",{"type":321,"tag":441,"props":482,"children":483},{"style":448},[484],{"type":326,"value":462},{"type":321,"tag":441,"props":486,"children":487},{"style":465},[488],{"type":326,"value":489}," '../Context'\n",{"type":321,"tag":441,"props":491,"children":493},{"class":443,"line":492},3,[494,498,503,507],{"type":321,"tag":441,"props":495,"children":496},{"style":448},[497],{"type":326,"value":451},{"type":321,"tag":441,"props":499,"children":500},{"style":454},[501],{"type":326,"value":502}," { Customer } ",{"type":321,"tag":441,"props":504,"children":505},{"style":448},[506],{"type":326,"value":462},{"type":321,"tag":441,"props":508,"children":509},{"style":465},[510],{"type":326,"value":511}," '../models/Customer'\n",{"type":321,"tag":441,"props":513,"children":515},{"class":443,"line":514},4,[516],{"type":321,"tag":441,"props":517,"children":519},{"emptyLinePlaceholder":518},true,[520],{"type":326,"value":521},"\n",{"type":321,"tag":441,"props":523,"children":525},{"class":443,"line":524},5,[526,531,536,542,547,552,558],{"type":321,"tag":441,"props":527,"children":528},{"style":448},[529],{"type":326,"value":530},"export",{"type":321,"tag":441,"props":532,"children":533},{"style":448},[534],{"type":326,"value":535}," const",{"type":321,"tag":441,"props":537,"children":539},{"style":538},"--shiki-light:#0550AE;--shiki-default:#0550AE;--shiki-dark:#79C0FF",[540],{"type":326,"value":541}," Customers",{"type":321,"tag":441,"props":543,"children":544},{"style":448},[545],{"type":326,"value":546}," =",{"type":321,"tag":441,"props":548,"children":549},{"style":454},[550],{"type":326,"value":551}," Integrator.Customers.",{"type":321,"tag":441,"props":553,"children":555},{"style":554},"--shiki-light:#8250DF;--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[556],{"type":326,"value":557},"config",{"type":321,"tag":441,"props":559,"children":560},{"style":454},[561],{"type":326,"value":562},"({\n",{"type":321,"tag":441,"props":564,"children":566},{"class":443,"line":565},6,[567],{"type":321,"tag":441,"props":568,"children":569},{"style":454},[570],{"type":326,"value":571},"    ctx: Context,\n",{"type":321,"tag":441,"props":573,"children":575},{"class":443,"line":574},7,[576,581,586,591,597,602,607],{"type":321,"tag":441,"props":577,"children":578},{"style":448},[579],{"type":326,"value":580},"    async",{"type":321,"tag":441,"props":582,"children":583},{"style":554},[584],{"type":326,"value":585}," retrieve",{"type":321,"tag":441,"props":587,"children":588},{"style":454},[589],{"type":326,"value":590},"(",{"type":321,"tag":441,"props":592,"children":594},{"style":593},"--shiki-light:#953800;--shiki-default:#953800;--shiki-dark:#FFA657",[595],{"type":326,"value":596},"ctx",{"type":321,"tag":441,"props":598,"children":599},{"style":454},[600],{"type":326,"value":601},", ",{"type":321,"tag":441,"props":603,"children":604},{"style":593},[605],{"type":326,"value":606},"options",{"type":321,"tag":441,"props":608,"children":609},{"style":454},[610],{"type":326,"value":611},") {\n",{"type":321,"tag":441,"props":613,"children":615},{"class":443,"line":614},8,[616,621,626,630,635,640,645],{"type":321,"tag":441,"props":617,"children":618},{"style":448},[619],{"type":326,"value":620},"        const",{"type":321,"tag":441,"props":622,"children":623},{"style":538},[624],{"type":326,"value":625}," yourCustomer",{"type":321,"tag":441,"props":627,"children":628},{"style":448},[629],{"type":326,"value":546},{"type":321,"tag":441,"props":631,"children":632},{"style":448},[633],{"type":326,"value":634}," await",{"type":321,"tag":441,"props":636,"children":637},{"style":454},[638],{"type":326,"value":639}," ctx.db.",{"type":321,"tag":441,"props":641,"children":642},{"style":554},[643],{"type":326,"value":644},"findCustomerById",{"type":321,"tag":441,"props":646,"children":647},{"style":454},[648],{"type":326,"value":649},"(options.id)\n",{"type":321,"tag":441,"props":651,"children":653},{"class":443,"line":652},9,[654,659,664,669],{"type":321,"tag":441,"props":655,"children":656},{"style":448},[657],{"type":326,"value":658},"        return",{"type":321,"tag":441,"props":660,"children":661},{"style":448},[662],{"type":326,"value":663}," new",{"type":321,"tag":441,"props":665,"children":666},{"style":554},[667],{"type":326,"value":668}," Customer",{"type":321,"tag":441,"props":670,"children":671},{"style":454},[672],{"type":326,"value":673},"(yourCustomer) \n",{"type":321,"tag":441,"props":675,"children":677},{"class":443,"line":676},10,[678],{"type":321,"tag":441,"props":679,"children":680},{"style":454},[681],{"type":326,"value":682},"    },\n",{"type":321,"tag":441,"props":684,"children":686},{"class":443,"line":685},11,[687,691,696,700,704,708,712],{"type":321,"tag":441,"props":688,"children":689},{"style":448},[690],{"type":326,"value":580},{"type":321,"tag":441,"props":692,"children":693},{"style":554},[694],{"type":326,"value":695}," list",{"type":321,"tag":441,"props":697,"children":698},{"style":454},[699],{"type":326,"value":590},{"type":321,"tag":441,"props":701,"children":702},{"style":593},[703],{"type":326,"value":596},{"type":321,"tag":441,"props":705,"children":706},{"style":454},[707],{"type":326,"value":601},{"type":321,"tag":441,"props":709,"children":710},{"style":593},[711],{"type":326,"value":606},{"type":321,"tag":441,"props":713,"children":714},{"style":454},[715],{"type":326,"value":611},{"type":321,"tag":441,"props":717,"children":719},{"class":443,"line":718},12,[720,724,729,733,737,741,746],{"type":321,"tag":441,"props":721,"children":722},{"style":448},[723],{"type":326,"value":620},{"type":321,"tag":441,"props":725,"children":726},{"style":538},[727],{"type":326,"value":728}," yourCustomers",{"type":321,"tag":441,"props":730,"children":731},{"style":448},[732],{"type":326,"value":546},{"type":321,"tag":441,"props":734,"children":735},{"style":448},[736],{"type":326,"value":634},{"type":321,"tag":441,"props":738,"children":739},{"style":454},[740],{"type":326,"value":639},{"type":321,"tag":441,"props":742,"children":743},{"style":554},[744],{"type":326,"value":745},"findCustomers",{"type":321,"tag":441,"props":747,"children":748},{"style":454},[749],{"type":326,"value":562},{"type":321,"tag":441,"props":751,"children":753},{"class":443,"line":752},13,[754],{"type":321,"tag":441,"props":755,"children":756},{"style":454},[757],{"type":326,"value":758},"            limit: options.limit,\n",{"type":321,"tag":441,"props":760,"children":762},{"class":443,"line":761},14,[763,768],{"type":321,"tag":441,"props":764,"children":765},{"style":454},[766],{"type":326,"value":767},"            offset: options.cursor ",{"type":321,"tag":441,"props":769,"children":771},{"style":770},"--shiki-light:#6E7781;--shiki-default:#6E7781;--shiki-dark:#8B949E",[772],{"type":326,"value":773},"// the value you pass as `next` below\n",{"type":321,"tag":441,"props":775,"children":777},{"class":443,"line":776},15,[778],{"type":321,"tag":441,"props":779,"children":780},{"style":454},[781],{"type":326,"value":782},"        })\n",{"type":321,"tag":441,"props":784,"children":786},{"class":443,"line":785},16,[787,791],{"type":321,"tag":441,"props":788,"children":789},{"style":448},[790],{"type":326,"value":658},{"type":321,"tag":441,"props":792,"children":793},{"style":454},[794],{"type":326,"value":795}," {\n",{"type":321,"tag":441,"props":797,"children":799},{"class":443,"line":798},17,[800,805,810,814,819,824,828,832],{"type":321,"tag":441,"props":801,"children":802},{"style":454},[803],{"type":326,"value":804},"            data: yourCustomers.",{"type":321,"tag":441,"props":806,"children":807},{"style":554},[808],{"type":326,"value":809},"map",{"type":321,"tag":441,"props":811,"children":812},{"style":454},[813],{"type":326,"value":590},{"type":321,"tag":441,"props":815,"children":816},{"style":593},[817],{"type":326,"value":818},"c",{"type":321,"tag":441,"props":820,"children":821},{"style":448},[822],{"type":326,"value":823}," =>",{"type":321,"tag":441,"props":825,"children":826},{"style":448},[827],{"type":326,"value":663},{"type":321,"tag":441,"props":829,"children":830},{"style":554},[831],{"type":326,"value":668},{"type":321,"tag":441,"props":833,"children":834},{"style":454},[835],{"type":326,"value":836},"(c)),\n",{"type":321,"tag":441,"props":838,"children":840},{"class":443,"line":839},18,[841],{"type":321,"tag":441,"props":842,"children":843},{"style":770},[844],{"type":326,"value":845},"            // pass the next cursor if there are more items\n",{"type":321,"tag":441,"props":847,"children":849},{"class":443,"line":848},19,[850,855,860,865,870,875,880,885,890,895],{"type":321,"tag":441,"props":851,"children":852},{"style":454},[853],{"type":326,"value":854},"            next: yourCustomers.",{"type":321,"tag":441,"props":856,"children":857},{"style":538},[858],{"type":326,"value":859},"length",{"type":321,"tag":441,"props":861,"children":862},{"style":448},[863],{"type":326,"value":864}," ===",{"type":321,"tag":441,"props":866,"children":867},{"style":454},[868],{"type":326,"value":869}," options.limit ",{"type":321,"tag":441,"props":871,"children":872},{"style":448},[873],{"type":326,"value":874},"?",{"type":321,"tag":441,"props":876,"children":877},{"style":454},[878],{"type":326,"value":879}," offset ",{"type":321,"tag":441,"props":881,"children":882},{"style":448},[883],{"type":326,"value":884},"+",{"type":321,"tag":441,"props":886,"children":887},{"style":454},[888],{"type":326,"value":889}," limit ",{"type":321,"tag":441,"props":891,"children":892},{"style":448},[893],{"type":326,"value":894},":",{"type":321,"tag":441,"props":896,"children":897},{"style":538},[898],{"type":326,"value":899}," undefined\n",{"type":321,"tag":441,"props":901,"children":903},{"class":443,"line":902},20,[904],{"type":321,"tag":441,"props":905,"children":906},{"style":454},[907],{"type":326,"value":908},"        }\n",{"type":321,"tag":441,"props":910,"children":912},{"class":443,"line":911},21,[913],{"type":321,"tag":441,"props":914,"children":915},{"style":454},[916],{"type":326,"value":682},{"type":321,"tag":441,"props":918,"children":920},{"class":443,"line":919},22,[921,925,930,934,938,942,947,952],{"type":321,"tag":441,"props":922,"children":923},{"style":448},[924],{"type":326,"value":580},{"type":321,"tag":441,"props":926,"children":927},{"style":554},[928],{"type":326,"value":929}," findByEmail",{"type":321,"tag":441,"props":931,"children":932},{"style":454},[933],{"type":326,"value":590},{"type":321,"tag":441,"props":935,"children":936},{"style":593},[937],{"type":326,"value":596},{"type":321,"tag":441,"props":939,"children":940},{"style":454},[941],{"type":326,"value":601},{"type":321,"tag":441,"props":943,"children":944},{"style":593},[945],{"type":326,"value":946},"email",{"type":321,"tag":441,"props":948,"children":949},{"style":454},[950],{"type":326,"value":951},") { ",{"type":321,"tag":441,"props":953,"children":954},{"style":770},[955],{"type":326,"value":956},"// optional\n",{"type":321,"tag":441,"props":958,"children":960},{"class":443,"line":959},23,[961,965,969,973,977,981,986],{"type":321,"tag":441,"props":962,"children":963},{"style":448},[964],{"type":326,"value":620},{"type":321,"tag":441,"props":966,"children":967},{"style":538},[968],{"type":326,"value":625},{"type":321,"tag":441,"props":970,"children":971},{"style":448},[972],{"type":326,"value":546},{"type":321,"tag":441,"props":974,"children":975},{"style":448},[976],{"type":326,"value":634},{"type":321,"tag":441,"props":978,"children":979},{"style":454},[980],{"type":326,"value":639},{"type":321,"tag":441,"props":982,"children":983},{"style":554},[984],{"type":326,"value":985},"findCustomerByEmail",{"type":321,"tag":441,"props":987,"children":988},{"style":454},[989],{"type":326,"value":990},"(email)\n",{"type":321,"tag":441,"props":992,"children":994},{"class":443,"line":993},24,[995,999,1003,1007],{"type":321,"tag":441,"props":996,"children":997},{"style":448},[998],{"type":326,"value":658},{"type":321,"tag":441,"props":1000,"children":1001},{"style":448},[1002],{"type":326,"value":663},{"type":321,"tag":441,"props":1004,"children":1005},{"style":554},[1006],{"type":326,"value":668},{"type":321,"tag":441,"props":1008,"children":1009},{"style":454},[1010],{"type":326,"value":1011},"(yourCustomer)\n",{"type":321,"tag":441,"props":1013,"children":1015},{"class":443,"line":1014},25,[1016],{"type":321,"tag":441,"props":1017,"children":1018},{"style":454},[1019],{"type":326,"value":682},{"type":321,"tag":441,"props":1021,"children":1023},{"class":443,"line":1022},26,[1024,1028,1033,1037,1041,1045,1050,1054],{"type":321,"tag":441,"props":1025,"children":1026},{"style":448},[1027],{"type":326,"value":580},{"type":321,"tag":441,"props":1029,"children":1030},{"style":554},[1031],{"type":326,"value":1032}," findByPhone",{"type":321,"tag":441,"props":1034,"children":1035},{"style":454},[1036],{"type":326,"value":590},{"type":321,"tag":441,"props":1038,"children":1039},{"style":593},[1040],{"type":326,"value":596},{"type":321,"tag":441,"props":1042,"children":1043},{"style":454},[1044],{"type":326,"value":601},{"type":321,"tag":441,"props":1046,"children":1047},{"style":593},[1048],{"type":326,"value":1049},"phone",{"type":321,"tag":441,"props":1051,"children":1052},{"style":454},[1053],{"type":326,"value":951},{"type":321,"tag":441,"props":1055,"children":1056},{"style":770},[1057],{"type":326,"value":956},{"type":321,"tag":441,"props":1059,"children":1061},{"class":443,"line":1060},27,[1062,1066,1070,1074,1078,1082,1087],{"type":321,"tag":441,"props":1063,"children":1064},{"style":448},[1065],{"type":326,"value":620},{"type":321,"tag":441,"props":1067,"children":1068},{"style":538},[1069],{"type":326,"value":625},{"type":321,"tag":441,"props":1071,"children":1072},{"style":448},[1073],{"type":326,"value":546},{"type":321,"tag":441,"props":1075,"children":1076},{"style":448},[1077],{"type":326,"value":634},{"type":321,"tag":441,"props":1079,"children":1080},{"style":454},[1081],{"type":326,"value":639},{"type":321,"tag":441,"props":1083,"children":1084},{"style":554},[1085],{"type":326,"value":1086},"findCustomerByPhone",{"type":321,"tag":441,"props":1088,"children":1089},{"style":454},[1090],{"type":326,"value":1091},"(phone)\n",{"type":321,"tag":441,"props":1093,"children":1095},{"class":443,"line":1094},28,[1096,1100,1104,1108],{"type":321,"tag":441,"props":1097,"children":1098},{"style":448},[1099],{"type":326,"value":658},{"type":321,"tag":441,"props":1101,"children":1102},{"style":448},[1103],{"type":326,"value":663},{"type":321,"tag":441,"props":1105,"children":1106},{"style":554},[1107],{"type":326,"value":668},{"type":321,"tag":441,"props":1109,"children":1110},{"style":454},[1111],{"type":326,"value":1011},{"type":321,"tag":441,"props":1113,"children":1115},{"class":443,"line":1114},29,[1116],{"type":321,"tag":441,"props":1117,"children":1118},{"style":454},[1119],{"type":326,"value":1120},"    }\n",{"type":321,"tag":441,"props":1122,"children":1124},{"class":443,"line":1123},30,[1125],{"type":321,"tag":441,"props":1126,"children":1127},{"style":454},[1128],{"type":326,"value":1129},"})\n",{"type":321,"tag":338,"props":1131,"children":1133},{"id":1132},"endpoints",[1134],{"type":326,"value":1135},"Endpoints",{"type":321,"tag":1137,"props":1138,"children":1140},"h3",{"id":1139},"retrieve",[1141,1143],{"type":326,"value":1142},"Retrieve ",{"type":321,"tag":367,"props":1144,"children":1145},{"label":369,"color":370},[],{"type":321,"tag":322,"props":1147,"children":1148},{},[1149],{"type":321,"tag":329,"props":1150,"children":1152},{"className":1151},[],[1153],{"type":326,"value":1154},"GET /churnkey/customers/:id",{"type":321,"tag":322,"props":1156,"children":1157},{},[1158,1160,1166,1168,1174,1176,1182],{"type":326,"value":1159},"This endpoint fetches ",{"type":321,"tag":329,"props":1161,"children":1163},{"className":1162},[],[1164],{"type":326,"value":1165},"Customer",{"type":326,"value":1167}," by its ",{"type":321,"tag":329,"props":1169,"children":1171},{"className":1170},[],[1172],{"type":326,"value":1173},"id",{"type":326,"value":1175},". Usually, implementation will include finding a customer in your database and mapping it to the ",{"type":321,"tag":1177,"props":1178,"children":1179},"a",{"href":353},[1180],{"type":326,"value":1181},"Customer model",{"type":326,"value":1183},".",{"type":321,"tag":1185,"props":1186,"children":1188},"collapsible",{"name":1187},"response",[1189],{"type":321,"tag":1190,"props":1191,"children":1192},"tabs",{},[1193,1216],{"type":321,"tag":1194,"props":1195,"children":1197},"div",{"label":1196},"200",[1198],{"type":321,"tag":322,"props":1199,"children":1200},{},[1201,1203,1208,1210,1215],{"type":326,"value":1202},"Must return ",{"type":321,"tag":329,"props":1204,"children":1206},{"className":1205},[],[1207],{"type":326,"value":1165},{"type":326,"value":1209}," model. See ",{"type":321,"tag":1177,"props":1211,"children":1212},{"href":353},[1213],{"type":326,"value":1214},"Customer model documentation",{"type":326,"value":1183},{"type":321,"tag":1194,"props":1217,"children":1219},{"label":1218},"Error",[1220],{"type":321,"tag":322,"props":1221,"children":1222},{},[1223,1225,1231],{"type":326,"value":1224},"See ",{"type":321,"tag":1177,"props":1226,"children":1228},{"href":1227},"/integrations/general#error-responses",[1229],{"type":326,"value":1230},"Error Responses",{"type":326,"value":1183},{"type":321,"tag":1185,"props":1233,"children":1235},{"name":1234},"code example",[1236],{"type":321,"tag":426,"props":1237,"children":1238},{},[1239],{"type":321,"tag":430,"props":1240,"children":1243},{"className":432,"code":1241,"filename":1242,"language":435,"meta":314,"style":314},"import { Customer } from '../models/Customer'\n\napp.get('/churnkey/customers/:id', async (req, res) => {\n    const customer = await db.findCustomerById(req.params.id)\n    if (!customer) {\n        return res.status(404).send({ code: 404, message: 'Customer not found' })\n    }\n    res.send(new Customer(customer))\n})\n","Typescript Express",[1244],{"type":321,"tag":329,"props":1245,"children":1246},{"__ignoreMap":314},[1247,1266,1273,1337,1372,1394,1454,1461,1491],{"type":321,"tag":441,"props":1248,"children":1249},{"class":443,"line":444},[1250,1254,1258,1262],{"type":321,"tag":441,"props":1251,"children":1252},{"style":448},[1253],{"type":326,"value":451},{"type":321,"tag":441,"props":1255,"children":1256},{"style":454},[1257],{"type":326,"value":502},{"type":321,"tag":441,"props":1259,"children":1260},{"style":448},[1261],{"type":326,"value":462},{"type":321,"tag":441,"props":1263,"children":1264},{"style":465},[1265],{"type":326,"value":511},{"type":321,"tag":441,"props":1267,"children":1268},{"class":443,"line":347},[1269],{"type":321,"tag":441,"props":1270,"children":1271},{"emptyLinePlaceholder":518},[1272],{"type":326,"value":521},{"type":321,"tag":441,"props":1274,"children":1275},{"class":443,"line":492},[1276,1281,1286,1290,1295,1299,1304,1309,1314,1318,1323,1328,1333],{"type":321,"tag":441,"props":1277,"children":1278},{"style":454},[1279],{"type":326,"value":1280},"app.",{"type":321,"tag":441,"props":1282,"children":1283},{"style":554},[1284],{"type":326,"value":1285},"get",{"type":321,"tag":441,"props":1287,"children":1288},{"style":454},[1289],{"type":326,"value":590},{"type":321,"tag":441,"props":1291,"children":1292},{"style":465},[1293],{"type":326,"value":1294},"'/churnkey/customers/:id'",{"type":321,"tag":441,"props":1296,"children":1297},{"style":454},[1298],{"type":326,"value":601},{"type":321,"tag":441,"props":1300,"children":1301},{"style":448},[1302],{"type":326,"value":1303},"async",{"type":321,"tag":441,"props":1305,"children":1306},{"style":454},[1307],{"type":326,"value":1308}," (",{"type":321,"tag":441,"props":1310,"children":1311},{"style":593},[1312],{"type":326,"value":1313},"req",{"type":321,"tag":441,"props":1315,"children":1316},{"style":454},[1317],{"type":326,"value":601},{"type":321,"tag":441,"props":1319,"children":1320},{"style":593},[1321],{"type":326,"value":1322},"res",{"type":321,"tag":441,"props":1324,"children":1325},{"style":454},[1326],{"type":326,"value":1327},") ",{"type":321,"tag":441,"props":1329,"children":1330},{"style":448},[1331],{"type":326,"value":1332},"=>",{"type":321,"tag":441,"props":1334,"children":1335},{"style":454},[1336],{"type":326,"value":795},{"type":321,"tag":441,"props":1338,"children":1339},{"class":443,"line":514},[1340,1345,1350,1354,1358,1363,1367],{"type":321,"tag":441,"props":1341,"children":1342},{"style":448},[1343],{"type":326,"value":1344},"    const",{"type":321,"tag":441,"props":1346,"children":1347},{"style":538},[1348],{"type":326,"value":1349}," customer",{"type":321,"tag":441,"props":1351,"children":1352},{"style":448},[1353],{"type":326,"value":546},{"type":321,"tag":441,"props":1355,"children":1356},{"style":448},[1357],{"type":326,"value":634},{"type":321,"tag":441,"props":1359,"children":1360},{"style":454},[1361],{"type":326,"value":1362}," db.",{"type":321,"tag":441,"props":1364,"children":1365},{"style":554},[1366],{"type":326,"value":644},{"type":321,"tag":441,"props":1368,"children":1369},{"style":454},[1370],{"type":326,"value":1371},"(req.params.id)\n",{"type":321,"tag":441,"props":1373,"children":1374},{"class":443,"line":524},[1375,1380,1384,1389],{"type":321,"tag":441,"props":1376,"children":1377},{"style":448},[1378],{"type":326,"value":1379},"    if",{"type":321,"tag":441,"props":1381,"children":1382},{"style":454},[1383],{"type":326,"value":1308},{"type":321,"tag":441,"props":1385,"children":1386},{"style":448},[1387],{"type":326,"value":1388},"!",{"type":321,"tag":441,"props":1390,"children":1391},{"style":454},[1392],{"type":326,"value":1393},"customer) {\n",{"type":321,"tag":441,"props":1395,"children":1396},{"class":443,"line":565},[1397,1401,1406,1411,1415,1420,1425,1430,1435,1439,1444,1449],{"type":321,"tag":441,"props":1398,"children":1399},{"style":448},[1400],{"type":326,"value":658},{"type":321,"tag":441,"props":1402,"children":1403},{"style":454},[1404],{"type":326,"value":1405}," res.",{"type":321,"tag":441,"props":1407,"children":1408},{"style":554},[1409],{"type":326,"value":1410},"status",{"type":321,"tag":441,"props":1412,"children":1413},{"style":454},[1414],{"type":326,"value":590},{"type":321,"tag":441,"props":1416,"children":1417},{"style":538},[1418],{"type":326,"value":1419},"404",{"type":321,"tag":441,"props":1421,"children":1422},{"style":454},[1423],{"type":326,"value":1424},").",{"type":321,"tag":441,"props":1426,"children":1427},{"style":554},[1428],{"type":326,"value":1429},"send",{"type":321,"tag":441,"props":1431,"children":1432},{"style":454},[1433],{"type":326,"value":1434},"({ code: ",{"type":321,"tag":441,"props":1436,"children":1437},{"style":538},[1438],{"type":326,"value":1419},{"type":321,"tag":441,"props":1440,"children":1441},{"style":454},[1442],{"type":326,"value":1443},", message: ",{"type":321,"tag":441,"props":1445,"children":1446},{"style":465},[1447],{"type":326,"value":1448},"'Customer not found'",{"type":321,"tag":441,"props":1450,"children":1451},{"style":454},[1452],{"type":326,"value":1453}," })\n",{"type":321,"tag":441,"props":1455,"children":1456},{"class":443,"line":574},[1457],{"type":321,"tag":441,"props":1458,"children":1459},{"style":454},[1460],{"type":326,"value":1120},{"type":321,"tag":441,"props":1462,"children":1463},{"class":443,"line":614},[1464,1469,1473,1477,1482,1486],{"type":321,"tag":441,"props":1465,"children":1466},{"style":454},[1467],{"type":326,"value":1468},"    res.",{"type":321,"tag":441,"props":1470,"children":1471},{"style":554},[1472],{"type":326,"value":1429},{"type":321,"tag":441,"props":1474,"children":1475},{"style":454},[1476],{"type":326,"value":590},{"type":321,"tag":441,"props":1478,"children":1479},{"style":448},[1480],{"type":326,"value":1481},"new",{"type":321,"tag":441,"props":1483,"children":1484},{"style":554},[1485],{"type":326,"value":668},{"type":321,"tag":441,"props":1487,"children":1488},{"style":454},[1489],{"type":326,"value":1490},"(customer))\n",{"type":321,"tag":441,"props":1492,"children":1493},{"class":443,"line":652},[1494],{"type":321,"tag":441,"props":1495,"children":1496},{"style":454},[1497],{"type":326,"value":1129},{"type":321,"tag":1137,"props":1499,"children":1501},{"id":1500},"list",[1502,1504],{"type":326,"value":1503},"List ",{"type":321,"tag":367,"props":1505,"children":1506},{"label":399},[],{"type":321,"tag":322,"props":1508,"children":1509},{},[1510],{"type":321,"tag":329,"props":1511,"children":1513},{"className":1512},[],[1514],{"type":326,"value":1515},"GET /churnkey/customers",{"type":321,"tag":322,"props":1517,"children":1518},{},[1519,1521,1526],{"type":326,"value":1520},"This endpoint fetches a list of customers from your database. You should find customers in your database (with pagination), map them to the ",{"type":321,"tag":329,"props":1522,"children":1524},{"className":1523},[],[1525],{"type":326,"value":1165},{"type":326,"value":1527}," model and return a paginated list.",{"type":321,"tag":322,"props":1529,"children":1530},{},[1531,1537],{"type":321,"tag":1177,"props":1532,"children":1534},{"href":1533},"/integrations/general#pagination",[1535],{"type":326,"value":1536},"Learn more about pagination",{"type":326,"value":1183},{"type":321,"tag":1185,"props":1539,"children":1541},{"name":1540},"query parameters",[1542],{"type":321,"tag":1543,"props":1544,"children":1546},"field-schema",{"schema":1545},"/types/pagination-query.type",[],{"type":321,"tag":1185,"props":1548,"children":1549},{"name":1187},[1550],{"type":321,"tag":1543,"props":1551,"children":1553},{"schema":1552},"/types/pagination-response.type",[],{"type":321,"tag":1185,"props":1555,"children":1556},{"name":1234},[1557],{"type":321,"tag":426,"props":1558,"children":1559},{},[1560],{"type":321,"tag":430,"props":1561,"children":1563},{"className":432,"code":1562,"filename":1242,"language":435,"meta":314,"style":314},"import { Customer } from '../models/Customer'\n\napp.get('/churnkey/customers', async (req, res) => {\n    const limit = Number.parseInt(req.query.limit)\n    const offset = Number.parseInt(req.query.cursor) \n    const customers = await db.findCustomers({ limit, offset })\n    res.send({\n        data: customers.map(c => new Customer(c)),\n        next: customers.length === limit ? offset + limit : undefined\n    })\n})\n",[1564],{"type":321,"tag":329,"props":1565,"children":1566},{"__ignoreMap":314},[1567,1586,1593,1649,1680,1709,1742,1757,1793,1837,1845],{"type":321,"tag":441,"props":1568,"children":1569},{"class":443,"line":444},[1570,1574,1578,1582],{"type":321,"tag":441,"props":1571,"children":1572},{"style":448},[1573],{"type":326,"value":451},{"type":321,"tag":441,"props":1575,"children":1576},{"style":454},[1577],{"type":326,"value":502},{"type":321,"tag":441,"props":1579,"children":1580},{"style":448},[1581],{"type":326,"value":462},{"type":321,"tag":441,"props":1583,"children":1584},{"style":465},[1585],{"type":326,"value":511},{"type":321,"tag":441,"props":1587,"children":1588},{"class":443,"line":347},[1589],{"type":321,"tag":441,"props":1590,"children":1591},{"emptyLinePlaceholder":518},[1592],{"type":326,"value":521},{"type":321,"tag":441,"props":1594,"children":1595},{"class":443,"line":492},[1596,1600,1604,1608,1613,1617,1621,1625,1629,1633,1637,1641,1645],{"type":321,"tag":441,"props":1597,"children":1598},{"style":454},[1599],{"type":326,"value":1280},{"type":321,"tag":441,"props":1601,"children":1602},{"style":554},[1603],{"type":326,"value":1285},{"type":321,"tag":441,"props":1605,"children":1606},{"style":454},[1607],{"type":326,"value":590},{"type":321,"tag":441,"props":1609,"children":1610},{"style":465},[1611],{"type":326,"value":1612},"'/churnkey/customers'",{"type":321,"tag":441,"props":1614,"children":1615},{"style":454},[1616],{"type":326,"value":601},{"type":321,"tag":441,"props":1618,"children":1619},{"style":448},[1620],{"type":326,"value":1303},{"type":321,"tag":441,"props":1622,"children":1623},{"style":454},[1624],{"type":326,"value":1308},{"type":321,"tag":441,"props":1626,"children":1627},{"style":593},[1628],{"type":326,"value":1313},{"type":321,"tag":441,"props":1630,"children":1631},{"style":454},[1632],{"type":326,"value":601},{"type":321,"tag":441,"props":1634,"children":1635},{"style":593},[1636],{"type":326,"value":1322},{"type":321,"tag":441,"props":1638,"children":1639},{"style":454},[1640],{"type":326,"value":1327},{"type":321,"tag":441,"props":1642,"children":1643},{"style":448},[1644],{"type":326,"value":1332},{"type":321,"tag":441,"props":1646,"children":1647},{"style":454},[1648],{"type":326,"value":795},{"type":321,"tag":441,"props":1650,"children":1651},{"class":443,"line":514},[1652,1656,1661,1665,1670,1675],{"type":321,"tag":441,"props":1653,"children":1654},{"style":448},[1655],{"type":326,"value":1344},{"type":321,"tag":441,"props":1657,"children":1658},{"style":538},[1659],{"type":326,"value":1660}," limit",{"type":321,"tag":441,"props":1662,"children":1663},{"style":448},[1664],{"type":326,"value":546},{"type":321,"tag":441,"props":1666,"children":1667},{"style":454},[1668],{"type":326,"value":1669}," Number.",{"type":321,"tag":441,"props":1671,"children":1672},{"style":554},[1673],{"type":326,"value":1674},"parseInt",{"type":321,"tag":441,"props":1676,"children":1677},{"style":454},[1678],{"type":326,"value":1679},"(req.query.limit)\n",{"type":321,"tag":441,"props":1681,"children":1682},{"class":443,"line":524},[1683,1687,1692,1696,1700,1704],{"type":321,"tag":441,"props":1684,"children":1685},{"style":448},[1686],{"type":326,"value":1344},{"type":321,"tag":441,"props":1688,"children":1689},{"style":538},[1690],{"type":326,"value":1691}," offset",{"type":321,"tag":441,"props":1693,"children":1694},{"style":448},[1695],{"type":326,"value":546},{"type":321,"tag":441,"props":1697,"children":1698},{"style":454},[1699],{"type":326,"value":1669},{"type":321,"tag":441,"props":1701,"children":1702},{"style":554},[1703],{"type":326,"value":1674},{"type":321,"tag":441,"props":1705,"children":1706},{"style":454},[1707],{"type":326,"value":1708},"(req.query.cursor) \n",{"type":321,"tag":441,"props":1710,"children":1711},{"class":443,"line":565},[1712,1716,1721,1725,1729,1733,1737],{"type":321,"tag":441,"props":1713,"children":1714},{"style":448},[1715],{"type":326,"value":1344},{"type":321,"tag":441,"props":1717,"children":1718},{"style":538},[1719],{"type":326,"value":1720}," customers",{"type":321,"tag":441,"props":1722,"children":1723},{"style":448},[1724],{"type":326,"value":546},{"type":321,"tag":441,"props":1726,"children":1727},{"style":448},[1728],{"type":326,"value":634},{"type":321,"tag":441,"props":1730,"children":1731},{"style":454},[1732],{"type":326,"value":1362},{"type":321,"tag":441,"props":1734,"children":1735},{"style":554},[1736],{"type":326,"value":745},{"type":321,"tag":441,"props":1738,"children":1739},{"style":454},[1740],{"type":326,"value":1741},"({ limit, offset })\n",{"type":321,"tag":441,"props":1743,"children":1744},{"class":443,"line":574},[1745,1749,1753],{"type":321,"tag":441,"props":1746,"children":1747},{"style":454},[1748],{"type":326,"value":1468},{"type":321,"tag":441,"props":1750,"children":1751},{"style":554},[1752],{"type":326,"value":1429},{"type":321,"tag":441,"props":1754,"children":1755},{"style":454},[1756],{"type":326,"value":562},{"type":321,"tag":441,"props":1758,"children":1759},{"class":443,"line":614},[1760,1765,1769,1773,1777,1781,1785,1789],{"type":321,"tag":441,"props":1761,"children":1762},{"style":454},[1763],{"type":326,"value":1764},"        data: customers.",{"type":321,"tag":441,"props":1766,"children":1767},{"style":554},[1768],{"type":326,"value":809},{"type":321,"tag":441,"props":1770,"children":1771},{"style":454},[1772],{"type":326,"value":590},{"type":321,"tag":441,"props":1774,"children":1775},{"style":593},[1776],{"type":326,"value":818},{"type":321,"tag":441,"props":1778,"children":1779},{"style":448},[1780],{"type":326,"value":823},{"type":321,"tag":441,"props":1782,"children":1783},{"style":448},[1784],{"type":326,"value":663},{"type":321,"tag":441,"props":1786,"children":1787},{"style":554},[1788],{"type":326,"value":668},{"type":321,"tag":441,"props":1790,"children":1791},{"style":454},[1792],{"type":326,"value":836},{"type":321,"tag":441,"props":1794,"children":1795},{"class":443,"line":652},[1796,1801,1805,1809,1813,1817,1821,1825,1829,1833],{"type":321,"tag":441,"props":1797,"children":1798},{"style":454},[1799],{"type":326,"value":1800},"        next: customers.",{"type":321,"tag":441,"props":1802,"children":1803},{"style":538},[1804],{"type":326,"value":859},{"type":321,"tag":441,"props":1806,"children":1807},{"style":448},[1808],{"type":326,"value":864},{"type":321,"tag":441,"props":1810,"children":1811},{"style":454},[1812],{"type":326,"value":889},{"type":321,"tag":441,"props":1814,"children":1815},{"style":448},[1816],{"type":326,"value":874},{"type":321,"tag":441,"props":1818,"children":1819},{"style":454},[1820],{"type":326,"value":879},{"type":321,"tag":441,"props":1822,"children":1823},{"style":448},[1824],{"type":326,"value":884},{"type":321,"tag":441,"props":1826,"children":1827},{"style":454},[1828],{"type":326,"value":889},{"type":321,"tag":441,"props":1830,"children":1831},{"style":448},[1832],{"type":326,"value":894},{"type":321,"tag":441,"props":1834,"children":1835},{"style":538},[1836],{"type":326,"value":899},{"type":321,"tag":441,"props":1838,"children":1839},{"class":443,"line":676},[1840],{"type":321,"tag":441,"props":1841,"children":1842},{"style":454},[1843],{"type":326,"value":1844},"    })\n",{"type":321,"tag":441,"props":1846,"children":1847},{"class":443,"line":685},[1848],{"type":321,"tag":441,"props":1849,"children":1850},{"style":454},[1851],{"type":326,"value":1129},{"type":321,"tag":1137,"props":1853,"children":1855},{"id":1854},"find-by-email",[1856,1858],{"type":326,"value":1857},"Find by Email ",{"type":321,"tag":367,"props":1859,"children":1861},{"label":1860},"Managed Flow",[],{"type":321,"tag":322,"props":1863,"children":1864},{},[1865],{"type":321,"tag":329,"props":1866,"children":1868},{"className":1867},[],[1869],{"type":326,"value":1870},"GET /churnkey/customers/email/:email",{"type":321,"tag":322,"props":1872,"children":1873},{},[1874,1875,1880,1881,1886,1887,1891],{"type":326,"value":1159},{"type":321,"tag":329,"props":1876,"children":1878},{"className":1877},[],[1879],{"type":326,"value":1165},{"type":326,"value":1167},{"type":321,"tag":329,"props":1882,"children":1884},{"className":1883},[],[1885],{"type":326,"value":946},{"type":326,"value":1175},{"type":321,"tag":1177,"props":1888,"children":1889},{"href":353},[1890],{"type":326,"value":1181},{"type":326,"value":1183},{"type":321,"tag":322,"props":1893,"children":1894},{},[1895],{"type":326,"value":1896},"Make sure that each customer has a unique email address if you are going to implement this endpoint.",{"type":321,"tag":1185,"props":1898,"children":1899},{"name":1187},[1900],{"type":321,"tag":1190,"props":1901,"children":1902},{},[1903,1921],{"type":321,"tag":1194,"props":1904,"children":1905},{"label":1196},[1906],{"type":321,"tag":322,"props":1907,"children":1908},{},[1909,1910,1915,1916,1920],{"type":326,"value":1202},{"type":321,"tag":329,"props":1911,"children":1913},{"className":1912},[],[1914],{"type":326,"value":1165},{"type":326,"value":1209},{"type":321,"tag":1177,"props":1917,"children":1918},{"href":353},[1919],{"type":326,"value":1214},{"type":326,"value":1183},{"type":321,"tag":1194,"props":1922,"children":1923},{"label":1218},[1924],{"type":321,"tag":322,"props":1925,"children":1926},{},[1927,1928,1932],{"type":326,"value":1224},{"type":321,"tag":1177,"props":1929,"children":1930},{"href":1227},[1931],{"type":326,"value":1230},{"type":326,"value":1183},{"type":321,"tag":1185,"props":1934,"children":1935},{"name":1234},[1936],{"type":321,"tag":426,"props":1937,"children":1938},{},[1939],{"type":321,"tag":430,"props":1940,"children":1942},{"className":432,"code":1941,"filename":1242,"language":435,"meta":314,"style":314},"import { Customer } from '../models/Customer'\n\napp.get('/churnkey/customers/email/:email', async (req, res) => {\n    const customer = await db.findCustomerByEmail(req.params.email)\n    if (!customer) {\n        return res.status(404).send({ code: 404, message: 'Customer not found' })\n    }\n    res.send(new Customer(customer))\n})\n",[1943],{"type":321,"tag":329,"props":1944,"children":1945},{"__ignoreMap":314},[1946,1965,1972,2028,2060,2079,2130,2137,2164],{"type":321,"tag":441,"props":1947,"children":1948},{"class":443,"line":444},[1949,1953,1957,1961],{"type":321,"tag":441,"props":1950,"children":1951},{"style":448},[1952],{"type":326,"value":451},{"type":321,"tag":441,"props":1954,"children":1955},{"style":454},[1956],{"type":326,"value":502},{"type":321,"tag":441,"props":1958,"children":1959},{"style":448},[1960],{"type":326,"value":462},{"type":321,"tag":441,"props":1962,"children":1963},{"style":465},[1964],{"type":326,"value":511},{"type":321,"tag":441,"props":1966,"children":1967},{"class":443,"line":347},[1968],{"type":321,"tag":441,"props":1969,"children":1970},{"emptyLinePlaceholder":518},[1971],{"type":326,"value":521},{"type":321,"tag":441,"props":1973,"children":1974},{"class":443,"line":492},[1975,1979,1983,1987,1992,1996,2000,2004,2008,2012,2016,2020,2024],{"type":321,"tag":441,"props":1976,"children":1977},{"style":454},[1978],{"type":326,"value":1280},{"type":321,"tag":441,"props":1980,"children":1981},{"style":554},[1982],{"type":326,"value":1285},{"type":321,"tag":441,"props":1984,"children":1985},{"style":454},[1986],{"type":326,"value":590},{"type":321,"tag":441,"props":1988,"children":1989},{"style":465},[1990],{"type":326,"value":1991},"'/churnkey/customers/email/:email'",{"type":321,"tag":441,"props":1993,"children":1994},{"style":454},[1995],{"type":326,"value":601},{"type":321,"tag":441,"props":1997,"children":1998},{"style":448},[1999],{"type":326,"value":1303},{"type":321,"tag":441,"props":2001,"children":2002},{"style":454},[2003],{"type":326,"value":1308},{"type":321,"tag":441,"props":2005,"children":2006},{"style":593},[2007],{"type":326,"value":1313},{"type":321,"tag":441,"props":2009,"children":2010},{"style":454},[2011],{"type":326,"value":601},{"type":321,"tag":441,"props":2013,"children":2014},{"style":593},[2015],{"type":326,"value":1322},{"type":321,"tag":441,"props":2017,"children":2018},{"style":454},[2019],{"type":326,"value":1327},{"type":321,"tag":441,"props":2021,"children":2022},{"style":448},[2023],{"type":326,"value":1332},{"type":321,"tag":441,"props":2025,"children":2026},{"style":454},[2027],{"type":326,"value":795},{"type":321,"tag":441,"props":2029,"children":2030},{"class":443,"line":514},[2031,2035,2039,2043,2047,2051,2055],{"type":321,"tag":441,"props":2032,"children":2033},{"style":448},[2034],{"type":326,"value":1344},{"type":321,"tag":441,"props":2036,"children":2037},{"style":538},[2038],{"type":326,"value":1349},{"type":321,"tag":441,"props":2040,"children":2041},{"style":448},[2042],{"type":326,"value":546},{"type":321,"tag":441,"props":2044,"children":2045},{"style":448},[2046],{"type":326,"value":634},{"type":321,"tag":441,"props":2048,"children":2049},{"style":454},[2050],{"type":326,"value":1362},{"type":321,"tag":441,"props":2052,"children":2053},{"style":554},[2054],{"type":326,"value":985},{"type":321,"tag":441,"props":2056,"children":2057},{"style":454},[2058],{"type":326,"value":2059},"(req.params.email)\n",{"type":321,"tag":441,"props":2061,"children":2062},{"class":443,"line":524},[2063,2067,2071,2075],{"type":321,"tag":441,"props":2064,"children":2065},{"style":448},[2066],{"type":326,"value":1379},{"type":321,"tag":441,"props":2068,"children":2069},{"style":454},[2070],{"type":326,"value":1308},{"type":321,"tag":441,"props":2072,"children":2073},{"style":448},[2074],{"type":326,"value":1388},{"type":321,"tag":441,"props":2076,"children":2077},{"style":454},[2078],{"type":326,"value":1393},{"type":321,"tag":441,"props":2080,"children":2081},{"class":443,"line":565},[2082,2086,2090,2094,2098,2102,2106,2110,2114,2118,2122,2126],{"type":321,"tag":441,"props":2083,"children":2084},{"style":448},[2085],{"type":326,"value":658},{"type":321,"tag":441,"props":2087,"children":2088},{"style":454},[2089],{"type":326,"value":1405},{"type":321,"tag":441,"props":2091,"children":2092},{"style":554},[2093],{"type":326,"value":1410},{"type":321,"tag":441,"props":2095,"children":2096},{"style":454},[2097],{"type":326,"value":590},{"type":321,"tag":441,"props":2099,"children":2100},{"style":538},[2101],{"type":326,"value":1419},{"type":321,"tag":441,"props":2103,"children":2104},{"style":454},[2105],{"type":326,"value":1424},{"type":321,"tag":441,"props":2107,"children":2108},{"style":554},[2109],{"type":326,"value":1429},{"type":321,"tag":441,"props":2111,"children":2112},{"style":454},[2113],{"type":326,"value":1434},{"type":321,"tag":441,"props":2115,"children":2116},{"style":538},[2117],{"type":326,"value":1419},{"type":321,"tag":441,"props":2119,"children":2120},{"style":454},[2121],{"type":326,"value":1443},{"type":321,"tag":441,"props":2123,"children":2124},{"style":465},[2125],{"type":326,"value":1448},{"type":321,"tag":441,"props":2127,"children":2128},{"style":454},[2129],{"type":326,"value":1453},{"type":321,"tag":441,"props":2131,"children":2132},{"class":443,"line":574},[2133],{"type":321,"tag":441,"props":2134,"children":2135},{"style":454},[2136],{"type":326,"value":1120},{"type":321,"tag":441,"props":2138,"children":2139},{"class":443,"line":614},[2140,2144,2148,2152,2156,2160],{"type":321,"tag":441,"props":2141,"children":2142},{"style":454},[2143],{"type":326,"value":1468},{"type":321,"tag":441,"props":2145,"children":2146},{"style":554},[2147],{"type":326,"value":1429},{"type":321,"tag":441,"props":2149,"children":2150},{"style":454},[2151],{"type":326,"value":590},{"type":321,"tag":441,"props":2153,"children":2154},{"style":448},[2155],{"type":326,"value":1481},{"type":321,"tag":441,"props":2157,"children":2158},{"style":554},[2159],{"type":326,"value":668},{"type":321,"tag":441,"props":2161,"children":2162},{"style":454},[2163],{"type":326,"value":1490},{"type":321,"tag":441,"props":2165,"children":2166},{"class":443,"line":652},[2167],{"type":321,"tag":441,"props":2168,"children":2169},{"style":454},[2170],{"type":326,"value":1129},{"type":321,"tag":1137,"props":2172,"children":2174},{"id":2173},"find-by-phone",[2175,2177],{"type":326,"value":2176},"Find by Phone ",{"type":321,"tag":367,"props":2178,"children":2179},{"label":1860},[],{"type":321,"tag":322,"props":2181,"children":2182},{},[2183],{"type":321,"tag":329,"props":2184,"children":2186},{"className":2185},[],[2187],{"type":326,"value":2188},"GET /churnkey/customers/phone/:phone",{"type":321,"tag":322,"props":2190,"children":2191},{},[2192,2193,2198,2199,2204,2205,2209],{"type":326,"value":1159},{"type":321,"tag":329,"props":2194,"children":2196},{"className":2195},[],[2197],{"type":326,"value":1165},{"type":326,"value":1167},{"type":321,"tag":329,"props":2200,"children":2202},{"className":2201},[],[2203],{"type":326,"value":1049},{"type":326,"value":1175},{"type":321,"tag":1177,"props":2206,"children":2207},{"href":353},[2208],{"type":326,"value":1181},{"type":326,"value":1183},{"type":321,"tag":322,"props":2211,"children":2212},{},[2213],{"type":326,"value":2214},"Make sure that each customer has a unique phone number if you are going to implement this endpoint.",{"type":321,"tag":1185,"props":2216,"children":2217},{"name":1187},[2218],{"type":321,"tag":1190,"props":2219,"children":2220},{},[2221,2239],{"type":321,"tag":1194,"props":2222,"children":2223},{"label":1196},[2224],{"type":321,"tag":322,"props":2225,"children":2226},{},[2227,2228,2233,2234,2238],{"type":326,"value":1202},{"type":321,"tag":329,"props":2229,"children":2231},{"className":2230},[],[2232],{"type":326,"value":1165},{"type":326,"value":1209},{"type":321,"tag":1177,"props":2235,"children":2236},{"href":353},[2237],{"type":326,"value":1214},{"type":326,"value":1183},{"type":321,"tag":1194,"props":2240,"children":2241},{"label":1218},[2242],{"type":321,"tag":322,"props":2243,"children":2244},{},[2245,2246,2250],{"type":326,"value":1224},{"type":321,"tag":1177,"props":2247,"children":2248},{"href":1227},[2249],{"type":326,"value":1230},{"type":326,"value":1183},{"type":321,"tag":1185,"props":2252,"children":2253},{"name":1234},[2254],{"type":321,"tag":426,"props":2255,"children":2256},{},[2257],{"type":321,"tag":430,"props":2258,"children":2259},{"className":432,"code":1941,"filename":1242,"language":435,"meta":314,"style":314},[2260],{"type":321,"tag":329,"props":2261,"children":2262},{"__ignoreMap":314},[2263,2282,2289,2344,2375,2394,2445,2452,2479],{"type":321,"tag":441,"props":2264,"children":2265},{"class":443,"line":444},[2266,2270,2274,2278],{"type":321,"tag":441,"props":2267,"children":2268},{"style":448},[2269],{"type":326,"value":451},{"type":321,"tag":441,"props":2271,"children":2272},{"style":454},[2273],{"type":326,"value":502},{"type":321,"tag":441,"props":2275,"children":2276},{"style":448},[2277],{"type":326,"value":462},{"type":321,"tag":441,"props":2279,"children":2280},{"style":465},[2281],{"type":326,"value":511},{"type":321,"tag":441,"props":2283,"children":2284},{"class":443,"line":347},[2285],{"type":321,"tag":441,"props":2286,"children":2287},{"emptyLinePlaceholder":518},[2288],{"type":326,"value":521},{"type":321,"tag":441,"props":2290,"children":2291},{"class":443,"line":492},[2292,2296,2300,2304,2308,2312,2316,2320,2324,2328,2332,2336,2340],{"type":321,"tag":441,"props":2293,"children":2294},{"style":454},[2295],{"type":326,"value":1280},{"type":321,"tag":441,"props":2297,"children":2298},{"style":554},[2299],{"type":326,"value":1285},{"type":321,"tag":441,"props":2301,"children":2302},{"style":454},[2303],{"type":326,"value":590},{"type":321,"tag":441,"props":2305,"children":2306},{"style":465},[2307],{"type":326,"value":1991},{"type":321,"tag":441,"props":2309,"children":2310},{"style":454},[2311],{"type":326,"value":601},{"type":321,"tag":441,"props":2313,"children":2314},{"style":448},[2315],{"type":326,"value":1303},{"type":321,"tag":441,"props":2317,"children":2318},{"style":454},[2319],{"type":326,"value":1308},{"type":321,"tag":441,"props":2321,"children":2322},{"style":593},[2323],{"type":326,"value":1313},{"type":321,"tag":441,"props":2325,"children":2326},{"style":454},[2327],{"type":326,"value":601},{"type":321,"tag":441,"props":2329,"children":2330},{"style":593},[2331],{"type":326,"value":1322},{"type":321,"tag":441,"props":2333,"children":2334},{"style":454},[2335],{"type":326,"value":1327},{"type":321,"tag":441,"props":2337,"children":2338},{"style":448},[2339],{"type":326,"value":1332},{"type":321,"tag":441,"props":2341,"children":2342},{"style":454},[2343],{"type":326,"value":795},{"type":321,"tag":441,"props":2345,"children":2346},{"class":443,"line":514},[2347,2351,2355,2359,2363,2367,2371],{"type":321,"tag":441,"props":2348,"children":2349},{"style":448},[2350],{"type":326,"value":1344},{"type":321,"tag":441,"props":2352,"children":2353},{"style":538},[2354],{"type":326,"value":1349},{"type":321,"tag":441,"props":2356,"children":2357},{"style":448},[2358],{"type":326,"value":546},{"type":321,"tag":441,"props":2360,"children":2361},{"style":448},[2362],{"type":326,"value":634},{"type":321,"tag":441,"props":2364,"children":2365},{"style":454},[2366],{"type":326,"value":1362},{"type":321,"tag":441,"props":2368,"children":2369},{"style":554},[2370],{"type":326,"value":985},{"type":321,"tag":441,"props":2372,"children":2373},{"style":454},[2374],{"type":326,"value":2059},{"type":321,"tag":441,"props":2376,"children":2377},{"class":443,"line":524},[2378,2382,2386,2390],{"type":321,"tag":441,"props":2379,"children":2380},{"style":448},[2381],{"type":326,"value":1379},{"type":321,"tag":441,"props":2383,"children":2384},{"style":454},[2385],{"type":326,"value":1308},{"type":321,"tag":441,"props":2387,"children":2388},{"style":448},[2389],{"type":326,"value":1388},{"type":321,"tag":441,"props":2391,"children":2392},{"style":454},[2393],{"type":326,"value":1393},{"type":321,"tag":441,"props":2395,"children":2396},{"class":443,"line":565},[2397,2401,2405,2409,2413,2417,2421,2425,2429,2433,2437,2441],{"type":321,"tag":441,"props":2398,"children":2399},{"style":448},[2400],{"type":326,"value":658},{"type":321,"tag":441,"props":2402,"children":2403},{"style":454},[2404],{"type":326,"value":1405},{"type":321,"tag":441,"props":2406,"children":2407},{"style":554},[2408],{"type":326,"value":1410},{"type":321,"tag":441,"props":2410,"children":2411},{"style":454},[2412],{"type":326,"value":590},{"type":321,"tag":441,"props":2414,"children":2415},{"style":538},[2416],{"type":326,"value":1419},{"type":321,"tag":441,"props":2418,"children":2419},{"style":454},[2420],{"type":326,"value":1424},{"type":321,"tag":441,"props":2422,"children":2423},{"style":554},[2424],{"type":326,"value":1429},{"type":321,"tag":441,"props":2426,"children":2427},{"style":454},[2428],{"type":326,"value":1434},{"type":321,"tag":441,"props":2430,"children":2431},{"style":538},[2432],{"type":326,"value":1419},{"type":321,"tag":441,"props":2434,"children":2435},{"style":454},[2436],{"type":326,"value":1443},{"type":321,"tag":441,"props":2438,"children":2439},{"style":465},[2440],{"type":326,"value":1448},{"type":321,"tag":441,"props":2442,"children":2443},{"style":454},[2444],{"type":326,"value":1453},{"type":321,"tag":441,"props":2446,"children":2447},{"class":443,"line":574},[2448],{"type":321,"tag":441,"props":2449,"children":2450},{"style":454},[2451],{"type":326,"value":1120},{"type":321,"tag":441,"props":2453,"children":2454},{"class":443,"line":614},[2455,2459,2463,2467,2471,2475],{"type":321,"tag":441,"props":2456,"children":2457},{"style":454},[2458],{"type":326,"value":1468},{"type":321,"tag":441,"props":2460,"children":2461},{"style":554},[2462],{"type":326,"value":1429},{"type":321,"tag":441,"props":2464,"children":2465},{"style":454},[2466],{"type":326,"value":590},{"type":321,"tag":441,"props":2468,"children":2469},{"style":448},[2470],{"type":326,"value":1481},{"type":321,"tag":441,"props":2472,"children":2473},{"style":554},[2474],{"type":326,"value":668},{"type":321,"tag":441,"props":2476,"children":2477},{"style":454},[2478],{"type":326,"value":1490},{"type":321,"tag":441,"props":2480,"children":2481},{"class":443,"line":652},[2482],{"type":321,"tag":441,"props":2483,"children":2484},{"style":454},[2485],{"type":326,"value":1129},{"type":321,"tag":338,"props":2487,"children":2489},{"id":2488},"webhooks",[2490],{"type":326,"value":226},{"type":321,"tag":322,"props":2492,"children":2493},{},[2494],{"type":326,"value":2495},"Coming soon.",{"type":321,"tag":2497,"props":2498,"children":2499},"style",{},[2500],{"type":326,"value":2501},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":314,"searchDepth":492,"depth":492,"links":2503},[2504,2505,2506,2512],{"id":340,"depth":347,"text":343},{"id":409,"depth":347,"text":412},{"id":1132,"depth":347,"text":1135,"children":2507},[2508,2509,2510,2511],{"id":1139,"depth":492,"text":1142},{"id":1500,"depth":492,"text":1503},{"id":1854,"depth":492,"text":1857},{"id":2173,"depth":492,"text":2176},{"id":2488,"depth":347,"text":226},"markdown","content:99.integrations:3.controllers:2.customers.md","content","99.integrations/3.controllers/2.customers.md","99.integrations/3.controllers/2.customers","md",{"loc":311},[2521,2525],{"_path":2522,"title":2523,"description":2524},"/integrations/models/family","Family Model","A group of products or services.",{"_path":2526,"title":2527,"description":2528},"/integrations/controllers/prices","Prices - Controller","List and retrieve `Price` models.",{"_path":1545,"_dir":2530,"_draft":313,"_partial":313,"_locale":314,"type":2531,"title":2532,"properties":2533,"_id":2542,"_type":2543,"_source":2515,"_file":2544,"_stem":2545,"_extension":2543},"types","object","Pagination Query Params",{"limit":2534,"cursor":2538},{"type":2535,"severity":2536,"description":2537},"integer","required","Maximum number of items to return",{"type":2539,"severity":2540,"description":2541},"string","optional","Cursor for pagination. The actual value is whatever you decided to use as next in the response.","content:types:pagination-query.type.json","json","types/pagination-query.type.json","types/pagination-query.type",{"data":2547,"body":2548,"excerpt":-1,"toc":2554},{"title":314,"description":2537},{"type":318,"children":2549},[2550],{"type":321,"tag":322,"props":2551,"children":2552},{},[2553],{"type":326,"value":2537},{"title":314,"searchDepth":347,"depth":347,"links":2555},[],{"data":2557,"body":2558,"excerpt":-1,"toc":2564},{"title":314,"description":2541},{"type":318,"children":2559},[2560],{"type":321,"tag":322,"props":2561,"children":2562},{},[2563],{"type":326,"value":2541},{"title":314,"searchDepth":347,"depth":347,"links":2565},[],{"_path":1552,"_dir":2530,"_draft":313,"_partial":313,"_locale":314,"type":2531,"title":2567,"properties":2568,"_id":2575,"_type":2543,"_source":2515,"_file":2576,"_stem":2577,"_extension":2543},"Pagination Response",{"data":2569,"next":2573},{"type":2570,"severity":2536,"description":2571,"items":2572},"array","Array of items. The type of item is defined in the endpoint documentation, e.g. `Customer` for `/customers` endpoint",{"type":2531},{"type":2539,"severity":2540,"description":2574},"Either a next `id` or an `offset` for the next page. You decide what to use, we will send `next` value as a `cursor` query parameter back to you. If `next` is empty, there are no more pages","content:types:pagination-response.type.json","types/pagination-response.type.json","types/pagination-response.type",{"data":2579,"body":2581,"excerpt":-1,"toc":2603},{"title":314,"description":2580},"Array of items. The type of item is defined in the endpoint documentation, e.g. Customer for /customers endpoint",{"type":318,"children":2582},[2583],{"type":321,"tag":322,"props":2584,"children":2585},{},[2586,2588,2593,2595,2601],{"type":326,"value":2587},"Array of items. The type of item is defined in the endpoint documentation, e.g. ",{"type":321,"tag":329,"props":2589,"children":2591},{"className":2590},[],[2592],{"type":326,"value":1165},{"type":326,"value":2594}," for ",{"type":321,"tag":329,"props":2596,"children":2598},{"className":2597},[],[2599],{"type":326,"value":2600},"/customers",{"type":326,"value":2602}," endpoint",{"title":314,"searchDepth":347,"depth":347,"links":2604},[],{"data":2606,"body":2608,"excerpt":-1,"toc":2653},{"title":314,"description":2607},"Either a next id or an offset for the next page. You decide what to use, we will send next value as a cursor query parameter back to you. If next is empty, there are no more pages",{"type":318,"children":2609},[2610],{"type":321,"tag":322,"props":2611,"children":2612},{},[2613,2615,2620,2622,2628,2630,2636,2638,2644,2646,2651],{"type":326,"value":2614},"Either a next ",{"type":321,"tag":329,"props":2616,"children":2618},{"className":2617},[],[2619],{"type":326,"value":1173},{"type":326,"value":2621}," or an ",{"type":321,"tag":329,"props":2623,"children":2625},{"className":2624},[],[2626],{"type":326,"value":2627},"offset",{"type":326,"value":2629}," for the next page. You decide what to use, we will send ",{"type":321,"tag":329,"props":2631,"children":2633},{"className":2632},[],[2634],{"type":326,"value":2635},"next",{"type":326,"value":2637}," value as a ",{"type":321,"tag":329,"props":2639,"children":2641},{"className":2640},[],[2642],{"type":326,"value":2643},"cursor",{"type":326,"value":2645}," query parameter back to you. If ",{"type":321,"tag":329,"props":2647,"children":2649},{"className":2648},[],[2650],{"type":326,"value":2635},{"type":326,"value":2652}," is empty, there are no more pages",{"title":314,"searchDepth":347,"depth":347,"links":2654},[],1775515592291]