[{"data":1,"prerenderedAt":4048},["ShallowReactive",2],{"navigation":3,"/billing-providers/direct-connect/direct":310,"/billing-providers/direct-connect/direct-surround":3757,"/types/direct/customer-direct.type":3760,"/types/direct/subscription-direct.type":3782,"AIBLAZoi2i":3907,"DHgg2jnBIE":3917,"FfLUk8fGkc":3927,"KoJQhSksIm":3937,"62DDGngvKM":3947,"OXbCcI3VKa":3973,"poNgp1xfJ2":3983,"YQzZHhgisQ":3993,"SGf6SMnr31":4003,"HWGHJli9yN":4013,"W9DOqVYWsY":4023},[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":281,"_dir":311,"_draft":312,"_partial":312,"_locale":313,"title":280,"description":283,"body":314,"_type":3751,"_id":282,"_source":3752,"_file":3753,"_stem":3754,"_extension":3755,"sitemap":3756},"direct-connect",false,"",{"type":315,"children":316,"toc":3739},"root",[317,325,334,359,366,410,416,1087,1099,1105,1118,1123,1156,1162,1167,1171,1178,1191,1881,1887,1892,2531,2543,2549,2579,3601,3607,3619,3651,3656,3662,3667,3714,3733],{"type":318,"tag":319,"props":320,"children":321},"element","p",{},[322],{"type":323,"value":324},"text","Churnkey Direct lets you integrate retention flows with any billing system. Instead of connecting to Stripe or Chargebee, you pass customer and subscription data directly and handle billing operations through callbacks.",{"type":318,"tag":319,"props":326,"children":327},{},[328],{"type":318,"tag":329,"props":330,"children":331},"strong",{},[332],{"type":323,"value":333},"Use Direct mode when:",{"type":318,"tag":335,"props":336,"children":337},"ul",{},[338,344,349,354],{"type":318,"tag":339,"props":340,"children":341},"li",{},[342],{"type":323,"value":343},"You use a custom or unsupported billing system",{"type":318,"tag":339,"props":345,"children":346},{},[347],{"type":323,"value":348},"You have strict data privacy requirements",{"type":318,"tag":339,"props":350,"children":351},{},[352],{"type":323,"value":353},"You're managing trial or freemium users without subscriptions",{"type":318,"tag":339,"props":355,"children":356},{},[357],{"type":323,"value":358},"You need to test flows before setting up a full integration",{"type":318,"tag":360,"props":361,"children":363},"h2",{"id":362},"how-it-works",[364],{"type":323,"value":365},"How it works",{"type":318,"tag":367,"props":368,"children":369},"ol",{},[370,380,390,400],{"type":318,"tag":339,"props":371,"children":372},{},[373,378],{"type":318,"tag":329,"props":374,"children":375},{},[376],{"type":323,"value":377},"Pass customer data",{"type":323,"value":379}," when initializing Churnkey",{"type":318,"tag":339,"props":381,"children":382},{},[383,388],{"type":318,"tag":329,"props":384,"children":385},{},[386],{"type":323,"value":387},"Customer interacts",{"type":323,"value":389}," with your retention flow",{"type":318,"tag":339,"props":391,"children":392},{},[393,398],{"type":318,"tag":329,"props":394,"children":395},{},[396],{"type":323,"value":397},"Your handlers execute",{"type":323,"value":399}," billing operations (cancel, discount, pause, etc.)",{"type":318,"tag":339,"props":401,"children":402},{},[403,408],{"type":318,"tag":329,"props":404,"children":405},{},[406],{"type":323,"value":407},"Churnkey tracks results",{"type":323,"value":409}," in analytics automatically",{"type":318,"tag":360,"props":411,"children":413},{"id":412},"quick-start",[414],{"type":323,"value":415},"Quick Start",{"type":318,"tag":417,"props":418,"children":422},"pre",{"className":419,"code":420,"language":421,"meta":313,"style":313},"language-javascript shiki shiki-themes github-light-default github-light-default github-dark-default","window.churnkey.init('show', {\n  appId: 'your_app_id',\n  mode: 'live',\n  provider: 'direct',\n  authHash: 'hmac_signature', // See Authentication section\n\n  customer: {\n    id: 'cus_12345',\n    email: 'customer@example.com',\n  },\n\n  subscriptions: [\n    {\n      id: 'sub_67890',\n      start: new Date('2024-06-01'), // When subscription started\n      status: {\n        name: 'active',\n        currentPeriod: {\n          start: new Date('2025-01-01'),\n          end: new Date('2025-02-01'),\n        },\n      },\n      items: [\n        {\n          price: {\n            id: 'price_pro',\n            amount: { value: 2999, currency: 'usd' },\n            interval: 'month',\n            intervalCount: 1,\n          },\n        },\n      ],\n    },\n  ],\n\n  async handleCancel(customer, surveyChoice, feedback, followupResponse) {\n    await yourAPI.cancelSubscription(customer.id);\n    return { message: 'Subscription canceled.' };\n  },\n});\n","javascript",[423],{"type":318,"tag":424,"props":425,"children":426},"code",{"__ignoreMap":313},[427,461,480,498,516,541,551,560,578,596,605,613,622,631,649,688,697,715,724,755,785,794,803,812,821,830,848,878,896,914,923,931,940,949,958,966,1022,1046,1070,1078],{"type":318,"tag":428,"props":429,"children":432},"span",{"class":430,"line":431},"line",1,[433,439,445,450,456],{"type":318,"tag":428,"props":434,"children":436},{"style":435},"--shiki-light:#1F2328;--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[437],{"type":323,"value":438},"window.churnkey.",{"type":318,"tag":428,"props":440,"children":442},{"style":441},"--shiki-light:#8250DF;--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[443],{"type":323,"value":444},"init",{"type":318,"tag":428,"props":446,"children":447},{"style":435},[448],{"type":323,"value":449},"(",{"type":318,"tag":428,"props":451,"children":453},{"style":452},"--shiki-light:#0A3069;--shiki-default:#0A3069;--shiki-dark:#A5D6FF",[454],{"type":323,"value":455},"'show'",{"type":318,"tag":428,"props":457,"children":458},{"style":435},[459],{"type":323,"value":460},", {\n",{"type":318,"tag":428,"props":462,"children":464},{"class":430,"line":463},2,[465,470,475],{"type":318,"tag":428,"props":466,"children":467},{"style":435},[468],{"type":323,"value":469},"  appId: ",{"type":318,"tag":428,"props":471,"children":472},{"style":452},[473],{"type":323,"value":474},"'your_app_id'",{"type":318,"tag":428,"props":476,"children":477},{"style":435},[478],{"type":323,"value":479},",\n",{"type":318,"tag":428,"props":481,"children":483},{"class":430,"line":482},3,[484,489,494],{"type":318,"tag":428,"props":485,"children":486},{"style":435},[487],{"type":323,"value":488},"  mode: ",{"type":318,"tag":428,"props":490,"children":491},{"style":452},[492],{"type":323,"value":493},"'live'",{"type":318,"tag":428,"props":495,"children":496},{"style":435},[497],{"type":323,"value":479},{"type":318,"tag":428,"props":499,"children":501},{"class":430,"line":500},4,[502,507,512],{"type":318,"tag":428,"props":503,"children":504},{"style":435},[505],{"type":323,"value":506},"  provider: ",{"type":318,"tag":428,"props":508,"children":509},{"style":452},[510],{"type":323,"value":511},"'direct'",{"type":318,"tag":428,"props":513,"children":514},{"style":435},[515],{"type":323,"value":479},{"type":318,"tag":428,"props":517,"children":519},{"class":430,"line":518},5,[520,525,530,535],{"type":318,"tag":428,"props":521,"children":522},{"style":435},[523],{"type":323,"value":524},"  authHash: ",{"type":318,"tag":428,"props":526,"children":527},{"style":452},[528],{"type":323,"value":529},"'hmac_signature'",{"type":318,"tag":428,"props":531,"children":532},{"style":435},[533],{"type":323,"value":534},", ",{"type":318,"tag":428,"props":536,"children":538},{"style":537},"--shiki-light:#6E7781;--shiki-default:#6E7781;--shiki-dark:#8B949E",[539],{"type":323,"value":540},"// See Authentication section\n",{"type":318,"tag":428,"props":542,"children":544},{"class":430,"line":543},6,[545],{"type":318,"tag":428,"props":546,"children":548},{"emptyLinePlaceholder":547},true,[549],{"type":323,"value":550},"\n",{"type":318,"tag":428,"props":552,"children":554},{"class":430,"line":553},7,[555],{"type":318,"tag":428,"props":556,"children":557},{"style":435},[558],{"type":323,"value":559},"  customer: {\n",{"type":318,"tag":428,"props":561,"children":563},{"class":430,"line":562},8,[564,569,574],{"type":318,"tag":428,"props":565,"children":566},{"style":435},[567],{"type":323,"value":568},"    id: ",{"type":318,"tag":428,"props":570,"children":571},{"style":452},[572],{"type":323,"value":573},"'cus_12345'",{"type":318,"tag":428,"props":575,"children":576},{"style":435},[577],{"type":323,"value":479},{"type":318,"tag":428,"props":579,"children":581},{"class":430,"line":580},9,[582,587,592],{"type":318,"tag":428,"props":583,"children":584},{"style":435},[585],{"type":323,"value":586},"    email: ",{"type":318,"tag":428,"props":588,"children":589},{"style":452},[590],{"type":323,"value":591},"'customer@example.com'",{"type":318,"tag":428,"props":593,"children":594},{"style":435},[595],{"type":323,"value":479},{"type":318,"tag":428,"props":597,"children":599},{"class":430,"line":598},10,[600],{"type":318,"tag":428,"props":601,"children":602},{"style":435},[603],{"type":323,"value":604},"  },\n",{"type":318,"tag":428,"props":606,"children":608},{"class":430,"line":607},11,[609],{"type":318,"tag":428,"props":610,"children":611},{"emptyLinePlaceholder":547},[612],{"type":323,"value":550},{"type":318,"tag":428,"props":614,"children":616},{"class":430,"line":615},12,[617],{"type":318,"tag":428,"props":618,"children":619},{"style":435},[620],{"type":323,"value":621},"  subscriptions: [\n",{"type":318,"tag":428,"props":623,"children":625},{"class":430,"line":624},13,[626],{"type":318,"tag":428,"props":627,"children":628},{"style":435},[629],{"type":323,"value":630},"    {\n",{"type":318,"tag":428,"props":632,"children":634},{"class":430,"line":633},14,[635,640,645],{"type":318,"tag":428,"props":636,"children":637},{"style":435},[638],{"type":323,"value":639},"      id: ",{"type":318,"tag":428,"props":641,"children":642},{"style":452},[643],{"type":323,"value":644},"'sub_67890'",{"type":318,"tag":428,"props":646,"children":647},{"style":435},[648],{"type":323,"value":479},{"type":318,"tag":428,"props":650,"children":652},{"class":430,"line":651},15,[653,658,664,669,673,678,683],{"type":318,"tag":428,"props":654,"children":655},{"style":435},[656],{"type":323,"value":657},"      start: ",{"type":318,"tag":428,"props":659,"children":661},{"style":660},"--shiki-light:#CF222E;--shiki-default:#CF222E;--shiki-dark:#FF7B72",[662],{"type":323,"value":663},"new",{"type":318,"tag":428,"props":665,"children":666},{"style":441},[667],{"type":323,"value":668}," Date",{"type":318,"tag":428,"props":670,"children":671},{"style":435},[672],{"type":323,"value":449},{"type":318,"tag":428,"props":674,"children":675},{"style":452},[676],{"type":323,"value":677},"'2024-06-01'",{"type":318,"tag":428,"props":679,"children":680},{"style":435},[681],{"type":323,"value":682},"), ",{"type":318,"tag":428,"props":684,"children":685},{"style":537},[686],{"type":323,"value":687},"// When subscription started\n",{"type":318,"tag":428,"props":689,"children":691},{"class":430,"line":690},16,[692],{"type":318,"tag":428,"props":693,"children":694},{"style":435},[695],{"type":323,"value":696},"      status: {\n",{"type":318,"tag":428,"props":698,"children":700},{"class":430,"line":699},17,[701,706,711],{"type":318,"tag":428,"props":702,"children":703},{"style":435},[704],{"type":323,"value":705},"        name: ",{"type":318,"tag":428,"props":707,"children":708},{"style":452},[709],{"type":323,"value":710},"'active'",{"type":318,"tag":428,"props":712,"children":713},{"style":435},[714],{"type":323,"value":479},{"type":318,"tag":428,"props":716,"children":718},{"class":430,"line":717},18,[719],{"type":318,"tag":428,"props":720,"children":721},{"style":435},[722],{"type":323,"value":723},"        currentPeriod: {\n",{"type":318,"tag":428,"props":725,"children":727},{"class":430,"line":726},19,[728,733,737,741,745,750],{"type":318,"tag":428,"props":729,"children":730},{"style":435},[731],{"type":323,"value":732},"          start: ",{"type":318,"tag":428,"props":734,"children":735},{"style":660},[736],{"type":323,"value":663},{"type":318,"tag":428,"props":738,"children":739},{"style":441},[740],{"type":323,"value":668},{"type":318,"tag":428,"props":742,"children":743},{"style":435},[744],{"type":323,"value":449},{"type":318,"tag":428,"props":746,"children":747},{"style":452},[748],{"type":323,"value":749},"'2025-01-01'",{"type":318,"tag":428,"props":751,"children":752},{"style":435},[753],{"type":323,"value":754},"),\n",{"type":318,"tag":428,"props":756,"children":758},{"class":430,"line":757},20,[759,764,768,772,776,781],{"type":318,"tag":428,"props":760,"children":761},{"style":435},[762],{"type":323,"value":763},"          end: ",{"type":318,"tag":428,"props":765,"children":766},{"style":660},[767],{"type":323,"value":663},{"type":318,"tag":428,"props":769,"children":770},{"style":441},[771],{"type":323,"value":668},{"type":318,"tag":428,"props":773,"children":774},{"style":435},[775],{"type":323,"value":449},{"type":318,"tag":428,"props":777,"children":778},{"style":452},[779],{"type":323,"value":780},"'2025-02-01'",{"type":318,"tag":428,"props":782,"children":783},{"style":435},[784],{"type":323,"value":754},{"type":318,"tag":428,"props":786,"children":788},{"class":430,"line":787},21,[789],{"type":318,"tag":428,"props":790,"children":791},{"style":435},[792],{"type":323,"value":793},"        },\n",{"type":318,"tag":428,"props":795,"children":797},{"class":430,"line":796},22,[798],{"type":318,"tag":428,"props":799,"children":800},{"style":435},[801],{"type":323,"value":802},"      },\n",{"type":318,"tag":428,"props":804,"children":806},{"class":430,"line":805},23,[807],{"type":318,"tag":428,"props":808,"children":809},{"style":435},[810],{"type":323,"value":811},"      items: [\n",{"type":318,"tag":428,"props":813,"children":815},{"class":430,"line":814},24,[816],{"type":318,"tag":428,"props":817,"children":818},{"style":435},[819],{"type":323,"value":820},"        {\n",{"type":318,"tag":428,"props":822,"children":824},{"class":430,"line":823},25,[825],{"type":318,"tag":428,"props":826,"children":827},{"style":435},[828],{"type":323,"value":829},"          price: {\n",{"type":318,"tag":428,"props":831,"children":833},{"class":430,"line":832},26,[834,839,844],{"type":318,"tag":428,"props":835,"children":836},{"style":435},[837],{"type":323,"value":838},"            id: ",{"type":318,"tag":428,"props":840,"children":841},{"style":452},[842],{"type":323,"value":843},"'price_pro'",{"type":318,"tag":428,"props":845,"children":846},{"style":435},[847],{"type":323,"value":479},{"type":318,"tag":428,"props":849,"children":851},{"class":430,"line":850},27,[852,857,863,868,873],{"type":318,"tag":428,"props":853,"children":854},{"style":435},[855],{"type":323,"value":856},"            amount: { value: ",{"type":318,"tag":428,"props":858,"children":860},{"style":859},"--shiki-light:#0550AE;--shiki-default:#0550AE;--shiki-dark:#79C0FF",[861],{"type":323,"value":862},"2999",{"type":318,"tag":428,"props":864,"children":865},{"style":435},[866],{"type":323,"value":867},", currency: ",{"type":318,"tag":428,"props":869,"children":870},{"style":452},[871],{"type":323,"value":872},"'usd'",{"type":318,"tag":428,"props":874,"children":875},{"style":435},[876],{"type":323,"value":877}," },\n",{"type":318,"tag":428,"props":879,"children":881},{"class":430,"line":880},28,[882,887,892],{"type":318,"tag":428,"props":883,"children":884},{"style":435},[885],{"type":323,"value":886},"            interval: ",{"type":318,"tag":428,"props":888,"children":889},{"style":452},[890],{"type":323,"value":891},"'month'",{"type":318,"tag":428,"props":893,"children":894},{"style":435},[895],{"type":323,"value":479},{"type":318,"tag":428,"props":897,"children":899},{"class":430,"line":898},29,[900,905,910],{"type":318,"tag":428,"props":901,"children":902},{"style":435},[903],{"type":323,"value":904},"            intervalCount: ",{"type":318,"tag":428,"props":906,"children":907},{"style":859},[908],{"type":323,"value":909},"1",{"type":318,"tag":428,"props":911,"children":912},{"style":435},[913],{"type":323,"value":479},{"type":318,"tag":428,"props":915,"children":917},{"class":430,"line":916},30,[918],{"type":318,"tag":428,"props":919,"children":920},{"style":435},[921],{"type":323,"value":922},"          },\n",{"type":318,"tag":428,"props":924,"children":926},{"class":430,"line":925},31,[927],{"type":318,"tag":428,"props":928,"children":929},{"style":435},[930],{"type":323,"value":793},{"type":318,"tag":428,"props":932,"children":934},{"class":430,"line":933},32,[935],{"type":318,"tag":428,"props":936,"children":937},{"style":435},[938],{"type":323,"value":939},"      ],\n",{"type":318,"tag":428,"props":941,"children":943},{"class":430,"line":942},33,[944],{"type":318,"tag":428,"props":945,"children":946},{"style":435},[947],{"type":323,"value":948},"    },\n",{"type":318,"tag":428,"props":950,"children":952},{"class":430,"line":951},34,[953],{"type":318,"tag":428,"props":954,"children":955},{"style":435},[956],{"type":323,"value":957},"  ],\n",{"type":318,"tag":428,"props":959,"children":961},{"class":430,"line":960},35,[962],{"type":318,"tag":428,"props":963,"children":964},{"emptyLinePlaceholder":547},[965],{"type":323,"value":550},{"type":318,"tag":428,"props":967,"children":969},{"class":430,"line":968},36,[970,975,980,984,990,994,999,1003,1008,1012,1017],{"type":318,"tag":428,"props":971,"children":972},{"style":660},[973],{"type":323,"value":974},"  async",{"type":318,"tag":428,"props":976,"children":977},{"style":441},[978],{"type":323,"value":979}," handleCancel",{"type":318,"tag":428,"props":981,"children":982},{"style":435},[983],{"type":323,"value":449},{"type":318,"tag":428,"props":985,"children":987},{"style":986},"--shiki-light:#953800;--shiki-default:#953800;--shiki-dark:#FFA657",[988],{"type":323,"value":989},"customer",{"type":318,"tag":428,"props":991,"children":992},{"style":435},[993],{"type":323,"value":534},{"type":318,"tag":428,"props":995,"children":996},{"style":986},[997],{"type":323,"value":998},"surveyChoice",{"type":318,"tag":428,"props":1000,"children":1001},{"style":435},[1002],{"type":323,"value":534},{"type":318,"tag":428,"props":1004,"children":1005},{"style":986},[1006],{"type":323,"value":1007},"feedback",{"type":318,"tag":428,"props":1009,"children":1010},{"style":435},[1011],{"type":323,"value":534},{"type":318,"tag":428,"props":1013,"children":1014},{"style":986},[1015],{"type":323,"value":1016},"followupResponse",{"type":318,"tag":428,"props":1018,"children":1019},{"style":435},[1020],{"type":323,"value":1021},") {\n",{"type":318,"tag":428,"props":1023,"children":1025},{"class":430,"line":1024},37,[1026,1031,1036,1041],{"type":318,"tag":428,"props":1027,"children":1028},{"style":660},[1029],{"type":323,"value":1030},"    await",{"type":318,"tag":428,"props":1032,"children":1033},{"style":435},[1034],{"type":323,"value":1035}," yourAPI.",{"type":318,"tag":428,"props":1037,"children":1038},{"style":441},[1039],{"type":323,"value":1040},"cancelSubscription",{"type":318,"tag":428,"props":1042,"children":1043},{"style":435},[1044],{"type":323,"value":1045},"(customer.id);\n",{"type":318,"tag":428,"props":1047,"children":1049},{"class":430,"line":1048},38,[1050,1055,1060,1065],{"type":318,"tag":428,"props":1051,"children":1052},{"style":660},[1053],{"type":323,"value":1054},"    return",{"type":318,"tag":428,"props":1056,"children":1057},{"style":435},[1058],{"type":323,"value":1059}," { message: ",{"type":318,"tag":428,"props":1061,"children":1062},{"style":452},[1063],{"type":323,"value":1064},"'Subscription canceled.'",{"type":318,"tag":428,"props":1066,"children":1067},{"style":435},[1068],{"type":323,"value":1069}," };\n",{"type":318,"tag":428,"props":1071,"children":1073},{"class":430,"line":1072},39,[1074],{"type":318,"tag":428,"props":1075,"children":1076},{"style":435},[1077],{"type":323,"value":604},{"type":318,"tag":428,"props":1079,"children":1081},{"class":430,"line":1080},40,[1082],{"type":318,"tag":428,"props":1083,"children":1084},{"style":435},[1085],{"type":323,"value":1086},"});\n",{"type":318,"tag":319,"props":1088,"children":1089},{},[1090,1092,1097],{"type":323,"value":1091},"For script installation and HMAC authentication, see the ",{"type":318,"tag":1093,"props":1094,"children":1095},"a",{"href":19},[1096],{"type":323,"value":18},{"type":323,"value":1098},".",{"type":318,"tag":360,"props":1100,"children":1102},{"id":1101},"customer-object",[1103],{"type":323,"value":1104},"Customer object",{"type":318,"tag":319,"props":1106,"children":1107},{},[1108,1110,1116],{"type":323,"value":1109},"Identifies who is interacting with the retention flow. Only ",{"type":318,"tag":424,"props":1111,"children":1113},{"className":1112},[],[1114],{"type":323,"value":1115},"id",{"type":323,"value":1117}," is required.",{"type":318,"tag":1119,"props":1120,"children":1122},"field-schema",{"schema":1121},"/types/direct/customer-direct.type",[],{"type":318,"tag":319,"props":1124,"children":1125},{},[1126,1131,1133,1139,1140,1146,1148,1154],{"type":318,"tag":329,"props":1127,"children":1128},{},[1129],{"type":323,"value":1130},"Usage:",{"type":323,"value":1132}," Additional fields like ",{"type":318,"tag":424,"props":1134,"children":1136},{"className":1135},[],[1137],{"type":323,"value":1138},"email",{"type":323,"value":534},{"type":318,"tag":424,"props":1141,"children":1143},{"className":1142},[],[1144],{"type":323,"value":1145},"name",{"type":323,"value":1147},", and ",{"type":318,"tag":424,"props":1149,"children":1151},{"className":1150},[],[1152],{"type":323,"value":1153},"metadata",{"type":323,"value":1155}," are used for segmentation, Slack notifications, merge fields, and analytics.",{"type":318,"tag":360,"props":1157,"children":1159},{"id":1158},"subscription-object",[1160],{"type":323,"value":1161},"Subscription object",{"type":318,"tag":319,"props":1163,"children":1164},{},[1165],{"type":323,"value":1166},"Describes the customer's billing state and determines which offers are shown.",{"type":318,"tag":1119,"props":1168,"children":1170},{"schema":1169},"/types/direct/subscription-direct.type",[],{"type":318,"tag":1172,"props":1173,"children":1175},"h3",{"id":1174},"subscription-status",[1176],{"type":323,"value":1177},"Subscription status",{"type":318,"tag":319,"props":1179,"children":1180},{},[1181,1183,1189],{"type":323,"value":1182},"The ",{"type":318,"tag":424,"props":1184,"children":1186},{"className":1185},[],[1187],{"type":323,"value":1188},"status",{"type":323,"value":1190}," field determines which offers are available. For example, trial extensions only appear for trial subscriptions.",{"type":318,"tag":1192,"props":1193,"children":1194},"code-group",{},[1195,1327,1463,1677,1755],{"type":318,"tag":417,"props":1196,"children":1199},{"className":419,"code":1197,"filename":1198,"language":421,"meta":313,"style":313},"status: {\n  name: 'active',\n  currentPeriod: {\n    start: new Date('2025-01-01'),\n    end: new Date('2025-02-01'),\n  },\n}\n","Active",[1200],{"type":318,"tag":424,"props":1201,"children":1202},{"__ignoreMap":313},[1203,1215,1236,1248,1280,1312,1319],{"type":318,"tag":428,"props":1204,"children":1205},{"class":430,"line":431},[1206,1210],{"type":318,"tag":428,"props":1207,"children":1208},{"style":986},[1209],{"type":323,"value":1188},{"type":318,"tag":428,"props":1211,"children":1212},{"style":435},[1213],{"type":323,"value":1214},": {\n",{"type":318,"tag":428,"props":1216,"children":1217},{"class":430,"line":463},[1218,1223,1228,1232],{"type":318,"tag":428,"props":1219,"children":1220},{"style":986},[1221],{"type":323,"value":1222},"  name",{"type":318,"tag":428,"props":1224,"children":1225},{"style":435},[1226],{"type":323,"value":1227},": ",{"type":318,"tag":428,"props":1229,"children":1230},{"style":452},[1231],{"type":323,"value":710},{"type":318,"tag":428,"props":1233,"children":1234},{"style":435},[1235],{"type":323,"value":479},{"type":318,"tag":428,"props":1237,"children":1238},{"class":430,"line":482},[1239,1244],{"type":318,"tag":428,"props":1240,"children":1241},{"style":986},[1242],{"type":323,"value":1243},"  currentPeriod",{"type":318,"tag":428,"props":1245,"children":1246},{"style":435},[1247],{"type":323,"value":1214},{"type":318,"tag":428,"props":1249,"children":1250},{"class":430,"line":500},[1251,1256,1260,1264,1268,1272,1276],{"type":318,"tag":428,"props":1252,"children":1253},{"style":986},[1254],{"type":323,"value":1255},"    start",{"type":318,"tag":428,"props":1257,"children":1258},{"style":435},[1259],{"type":323,"value":1227},{"type":318,"tag":428,"props":1261,"children":1262},{"style":660},[1263],{"type":323,"value":663},{"type":318,"tag":428,"props":1265,"children":1266},{"style":441},[1267],{"type":323,"value":668},{"type":318,"tag":428,"props":1269,"children":1270},{"style":435},[1271],{"type":323,"value":449},{"type":318,"tag":428,"props":1273,"children":1274},{"style":452},[1275],{"type":323,"value":749},{"type":318,"tag":428,"props":1277,"children":1278},{"style":435},[1279],{"type":323,"value":754},{"type":318,"tag":428,"props":1281,"children":1282},{"class":430,"line":518},[1283,1288,1292,1296,1300,1304,1308],{"type":318,"tag":428,"props":1284,"children":1285},{"style":986},[1286],{"type":323,"value":1287},"    end",{"type":318,"tag":428,"props":1289,"children":1290},{"style":435},[1291],{"type":323,"value":1227},{"type":318,"tag":428,"props":1293,"children":1294},{"style":660},[1295],{"type":323,"value":663},{"type":318,"tag":428,"props":1297,"children":1298},{"style":441},[1299],{"type":323,"value":668},{"type":318,"tag":428,"props":1301,"children":1302},{"style":435},[1303],{"type":323,"value":449},{"type":318,"tag":428,"props":1305,"children":1306},{"style":452},[1307],{"type":323,"value":780},{"type":318,"tag":428,"props":1309,"children":1310},{"style":435},[1311],{"type":323,"value":754},{"type":318,"tag":428,"props":1313,"children":1314},{"class":430,"line":543},[1315],{"type":318,"tag":428,"props":1316,"children":1317},{"style":435},[1318],{"type":323,"value":604},{"type":318,"tag":428,"props":1320,"children":1321},{"class":430,"line":553},[1322],{"type":318,"tag":428,"props":1323,"children":1324},{"style":435},[1325],{"type":323,"value":1326},"}\n",{"type":318,"tag":417,"props":1328,"children":1331},{"className":419,"code":1329,"filename":1330,"language":421,"meta":313,"style":313},"status: {\n  name: 'trial',\n  trial: {\n    start: new Date('2025-01-01'),\n    end: new Date('2025-01-14'),\n  },\n  // currentPeriod is optional - defaults to trial period\n}\n","Trial",[1332],{"type":318,"tag":424,"props":1333,"children":1334},{"__ignoreMap":313},[1335,1346,1366,1378,1409,1441,1448,1456],{"type":318,"tag":428,"props":1336,"children":1337},{"class":430,"line":431},[1338,1342],{"type":318,"tag":428,"props":1339,"children":1340},{"style":986},[1341],{"type":323,"value":1188},{"type":318,"tag":428,"props":1343,"children":1344},{"style":435},[1345],{"type":323,"value":1214},{"type":318,"tag":428,"props":1347,"children":1348},{"class":430,"line":463},[1349,1353,1357,1362],{"type":318,"tag":428,"props":1350,"children":1351},{"style":986},[1352],{"type":323,"value":1222},{"type":318,"tag":428,"props":1354,"children":1355},{"style":435},[1356],{"type":323,"value":1227},{"type":318,"tag":428,"props":1358,"children":1359},{"style":452},[1360],{"type":323,"value":1361},"'trial'",{"type":318,"tag":428,"props":1363,"children":1364},{"style":435},[1365],{"type":323,"value":479},{"type":318,"tag":428,"props":1367,"children":1368},{"class":430,"line":482},[1369,1374],{"type":318,"tag":428,"props":1370,"children":1371},{"style":986},[1372],{"type":323,"value":1373},"  trial",{"type":318,"tag":428,"props":1375,"children":1376},{"style":435},[1377],{"type":323,"value":1214},{"type":318,"tag":428,"props":1379,"children":1380},{"class":430,"line":500},[1381,1385,1389,1393,1397,1401,1405],{"type":318,"tag":428,"props":1382,"children":1383},{"style":986},[1384],{"type":323,"value":1255},{"type":318,"tag":428,"props":1386,"children":1387},{"style":435},[1388],{"type":323,"value":1227},{"type":318,"tag":428,"props":1390,"children":1391},{"style":660},[1392],{"type":323,"value":663},{"type":318,"tag":428,"props":1394,"children":1395},{"style":441},[1396],{"type":323,"value":668},{"type":318,"tag":428,"props":1398,"children":1399},{"style":435},[1400],{"type":323,"value":449},{"type":318,"tag":428,"props":1402,"children":1403},{"style":452},[1404],{"type":323,"value":749},{"type":318,"tag":428,"props":1406,"children":1407},{"style":435},[1408],{"type":323,"value":754},{"type":318,"tag":428,"props":1410,"children":1411},{"class":430,"line":518},[1412,1416,1420,1424,1428,1432,1437],{"type":318,"tag":428,"props":1413,"children":1414},{"style":986},[1415],{"type":323,"value":1287},{"type":318,"tag":428,"props":1417,"children":1418},{"style":435},[1419],{"type":323,"value":1227},{"type":318,"tag":428,"props":1421,"children":1422},{"style":660},[1423],{"type":323,"value":663},{"type":318,"tag":428,"props":1425,"children":1426},{"style":441},[1427],{"type":323,"value":668},{"type":318,"tag":428,"props":1429,"children":1430},{"style":435},[1431],{"type":323,"value":449},{"type":318,"tag":428,"props":1433,"children":1434},{"style":452},[1435],{"type":323,"value":1436},"'2025-01-14'",{"type":318,"tag":428,"props":1438,"children":1439},{"style":435},[1440],{"type":323,"value":754},{"type":318,"tag":428,"props":1442,"children":1443},{"class":430,"line":543},[1444],{"type":318,"tag":428,"props":1445,"children":1446},{"style":435},[1447],{"type":323,"value":604},{"type":318,"tag":428,"props":1449,"children":1450},{"class":430,"line":553},[1451],{"type":318,"tag":428,"props":1452,"children":1453},{"style":537},[1454],{"type":323,"value":1455},"  // currentPeriod is optional - defaults to trial period\n",{"type":318,"tag":428,"props":1457,"children":1458},{"class":430,"line":562},[1459],{"type":318,"tag":428,"props":1460,"children":1461},{"style":435},[1462],{"type":323,"value":1326},{"type":318,"tag":417,"props":1464,"children":1467},{"className":419,"code":1465,"filename":1466,"language":421,"meta":313,"style":313},"status: {\n  name: 'paused',\n  pause: {\n    start: new Date('2025-01-15'),\n    end: new Date('2025-02-15'), // Omit for indefinite pause\n  },\n  currentPeriod: {\n    start: new Date('2025-01-01'),\n    end: new Date('2025-02-01'),\n  },\n}\n","Paused",[1468],{"type":318,"tag":424,"props":1469,"children":1470},{"__ignoreMap":313},[1471,1482,1502,1514,1546,1583,1590,1601,1632,1663,1670],{"type":318,"tag":428,"props":1472,"children":1473},{"class":430,"line":431},[1474,1478],{"type":318,"tag":428,"props":1475,"children":1476},{"style":986},[1477],{"type":323,"value":1188},{"type":318,"tag":428,"props":1479,"children":1480},{"style":435},[1481],{"type":323,"value":1214},{"type":318,"tag":428,"props":1483,"children":1484},{"class":430,"line":463},[1485,1489,1493,1498],{"type":318,"tag":428,"props":1486,"children":1487},{"style":986},[1488],{"type":323,"value":1222},{"type":318,"tag":428,"props":1490,"children":1491},{"style":435},[1492],{"type":323,"value":1227},{"type":318,"tag":428,"props":1494,"children":1495},{"style":452},[1496],{"type":323,"value":1497},"'paused'",{"type":318,"tag":428,"props":1499,"children":1500},{"style":435},[1501],{"type":323,"value":479},{"type":318,"tag":428,"props":1503,"children":1504},{"class":430,"line":482},[1505,1510],{"type":318,"tag":428,"props":1506,"children":1507},{"style":986},[1508],{"type":323,"value":1509},"  pause",{"type":318,"tag":428,"props":1511,"children":1512},{"style":435},[1513],{"type":323,"value":1214},{"type":318,"tag":428,"props":1515,"children":1516},{"class":430,"line":500},[1517,1521,1525,1529,1533,1537,1542],{"type":318,"tag":428,"props":1518,"children":1519},{"style":986},[1520],{"type":323,"value":1255},{"type":318,"tag":428,"props":1522,"children":1523},{"style":435},[1524],{"type":323,"value":1227},{"type":318,"tag":428,"props":1526,"children":1527},{"style":660},[1528],{"type":323,"value":663},{"type":318,"tag":428,"props":1530,"children":1531},{"style":441},[1532],{"type":323,"value":668},{"type":318,"tag":428,"props":1534,"children":1535},{"style":435},[1536],{"type":323,"value":449},{"type":318,"tag":428,"props":1538,"children":1539},{"style":452},[1540],{"type":323,"value":1541},"'2025-01-15'",{"type":318,"tag":428,"props":1543,"children":1544},{"style":435},[1545],{"type":323,"value":754},{"type":318,"tag":428,"props":1547,"children":1548},{"class":430,"line":518},[1549,1553,1557,1561,1565,1569,1574,1578],{"type":318,"tag":428,"props":1550,"children":1551},{"style":986},[1552],{"type":323,"value":1287},{"type":318,"tag":428,"props":1554,"children":1555},{"style":435},[1556],{"type":323,"value":1227},{"type":318,"tag":428,"props":1558,"children":1559},{"style":660},[1560],{"type":323,"value":663},{"type":318,"tag":428,"props":1562,"children":1563},{"style":441},[1564],{"type":323,"value":668},{"type":318,"tag":428,"props":1566,"children":1567},{"style":435},[1568],{"type":323,"value":449},{"type":318,"tag":428,"props":1570,"children":1571},{"style":452},[1572],{"type":323,"value":1573},"'2025-02-15'",{"type":318,"tag":428,"props":1575,"children":1576},{"style":435},[1577],{"type":323,"value":682},{"type":318,"tag":428,"props":1579,"children":1580},{"style":537},[1581],{"type":323,"value":1582},"// Omit for indefinite pause\n",{"type":318,"tag":428,"props":1584,"children":1585},{"class":430,"line":543},[1586],{"type":318,"tag":428,"props":1587,"children":1588},{"style":435},[1589],{"type":323,"value":604},{"type":318,"tag":428,"props":1591,"children":1592},{"class":430,"line":553},[1593,1597],{"type":318,"tag":428,"props":1594,"children":1595},{"style":986},[1596],{"type":323,"value":1243},{"type":318,"tag":428,"props":1598,"children":1599},{"style":435},[1600],{"type":323,"value":1214},{"type":318,"tag":428,"props":1602,"children":1603},{"class":430,"line":562},[1604,1608,1612,1616,1620,1624,1628],{"type":318,"tag":428,"props":1605,"children":1606},{"style":986},[1607],{"type":323,"value":1255},{"type":318,"tag":428,"props":1609,"children":1610},{"style":435},[1611],{"type":323,"value":1227},{"type":318,"tag":428,"props":1613,"children":1614},{"style":660},[1615],{"type":323,"value":663},{"type":318,"tag":428,"props":1617,"children":1618},{"style":441},[1619],{"type":323,"value":668},{"type":318,"tag":428,"props":1621,"children":1622},{"style":435},[1623],{"type":323,"value":449},{"type":318,"tag":428,"props":1625,"children":1626},{"style":452},[1627],{"type":323,"value":749},{"type":318,"tag":428,"props":1629,"children":1630},{"style":435},[1631],{"type":323,"value":754},{"type":318,"tag":428,"props":1633,"children":1634},{"class":430,"line":580},[1635,1639,1643,1647,1651,1655,1659],{"type":318,"tag":428,"props":1636,"children":1637},{"style":986},[1638],{"type":323,"value":1287},{"type":318,"tag":428,"props":1640,"children":1641},{"style":435},[1642],{"type":323,"value":1227},{"type":318,"tag":428,"props":1644,"children":1645},{"style":660},[1646],{"type":323,"value":663},{"type":318,"tag":428,"props":1648,"children":1649},{"style":441},[1650],{"type":323,"value":668},{"type":318,"tag":428,"props":1652,"children":1653},{"style":435},[1654],{"type":323,"value":449},{"type":318,"tag":428,"props":1656,"children":1657},{"style":452},[1658],{"type":323,"value":780},{"type":318,"tag":428,"props":1660,"children":1661},{"style":435},[1662],{"type":323,"value":754},{"type":318,"tag":428,"props":1664,"children":1665},{"class":430,"line":598},[1666],{"type":318,"tag":428,"props":1667,"children":1668},{"style":435},[1669],{"type":323,"value":604},{"type":318,"tag":428,"props":1671,"children":1672},{"class":430,"line":607},[1673],{"type":318,"tag":428,"props":1674,"children":1675},{"style":435},[1676],{"type":323,"value":1326},{"type":318,"tag":417,"props":1678,"children":1681},{"className":419,"code":1679,"filename":1680,"language":421,"meta":313,"style":313},"status: {\n  name: 'canceled',\n  canceledAt: new Date('2025-01-15'),\n}\n","Canceled",[1682],{"type":318,"tag":424,"props":1683,"children":1684},{"__ignoreMap":313},[1685,1696,1716,1748],{"type":318,"tag":428,"props":1686,"children":1687},{"class":430,"line":431},[1688,1692],{"type":318,"tag":428,"props":1689,"children":1690},{"style":986},[1691],{"type":323,"value":1188},{"type":318,"tag":428,"props":1693,"children":1694},{"style":435},[1695],{"type":323,"value":1214},{"type":318,"tag":428,"props":1697,"children":1698},{"class":430,"line":463},[1699,1703,1707,1712],{"type":318,"tag":428,"props":1700,"children":1701},{"style":986},[1702],{"type":323,"value":1222},{"type":318,"tag":428,"props":1704,"children":1705},{"style":435},[1706],{"type":323,"value":1227},{"type":318,"tag":428,"props":1708,"children":1709},{"style":452},[1710],{"type":323,"value":1711},"'canceled'",{"type":318,"tag":428,"props":1713,"children":1714},{"style":435},[1715],{"type":323,"value":479},{"type":318,"tag":428,"props":1717,"children":1718},{"class":430,"line":482},[1719,1724,1728,1732,1736,1740,1744],{"type":318,"tag":428,"props":1720,"children":1721},{"style":986},[1722],{"type":323,"value":1723},"  canceledAt",{"type":318,"tag":428,"props":1725,"children":1726},{"style":435},[1727],{"type":323,"value":1227},{"type":318,"tag":428,"props":1729,"children":1730},{"style":660},[1731],{"type":323,"value":663},{"type":318,"tag":428,"props":1733,"children":1734},{"style":441},[1735],{"type":323,"value":668},{"type":318,"tag":428,"props":1737,"children":1738},{"style":435},[1739],{"type":323,"value":449},{"type":318,"tag":428,"props":1741,"children":1742},{"style":452},[1743],{"type":323,"value":1541},{"type":318,"tag":428,"props":1745,"children":1746},{"style":435},[1747],{"type":323,"value":754},{"type":318,"tag":428,"props":1749,"children":1750},{"class":430,"line":500},[1751],{"type":318,"tag":428,"props":1752,"children":1753},{"style":435},[1754],{"type":323,"value":1326},{"type":318,"tag":417,"props":1756,"children":1759},{"className":419,"code":1757,"filename":1758,"language":421,"meta":313,"style":313},"status: {\n  name: 'unpaid',\n  currentPeriod: {\n    start: new Date('2025-01-01'),\n    end: new Date('2025-02-01'),\n  },\n}\n","Unpaid",[1760],{"type":318,"tag":424,"props":1761,"children":1762},{"__ignoreMap":313},[1763,1774,1794,1805,1836,1867,1874],{"type":318,"tag":428,"props":1764,"children":1765},{"class":430,"line":431},[1766,1770],{"type":318,"tag":428,"props":1767,"children":1768},{"style":986},[1769],{"type":323,"value":1188},{"type":318,"tag":428,"props":1771,"children":1772},{"style":435},[1773],{"type":323,"value":1214},{"type":318,"tag":428,"props":1775,"children":1776},{"class":430,"line":463},[1777,1781,1785,1790],{"type":318,"tag":428,"props":1778,"children":1779},{"style":986},[1780],{"type":323,"value":1222},{"type":318,"tag":428,"props":1782,"children":1783},{"style":435},[1784],{"type":323,"value":1227},{"type":318,"tag":428,"props":1786,"children":1787},{"style":452},[1788],{"type":323,"value":1789},"'unpaid'",{"type":318,"tag":428,"props":1791,"children":1792},{"style":435},[1793],{"type":323,"value":479},{"type":318,"tag":428,"props":1795,"children":1796},{"class":430,"line":482},[1797,1801],{"type":318,"tag":428,"props":1798,"children":1799},{"style":986},[1800],{"type":323,"value":1243},{"type":318,"tag":428,"props":1802,"children":1803},{"style":435},[1804],{"type":323,"value":1214},{"type":318,"tag":428,"props":1806,"children":1807},{"class":430,"line":500},[1808,1812,1816,1820,1824,1828,1832],{"type":318,"tag":428,"props":1809,"children":1810},{"style":986},[1811],{"type":323,"value":1255},{"type":318,"tag":428,"props":1813,"children":1814},{"style":435},[1815],{"type":323,"value":1227},{"type":318,"tag":428,"props":1817,"children":1818},{"style":660},[1819],{"type":323,"value":663},{"type":318,"tag":428,"props":1821,"children":1822},{"style":441},[1823],{"type":323,"value":668},{"type":318,"tag":428,"props":1825,"children":1826},{"style":435},[1827],{"type":323,"value":449},{"type":318,"tag":428,"props":1829,"children":1830},{"style":452},[1831],{"type":323,"value":749},{"type":318,"tag":428,"props":1833,"children":1834},{"style":435},[1835],{"type":323,"value":754},{"type":318,"tag":428,"props":1837,"children":1838},{"class":430,"line":518},[1839,1843,1847,1851,1855,1859,1863],{"type":318,"tag":428,"props":1840,"children":1841},{"style":986},[1842],{"type":323,"value":1287},{"type":318,"tag":428,"props":1844,"children":1845},{"style":435},[1846],{"type":323,"value":1227},{"type":318,"tag":428,"props":1848,"children":1849},{"style":660},[1850],{"type":323,"value":663},{"type":318,"tag":428,"props":1852,"children":1853},{"style":441},[1854],{"type":323,"value":668},{"type":318,"tag":428,"props":1856,"children":1857},{"style":435},[1858],{"type":323,"value":449},{"type":318,"tag":428,"props":1860,"children":1861},{"style":452},[1862],{"type":323,"value":780},{"type":318,"tag":428,"props":1864,"children":1865},{"style":435},[1866],{"type":323,"value":754},{"type":318,"tag":428,"props":1868,"children":1869},{"class":430,"line":543},[1870],{"type":318,"tag":428,"props":1871,"children":1872},{"style":435},[1873],{"type":323,"value":604},{"type":318,"tag":428,"props":1875,"children":1876},{"class":430,"line":553},[1877],{"type":318,"tag":428,"props":1878,"children":1879},{"style":435},[1880],{"type":323,"value":1326},{"type":318,"tag":1172,"props":1882,"children":1884},{"id":1883},"subscription-items",[1885],{"type":323,"value":1886},"Subscription items",{"type":318,"tag":319,"props":1888,"children":1889},{},[1890],{"type":323,"value":1891},"Items represent the products and pricing on a subscription:",{"type":318,"tag":1192,"props":1893,"children":1894},{},[1895,2112,2319],{"type":318,"tag":417,"props":1896,"children":1899},{"className":419,"code":1897,"filename":1898,"language":421,"meta":313,"style":313},"items: [\n  {\n    id: 'si_basic',\n    price: {\n      id: 'price_basic_monthly',\n      amount: { value: 2999, currency: 'usd' }, // $29.99\n      interval: 'month',\n      intervalCount: 1,\n    },\n    quantity: 1,\n    product: {\n      id: 'prod_basic',\n      name: 'Basic Plan',\n    },\n  },\n];\n","Monthly",[1900],{"type":318,"tag":424,"props":1901,"children":1902},{"__ignoreMap":313},[1903,1916,1924,1940,1948,1964,1994,2010,2026,2033,2049,2057,2073,2090,2097,2104],{"type":318,"tag":428,"props":1904,"children":1905},{"class":430,"line":431},[1906,1911],{"type":318,"tag":428,"props":1907,"children":1908},{"style":986},[1909],{"type":323,"value":1910},"items",{"type":318,"tag":428,"props":1912,"children":1913},{"style":435},[1914],{"type":323,"value":1915},": [\n",{"type":318,"tag":428,"props":1917,"children":1918},{"class":430,"line":463},[1919],{"type":318,"tag":428,"props":1920,"children":1921},{"style":435},[1922],{"type":323,"value":1923},"  {\n",{"type":318,"tag":428,"props":1925,"children":1926},{"class":430,"line":482},[1927,1931,1936],{"type":318,"tag":428,"props":1928,"children":1929},{"style":435},[1930],{"type":323,"value":568},{"type":318,"tag":428,"props":1932,"children":1933},{"style":452},[1934],{"type":323,"value":1935},"'si_basic'",{"type":318,"tag":428,"props":1937,"children":1938},{"style":435},[1939],{"type":323,"value":479},{"type":318,"tag":428,"props":1941,"children":1942},{"class":430,"line":500},[1943],{"type":318,"tag":428,"props":1944,"children":1945},{"style":435},[1946],{"type":323,"value":1947},"    price: {\n",{"type":318,"tag":428,"props":1949,"children":1950},{"class":430,"line":518},[1951,1955,1960],{"type":318,"tag":428,"props":1952,"children":1953},{"style":435},[1954],{"type":323,"value":639},{"type":318,"tag":428,"props":1956,"children":1957},{"style":452},[1958],{"type":323,"value":1959},"'price_basic_monthly'",{"type":318,"tag":428,"props":1961,"children":1962},{"style":435},[1963],{"type":323,"value":479},{"type":318,"tag":428,"props":1965,"children":1966},{"class":430,"line":543},[1967,1972,1976,1980,1984,1989],{"type":318,"tag":428,"props":1968,"children":1969},{"style":435},[1970],{"type":323,"value":1971},"      amount: { value: ",{"type":318,"tag":428,"props":1973,"children":1974},{"style":859},[1975],{"type":323,"value":862},{"type":318,"tag":428,"props":1977,"children":1978},{"style":435},[1979],{"type":323,"value":867},{"type":318,"tag":428,"props":1981,"children":1982},{"style":452},[1983],{"type":323,"value":872},{"type":318,"tag":428,"props":1985,"children":1986},{"style":435},[1987],{"type":323,"value":1988}," }, ",{"type":318,"tag":428,"props":1990,"children":1991},{"style":537},[1992],{"type":323,"value":1993},"// $29.99\n",{"type":318,"tag":428,"props":1995,"children":1996},{"class":430,"line":553},[1997,2002,2006],{"type":318,"tag":428,"props":1998,"children":1999},{"style":435},[2000],{"type":323,"value":2001},"      interval: ",{"type":318,"tag":428,"props":2003,"children":2004},{"style":452},[2005],{"type":323,"value":891},{"type":318,"tag":428,"props":2007,"children":2008},{"style":435},[2009],{"type":323,"value":479},{"type":318,"tag":428,"props":2011,"children":2012},{"class":430,"line":562},[2013,2018,2022],{"type":318,"tag":428,"props":2014,"children":2015},{"style":435},[2016],{"type":323,"value":2017},"      intervalCount: ",{"type":318,"tag":428,"props":2019,"children":2020},{"style":859},[2021],{"type":323,"value":909},{"type":318,"tag":428,"props":2023,"children":2024},{"style":435},[2025],{"type":323,"value":479},{"type":318,"tag":428,"props":2027,"children":2028},{"class":430,"line":580},[2029],{"type":318,"tag":428,"props":2030,"children":2031},{"style":435},[2032],{"type":323,"value":948},{"type":318,"tag":428,"props":2034,"children":2035},{"class":430,"line":598},[2036,2041,2045],{"type":318,"tag":428,"props":2037,"children":2038},{"style":435},[2039],{"type":323,"value":2040},"    quantity: ",{"type":318,"tag":428,"props":2042,"children":2043},{"style":859},[2044],{"type":323,"value":909},{"type":318,"tag":428,"props":2046,"children":2047},{"style":435},[2048],{"type":323,"value":479},{"type":318,"tag":428,"props":2050,"children":2051},{"class":430,"line":607},[2052],{"type":318,"tag":428,"props":2053,"children":2054},{"style":435},[2055],{"type":323,"value":2056},"    product: {\n",{"type":318,"tag":428,"props":2058,"children":2059},{"class":430,"line":615},[2060,2064,2069],{"type":318,"tag":428,"props":2061,"children":2062},{"style":435},[2063],{"type":323,"value":639},{"type":318,"tag":428,"props":2065,"children":2066},{"style":452},[2067],{"type":323,"value":2068},"'prod_basic'",{"type":318,"tag":428,"props":2070,"children":2071},{"style":435},[2072],{"type":323,"value":479},{"type":318,"tag":428,"props":2074,"children":2075},{"class":430,"line":624},[2076,2081,2086],{"type":318,"tag":428,"props":2077,"children":2078},{"style":435},[2079],{"type":323,"value":2080},"      name: ",{"type":318,"tag":428,"props":2082,"children":2083},{"style":452},[2084],{"type":323,"value":2085},"'Basic Plan'",{"type":318,"tag":428,"props":2087,"children":2088},{"style":435},[2089],{"type":323,"value":479},{"type":318,"tag":428,"props":2091,"children":2092},{"class":430,"line":633},[2093],{"type":318,"tag":428,"props":2094,"children":2095},{"style":435},[2096],{"type":323,"value":948},{"type":318,"tag":428,"props":2098,"children":2099},{"class":430,"line":651},[2100],{"type":318,"tag":428,"props":2101,"children":2102},{"style":435},[2103],{"type":323,"value":604},{"type":318,"tag":428,"props":2105,"children":2106},{"class":430,"line":690},[2107],{"type":318,"tag":428,"props":2108,"children":2109},{"style":435},[2110],{"type":323,"value":2111},"];\n",{"type":318,"tag":417,"props":2113,"children":2116},{"className":419,"code":2114,"filename":2115,"language":421,"meta":313,"style":313},"items: [\n  {\n    id: 'si_pro',\n    price: {\n      id: 'price_pro_annual',\n      amount: { value: 29900, currency: 'usd' }, // $299/year\n      interval: 'year',\n      intervalCount: 1,\n    },\n    quantity: 1,\n    product: {\n      id: 'prod_pro',\n      name: 'Pro Plan',\n    },\n  },\n];\n","Annual",[2117],{"type":318,"tag":424,"props":2118,"children":2119},{"__ignoreMap":313},[2120,2131,2138,2154,2161,2177,2206,2222,2237,2244,2259,2266,2282,2298,2305,2312],{"type":318,"tag":428,"props":2121,"children":2122},{"class":430,"line":431},[2123,2127],{"type":318,"tag":428,"props":2124,"children":2125},{"style":986},[2126],{"type":323,"value":1910},{"type":318,"tag":428,"props":2128,"children":2129},{"style":435},[2130],{"type":323,"value":1915},{"type":318,"tag":428,"props":2132,"children":2133},{"class":430,"line":463},[2134],{"type":318,"tag":428,"props":2135,"children":2136},{"style":435},[2137],{"type":323,"value":1923},{"type":318,"tag":428,"props":2139,"children":2140},{"class":430,"line":482},[2141,2145,2150],{"type":318,"tag":428,"props":2142,"children":2143},{"style":435},[2144],{"type":323,"value":568},{"type":318,"tag":428,"props":2146,"children":2147},{"style":452},[2148],{"type":323,"value":2149},"'si_pro'",{"type":318,"tag":428,"props":2151,"children":2152},{"style":435},[2153],{"type":323,"value":479},{"type":318,"tag":428,"props":2155,"children":2156},{"class":430,"line":500},[2157],{"type":318,"tag":428,"props":2158,"children":2159},{"style":435},[2160],{"type":323,"value":1947},{"type":318,"tag":428,"props":2162,"children":2163},{"class":430,"line":518},[2164,2168,2173],{"type":318,"tag":428,"props":2165,"children":2166},{"style":435},[2167],{"type":323,"value":639},{"type":318,"tag":428,"props":2169,"children":2170},{"style":452},[2171],{"type":323,"value":2172},"'price_pro_annual'",{"type":318,"tag":428,"props":2174,"children":2175},{"style":435},[2176],{"type":323,"value":479},{"type":318,"tag":428,"props":2178,"children":2179},{"class":430,"line":543},[2180,2184,2189,2193,2197,2201],{"type":318,"tag":428,"props":2181,"children":2182},{"style":435},[2183],{"type":323,"value":1971},{"type":318,"tag":428,"props":2185,"children":2186},{"style":859},[2187],{"type":323,"value":2188},"29900",{"type":318,"tag":428,"props":2190,"children":2191},{"style":435},[2192],{"type":323,"value":867},{"type":318,"tag":428,"props":2194,"children":2195},{"style":452},[2196],{"type":323,"value":872},{"type":318,"tag":428,"props":2198,"children":2199},{"style":435},[2200],{"type":323,"value":1988},{"type":318,"tag":428,"props":2202,"children":2203},{"style":537},[2204],{"type":323,"value":2205},"// $299/year\n",{"type":318,"tag":428,"props":2207,"children":2208},{"class":430,"line":553},[2209,2213,2218],{"type":318,"tag":428,"props":2210,"children":2211},{"style":435},[2212],{"type":323,"value":2001},{"type":318,"tag":428,"props":2214,"children":2215},{"style":452},[2216],{"type":323,"value":2217},"'year'",{"type":318,"tag":428,"props":2219,"children":2220},{"style":435},[2221],{"type":323,"value":479},{"type":318,"tag":428,"props":2223,"children":2224},{"class":430,"line":562},[2225,2229,2233],{"type":318,"tag":428,"props":2226,"children":2227},{"style":435},[2228],{"type":323,"value":2017},{"type":318,"tag":428,"props":2230,"children":2231},{"style":859},[2232],{"type":323,"value":909},{"type":318,"tag":428,"props":2234,"children":2235},{"style":435},[2236],{"type":323,"value":479},{"type":318,"tag":428,"props":2238,"children":2239},{"class":430,"line":580},[2240],{"type":318,"tag":428,"props":2241,"children":2242},{"style":435},[2243],{"type":323,"value":948},{"type":318,"tag":428,"props":2245,"children":2246},{"class":430,"line":598},[2247,2251,2255],{"type":318,"tag":428,"props":2248,"children":2249},{"style":435},[2250],{"type":323,"value":2040},{"type":318,"tag":428,"props":2252,"children":2253},{"style":859},[2254],{"type":323,"value":909},{"type":318,"tag":428,"props":2256,"children":2257},{"style":435},[2258],{"type":323,"value":479},{"type":318,"tag":428,"props":2260,"children":2261},{"class":430,"line":607},[2262],{"type":318,"tag":428,"props":2263,"children":2264},{"style":435},[2265],{"type":323,"value":2056},{"type":318,"tag":428,"props":2267,"children":2268},{"class":430,"line":615},[2269,2273,2278],{"type":318,"tag":428,"props":2270,"children":2271},{"style":435},[2272],{"type":323,"value":639},{"type":318,"tag":428,"props":2274,"children":2275},{"style":452},[2276],{"type":323,"value":2277},"'prod_pro'",{"type":318,"tag":428,"props":2279,"children":2280},{"style":435},[2281],{"type":323,"value":479},{"type":318,"tag":428,"props":2283,"children":2284},{"class":430,"line":624},[2285,2289,2294],{"type":318,"tag":428,"props":2286,"children":2287},{"style":435},[2288],{"type":323,"value":2080},{"type":318,"tag":428,"props":2290,"children":2291},{"style":452},[2292],{"type":323,"value":2293},"'Pro Plan'",{"type":318,"tag":428,"props":2295,"children":2296},{"style":435},[2297],{"type":323,"value":479},{"type":318,"tag":428,"props":2299,"children":2300},{"class":430,"line":633},[2301],{"type":318,"tag":428,"props":2302,"children":2303},{"style":435},[2304],{"type":323,"value":948},{"type":318,"tag":428,"props":2306,"children":2307},{"class":430,"line":651},[2308],{"type":318,"tag":428,"props":2309,"children":2310},{"style":435},[2311],{"type":323,"value":604},{"type":318,"tag":428,"props":2313,"children":2314},{"class":430,"line":690},[2315],{"type":318,"tag":428,"props":2316,"children":2317},{"style":435},[2318],{"type":323,"value":2111},{"type":318,"tag":417,"props":2320,"children":2323},{"className":419,"code":2321,"filename":2322,"language":421,"meta":313,"style":313},"items: [\n  {\n    id: 'si_team',\n    price: {\n      id: 'price_per_seat',\n      amount: { value: 1500, currency: 'usd' }, // $15/seat\n      interval: 'month',\n      intervalCount: 1,\n    },\n    quantity: 10, // 10 seats\n    product: {\n      id: 'prod_team',\n      name: 'Team Plan',\n    },\n  },\n];\n","Per-seat",[2324],{"type":318,"tag":424,"props":2325,"children":2326},{"__ignoreMap":313},[2327,2338,2345,2361,2368,2384,2413,2428,2443,2450,2471,2478,2494,2510,2517,2524],{"type":318,"tag":428,"props":2328,"children":2329},{"class":430,"line":431},[2330,2334],{"type":318,"tag":428,"props":2331,"children":2332},{"style":986},[2333],{"type":323,"value":1910},{"type":318,"tag":428,"props":2335,"children":2336},{"style":435},[2337],{"type":323,"value":1915},{"type":318,"tag":428,"props":2339,"children":2340},{"class":430,"line":463},[2341],{"type":318,"tag":428,"props":2342,"children":2343},{"style":435},[2344],{"type":323,"value":1923},{"type":318,"tag":428,"props":2346,"children":2347},{"class":430,"line":482},[2348,2352,2357],{"type":318,"tag":428,"props":2349,"children":2350},{"style":435},[2351],{"type":323,"value":568},{"type":318,"tag":428,"props":2353,"children":2354},{"style":452},[2355],{"type":323,"value":2356},"'si_team'",{"type":318,"tag":428,"props":2358,"children":2359},{"style":435},[2360],{"type":323,"value":479},{"type":318,"tag":428,"props":2362,"children":2363},{"class":430,"line":500},[2364],{"type":318,"tag":428,"props":2365,"children":2366},{"style":435},[2367],{"type":323,"value":1947},{"type":318,"tag":428,"props":2369,"children":2370},{"class":430,"line":518},[2371,2375,2380],{"type":318,"tag":428,"props":2372,"children":2373},{"style":435},[2374],{"type":323,"value":639},{"type":318,"tag":428,"props":2376,"children":2377},{"style":452},[2378],{"type":323,"value":2379},"'price_per_seat'",{"type":318,"tag":428,"props":2381,"children":2382},{"style":435},[2383],{"type":323,"value":479},{"type":318,"tag":428,"props":2385,"children":2386},{"class":430,"line":543},[2387,2391,2396,2400,2404,2408],{"type":318,"tag":428,"props":2388,"children":2389},{"style":435},[2390],{"type":323,"value":1971},{"type":318,"tag":428,"props":2392,"children":2393},{"style":859},[2394],{"type":323,"value":2395},"1500",{"type":318,"tag":428,"props":2397,"children":2398},{"style":435},[2399],{"type":323,"value":867},{"type":318,"tag":428,"props":2401,"children":2402},{"style":452},[2403],{"type":323,"value":872},{"type":318,"tag":428,"props":2405,"children":2406},{"style":435},[2407],{"type":323,"value":1988},{"type":318,"tag":428,"props":2409,"children":2410},{"style":537},[2411],{"type":323,"value":2412},"// $15/seat\n",{"type":318,"tag":428,"props":2414,"children":2415},{"class":430,"line":553},[2416,2420,2424],{"type":318,"tag":428,"props":2417,"children":2418},{"style":435},[2419],{"type":323,"value":2001},{"type":318,"tag":428,"props":2421,"children":2422},{"style":452},[2423],{"type":323,"value":891},{"type":318,"tag":428,"props":2425,"children":2426},{"style":435},[2427],{"type":323,"value":479},{"type":318,"tag":428,"props":2429,"children":2430},{"class":430,"line":562},[2431,2435,2439],{"type":318,"tag":428,"props":2432,"children":2433},{"style":435},[2434],{"type":323,"value":2017},{"type":318,"tag":428,"props":2436,"children":2437},{"style":859},[2438],{"type":323,"value":909},{"type":318,"tag":428,"props":2440,"children":2441},{"style":435},[2442],{"type":323,"value":479},{"type":318,"tag":428,"props":2444,"children":2445},{"class":430,"line":580},[2446],{"type":318,"tag":428,"props":2447,"children":2448},{"style":435},[2449],{"type":323,"value":948},{"type":318,"tag":428,"props":2451,"children":2452},{"class":430,"line":598},[2453,2457,2462,2466],{"type":318,"tag":428,"props":2454,"children":2455},{"style":435},[2456],{"type":323,"value":2040},{"type":318,"tag":428,"props":2458,"children":2459},{"style":859},[2460],{"type":323,"value":2461},"10",{"type":318,"tag":428,"props":2463,"children":2464},{"style":435},[2465],{"type":323,"value":534},{"type":318,"tag":428,"props":2467,"children":2468},{"style":537},[2469],{"type":323,"value":2470},"// 10 seats\n",{"type":318,"tag":428,"props":2472,"children":2473},{"class":430,"line":607},[2474],{"type":318,"tag":428,"props":2475,"children":2476},{"style":435},[2477],{"type":323,"value":2056},{"type":318,"tag":428,"props":2479,"children":2480},{"class":430,"line":615},[2481,2485,2490],{"type":318,"tag":428,"props":2482,"children":2483},{"style":435},[2484],{"type":323,"value":639},{"type":318,"tag":428,"props":2486,"children":2487},{"style":452},[2488],{"type":323,"value":2489},"'prod_team'",{"type":318,"tag":428,"props":2491,"children":2492},{"style":435},[2493],{"type":323,"value":479},{"type":318,"tag":428,"props":2495,"children":2496},{"class":430,"line":624},[2497,2501,2506],{"type":318,"tag":428,"props":2498,"children":2499},{"style":435},[2500],{"type":323,"value":2080},{"type":318,"tag":428,"props":2502,"children":2503},{"style":452},[2504],{"type":323,"value":2505},"'Team Plan'",{"type":318,"tag":428,"props":2507,"children":2508},{"style":435},[2509],{"type":323,"value":479},{"type":318,"tag":428,"props":2511,"children":2512},{"class":430,"line":633},[2513],{"type":318,"tag":428,"props":2514,"children":2515},{"style":435},[2516],{"type":323,"value":948},{"type":318,"tag":428,"props":2518,"children":2519},{"class":430,"line":651},[2520],{"type":318,"tag":428,"props":2521,"children":2522},{"style":435},[2523],{"type":323,"value":604},{"type":318,"tag":428,"props":2525,"children":2526},{"class":430,"line":690},[2527],{"type":318,"tag":428,"props":2528,"children":2529},{"style":435},[2530],{"type":323,"value":2111},{"type":318,"tag":319,"props":2532,"children":2533},{},[2534,2536,2541],{"type":323,"value":2535},"See ",{"type":318,"tag":1093,"props":2537,"children":2538},{"href":286},[2539],{"type":323,"value":2540},"Direct mode examples",{"type":323,"value":2542}," for usage-based billing, paused subscriptions, and complex scenarios.",{"type":318,"tag":360,"props":2544,"children":2546},{"id":2545},"handlers",[2547],{"type":323,"value":2548},"Handlers",{"type":318,"tag":319,"props":2550,"children":2551},{},[2552,2554,2559,2561,2569,2571,2577],{"type":323,"value":2553},"Handlers execute billing operations when customers accept offers. ",{"type":318,"tag":329,"props":2555,"children":2556},{},[2557],{"type":323,"value":2558},"Each offer requires its corresponding handler",{"type":323,"value":2560},"—if you configure a pause offer in the ",{"type":318,"tag":1093,"props":2562,"children":2566},{"href":2563,"rel":2564},"https://app.churnkey.co/cancellation/builder",[2565],"nofollow",[2567],{"type":323,"value":2568},"Flow Builder",{"type":323,"value":2570}," but don't provide ",{"type":318,"tag":424,"props":2572,"children":2574},{"className":2573},[],[2575],{"type":323,"value":2576},"handlePause",{"type":323,"value":2578},", the offer won't appear.",{"type":318,"tag":1192,"props":2580,"children":2581},{},[2582,2764,2957,3141,3280,3437,3556],{"type":318,"tag":417,"props":2583,"children":2586},{"className":419,"code":2584,"filename":2585,"language":421,"meta":313,"style":313},"async handleCancel(customer, surveyChoice, feedback, followupResponse) {\n  // surveyChoice: Selected cancellation reason (string)\n  // feedback: Additional text feedback (string | null)\n  // followupResponse: Follow-up question answers (object | null)\n\n  try {\n    await yourAPI.cancelSubscription(customer.id);\n    return { message: 'Your subscription has been canceled.' };\n  } catch (error) {\n    // Error messages are shown to customers\n    throw new Error('Unable to cancel. Please contact support.');\n  }\n}\n","Cancel (required)",[2587],{"type":318,"tag":424,"props":2588,"children":2589},{"__ignoreMap":313},[2590,2608,2616,2624,2632,2639,2652,2671,2691,2709,2717,2749,2757],{"type":318,"tag":428,"props":2591,"children":2592},{"class":430,"line":431},[2593,2598,2603],{"type":318,"tag":428,"props":2594,"children":2595},{"style":435},[2596],{"type":323,"value":2597},"async ",{"type":318,"tag":428,"props":2599,"children":2600},{"style":441},[2601],{"type":323,"value":2602},"handleCancel",{"type":318,"tag":428,"props":2604,"children":2605},{"style":435},[2606],{"type":323,"value":2607},"(customer, surveyChoice, feedback, followupResponse) {\n",{"type":318,"tag":428,"props":2609,"children":2610},{"class":430,"line":463},[2611],{"type":318,"tag":428,"props":2612,"children":2613},{"style":537},[2614],{"type":323,"value":2615},"  // surveyChoice: Selected cancellation reason (string)\n",{"type":318,"tag":428,"props":2617,"children":2618},{"class":430,"line":482},[2619],{"type":318,"tag":428,"props":2620,"children":2621},{"style":537},[2622],{"type":323,"value":2623},"  // feedback: Additional text feedback (string | null)\n",{"type":318,"tag":428,"props":2625,"children":2626},{"class":430,"line":500},[2627],{"type":318,"tag":428,"props":2628,"children":2629},{"style":537},[2630],{"type":323,"value":2631},"  // followupResponse: Follow-up question answers (object | null)\n",{"type":318,"tag":428,"props":2633,"children":2634},{"class":430,"line":518},[2635],{"type":318,"tag":428,"props":2636,"children":2637},{"emptyLinePlaceholder":547},[2638],{"type":323,"value":550},{"type":318,"tag":428,"props":2640,"children":2641},{"class":430,"line":543},[2642,2647],{"type":318,"tag":428,"props":2643,"children":2644},{"style":660},[2645],{"type":323,"value":2646},"  try",{"type":318,"tag":428,"props":2648,"children":2649},{"style":435},[2650],{"type":323,"value":2651}," {\n",{"type":318,"tag":428,"props":2653,"children":2654},{"class":430,"line":553},[2655,2659,2663,2667],{"type":318,"tag":428,"props":2656,"children":2657},{"style":660},[2658],{"type":323,"value":1030},{"type":318,"tag":428,"props":2660,"children":2661},{"style":435},[2662],{"type":323,"value":1035},{"type":318,"tag":428,"props":2664,"children":2665},{"style":441},[2666],{"type":323,"value":1040},{"type":318,"tag":428,"props":2668,"children":2669},{"style":435},[2670],{"type":323,"value":1045},{"type":318,"tag":428,"props":2672,"children":2673},{"class":430,"line":562},[2674,2678,2682,2687],{"type":318,"tag":428,"props":2675,"children":2676},{"style":660},[2677],{"type":323,"value":1054},{"type":318,"tag":428,"props":2679,"children":2680},{"style":435},[2681],{"type":323,"value":1059},{"type":318,"tag":428,"props":2683,"children":2684},{"style":452},[2685],{"type":323,"value":2686},"'Your subscription has been canceled.'",{"type":318,"tag":428,"props":2688,"children":2689},{"style":435},[2690],{"type":323,"value":1069},{"type":318,"tag":428,"props":2692,"children":2693},{"class":430,"line":580},[2694,2699,2704],{"type":318,"tag":428,"props":2695,"children":2696},{"style":435},[2697],{"type":323,"value":2698},"  } ",{"type":318,"tag":428,"props":2700,"children":2701},{"style":660},[2702],{"type":323,"value":2703},"catch",{"type":318,"tag":428,"props":2705,"children":2706},{"style":435},[2707],{"type":323,"value":2708}," (error) {\n",{"type":318,"tag":428,"props":2710,"children":2711},{"class":430,"line":598},[2712],{"type":318,"tag":428,"props":2713,"children":2714},{"style":537},[2715],{"type":323,"value":2716},"    // Error messages are shown to customers\n",{"type":318,"tag":428,"props":2718,"children":2719},{"class":430,"line":607},[2720,2725,2730,2735,2739,2744],{"type":318,"tag":428,"props":2721,"children":2722},{"style":660},[2723],{"type":323,"value":2724},"    throw",{"type":318,"tag":428,"props":2726,"children":2727},{"style":660},[2728],{"type":323,"value":2729}," new",{"type":318,"tag":428,"props":2731,"children":2732},{"style":441},[2733],{"type":323,"value":2734}," Error",{"type":318,"tag":428,"props":2736,"children":2737},{"style":435},[2738],{"type":323,"value":449},{"type":318,"tag":428,"props":2740,"children":2741},{"style":452},[2742],{"type":323,"value":2743},"'Unable to cancel. Please contact support.'",{"type":318,"tag":428,"props":2745,"children":2746},{"style":435},[2747],{"type":323,"value":2748},");\n",{"type":318,"tag":428,"props":2750,"children":2751},{"class":430,"line":615},[2752],{"type":318,"tag":428,"props":2753,"children":2754},{"style":435},[2755],{"type":323,"value":2756},"  }\n",{"type":318,"tag":428,"props":2758,"children":2759},{"class":430,"line":624},[2760],{"type":318,"tag":428,"props":2761,"children":2762},{"style":435},[2763],{"type":323,"value":1326},{"type":318,"tag":417,"props":2765,"children":2768},{"className":419,"code":2766,"filename":2767,"language":421,"meta":313,"style":313},"async handlePause(customer, pauseOptions) {\n  // pauseOptions: {\n  //   pauseEndDate: Date,\n  //   pauseDurationDays: number\n  // }\n\n  await yourAPI.pauseSubscription(\n    customer.id,\n    pauseOptions.pauseEndDate\n  );\n\n  return {\n    message: `Paused until ${pauseOptions.pauseEndDate.toLocaleDateString()}`,\n  };\n}\n","Pause",[2769],{"type":318,"tag":424,"props":2770,"children":2771},{"__ignoreMap":313},[2772,2788,2796,2804,2812,2820,2827,2849,2857,2865,2873,2880,2892,2942,2950],{"type":318,"tag":428,"props":2773,"children":2774},{"class":430,"line":431},[2775,2779,2783],{"type":318,"tag":428,"props":2776,"children":2777},{"style":435},[2778],{"type":323,"value":2597},{"type":318,"tag":428,"props":2780,"children":2781},{"style":441},[2782],{"type":323,"value":2576},{"type":318,"tag":428,"props":2784,"children":2785},{"style":435},[2786],{"type":323,"value":2787},"(customer, pauseOptions) {\n",{"type":318,"tag":428,"props":2789,"children":2790},{"class":430,"line":463},[2791],{"type":318,"tag":428,"props":2792,"children":2793},{"style":537},[2794],{"type":323,"value":2795},"  // pauseOptions: {\n",{"type":318,"tag":428,"props":2797,"children":2798},{"class":430,"line":482},[2799],{"type":318,"tag":428,"props":2800,"children":2801},{"style":537},[2802],{"type":323,"value":2803},"  //   pauseEndDate: Date,\n",{"type":318,"tag":428,"props":2805,"children":2806},{"class":430,"line":500},[2807],{"type":318,"tag":428,"props":2808,"children":2809},{"style":537},[2810],{"type":323,"value":2811},"  //   pauseDurationDays: number\n",{"type":318,"tag":428,"props":2813,"children":2814},{"class":430,"line":518},[2815],{"type":318,"tag":428,"props":2816,"children":2817},{"style":537},[2818],{"type":323,"value":2819},"  // }\n",{"type":318,"tag":428,"props":2821,"children":2822},{"class":430,"line":543},[2823],{"type":318,"tag":428,"props":2824,"children":2825},{"emptyLinePlaceholder":547},[2826],{"type":323,"value":550},{"type":318,"tag":428,"props":2828,"children":2829},{"class":430,"line":553},[2830,2835,2839,2844],{"type":318,"tag":428,"props":2831,"children":2832},{"style":660},[2833],{"type":323,"value":2834},"  await",{"type":318,"tag":428,"props":2836,"children":2837},{"style":435},[2838],{"type":323,"value":1035},{"type":318,"tag":428,"props":2840,"children":2841},{"style":441},[2842],{"type":323,"value":2843},"pauseSubscription",{"type":318,"tag":428,"props":2845,"children":2846},{"style":435},[2847],{"type":323,"value":2848},"(\n",{"type":318,"tag":428,"props":2850,"children":2851},{"class":430,"line":562},[2852],{"type":318,"tag":428,"props":2853,"children":2854},{"style":435},[2855],{"type":323,"value":2856},"    customer.id,\n",{"type":318,"tag":428,"props":2858,"children":2859},{"class":430,"line":580},[2860],{"type":318,"tag":428,"props":2861,"children":2862},{"style":435},[2863],{"type":323,"value":2864},"    pauseOptions.pauseEndDate\n",{"type":318,"tag":428,"props":2866,"children":2867},{"class":430,"line":598},[2868],{"type":318,"tag":428,"props":2869,"children":2870},{"style":435},[2871],{"type":323,"value":2872},"  );\n",{"type":318,"tag":428,"props":2874,"children":2875},{"class":430,"line":607},[2876],{"type":318,"tag":428,"props":2877,"children":2878},{"emptyLinePlaceholder":547},[2879],{"type":323,"value":550},{"type":318,"tag":428,"props":2881,"children":2882},{"class":430,"line":615},[2883,2888],{"type":318,"tag":428,"props":2884,"children":2885},{"style":660},[2886],{"type":323,"value":2887},"  return",{"type":318,"tag":428,"props":2889,"children":2890},{"style":435},[2891],{"type":323,"value":2651},{"type":318,"tag":428,"props":2893,"children":2894},{"class":430,"line":624},[2895,2900,2905,2910,2914,2919,2923,2928,2933,2938],{"type":318,"tag":428,"props":2896,"children":2897},{"style":435},[2898],{"type":323,"value":2899},"    message: ",{"type":318,"tag":428,"props":2901,"children":2902},{"style":452},[2903],{"type":323,"value":2904},"`Paused until ${",{"type":318,"tag":428,"props":2906,"children":2907},{"style":435},[2908],{"type":323,"value":2909},"pauseOptions",{"type":318,"tag":428,"props":2911,"children":2912},{"style":452},[2913],{"type":323,"value":1098},{"type":318,"tag":428,"props":2915,"children":2916},{"style":435},[2917],{"type":323,"value":2918},"pauseEndDate",{"type":318,"tag":428,"props":2920,"children":2921},{"style":452},[2922],{"type":323,"value":1098},{"type":318,"tag":428,"props":2924,"children":2925},{"style":441},[2926],{"type":323,"value":2927},"toLocaleDateString",{"type":318,"tag":428,"props":2929,"children":2930},{"style":452},[2931],{"type":323,"value":2932},"()",{"type":318,"tag":428,"props":2934,"children":2935},{"style":452},[2936],{"type":323,"value":2937},"}`",{"type":318,"tag":428,"props":2939,"children":2940},{"style":435},[2941],{"type":323,"value":479},{"type":318,"tag":428,"props":2943,"children":2944},{"class":430,"line":633},[2945],{"type":318,"tag":428,"props":2946,"children":2947},{"style":435},[2948],{"type":323,"value":2949},"  };\n",{"type":318,"tag":428,"props":2951,"children":2952},{"class":430,"line":651},[2953],{"type":318,"tag":428,"props":2954,"children":2955},{"style":435},[2956],{"type":323,"value":1326},{"type":318,"tag":417,"props":2958,"children":2960},{"className":419,"code":2959,"filename":135,"language":421,"meta":313,"style":313},"async handleDiscount(customer, coupon) {\n  // coupon: {\n  //   id: string,\n  //   percentOff?: number,\n  //   amountOff?: number,\n  //   duration: 'once' | 'repeating' | 'forever',\n  //   durationInMonths?: number\n  // }\n\n  await yourAPI.applyDiscount(customer.id, {\n    percentOff: coupon.percentOff,\n    duration: coupon.duration,\n  });\n\n  return { message: `${coupon.percentOff}% discount applied!` };\n}\n",[2961],{"type":318,"tag":424,"props":2962,"children":2963},{"__ignoreMap":313},[2964,2981,2989,2997,3005,3013,3021,3029,3036,3043,3064,3072,3080,3088,3095,3134],{"type":318,"tag":428,"props":2965,"children":2966},{"class":430,"line":431},[2967,2971,2976],{"type":318,"tag":428,"props":2968,"children":2969},{"style":435},[2970],{"type":323,"value":2597},{"type":318,"tag":428,"props":2972,"children":2973},{"style":441},[2974],{"type":323,"value":2975},"handleDiscount",{"type":318,"tag":428,"props":2977,"children":2978},{"style":435},[2979],{"type":323,"value":2980},"(customer, coupon) {\n",{"type":318,"tag":428,"props":2982,"children":2983},{"class":430,"line":463},[2984],{"type":318,"tag":428,"props":2985,"children":2986},{"style":537},[2987],{"type":323,"value":2988},"  // coupon: {\n",{"type":318,"tag":428,"props":2990,"children":2991},{"class":430,"line":482},[2992],{"type":318,"tag":428,"props":2993,"children":2994},{"style":537},[2995],{"type":323,"value":2996},"  //   id: string,\n",{"type":318,"tag":428,"props":2998,"children":2999},{"class":430,"line":500},[3000],{"type":318,"tag":428,"props":3001,"children":3002},{"style":537},[3003],{"type":323,"value":3004},"  //   percentOff?: number,\n",{"type":318,"tag":428,"props":3006,"children":3007},{"class":430,"line":518},[3008],{"type":318,"tag":428,"props":3009,"children":3010},{"style":537},[3011],{"type":323,"value":3012},"  //   amountOff?: number,\n",{"type":318,"tag":428,"props":3014,"children":3015},{"class":430,"line":543},[3016],{"type":318,"tag":428,"props":3017,"children":3018},{"style":537},[3019],{"type":323,"value":3020},"  //   duration: 'once' | 'repeating' | 'forever',\n",{"type":318,"tag":428,"props":3022,"children":3023},{"class":430,"line":553},[3024],{"type":318,"tag":428,"props":3025,"children":3026},{"style":537},[3027],{"type":323,"value":3028},"  //   durationInMonths?: number\n",{"type":318,"tag":428,"props":3030,"children":3031},{"class":430,"line":562},[3032],{"type":318,"tag":428,"props":3033,"children":3034},{"style":537},[3035],{"type":323,"value":2819},{"type":318,"tag":428,"props":3037,"children":3038},{"class":430,"line":580},[3039],{"type":318,"tag":428,"props":3040,"children":3041},{"emptyLinePlaceholder":547},[3042],{"type":323,"value":550},{"type":318,"tag":428,"props":3044,"children":3045},{"class":430,"line":598},[3046,3050,3054,3059],{"type":318,"tag":428,"props":3047,"children":3048},{"style":660},[3049],{"type":323,"value":2834},{"type":318,"tag":428,"props":3051,"children":3052},{"style":435},[3053],{"type":323,"value":1035},{"type":318,"tag":428,"props":3055,"children":3056},{"style":441},[3057],{"type":323,"value":3058},"applyDiscount",{"type":318,"tag":428,"props":3060,"children":3061},{"style":435},[3062],{"type":323,"value":3063},"(customer.id, {\n",{"type":318,"tag":428,"props":3065,"children":3066},{"class":430,"line":607},[3067],{"type":318,"tag":428,"props":3068,"children":3069},{"style":435},[3070],{"type":323,"value":3071},"    percentOff: coupon.percentOff,\n",{"type":318,"tag":428,"props":3073,"children":3074},{"class":430,"line":615},[3075],{"type":318,"tag":428,"props":3076,"children":3077},{"style":435},[3078],{"type":323,"value":3079},"    duration: coupon.duration,\n",{"type":318,"tag":428,"props":3081,"children":3082},{"class":430,"line":624},[3083],{"type":318,"tag":428,"props":3084,"children":3085},{"style":435},[3086],{"type":323,"value":3087},"  });\n",{"type":318,"tag":428,"props":3089,"children":3090},{"class":430,"line":633},[3091],{"type":318,"tag":428,"props":3092,"children":3093},{"emptyLinePlaceholder":547},[3094],{"type":323,"value":550},{"type":318,"tag":428,"props":3096,"children":3097},{"class":430,"line":651},[3098,3102,3106,3111,3116,3120,3125,3130],{"type":318,"tag":428,"props":3099,"children":3100},{"style":660},[3101],{"type":323,"value":2887},{"type":318,"tag":428,"props":3103,"children":3104},{"style":435},[3105],{"type":323,"value":1059},{"type":318,"tag":428,"props":3107,"children":3108},{"style":452},[3109],{"type":323,"value":3110},"`${",{"type":318,"tag":428,"props":3112,"children":3113},{"style":435},[3114],{"type":323,"value":3115},"coupon",{"type":318,"tag":428,"props":3117,"children":3118},{"style":452},[3119],{"type":323,"value":1098},{"type":318,"tag":428,"props":3121,"children":3122},{"style":435},[3123],{"type":323,"value":3124},"percentOff",{"type":318,"tag":428,"props":3126,"children":3127},{"style":452},[3128],{"type":323,"value":3129},"}% discount applied!`",{"type":318,"tag":428,"props":3131,"children":3132},{"style":435},[3133],{"type":323,"value":1069},{"type":318,"tag":428,"props":3135,"children":3136},{"class":430,"line":690},[3137],{"type":318,"tag":428,"props":3138,"children":3139},{"style":435},[3140],{"type":323,"value":1326},{"type":318,"tag":417,"props":3142,"children":3145},{"className":419,"code":3143,"filename":3144,"language":421,"meta":313,"style":313},"async handlePlanChange(customer, planOptions) {\n  // planOptions: {\n  //   newPriceId: string,\n  //   oldPriceId: string\n  // }\n\n  await yourAPI.updateSubscriptionPlan(\n    customer.id,\n    planOptions.newPriceId\n  );\n\n  return { message: 'Plan updated successfully' };\n}\n","Change Plan",[3146],{"type":318,"tag":424,"props":3147,"children":3148},{"__ignoreMap":313},[3149,3166,3174,3182,3190,3197,3204,3224,3231,3239,3246,3253,3273],{"type":318,"tag":428,"props":3150,"children":3151},{"class":430,"line":431},[3152,3156,3161],{"type":318,"tag":428,"props":3153,"children":3154},{"style":435},[3155],{"type":323,"value":2597},{"type":318,"tag":428,"props":3157,"children":3158},{"style":441},[3159],{"type":323,"value":3160},"handlePlanChange",{"type":318,"tag":428,"props":3162,"children":3163},{"style":435},[3164],{"type":323,"value":3165},"(customer, planOptions) {\n",{"type":318,"tag":428,"props":3167,"children":3168},{"class":430,"line":463},[3169],{"type":318,"tag":428,"props":3170,"children":3171},{"style":537},[3172],{"type":323,"value":3173},"  // planOptions: {\n",{"type":318,"tag":428,"props":3175,"children":3176},{"class":430,"line":482},[3177],{"type":318,"tag":428,"props":3178,"children":3179},{"style":537},[3180],{"type":323,"value":3181},"  //   newPriceId: string,\n",{"type":318,"tag":428,"props":3183,"children":3184},{"class":430,"line":500},[3185],{"type":318,"tag":428,"props":3186,"children":3187},{"style":537},[3188],{"type":323,"value":3189},"  //   oldPriceId: string\n",{"type":318,"tag":428,"props":3191,"children":3192},{"class":430,"line":518},[3193],{"type":318,"tag":428,"props":3194,"children":3195},{"style":537},[3196],{"type":323,"value":2819},{"type":318,"tag":428,"props":3198,"children":3199},{"class":430,"line":543},[3200],{"type":318,"tag":428,"props":3201,"children":3202},{"emptyLinePlaceholder":547},[3203],{"type":323,"value":550},{"type":318,"tag":428,"props":3205,"children":3206},{"class":430,"line":553},[3207,3211,3215,3220],{"type":318,"tag":428,"props":3208,"children":3209},{"style":660},[3210],{"type":323,"value":2834},{"type":318,"tag":428,"props":3212,"children":3213},{"style":435},[3214],{"type":323,"value":1035},{"type":318,"tag":428,"props":3216,"children":3217},{"style":441},[3218],{"type":323,"value":3219},"updateSubscriptionPlan",{"type":318,"tag":428,"props":3221,"children":3222},{"style":435},[3223],{"type":323,"value":2848},{"type":318,"tag":428,"props":3225,"children":3226},{"class":430,"line":562},[3227],{"type":318,"tag":428,"props":3228,"children":3229},{"style":435},[3230],{"type":323,"value":2856},{"type":318,"tag":428,"props":3232,"children":3233},{"class":430,"line":580},[3234],{"type":318,"tag":428,"props":3235,"children":3236},{"style":435},[3237],{"type":323,"value":3238},"    planOptions.newPriceId\n",{"type":318,"tag":428,"props":3240,"children":3241},{"class":430,"line":598},[3242],{"type":318,"tag":428,"props":3243,"children":3244},{"style":435},[3245],{"type":323,"value":2872},{"type":318,"tag":428,"props":3247,"children":3248},{"class":430,"line":607},[3249],{"type":318,"tag":428,"props":3250,"children":3251},{"emptyLinePlaceholder":547},[3252],{"type":323,"value":550},{"type":318,"tag":428,"props":3254,"children":3255},{"class":430,"line":615},[3256,3260,3264,3269],{"type":318,"tag":428,"props":3257,"children":3258},{"style":660},[3259],{"type":323,"value":2887},{"type":318,"tag":428,"props":3261,"children":3262},{"style":435},[3263],{"type":323,"value":1059},{"type":318,"tag":428,"props":3265,"children":3266},{"style":452},[3267],{"type":323,"value":3268},"'Plan updated successfully'",{"type":318,"tag":428,"props":3270,"children":3271},{"style":435},[3272],{"type":323,"value":1069},{"type":318,"tag":428,"props":3274,"children":3275},{"class":430,"line":624},[3276],{"type":318,"tag":428,"props":3277,"children":3278},{"style":435},[3279],{"type":323,"value":1326},{"type":318,"tag":417,"props":3281,"children":3283},{"className":419,"code":3282,"filename":155,"language":421,"meta":313,"style":313},"async handleTrialExtension(customer, trialOptions) {\n  // trialOptions: {\n  //   trialExtensionDays: number,\n  //   newTrialEndDate: Date\n  // }\n\n  await yourAPI.extendTrial(\n    customer.id,\n    trialOptions.newTrialEndDate\n  );\n\n  return { message: `Trial extended ${trialOptions.trialExtensionDays} days` };\n}\n",[3284],{"type":318,"tag":424,"props":3285,"children":3286},{"__ignoreMap":313},[3287,3304,3312,3320,3328,3335,3342,3362,3369,3377,3384,3391,3430],{"type":318,"tag":428,"props":3288,"children":3289},{"class":430,"line":431},[3290,3294,3299],{"type":318,"tag":428,"props":3291,"children":3292},{"style":435},[3293],{"type":323,"value":2597},{"type":318,"tag":428,"props":3295,"children":3296},{"style":441},[3297],{"type":323,"value":3298},"handleTrialExtension",{"type":318,"tag":428,"props":3300,"children":3301},{"style":435},[3302],{"type":323,"value":3303},"(customer, trialOptions) {\n",{"type":318,"tag":428,"props":3305,"children":3306},{"class":430,"line":463},[3307],{"type":318,"tag":428,"props":3308,"children":3309},{"style":537},[3310],{"type":323,"value":3311},"  // trialOptions: {\n",{"type":318,"tag":428,"props":3313,"children":3314},{"class":430,"line":482},[3315],{"type":318,"tag":428,"props":3316,"children":3317},{"style":537},[3318],{"type":323,"value":3319},"  //   trialExtensionDays: number,\n",{"type":318,"tag":428,"props":3321,"children":3322},{"class":430,"line":500},[3323],{"type":318,"tag":428,"props":3324,"children":3325},{"style":537},[3326],{"type":323,"value":3327},"  //   newTrialEndDate: Date\n",{"type":318,"tag":428,"props":3329,"children":3330},{"class":430,"line":518},[3331],{"type":318,"tag":428,"props":3332,"children":3333},{"style":537},[3334],{"type":323,"value":2819},{"type":318,"tag":428,"props":3336,"children":3337},{"class":430,"line":543},[3338],{"type":318,"tag":428,"props":3339,"children":3340},{"emptyLinePlaceholder":547},[3341],{"type":323,"value":550},{"type":318,"tag":428,"props":3343,"children":3344},{"class":430,"line":553},[3345,3349,3353,3358],{"type":318,"tag":428,"props":3346,"children":3347},{"style":660},[3348],{"type":323,"value":2834},{"type":318,"tag":428,"props":3350,"children":3351},{"style":435},[3352],{"type":323,"value":1035},{"type":318,"tag":428,"props":3354,"children":3355},{"style":441},[3356],{"type":323,"value":3357},"extendTrial",{"type":318,"tag":428,"props":3359,"children":3360},{"style":435},[3361],{"type":323,"value":2848},{"type":318,"tag":428,"props":3363,"children":3364},{"class":430,"line":562},[3365],{"type":318,"tag":428,"props":3366,"children":3367},{"style":435},[3368],{"type":323,"value":2856},{"type":318,"tag":428,"props":3370,"children":3371},{"class":430,"line":580},[3372],{"type":318,"tag":428,"props":3373,"children":3374},{"style":435},[3375],{"type":323,"value":3376},"    trialOptions.newTrialEndDate\n",{"type":318,"tag":428,"props":3378,"children":3379},{"class":430,"line":598},[3380],{"type":318,"tag":428,"props":3381,"children":3382},{"style":435},[3383],{"type":323,"value":2872},{"type":318,"tag":428,"props":3385,"children":3386},{"class":430,"line":607},[3387],{"type":318,"tag":428,"props":3388,"children":3389},{"emptyLinePlaceholder":547},[3390],{"type":323,"value":550},{"type":318,"tag":428,"props":3392,"children":3393},{"class":430,"line":615},[3394,3398,3402,3407,3412,3416,3421,3426],{"type":318,"tag":428,"props":3395,"children":3396},{"style":660},[3397],{"type":323,"value":2887},{"type":318,"tag":428,"props":3399,"children":3400},{"style":435},[3401],{"type":323,"value":1059},{"type":318,"tag":428,"props":3403,"children":3404},{"style":452},[3405],{"type":323,"value":3406},"`Trial extended ${",{"type":318,"tag":428,"props":3408,"children":3409},{"style":435},[3410],{"type":323,"value":3411},"trialOptions",{"type":318,"tag":428,"props":3413,"children":3414},{"style":452},[3415],{"type":323,"value":1098},{"type":318,"tag":428,"props":3417,"children":3418},{"style":435},[3419],{"type":323,"value":3420},"trialExtensionDays",{"type":318,"tag":428,"props":3422,"children":3423},{"style":452},[3424],{"type":323,"value":3425},"} days`",{"type":318,"tag":428,"props":3427,"children":3428},{"style":435},[3429],{"type":323,"value":1069},{"type":318,"tag":428,"props":3431,"children":3432},{"class":430,"line":624},[3433],{"type":318,"tag":428,"props":3434,"children":3435},{"style":435},[3436],{"type":323,"value":1326},{"type":318,"tag":417,"props":3438,"children":3440},{"className":419,"code":3439,"filename":301,"language":421,"meta":313,"style":313},"handleSupportRequest(customer) {\n  // Open your support widget or redirect\n  if (window.Intercom) {\n    window.Intercom('show');\n  } else {\n    window.location.href = '/support';\n  }\n}\n",[3441],{"type":318,"tag":424,"props":3442,"children":3443},{"__ignoreMap":313},[3444,3457,3465,3478,3503,3519,3542,3549],{"type":318,"tag":428,"props":3445,"children":3446},{"class":430,"line":431},[3447,3452],{"type":318,"tag":428,"props":3448,"children":3449},{"style":441},[3450],{"type":323,"value":3451},"handleSupportRequest",{"type":318,"tag":428,"props":3453,"children":3454},{"style":435},[3455],{"type":323,"value":3456},"(customer) {\n",{"type":318,"tag":428,"props":3458,"children":3459},{"class":430,"line":463},[3460],{"type":318,"tag":428,"props":3461,"children":3462},{"style":537},[3463],{"type":323,"value":3464},"  // Open your support widget or redirect\n",{"type":318,"tag":428,"props":3466,"children":3467},{"class":430,"line":482},[3468,3473],{"type":318,"tag":428,"props":3469,"children":3470},{"style":660},[3471],{"type":323,"value":3472},"  if",{"type":318,"tag":428,"props":3474,"children":3475},{"style":435},[3476],{"type":323,"value":3477}," (window.Intercom) {\n",{"type":318,"tag":428,"props":3479,"children":3480},{"class":430,"line":500},[3481,3486,3491,3495,3499],{"type":318,"tag":428,"props":3482,"children":3483},{"style":435},[3484],{"type":323,"value":3485},"    window.",{"type":318,"tag":428,"props":3487,"children":3488},{"style":441},[3489],{"type":323,"value":3490},"Intercom",{"type":318,"tag":428,"props":3492,"children":3493},{"style":435},[3494],{"type":323,"value":449},{"type":318,"tag":428,"props":3496,"children":3497},{"style":452},[3498],{"type":323,"value":455},{"type":318,"tag":428,"props":3500,"children":3501},{"style":435},[3502],{"type":323,"value":2748},{"type":318,"tag":428,"props":3504,"children":3505},{"class":430,"line":518},[3506,3510,3515],{"type":318,"tag":428,"props":3507,"children":3508},{"style":435},[3509],{"type":323,"value":2698},{"type":318,"tag":428,"props":3511,"children":3512},{"style":660},[3513],{"type":323,"value":3514},"else",{"type":318,"tag":428,"props":3516,"children":3517},{"style":435},[3518],{"type":323,"value":2651},{"type":318,"tag":428,"props":3520,"children":3521},{"class":430,"line":543},[3522,3527,3532,3537],{"type":318,"tag":428,"props":3523,"children":3524},{"style":435},[3525],{"type":323,"value":3526},"    window.location.href ",{"type":318,"tag":428,"props":3528,"children":3529},{"style":660},[3530],{"type":323,"value":3531},"=",{"type":318,"tag":428,"props":3533,"children":3534},{"style":452},[3535],{"type":323,"value":3536}," '/support'",{"type":318,"tag":428,"props":3538,"children":3539},{"style":435},[3540],{"type":323,"value":3541},";\n",{"type":318,"tag":428,"props":3543,"children":3544},{"class":430,"line":553},[3545],{"type":318,"tag":428,"props":3546,"children":3547},{"style":435},[3548],{"type":323,"value":2756},{"type":318,"tag":428,"props":3550,"children":3551},{"class":430,"line":562},[3552],{"type":318,"tag":428,"props":3553,"children":3554},{"style":435},[3555],{"type":323,"value":1326},{"type":318,"tag":417,"props":3557,"children":3560},{"className":419,"code":3558,"filename":3559,"language":421,"meta":313,"style":313},"handleRedirect(customer, url) {\n  window.location.href = url;\n}\n","Redirect",[3561],{"type":318,"tag":424,"props":3562,"children":3563},{"__ignoreMap":313},[3564,3577,3594],{"type":318,"tag":428,"props":3565,"children":3566},{"class":430,"line":431},[3567,3572],{"type":318,"tag":428,"props":3568,"children":3569},{"style":441},[3570],{"type":323,"value":3571},"handleRedirect",{"type":318,"tag":428,"props":3573,"children":3574},{"style":435},[3575],{"type":323,"value":3576},"(customer, url) {\n",{"type":318,"tag":428,"props":3578,"children":3579},{"class":430,"line":463},[3580,3585,3589],{"type":318,"tag":428,"props":3581,"children":3582},{"style":435},[3583],{"type":323,"value":3584},"  window.location.href ",{"type":318,"tag":428,"props":3586,"children":3587},{"style":660},[3588],{"type":323,"value":3531},{"type":318,"tag":428,"props":3590,"children":3591},{"style":435},[3592],{"type":323,"value":3593}," url;\n",{"type":318,"tag":428,"props":3595,"children":3596},{"class":430,"line":482},[3597],{"type":318,"tag":428,"props":3598,"children":3599},{"style":435},[3600],{"type":323,"value":1326},{"type":318,"tag":360,"props":3602,"children":3604},{"id":3603},"configuring-offers",[3605],{"type":323,"value":3606},"Configuring offers",{"type":318,"tag":319,"props":3608,"children":3609},{},[3610,3612,3617],{"type":323,"value":3611},"Configure offers in the ",{"type":318,"tag":1093,"props":3613,"children":3615},{"href":2563,"rel":3614},[2565],[3616],{"type":323,"value":2568},{"type":323,"value":3618},". Churnkey automatically shows or hides offers based on:",{"type":318,"tag":335,"props":3620,"children":3621},{},[3622,3631,3641],{"type":318,"tag":339,"props":3623,"children":3624},{},[3625,3629],{"type":318,"tag":329,"props":3626,"children":3627},{},[3628],{"type":323,"value":1177},{"type":323,"value":3630}," — Trial extensions only appear for trial subscriptions",{"type":318,"tag":339,"props":3632,"children":3633},{},[3634,3639],{"type":318,"tag":329,"props":3635,"children":3636},{},[3637],{"type":323,"value":3638},"Billing interval",{"type":323,"value":3640}," — Annual customers won't see pause offers by default",{"type":318,"tag":339,"props":3642,"children":3643},{},[3644,3649],{"type":318,"tag":329,"props":3645,"children":3646},{},[3647],{"type":323,"value":3648},"Handler availability",{"type":323,"value":3650}," — Offers only appear if you've implemented the handler",{"type":318,"tag":319,"props":3652,"children":3653},{},[3654],{"type":323,"value":3655},"You configure offer values (discount percentages, pause durations, etc.) in the Flow Builder, then implement the billing changes in your handlers.",{"type":318,"tag":360,"props":3657,"children":3659},{"id":3658},"segmentation",[3660],{"type":323,"value":3661},"Segmentation",{"type":318,"tag":319,"props":3663,"children":3664},{},[3665],{"type":323,"value":3666},"Create targeted flows for different customer segments based on:",{"type":318,"tag":335,"props":3668,"children":3669},{},[3670,3680,3704],{"type":318,"tag":339,"props":3671,"children":3672},{},[3673,3678],{"type":318,"tag":329,"props":3674,"children":3675},{},[3676],{"type":323,"value":3677},"Subscription attributes",{"type":323,"value":3679}," — Status, billing interval, subscription duration",{"type":318,"tag":339,"props":3681,"children":3682},{},[3683,3688,3690,3696,3698],{"type":318,"tag":329,"props":3684,"children":3685},{},[3686],{"type":323,"value":3687},"Customer metadata",{"type":323,"value":3689}," — Custom attributes via ",{"type":318,"tag":424,"props":3691,"children":3693},{"className":3692},[],[3694],{"type":323,"value":3695},"customer.metadata",{"type":323,"value":3697}," and ",{"type":318,"tag":424,"props":3699,"children":3701},{"className":3700},[],[3702],{"type":323,"value":3703},"subscription.metadata",{"type":318,"tag":339,"props":3705,"children":3706},{},[3707,3712],{"type":318,"tag":329,"props":3708,"children":3709},{},[3710],{"type":323,"value":3711},"Billing amounts",{"type":323,"value":3713}," — MRR, subscription value, pricing tier",{"type":318,"tag":319,"props":3715,"children":3716},{},[3717,3719,3724,3726],{"type":323,"value":3718},"Configure segments in the Flow Builder under ",{"type":318,"tag":329,"props":3720,"children":3721},{},[3722],{"type":323,"value":3723},"Audience Targeting",{"type":323,"value":3725},". ",{"type":318,"tag":1093,"props":3727,"children":3730},{"href":3728,"rel":3729},"https://churnkey.co/blog/launch-customer-segmentation",[2565],[3731],{"type":323,"value":3732},"Learn more about segmentation →",{"type":318,"tag":3734,"props":3735,"children":3736},"style",{},[3737],{"type":323,"value":3738},"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":313,"searchDepth":482,"depth":482,"links":3740},[3741,3742,3743,3744,3748,3749,3750],{"id":362,"depth":463,"text":365},{"id":412,"depth":463,"text":415},{"id":1101,"depth":463,"text":1104},{"id":1158,"depth":463,"text":1161,"children":3745},[3746,3747],{"id":1174,"depth":482,"text":1177},{"id":1883,"depth":482,"text":1886},{"id":2545,"depth":463,"text":2548},{"id":3603,"depth":463,"text":3606},{"id":3658,"depth":463,"text":3661},"markdown","content","7.billing-providers/9.direct-connect/1.direct.md","7.billing-providers/9.direct-connect/1.direct","md",{"loc":281},[3758,3759],{"_path":272,"title":271,"description":274},{"_path":286,"title":285,"description":288},{"_path":1121,"_dir":3761,"_draft":312,"_partial":312,"_locale":313,"type":3762,"title":3763,"properties":3764,"_id":3778,"_type":3779,"_source":3752,"_file":3780,"_stem":3781,"_extension":3779},"direct","object","Customer",{"id":3765,"email":3769,"name":3772,"currency":3774,"metadata":3776},{"type":3766,"severity":3767,"description":3768},"string","required","Your internal customer ID. Used for authentication and tracking.",{"type":3766,"severity":3770,"description":3771},"optional","Customer's email address. Used for Slack notifications, merge fields, and analytics dashboard.",{"type":3766,"severity":3770,"description":3773},"Customer's display name. Used for merge fields and analytics.",{"type":3766,"severity":3770,"description":3775},"ISO 4217 currency code (e.g., 'usd', 'eur', 'gbp'). Used for customer segmentation.",{"type":3762,"severity":3770,"description":3777},"Custom key-value pairs for segmentation. Can also use `customerAttributes` param. Example: `{plan_tier: 'enterprise', team_size: '35'}`","content:types:direct:customer-direct.type.json","json","types/direct/customer-direct.type.json","types/direct/customer-direct.type",{"_path":1169,"_dir":3761,"_draft":312,"_partial":312,"_locale":313,"type":3762,"title":3783,"properties":3784,"_id":3904,"_type":3779,"_source":3752,"_file":3905,"_stem":3906,"_extension":3779},"Subscription",{"id":3785,"status":3787,"items":3867,"start":3898,"end":3900,"metadata":3902},{"type":3766,"severity":3767,"description":3786},"Your internal subscription ID",{"type":3788,"description":3789,"severity":3767,"oneOf":3790},"union","Subscription status with status-specific fields. Determines which offers are shown.",[3791,3806,3818,3837,3844,3853],{"type":3762,"title":1198,"description":3792,"properties":3793},"Active subscription currently billing",{"name":3794,"currentPeriod":3798},{"type":3795,"severity":3767,"description":3796,"values":3797},"enum","Status name",[710],{"type":3762,"severity":3767,"description":3799,"properties":3800},"Current billing period",{"start":3801,"end":3804},{"type":3802,"severity":3767,"description":3803},"Date","When the current billing period started",{"type":3802,"severity":3767,"description":3805},"When it ends (renewal date)",{"type":3762,"title":1330,"description":3807,"properties":3808},"Subscription in trial period. Required for trial extension offers.",{"name":3809,"trial":3811},{"type":3795,"severity":3767,"description":3796,"values":3810},[1361],{"type":3762,"severity":3767,"description":3812,"properties":3813},"Trial period dates",{"start":3814,"end":3816},{"type":3802,"severity":3767,"description":3815},"When the trial started",{"type":3802,"severity":3767,"description":3817},"When the trial ends. Used for trial extension offers.",{"type":3762,"title":1466,"description":3819,"properties":3820},"Subscription that is currently paused",{"name":3821,"pause":3823,"currentPeriod":3830},{"type":3795,"severity":3767,"description":3796,"values":3822},[1497],{"type":3762,"severity":3767,"description":3824,"properties":3825},"Pause period dates",{"start":3826,"end":3828},{"type":3802,"severity":3767,"description":3827},"When the pause began",{"type":3802,"severity":3770,"description":3829},"When it resumes. Omit for indefinite pause.",{"type":3762,"severity":3770,"description":3831,"properties":3832},"Current billing period (optional for paused subscriptions)",{"start":3833,"end":3835},{"type":3802,"severity":3767,"description":3834},"When the billing period started",{"type":3802,"severity":3767,"description":3836},"When the billing period ends",{"type":3762,"title":1680,"description":3838,"properties":3839},"Subscription that has been canceled",{"name":3840,"canceledAt":3842},{"type":3795,"severity":3767,"description":3796,"values":3841},[1711],{"type":3802,"severity":3767,"description":3843},"When the subscription was canceled",{"type":3762,"title":1758,"description":3845,"properties":3846},"Subscription with failed payment",{"name":3847,"currentPeriod":3849},{"type":3795,"severity":3767,"description":3796,"values":3848},[1789],{"type":3762,"severity":3770,"description":3799,"properties":3850},{"start":3851,"end":3852},{"type":3802,"severity":3767,"description":3834},{"type":3802,"severity":3767,"description":3836},{"type":3762,"title":3854,"description":3855,"properties":3856},"Future","Subscription scheduled to start in the future",{"name":3857,"currentPeriod":3860},{"type":3795,"severity":3767,"description":3796,"values":3858},[3859],"'future'",{"type":3762,"severity":3770,"description":3861,"properties":3862},"Future billing period",{"start":3863,"end":3865},{"type":3802,"severity":3767,"description":3864},"When the billing period will start",{"type":3802,"severity":3767,"description":3866},"When the billing period will end",{"type":3868,"severity":3767,"description":3869,"items":3870},"array","At least one subscription item (plan) required",{"type":3762,"properties":3871},{"price":3872,"quantity":3896},{"type":3762,"severity":3767,"description":3873,"properties":3874},"Pricing information for this item",{"id":3875,"name":3877,"duration":3879,"amount":3889},{"type":3766,"severity":3767,"description":3876},"Your internal price ID",{"type":3766,"severity":3770,"description":3878},"Display name. Helpful for your analytics dashboard.",{"type":3762,"severity":3767,"description":3880,"properties":3881},"Billing frequency",{"interval":3882,"intervalCount":3886},{"type":3795,"severity":3767,"description":3638,"values":3883},[3884,3885,891,2217],"'day'","'week'",{"type":3887,"severity":3770,"description":3888},"number","Defaults to 1. For example, intervalCount: 3 with interval: 'month' means every 3 months.",{"type":3762,"severity":3767,"description":3890,"properties":3891},"Price amount",{"value":3892,"currency":3894},{"type":3887,"severity":3767,"description":3893},"Price in smallest currency unit (cents for USD, pence for GBP, etc.)",{"type":3766,"severity":3770,"description":3895},"ISO 4217 currency code. Defaults to 'USD'.",{"type":3887,"severity":3770,"description":3897},"Defaults to 1. Use for per-seat pricing (e.g., 5 seats of the same plan).",{"type":3802,"severity":3767,"description":3899},"When subscription started. Required for accurate subscription age calculation used in segmentation (e.g., new vs. long-term customers).",{"type":3802,"severity":3770,"description":3901},"When the subscription ended or is scheduled to end. Used for cancel-at-period-end scenarios.",{"type":3762,"severity":3770,"description":3903},"Custom key-value pairs for segmentation. Same as using `customerAttributes` or `customer.metadata`.","content:types:direct:subscription-direct.type.json","types/direct/subscription-direct.type.json","types/direct/subscription-direct.type",{"data":3908,"body":3909,"excerpt":-1,"toc":3915},{"title":313,"description":3768},{"type":315,"children":3910},[3911],{"type":318,"tag":319,"props":3912,"children":3913},{},[3914],{"type":323,"value":3768},{"title":313,"searchDepth":463,"depth":463,"links":3916},[],{"data":3918,"body":3919,"excerpt":-1,"toc":3925},{"title":313,"description":3771},{"type":315,"children":3920},[3921],{"type":318,"tag":319,"props":3922,"children":3923},{},[3924],{"type":323,"value":3771},{"title":313,"searchDepth":463,"depth":463,"links":3926},[],{"data":3928,"body":3929,"excerpt":-1,"toc":3935},{"title":313,"description":3773},{"type":315,"children":3930},[3931],{"type":318,"tag":319,"props":3932,"children":3933},{},[3934],{"type":323,"value":3773},{"title":313,"searchDepth":463,"depth":463,"links":3936},[],{"data":3938,"body":3939,"excerpt":-1,"toc":3945},{"title":313,"description":3775},{"type":315,"children":3940},[3941],{"type":318,"tag":319,"props":3942,"children":3943},{},[3944],{"type":323,"value":3775},{"title":313,"searchDepth":463,"depth":463,"links":3946},[],{"data":3948,"body":3950,"excerpt":-1,"toc":3971},{"title":313,"description":3949},"Custom key-value pairs for segmentation. Can also use customerAttributes param. Example: {plan_tier: 'enterprise', team_size: '35'}",{"type":315,"children":3951},[3952],{"type":318,"tag":319,"props":3953,"children":3954},{},[3955,3957,3963,3965],{"type":323,"value":3956},"Custom key-value pairs for segmentation. Can also use ",{"type":318,"tag":424,"props":3958,"children":3960},{"className":3959},[],[3961],{"type":323,"value":3962},"customerAttributes",{"type":323,"value":3964}," param. Example: ",{"type":318,"tag":424,"props":3966,"children":3968},{"className":3967},[],[3969],{"type":323,"value":3970},"{plan_tier: 'enterprise', team_size: '35'}",{"title":313,"searchDepth":463,"depth":463,"links":3972},[],{"data":3974,"body":3975,"excerpt":-1,"toc":3981},{"title":313,"description":3786},{"type":315,"children":3976},[3977],{"type":318,"tag":319,"props":3978,"children":3979},{},[3980],{"type":323,"value":3786},{"title":313,"searchDepth":463,"depth":463,"links":3982},[],{"data":3984,"body":3985,"excerpt":-1,"toc":3991},{"title":313,"description":3789},{"type":315,"children":3986},[3987],{"type":318,"tag":319,"props":3988,"children":3989},{},[3990],{"type":323,"value":3789},{"title":313,"searchDepth":463,"depth":463,"links":3992},[],{"data":3994,"body":3995,"excerpt":-1,"toc":4001},{"title":313,"description":3869},{"type":315,"children":3996},[3997],{"type":318,"tag":319,"props":3998,"children":3999},{},[4000],{"type":323,"value":3869},{"title":313,"searchDepth":463,"depth":463,"links":4002},[],{"data":4004,"body":4005,"excerpt":-1,"toc":4011},{"title":313,"description":3899},{"type":315,"children":4006},[4007],{"type":318,"tag":319,"props":4008,"children":4009},{},[4010],{"type":323,"value":3899},{"title":313,"searchDepth":463,"depth":463,"links":4012},[],{"data":4014,"body":4015,"excerpt":-1,"toc":4021},{"title":313,"description":3901},{"type":315,"children":4016},[4017],{"type":318,"tag":319,"props":4018,"children":4019},{},[4020],{"type":323,"value":3901},{"title":313,"searchDepth":463,"depth":463,"links":4022},[],{"data":4024,"body":4026,"excerpt":-1,"toc":4046},{"title":313,"description":4025},"Custom key-value pairs for segmentation. Same as using customerAttributes or customer.metadata.",{"type":315,"children":4027},[4028],{"type":318,"tag":319,"props":4029,"children":4030},{},[4031,4033,4038,4040,4045],{"type":323,"value":4032},"Custom key-value pairs for segmentation. Same as using ",{"type":318,"tag":424,"props":4034,"children":4036},{"className":4035},[],[4037],{"type":323,"value":3962},{"type":323,"value":4039}," or ",{"type":318,"tag":424,"props":4041,"children":4043},{"className":4042},[],[4044],{"type":323,"value":3695},{"type":323,"value":1098},{"title":313,"searchDepth":463,"depth":463,"links":4047},[],1775515571429]