[{"data":1,"prerenderedAt":1626},["ShallowReactive",2],{"navigation":3,"/integrations/actions/extend-trial":310,"/integrations/actions/extend-trial-surround":1485,"/types/actions/extend-trial/request.type":1494,"Uzbcrwb7K0":1512,"mvUbUXcxHo":1522,"/types/actions/extend-trial/features.type":1532,"qydw4KL87Y":1551,"XxF0tQsDCj":1561,"HK901ptPfW":1571,"/types/duration.type":1581,"LqKVXCYhjU":1616},[4,13,161,197,211,236,290,300],{"title":5,"_path":6,"children":7,"_id":12,"description":11},"Getting Started","/getting-started",[8],{"title":9,"_path":6,"_id":10,"description":11},"Overview","content:1.getting-started:1.index.md","Everything you need to know about integrating Churnkey with your product and billing stack.","content:1.getting-started:_dir.yml",{"title":14,"_path":15,"children":16,"_id":160},"Cancel Flows","/cancel-flows",[17,22,27,32,37,42,47,52,57,62,67,72,116,130],{"title":18,"_path":19,"_id":20,"description":21},"Quick Start Guide","/cancel-flows/quick-start-guide","content:2.cancel-flows:1.quick-start-guide.md","A 3-step guide on how to implement Cancel Flows in your website",{"title":23,"_path":24,"_id":25,"description":26},"Cancel Flow Structure","/cancel-flows/flow-configuration","content:2.cancel-flows:2.flow configuration.md","Learn about the available components that make up a Cancel Flow, from initial offers to cancellation confirmation, and how each step contributes to the overall flow.",{"title":28,"_path":29,"_id":30,"description":31},"Configuration Options","/cancel-flows/further-configuration","content:2.cancel-flows:3.further-configuration.md","Additional details for all of the following options are included below.",{"title":33,"_path":34,"_id":35,"description":36},"Custom Styling","/cancel-flows/custom-styling","content:2.cancel-flows:4.custom-styling.md","Brand your Churnkey Cancel Flow with your own CSS",{"title":38,"_path":39,"_id":40,"description":41},"Managed Email Flow","/cancel-flows/email-verified-cancel-flow","content:2.cancel-flows:6.email-verified-cancel-flow.md","Our managed email based setup takes care of customer verification for you with an email verification code.",{"title":43,"_path":44,"_id":45,"description":46},"A/B Testing","/cancel-flows/a-b-testing","content:2.cancel-flows:7.a-b-testing.md","Run controlled experiments to optimize your Cancel Flows and maximize customer retention.",{"title":48,"_path":49,"_id":50,"description":51},"Testing","/cancel-flows/cancel-flow-testing","content:2.cancel-flows:8.cancel-flow-testing.md","Ensure that your Cancel Flow is working as intended before going live.",{"title":53,"_path":54,"_id":55,"description":56},"Pause Wall","/cancel-flows/pause-wall","content:2.cancel-flows:9.pause-wall.md","Block access to your application during subscription pauses",{"title":58,"_path":59,"_id":60,"description":61},"Click-to-Cancel Compliance","/cancel-flows/click-to-cancel","content:2.cancel-flows:10.click-to-cancel.md","Implement automatic compliance with global subscription cancellation requirements",{"title":63,"_path":64,"_id":65,"description":66},"Structured Follow-Up Questions","/cancel-flows/structured-follow-up-questions","content:2.cancel-flows:11.structured-follow-up-questions.md","Collect deeper cancellation insights and deliver targeted retention offers with a second layer of predefined follow-up options in your cancel flow survey.",{"title":68,"_path":69,"_id":70,"description":71},"Adaptive Offers","/cancel-flows/adaptive-offers","content:2.cancel-flows:adaptive-offers.md","AI-powered discount optimization that automatically finds the perfect offer for each customer",{"title":73,"_path":74,"children":75},"Analytics","/cancel-flows/analytics",[76,81,86,91,96,101,106,111],{"title":77,"_path":78,"_id":79,"description":80},"Boosted Revenue","/cancel-flows/analytics/average-boosted-revenue","content:2.cancel-flows:analytics:1.average-boosted-revenue.md","Measure the long-term value of retained subscribers",{"title":82,"_path":83,"_id":84,"description":85},"Save Rate","/cancel-flows/analytics/save-rate","content:2.cancel-flows:analytics:2.save-rate.md","The percentage of customers that your Cancel Flows saved from cancellation",{"title":87,"_path":88,"_id":89,"description":90},"Reactivation Rate","/cancel-flows/analytics/reactivation-rate","content:2.cancel-flows:analytics:3.reactivation-rate.md","The percentage of customers who pay at least one invoice after being saved",{"title":92,"_path":93,"_id":94,"description":95},"Sessions","/cancel-flows/analytics/session-outcomes","content:2.cancel-flows:analytics:4.session-outcomes.md","Track each interaction that a customer has with your Cancel Flows",{"title":97,"_path":98,"_id":99,"description":100},"Cancellation Trends","/cancel-flows/analytics/cancellation-trends","content:2.cancel-flows:analytics:5.cancellation-trends.md","Analyze and interpret the selection rates and trends for cancellation reasons in your Cancel Flows.",{"title":102,"_path":103,"_id":104,"description":105},"Feedback AI","/cancel-flows/analytics/feedback-ai","content:2.cancel-flows:analytics:6.feedback-ai.md","Transform customer feedback into actionable insights with AI-powered categorization and analysis",{"title":107,"_path":108,"_id":109,"description":110},"Response Flow","/cancel-flows/analytics/response-flow","content:2.cancel-flows:analytics:7.response-flow.md","Visualize how customers move from primary cancellation reasons to specific follow-up selections with the Sankey diagram",{"title":112,"_path":113,"_id":114,"description":115},"Response Explorer","/cancel-flows/analytics/response-explorer","content:2.cancel-flows:analytics:8.response-explorer.md","Drill into individual follow-up responses with the Treemap visualization, search, trend analysis, and MRR impact sorting",{"title":117,"_path":118,"children":119},"Multi Language Support","/cancel-flows/multi-language-support",[120,125],{"title":121,"_path":122,"_id":123,"description":124},"Manual Translations","/cancel-flows/multi-language-support/multi-language-support","content:2.cancel-flows:multi-language-support:5.multi-language-support.md","Support multiple languages.",{"title":126,"_path":127,"_id":128,"description":129},"Automatic Translations","/cancel-flows/multi-language-support/automatic-translation","content:2.cancel-flows:multi-language-support:automatic-translation.md","Enable AI-powered multilingual support for your Cancel Flows with a single toggle.",{"title":131,"_path":132,"children":133,"_id":159},"Offers","/cancel-flows/offers",[134,139,144,149,154],{"title":135,"_path":136,"_id":137,"description":138},"Discount","/cancel-flows/offers/discounts","content:2.cancel-flows:offers:discounts.md","Offer targeted subscription discounts to reduce churn and increase customer retention",{"title":140,"_path":141,"_id":142,"description":143},"Hidden Plans","/cancel-flows/offers/hidden-plans","content:2.cancel-flows:offers:hidden-plans.md","Use the Switch Subscription Plan offer to present exclusive, non-public plans to customers during cancellation",{"title":145,"_path":146,"_id":147,"description":148},"Pause Subscription","/cancel-flows/offers/pause-subscription","content:2.cancel-flows:offers:pause-subscription.md","Temporarily suspend subscription payments without canceling the service",{"title":150,"_path":151,"_id":152,"description":153},"Switch Subscription Plan","/cancel-flows/offers/switch-subscription","content:2.cancel-flows:offers:switch-subscription.md","Allow customers to change to a different subscription plan during the cancellation flow to retain them with a more suitable option",{"title":155,"_path":156,"_id":157,"description":158},"Trial Extension","/cancel-flows/offers/trial-extension","content:2.cancel-flows:offers:trial-extension.md","Extend customer trial periods to reduce churn and increase conversion rates during the critical trial-to-paid transition","content:2.cancel-flows:offers:_dir.yml","content:2.cancel-flows:_dir.yml",{"title":162,"_path":163,"children":164,"_id":196},"Payment Recovery","/failed-payment-recovery",[165,169,174,179,184,188],{"title":5,"_path":166,"_id":167,"description":168},"/failed-payment-recovery/payment-recovery","content:3.failed-payment-recovery:1.payment-recovery.md","Recover failed payment revenue, automatically.",{"title":170,"_path":171,"_id":172,"description":173},"Customize your Campaigns","/failed-payment-recovery/campaign-customization","content:3.failed-payment-recovery:2.campaign-customization.md","Customize your Payment Recovery Campaigns to match the unique needs of your individual customers.",{"title":175,"_path":176,"_id":177,"description":178},"Failed Payment Wall","/failed-payment-recovery/failed-payment-wall","content:3.failed-payment-recovery:3.failed-payment-wall.md","Block access to your application when payments fail",{"title":180,"_path":181,"_id":182,"description":183},"Billing Contact API","/failed-payment-recovery/billing-contact-api","content:3.failed-payment-recovery:4.billing-contact-api.md","Send Payment Recovery emails to multiple billing contacts",{"title":43,"_path":185,"_id":186,"description":187},"/failed-payment-recovery/ab-testing","content:3.failed-payment-recovery:5.ab-testing.md","Optimize your payment recovery campaigns through controlled experiments that maximize revenue recovery.",{"title":73,"_path":189,"children":190},"/failed-payment-recovery/analytics",[191],{"title":192,"_path":193,"_id":194,"description":195},"Overall Performance","/failed-payment-recovery/analytics/overview","content:3.failed-payment-recovery:analytics:1.overview.md","Key performance metrics for your Payment Recovery campaigns","content:3.failed-payment-recovery:_dir.yml",{"title":198,"_path":199,"children":200,"_id":210},"Reactivations","/reactivations",[201,205],{"title":5,"_path":202,"_id":203,"description":204},"/reactivations/reactivations","content:4.reactivations:1.reactivations.md","Churnkey helps you to recover unsubscribed customers with easy, customizable Reactivation Email Campaigns.",{"title":206,"_path":207,"_id":208,"description":209},"Customization","/reactivations/campaign-customization-guide","content:4.reactivations:2.campaign-customization-guide.md","Customize your Reactivation Campaigns to match the individual needs of your customers.","content:4.reactivations:_dir.yml",{"title":212,"_path":213,"children":214,"_id":235},"Data Integrations","/data-integrations",[215,220,225,230],{"title":216,"_path":217,"_id":218,"description":219},"Data API","/data-integrations/data-api","content:6.data-integrations:1.data-api.md","Access your data through our API.",{"title":221,"_path":222,"_id":223,"description":224},"Slack notifications","/data-integrations/slack","content:6.data-integrations:2.slack.md","Connect Churnkey with your organization's Slack and to send session notifications to a specific channel.",{"title":226,"_path":227,"_id":228,"description":229},"Webhooks","/data-integrations/webhooks","content:6.data-integrations:2.webhooks.md","Churnkey can send webhooks to automatically notify your application whenever a customer completes a session.",{"title":231,"_path":232,"_id":233,"description":234},"Event Tracking","/data-integrations/event-tracking","content:6.data-integrations:3.event-tracking.md","Track your customers' key-value metrics on a per customer basis.","content:6.data-integrations:_dir.yml",{"title":237,"_path":238,"children":239,"_id":289},"Billing Providers","/billing-providers",[240,245,250,255,260,265,270,275],{"title":241,"_path":242,"_id":243,"description":244},"Payment Providers","/billing-providers/payment-provider-overview","content:7.billing-providers:1.payment-provider-overview.md","Feature support for Stripe, Chargebee, Paddle, and Braintree",{"title":246,"_path":247,"_id":248,"description":249},"Stripe","/billing-providers/stripe","content:7.billing-providers:3.stripe.md","Integrate Churnkey with your Stripe account",{"title":251,"_path":252,"_id":253,"description":254},"Chargebee","/billing-providers/chargebee","content:7.billing-providers:4.chargebee.md","Integrate Churnkey with your Chargebee account",{"title":256,"_path":257,"_id":258,"description":259},"Paddle Classic","/billing-providers/paddle-classic","content:7.billing-providers:5.paddle-classic.md","Integrate Churnkey with your Paddle Classic account",{"title":261,"_path":262,"_id":263,"description":264},"Paddle Billing","/billing-providers/paddle-billing","content:7.billing-providers:6.paddle-billing.md","Integrate Churnkey with your Paddle Billing account",{"title":266,"_path":267,"_id":268,"description":269},"Braintree","/billing-providers/braintree","content:7.billing-providers:7.braintree.md","Integrate Churnkey with your Braintree account",{"title":271,"_path":272,"_id":273,"description":274},"Maxio","/billing-providers/maxio","content:7.billing-providers:8.maxio.md","Integrate Churnkey with your Maxio (formerly Chargify) account",{"title":276,"_path":277,"children":278},"Direct Connect","/billing-providers/direct-connect",[279,284],{"title":280,"_path":281,"_id":282,"description":283},"Churnkey Direct","/billing-providers/direct-connect/direct","content:7.billing-providers:9.direct-connect:1.direct.md","Integrate Churnkey with any billing system using Direct mode",{"title":285,"_path":286,"_id":287,"description":288},"Direct Mode Examples","/billing-providers/direct-connect/direct-examples","content:7.billing-providers:9.direct-connect:2.direct-examples.md","Real-world examples for common subscription scenarios","content:7.billing-providers:_dir.yml",{"title":291,"_path":292,"children":293,"_id":299},"Account","/account",[294],{"title":295,"_path":296,"_id":297,"description":298},"Multi-Workspace Support","/account/multi-workspace-support","content:8.account:1.multi-workspace-support.md","Use one email address to access multiple Churnkey workspaces and switch between them instantly.","content:8.account:_dir.yml",{"title":301,"_path":302,"children":303,"_id":309},"Support","/support",[304],{"title":305,"_path":306,"_id":307,"description":308},"Frequently Asked Questions","/support/faqs","content:9.support:1.faqs.md","We want setting up Churnkey to be a breeze.","content:9.support:_dir.yml",{"_path":311,"_dir":312,"_draft":313,"_partial":313,"_locale":314,"title":315,"description":316,"body":317,"_type":1478,"_id":1479,"_source":1480,"_file":1481,"_stem":1482,"_extension":1483,"sitemap":1484},"/integrations/actions/extend-trial","actions",false,"","Extend Trial - Action","Extends a subscription trial period for a specific duration.",{"type":318,"children":319,"toc":1470},"root",[320,335,355,362,422,428,440,844,850,860,869,890,895,905,941,1126,1135,1147,1196,1204,1464],{"type":321,"tag":322,"props":323,"children":324},"element","p",{},[325,328,333],{"type":326,"value":327},"text","Required for ",{"type":321,"tag":329,"props":330,"children":332},"badge",{"label":331},"Trial Offer",[],{"type":326,"value":334}," to work.",{"type":321,"tag":322,"props":336,"children":337},{},[338,340,347,349],{"type":326,"value":339},"To implement the ",{"type":321,"tag":341,"props":342,"children":344},"code",{"className":343},[],[345],{"type":326,"value":346},"Extend Trial",{"type":326,"value":348}," action, you need to implement an endpoint and define ",{"type":321,"tag":341,"props":350,"children":352},{"className":351},[],[353],{"type":326,"value":354},"features",{"type":321,"tag":356,"props":357,"children":359},"h2",{"id":358},"prerequisites",[360],{"type":326,"value":361},"Prerequisites",{"type":321,"tag":363,"props":364,"children":366},"grid",{"cols":365},2,[367,397],{"type":321,"tag":368,"props":369,"children":372},"card-baseline",{"title":370,"to":371},"Subscriptions - Controller","/integrations/controllers/subscriptions",[373,386],{"type":321,"tag":322,"props":374,"children":375},{},[376,378,384],{"type":326,"value":377},"You must implement a ",{"type":321,"tag":341,"props":379,"children":381},{"className":380},[],[382],{"type":326,"value":383},"Subscriptions",{"type":326,"value":385}," controller first.",{"type":321,"tag":387,"props":388,"children":391},"flex",{"className":389},[390],"mt-4",[392],{"type":321,"tag":329,"props":393,"children":396},{"label":394,"color":395},"Required","green",[],{"type":321,"tag":368,"props":398,"children":401},{"title":399,"to":400},"Cancel - Action","/integrations/actions/cancel",[402,415],{"type":321,"tag":322,"props":403,"children":404},{},[405,407,413],{"type":326,"value":406},"Trial extension is a part of the Cancel Flow. You must implement the ",{"type":321,"tag":341,"props":408,"children":410},{"className":409},[],[411],{"type":326,"value":412},"Cancel",{"type":326,"value":414}," action first.",{"type":321,"tag":387,"props":416,"children":418},{"className":417},[390],[419],{"type":321,"tag":329,"props":420,"children":421},{"label":394,"color":395},[],{"type":321,"tag":356,"props":423,"children":425},{"id":424},"sdk",[426],{"type":326,"value":427},"SDK",{"type":321,"tag":322,"props":429,"children":430},{},[431,433,438],{"type":326,"value":432},"If you are using the SDK, you can implement the ",{"type":321,"tag":341,"props":434,"children":436},{"className":435},[],[437],{"type":326,"value":346},{"type":326,"value":439}," action by following the code example below. You don't need to get into the details of the API endpoints, the SDK will take care of that for you.",{"type":321,"tag":441,"props":442,"children":443},"code-group",{},[444],{"type":321,"tag":445,"props":446,"children":451},"pre",{"className":447,"code":448,"filename":449,"language":450,"meta":314,"style":314},"language-typescript shiki shiki-themes github-light-default github-light-default github-dark-default","import { Integrator } from '@churnkey/sdk'\nimport { Subscriptions } from '../controllers/Subscriptions'\n\nexport const ExtendTrial = Integrator.ExtendTrial.config({\n    Subscriptions: Subscriptions,\n    features: {\n        enabled: true,\n        multiple: true,\n        durations: {\n            period: true,\n            date: true\n        }\n    },\n    async handle(ctx, options) {\n        const subscription = await this.subscriptions.retrieve({\n            customerId: options.customerId,\n            id: options.subscriptionId\n        })\n\n        await ctx.db.extendSubscriptionTrial(subscription, {\n            duration: options.duration\n        })\n    }\n})\n","Typescript","typescript",[452],{"type":321,"tag":341,"props":453,"children":454},{"__ignoreMap":314},[455,484,505,515,556,565,574,593,610,619,636,650,659,668,708,750,759,768,777,785,809,818,826,835],{"type":321,"tag":456,"props":457,"children":460},"span",{"class":458,"line":459},"line",1,[461,467,473,478],{"type":321,"tag":456,"props":462,"children":464},{"style":463},"--shiki-light:#CF222E;--shiki-default:#CF222E;--shiki-dark:#FF7B72",[465],{"type":326,"value":466},"import",{"type":321,"tag":456,"props":468,"children":470},{"style":469},"--shiki-light:#1F2328;--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[471],{"type":326,"value":472}," { Integrator } ",{"type":321,"tag":456,"props":474,"children":475},{"style":463},[476],{"type":326,"value":477},"from",{"type":321,"tag":456,"props":479,"children":481},{"style":480},"--shiki-light:#0A3069;--shiki-default:#0A3069;--shiki-dark:#A5D6FF",[482],{"type":326,"value":483}," '@churnkey/sdk'\n",{"type":321,"tag":456,"props":485,"children":486},{"class":458,"line":365},[487,491,496,500],{"type":321,"tag":456,"props":488,"children":489},{"style":463},[490],{"type":326,"value":466},{"type":321,"tag":456,"props":492,"children":493},{"style":469},[494],{"type":326,"value":495}," { Subscriptions } ",{"type":321,"tag":456,"props":497,"children":498},{"style":463},[499],{"type":326,"value":477},{"type":321,"tag":456,"props":501,"children":502},{"style":480},[503],{"type":326,"value":504}," '../controllers/Subscriptions'\n",{"type":321,"tag":456,"props":506,"children":508},{"class":458,"line":507},3,[509],{"type":321,"tag":456,"props":510,"children":512},{"emptyLinePlaceholder":511},true,[513],{"type":326,"value":514},"\n",{"type":321,"tag":456,"props":516,"children":518},{"class":458,"line":517},4,[519,524,529,535,540,545,551],{"type":321,"tag":456,"props":520,"children":521},{"style":463},[522],{"type":326,"value":523},"export",{"type":321,"tag":456,"props":525,"children":526},{"style":463},[527],{"type":326,"value":528}," const",{"type":321,"tag":456,"props":530,"children":532},{"style":531},"--shiki-light:#0550AE;--shiki-default:#0550AE;--shiki-dark:#79C0FF",[533],{"type":326,"value":534}," ExtendTrial",{"type":321,"tag":456,"props":536,"children":537},{"style":463},[538],{"type":326,"value":539}," =",{"type":321,"tag":456,"props":541,"children":542},{"style":469},[543],{"type":326,"value":544}," Integrator.ExtendTrial.",{"type":321,"tag":456,"props":546,"children":548},{"style":547},"--shiki-light:#8250DF;--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[549],{"type":326,"value":550},"config",{"type":321,"tag":456,"props":552,"children":553},{"style":469},[554],{"type":326,"value":555},"({\n",{"type":321,"tag":456,"props":557,"children":559},{"class":458,"line":558},5,[560],{"type":321,"tag":456,"props":561,"children":562},{"style":469},[563],{"type":326,"value":564},"    Subscriptions: Subscriptions,\n",{"type":321,"tag":456,"props":566,"children":568},{"class":458,"line":567},6,[569],{"type":321,"tag":456,"props":570,"children":571},{"style":469},[572],{"type":326,"value":573},"    features: {\n",{"type":321,"tag":456,"props":575,"children":577},{"class":458,"line":576},7,[578,583,588],{"type":321,"tag":456,"props":579,"children":580},{"style":469},[581],{"type":326,"value":582},"        enabled: ",{"type":321,"tag":456,"props":584,"children":585},{"style":531},[586],{"type":326,"value":587},"true",{"type":321,"tag":456,"props":589,"children":590},{"style":469},[591],{"type":326,"value":592},",\n",{"type":321,"tag":456,"props":594,"children":596},{"class":458,"line":595},8,[597,602,606],{"type":321,"tag":456,"props":598,"children":599},{"style":469},[600],{"type":326,"value":601},"        multiple: ",{"type":321,"tag":456,"props":603,"children":604},{"style":531},[605],{"type":326,"value":587},{"type":321,"tag":456,"props":607,"children":608},{"style":469},[609],{"type":326,"value":592},{"type":321,"tag":456,"props":611,"children":613},{"class":458,"line":612},9,[614],{"type":321,"tag":456,"props":615,"children":616},{"style":469},[617],{"type":326,"value":618},"        durations: {\n",{"type":321,"tag":456,"props":620,"children":622},{"class":458,"line":621},10,[623,628,632],{"type":321,"tag":456,"props":624,"children":625},{"style":469},[626],{"type":326,"value":627},"            period: ",{"type":321,"tag":456,"props":629,"children":630},{"style":531},[631],{"type":326,"value":587},{"type":321,"tag":456,"props":633,"children":634},{"style":469},[635],{"type":326,"value":592},{"type":321,"tag":456,"props":637,"children":639},{"class":458,"line":638},11,[640,645],{"type":321,"tag":456,"props":641,"children":642},{"style":469},[643],{"type":326,"value":644},"            date: ",{"type":321,"tag":456,"props":646,"children":647},{"style":531},[648],{"type":326,"value":649},"true\n",{"type":321,"tag":456,"props":651,"children":653},{"class":458,"line":652},12,[654],{"type":321,"tag":456,"props":655,"children":656},{"style":469},[657],{"type":326,"value":658},"        }\n",{"type":321,"tag":456,"props":660,"children":662},{"class":458,"line":661},13,[663],{"type":321,"tag":456,"props":664,"children":665},{"style":469},[666],{"type":326,"value":667},"    },\n",{"type":321,"tag":456,"props":669,"children":671},{"class":458,"line":670},14,[672,677,682,687,693,698,703],{"type":321,"tag":456,"props":673,"children":674},{"style":463},[675],{"type":326,"value":676},"    async",{"type":321,"tag":456,"props":678,"children":679},{"style":547},[680],{"type":326,"value":681}," handle",{"type":321,"tag":456,"props":683,"children":684},{"style":469},[685],{"type":326,"value":686},"(",{"type":321,"tag":456,"props":688,"children":690},{"style":689},"--shiki-light:#953800;--shiki-default:#953800;--shiki-dark:#FFA657",[691],{"type":326,"value":692},"ctx",{"type":321,"tag":456,"props":694,"children":695},{"style":469},[696],{"type":326,"value":697},", ",{"type":321,"tag":456,"props":699,"children":700},{"style":689},[701],{"type":326,"value":702},"options",{"type":321,"tag":456,"props":704,"children":705},{"style":469},[706],{"type":326,"value":707},") {\n",{"type":321,"tag":456,"props":709,"children":711},{"class":458,"line":710},15,[712,717,722,726,731,736,741,746],{"type":321,"tag":456,"props":713,"children":714},{"style":463},[715],{"type":326,"value":716},"        const",{"type":321,"tag":456,"props":718,"children":719},{"style":531},[720],{"type":326,"value":721}," subscription",{"type":321,"tag":456,"props":723,"children":724},{"style":463},[725],{"type":326,"value":539},{"type":321,"tag":456,"props":727,"children":728},{"style":463},[729],{"type":326,"value":730}," await",{"type":321,"tag":456,"props":732,"children":733},{"style":531},[734],{"type":326,"value":735}," this",{"type":321,"tag":456,"props":737,"children":738},{"style":469},[739],{"type":326,"value":740},".subscriptions.",{"type":321,"tag":456,"props":742,"children":743},{"style":547},[744],{"type":326,"value":745},"retrieve",{"type":321,"tag":456,"props":747,"children":748},{"style":469},[749],{"type":326,"value":555},{"type":321,"tag":456,"props":751,"children":753},{"class":458,"line":752},16,[754],{"type":321,"tag":456,"props":755,"children":756},{"style":469},[757],{"type":326,"value":758},"            customerId: options.customerId,\n",{"type":321,"tag":456,"props":760,"children":762},{"class":458,"line":761},17,[763],{"type":321,"tag":456,"props":764,"children":765},{"style":469},[766],{"type":326,"value":767},"            id: options.subscriptionId\n",{"type":321,"tag":456,"props":769,"children":771},{"class":458,"line":770},18,[772],{"type":321,"tag":456,"props":773,"children":774},{"style":469},[775],{"type":326,"value":776},"        })\n",{"type":321,"tag":456,"props":778,"children":780},{"class":458,"line":779},19,[781],{"type":321,"tag":456,"props":782,"children":783},{"emptyLinePlaceholder":511},[784],{"type":326,"value":514},{"type":321,"tag":456,"props":786,"children":788},{"class":458,"line":787},20,[789,794,799,804],{"type":321,"tag":456,"props":790,"children":791},{"style":463},[792],{"type":326,"value":793},"        await",{"type":321,"tag":456,"props":795,"children":796},{"style":469},[797],{"type":326,"value":798}," ctx.db.",{"type":321,"tag":456,"props":800,"children":801},{"style":547},[802],{"type":326,"value":803},"extendSubscriptionTrial",{"type":321,"tag":456,"props":805,"children":806},{"style":469},[807],{"type":326,"value":808},"(subscription, {\n",{"type":321,"tag":456,"props":810,"children":812},{"class":458,"line":811},21,[813],{"type":321,"tag":456,"props":814,"children":815},{"style":469},[816],{"type":326,"value":817},"            duration: options.duration\n",{"type":321,"tag":456,"props":819,"children":821},{"class":458,"line":820},22,[822],{"type":321,"tag":456,"props":823,"children":824},{"style":469},[825],{"type":326,"value":776},{"type":321,"tag":456,"props":827,"children":829},{"class":458,"line":828},23,[830],{"type":321,"tag":456,"props":831,"children":832},{"style":469},[833],{"type":326,"value":834},"    }\n",{"type":321,"tag":456,"props":836,"children":838},{"class":458,"line":837},24,[839],{"type":321,"tag":456,"props":840,"children":841},{"style":469},[842],{"type":326,"value":843},"})\n",{"type":321,"tag":356,"props":845,"children":847},{"id":846},"endpoints",[848],{"type":326,"value":849},"Endpoints",{"type":321,"tag":851,"props":852,"children":854},"h3",{"id":853},"handle",[855,857],{"type":326,"value":856},"Handle ",{"type":321,"tag":329,"props":858,"children":859},{"label":394,"color":395},[],{"type":321,"tag":322,"props":861,"children":862},{},[863],{"type":321,"tag":341,"props":864,"children":866},{"className":865},[],[867],{"type":326,"value":868},"POST /churnkey/actions/subscription/extend-trial",{"type":321,"tag":322,"props":870,"children":871},{},[872,874,880,882,888],{"type":326,"value":873},"This endpoints handles the subscription trial extension. You should find the subscription by ",{"type":321,"tag":341,"props":875,"children":877},{"className":876},[],[878],{"type":326,"value":879},"customerId",{"type":326,"value":881}," and ",{"type":321,"tag":341,"props":883,"children":885},{"className":884},[],[886],{"type":326,"value":887},"subscriptionId",{"type":326,"value":889}," and extend it's trial.",{"type":321,"tag":322,"props":891,"children":892},{},[893],{"type":326,"value":894},"Options for trial extension, provided in the request body.",{"type":321,"tag":896,"props":897,"children":899},"collapsible",{"name":898},"request body",[900],{"type":321,"tag":901,"props":902,"children":904},"field-schema",{"schema":903},"/types/actions/extend-trial/request.type.json",[],{"type":321,"tag":896,"props":906,"children":908},{"name":907},"response",[909],{"type":321,"tag":910,"props":911,"children":912},"tabs",{},[913,923],{"type":321,"tag":914,"props":915,"children":917},"div",{"label":916},"200",[918],{"type":321,"tag":322,"props":919,"children":920},{},[921],{"type":326,"value":922},"Must return empty response.",{"type":321,"tag":914,"props":924,"children":926},{"label":925},"Error",[927],{"type":321,"tag":322,"props":928,"children":929},{},[930,932,939],{"type":326,"value":931},"See ",{"type":321,"tag":933,"props":934,"children":936},"a",{"href":935},"/integrations/general#error-responses",[937],{"type":326,"value":938},"Error Responses",{"type":326,"value":940},".",{"type":321,"tag":896,"props":942,"children":944},{"name":943},"code example",[945],{"type":321,"tag":441,"props":946,"children":947},{},[948],{"type":321,"tag":445,"props":949,"children":952},{"className":447,"code":950,"filename":951,"language":450,"meta":314,"style":314},"  app.post('/churnkey/actions/subscription/extend-trial', async (req, res) => {\n      const subscription = await db.findSubscription(req.body.customerId, req.body.subscriptionId)\n      \n      await db.extendSubscriptionTrial(subscription, {\n          duration: req.body.duration\n      })\n      res.send()\n  })\n","Typescript Express",[953],{"type":321,"tag":341,"props":954,"children":955},{"__ignoreMap":314},[956,1021,1056,1064,1084,1092,1100,1118],{"type":321,"tag":456,"props":957,"children":958},{"class":458,"line":459},[959,964,969,973,978,982,987,992,997,1001,1006,1011,1016],{"type":321,"tag":456,"props":960,"children":961},{"style":469},[962],{"type":326,"value":963},"  app.",{"type":321,"tag":456,"props":965,"children":966},{"style":547},[967],{"type":326,"value":968},"post",{"type":321,"tag":456,"props":970,"children":971},{"style":469},[972],{"type":326,"value":686},{"type":321,"tag":456,"props":974,"children":975},{"style":480},[976],{"type":326,"value":977},"'/churnkey/actions/subscription/extend-trial'",{"type":321,"tag":456,"props":979,"children":980},{"style":469},[981],{"type":326,"value":697},{"type":321,"tag":456,"props":983,"children":984},{"style":463},[985],{"type":326,"value":986},"async",{"type":321,"tag":456,"props":988,"children":989},{"style":469},[990],{"type":326,"value":991}," (",{"type":321,"tag":456,"props":993,"children":994},{"style":689},[995],{"type":326,"value":996},"req",{"type":321,"tag":456,"props":998,"children":999},{"style":469},[1000],{"type":326,"value":697},{"type":321,"tag":456,"props":1002,"children":1003},{"style":689},[1004],{"type":326,"value":1005},"res",{"type":321,"tag":456,"props":1007,"children":1008},{"style":469},[1009],{"type":326,"value":1010},") ",{"type":321,"tag":456,"props":1012,"children":1013},{"style":463},[1014],{"type":326,"value":1015},"=>",{"type":321,"tag":456,"props":1017,"children":1018},{"style":469},[1019],{"type":326,"value":1020}," {\n",{"type":321,"tag":456,"props":1022,"children":1023},{"class":458,"line":365},[1024,1029,1033,1037,1041,1046,1051],{"type":321,"tag":456,"props":1025,"children":1026},{"style":463},[1027],{"type":326,"value":1028},"      const",{"type":321,"tag":456,"props":1030,"children":1031},{"style":531},[1032],{"type":326,"value":721},{"type":321,"tag":456,"props":1034,"children":1035},{"style":463},[1036],{"type":326,"value":539},{"type":321,"tag":456,"props":1038,"children":1039},{"style":463},[1040],{"type":326,"value":730},{"type":321,"tag":456,"props":1042,"children":1043},{"style":469},[1044],{"type":326,"value":1045}," db.",{"type":321,"tag":456,"props":1047,"children":1048},{"style":547},[1049],{"type":326,"value":1050},"findSubscription",{"type":321,"tag":456,"props":1052,"children":1053},{"style":469},[1054],{"type":326,"value":1055},"(req.body.customerId, req.body.subscriptionId)\n",{"type":321,"tag":456,"props":1057,"children":1058},{"class":458,"line":507},[1059],{"type":321,"tag":456,"props":1060,"children":1061},{"style":469},[1062],{"type":326,"value":1063},"      \n",{"type":321,"tag":456,"props":1065,"children":1066},{"class":458,"line":517},[1067,1072,1076,1080],{"type":321,"tag":456,"props":1068,"children":1069},{"style":463},[1070],{"type":326,"value":1071},"      await",{"type":321,"tag":456,"props":1073,"children":1074},{"style":469},[1075],{"type":326,"value":1045},{"type":321,"tag":456,"props":1077,"children":1078},{"style":547},[1079],{"type":326,"value":803},{"type":321,"tag":456,"props":1081,"children":1082},{"style":469},[1083],{"type":326,"value":808},{"type":321,"tag":456,"props":1085,"children":1086},{"class":458,"line":558},[1087],{"type":321,"tag":456,"props":1088,"children":1089},{"style":469},[1090],{"type":326,"value":1091},"          duration: req.body.duration\n",{"type":321,"tag":456,"props":1093,"children":1094},{"class":458,"line":567},[1095],{"type":321,"tag":456,"props":1096,"children":1097},{"style":469},[1098],{"type":326,"value":1099},"      })\n",{"type":321,"tag":456,"props":1101,"children":1102},{"class":458,"line":576},[1103,1108,1113],{"type":321,"tag":456,"props":1104,"children":1105},{"style":469},[1106],{"type":326,"value":1107},"      res.",{"type":321,"tag":456,"props":1109,"children":1110},{"style":547},[1111],{"type":326,"value":1112},"send",{"type":321,"tag":456,"props":1114,"children":1115},{"style":469},[1116],{"type":326,"value":1117},"()\n",{"type":321,"tag":456,"props":1119,"children":1120},{"class":458,"line":595},[1121],{"type":321,"tag":456,"props":1122,"children":1123},{"style":469},[1124],{"type":326,"value":1125},"  })\n",{"type":321,"tag":356,"props":1127,"children":1128},{"id":354},[1129,1131],{"type":326,"value":1130},"Features ",{"type":321,"tag":329,"props":1132,"children":1134},{"label":1133,"color":395},"required",[],{"type":321,"tag":322,"props":1136,"children":1137},{},[1138,1140,1145],{"type":326,"value":1139},"Features define which behavior is supported for the ",{"type":321,"tag":341,"props":1141,"children":1143},{"className":1142},[],[1144],{"type":326,"value":346},{"type":326,"value":1146}," action. Depending on the features you enabled, requests body will have different options.",{"type":321,"tag":322,"props":1148,"children":1149},{},[1150,1152,1158,1160,1166,1168,1173,1175,1180,1182,1187,1189,1195],{"type":326,"value":1151},"For example, if you enable only ",{"type":321,"tag":341,"props":1153,"children":1155},{"className":1154},[],[1156],{"type":326,"value":1157},"period",{"type":326,"value":1159}," duration type, the ",{"type":321,"tag":341,"props":1161,"children":1163},{"className":1162},[],[1164],{"type":326,"value":1165},"request.body.duration",{"type":326,"value":1167}," will be always of ",{"type":321,"tag":341,"props":1169,"children":1171},{"className":1170},[],[1172],{"type":326,"value":1157},{"type":326,"value":1174}," type. If you enable both type, ",{"type":321,"tag":341,"props":1176,"children":1178},{"className":1177},[],[1179],{"type":326,"value":1165},{"type":326,"value":1181}," can be either of type ",{"type":321,"tag":341,"props":1183,"children":1185},{"className":1184},[],[1186],{"type":326,"value":1157},{"type":326,"value":1188}," or ",{"type":321,"tag":341,"props":1190,"children":1192},{"className":1191},[],[1193],{"type":326,"value":1194},"date",{"type":326,"value":940},{"type":321,"tag":896,"props":1197,"children":1199},{"name":1198},"schema",[1200],{"type":321,"tag":901,"props":1201,"children":1203},{"schema":1202},"/types/actions/extend-trial/features.type.json",[],{"type":321,"tag":896,"props":1205,"children":1206},{"name":943},[1207],{"type":321,"tag":441,"props":1208,"children":1209},{},[1210],{"type":321,"tag":445,"props":1211,"children":1213},{"className":447,"code":1212,"filename":449,"language":450,"meta":314,"style":314},"export interface Features {\n  enabled: boolean\n  multiple: boolean\n  durations: {\n    period: boolean\n    date: boolean\n  }\n}\n\nexport const features: Features = {\n  enabled: true,\n  multiple: true,\n  durations: {\n      period: true,\n      date: false // this duration type will be disabled\n  }\n}\n",[1214],{"type":321,"tag":341,"props":1215,"children":1216},{"__ignoreMap":314},[1217,1238,1256,1272,1288,1304,1320,1328,1336,1343,1375,1391,1407,1415,1431,1450,1457],{"type":321,"tag":456,"props":1218,"children":1219},{"class":458,"line":459},[1220,1224,1229,1234],{"type":321,"tag":456,"props":1221,"children":1222},{"style":463},[1223],{"type":326,"value":523},{"type":321,"tag":456,"props":1225,"children":1226},{"style":463},[1227],{"type":326,"value":1228}," interface",{"type":321,"tag":456,"props":1230,"children":1231},{"style":689},[1232],{"type":326,"value":1233}," Features",{"type":321,"tag":456,"props":1235,"children":1236},{"style":469},[1237],{"type":326,"value":1020},{"type":321,"tag":456,"props":1239,"children":1240},{"class":458,"line":365},[1241,1246,1251],{"type":321,"tag":456,"props":1242,"children":1243},{"style":689},[1244],{"type":326,"value":1245},"  enabled",{"type":321,"tag":456,"props":1247,"children":1248},{"style":463},[1249],{"type":326,"value":1250},":",{"type":321,"tag":456,"props":1252,"children":1253},{"style":531},[1254],{"type":326,"value":1255}," boolean\n",{"type":321,"tag":456,"props":1257,"children":1258},{"class":458,"line":507},[1259,1264,1268],{"type":321,"tag":456,"props":1260,"children":1261},{"style":689},[1262],{"type":326,"value":1263},"  multiple",{"type":321,"tag":456,"props":1265,"children":1266},{"style":463},[1267],{"type":326,"value":1250},{"type":321,"tag":456,"props":1269,"children":1270},{"style":531},[1271],{"type":326,"value":1255},{"type":321,"tag":456,"props":1273,"children":1274},{"class":458,"line":517},[1275,1280,1284],{"type":321,"tag":456,"props":1276,"children":1277},{"style":689},[1278],{"type":326,"value":1279},"  durations",{"type":321,"tag":456,"props":1281,"children":1282},{"style":463},[1283],{"type":326,"value":1250},{"type":321,"tag":456,"props":1285,"children":1286},{"style":469},[1287],{"type":326,"value":1020},{"type":321,"tag":456,"props":1289,"children":1290},{"class":458,"line":558},[1291,1296,1300],{"type":321,"tag":456,"props":1292,"children":1293},{"style":689},[1294],{"type":326,"value":1295},"    period",{"type":321,"tag":456,"props":1297,"children":1298},{"style":463},[1299],{"type":326,"value":1250},{"type":321,"tag":456,"props":1301,"children":1302},{"style":531},[1303],{"type":326,"value":1255},{"type":321,"tag":456,"props":1305,"children":1306},{"class":458,"line":567},[1307,1312,1316],{"type":321,"tag":456,"props":1308,"children":1309},{"style":689},[1310],{"type":326,"value":1311},"    date",{"type":321,"tag":456,"props":1313,"children":1314},{"style":463},[1315],{"type":326,"value":1250},{"type":321,"tag":456,"props":1317,"children":1318},{"style":531},[1319],{"type":326,"value":1255},{"type":321,"tag":456,"props":1321,"children":1322},{"class":458,"line":576},[1323],{"type":321,"tag":456,"props":1324,"children":1325},{"style":469},[1326],{"type":326,"value":1327},"  }\n",{"type":321,"tag":456,"props":1329,"children":1330},{"class":458,"line":595},[1331],{"type":321,"tag":456,"props":1332,"children":1333},{"style":469},[1334],{"type":326,"value":1335},"}\n",{"type":321,"tag":456,"props":1337,"children":1338},{"class":458,"line":612},[1339],{"type":321,"tag":456,"props":1340,"children":1341},{"emptyLinePlaceholder":511},[1342],{"type":326,"value":514},{"type":321,"tag":456,"props":1344,"children":1345},{"class":458,"line":621},[1346,1350,1354,1359,1363,1367,1371],{"type":321,"tag":456,"props":1347,"children":1348},{"style":463},[1349],{"type":326,"value":523},{"type":321,"tag":456,"props":1351,"children":1352},{"style":463},[1353],{"type":326,"value":528},{"type":321,"tag":456,"props":1355,"children":1356},{"style":531},[1357],{"type":326,"value":1358}," features",{"type":321,"tag":456,"props":1360,"children":1361},{"style":463},[1362],{"type":326,"value":1250},{"type":321,"tag":456,"props":1364,"children":1365},{"style":689},[1366],{"type":326,"value":1233},{"type":321,"tag":456,"props":1368,"children":1369},{"style":463},[1370],{"type":326,"value":539},{"type":321,"tag":456,"props":1372,"children":1373},{"style":469},[1374],{"type":326,"value":1020},{"type":321,"tag":456,"props":1376,"children":1377},{"class":458,"line":638},[1378,1383,1387],{"type":321,"tag":456,"props":1379,"children":1380},{"style":469},[1381],{"type":326,"value":1382},"  enabled: ",{"type":321,"tag":456,"props":1384,"children":1385},{"style":531},[1386],{"type":326,"value":587},{"type":321,"tag":456,"props":1388,"children":1389},{"style":469},[1390],{"type":326,"value":592},{"type":321,"tag":456,"props":1392,"children":1393},{"class":458,"line":652},[1394,1399,1403],{"type":321,"tag":456,"props":1395,"children":1396},{"style":469},[1397],{"type":326,"value":1398},"  multiple: ",{"type":321,"tag":456,"props":1400,"children":1401},{"style":531},[1402],{"type":326,"value":587},{"type":321,"tag":456,"props":1404,"children":1405},{"style":469},[1406],{"type":326,"value":592},{"type":321,"tag":456,"props":1408,"children":1409},{"class":458,"line":661},[1410],{"type":321,"tag":456,"props":1411,"children":1412},{"style":469},[1413],{"type":326,"value":1414},"  durations: {\n",{"type":321,"tag":456,"props":1416,"children":1417},{"class":458,"line":670},[1418,1423,1427],{"type":321,"tag":456,"props":1419,"children":1420},{"style":469},[1421],{"type":326,"value":1422},"      period: ",{"type":321,"tag":456,"props":1424,"children":1425},{"style":531},[1426],{"type":326,"value":587},{"type":321,"tag":456,"props":1428,"children":1429},{"style":469},[1430],{"type":326,"value":592},{"type":321,"tag":456,"props":1432,"children":1433},{"class":458,"line":710},[1434,1439,1444],{"type":321,"tag":456,"props":1435,"children":1436},{"style":469},[1437],{"type":326,"value":1438},"      date: ",{"type":321,"tag":456,"props":1440,"children":1441},{"style":531},[1442],{"type":326,"value":1443},"false",{"type":321,"tag":456,"props":1445,"children":1447},{"style":1446},"--shiki-light:#6E7781;--shiki-default:#6E7781;--shiki-dark:#8B949E",[1448],{"type":326,"value":1449}," // this duration type will be disabled\n",{"type":321,"tag":456,"props":1451,"children":1452},{"class":458,"line":752},[1453],{"type":321,"tag":456,"props":1454,"children":1455},{"style":469},[1456],{"type":326,"value":1327},{"type":321,"tag":456,"props":1458,"children":1459},{"class":458,"line":761},[1460],{"type":321,"tag":456,"props":1461,"children":1462},{"style":469},[1463],{"type":326,"value":1335},{"type":321,"tag":1465,"props":1466,"children":1467},"style",{},[1468],{"type":326,"value":1469},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":314,"searchDepth":507,"depth":507,"links":1471},[1472,1473,1474,1477],{"id":358,"depth":365,"text":361},{"id":424,"depth":365,"text":427},{"id":846,"depth":365,"text":849,"children":1475},[1476],{"id":853,"depth":507,"text":856},{"id":354,"depth":365,"text":1130},"markdown","content:99.integrations:4.actions:3.extend-trial.md","content","99.integrations/4.actions/3.extend-trial.md","99.integrations/4.actions/3.extend-trial","md",{"loc":311},[1486,1490],{"_path":1487,"title":1488,"description":1489},"/integrations/actions/pause","Pause - Action","Pauses a subscription at specific date for a specific period.",{"_path":1491,"title":1492,"description":1493},"/integrations/actions/apply-coupon","Apply Coupon","Apply a coupon to a subscription.",{"_path":1495,"_dir":1496,"_draft":313,"_partial":313,"_locale":314,"type":1497,"title":1498,"properties":1499,"_id":1508,"_type":1509,"_source":1480,"_file":1510,"_stem":1511,"_extension":1509},"/types/actions/extend-trial/request.type","extend-trial","object","Extend Trial Request",{"customerId":1500,"subscriptionId":1503,"duration":1505},{"type":1501,"severity":1133,"description":1502},"string","Unique identifier of the customer.",{"type":1501,"severity":1133,"description":1504},"Unique identifier of the subscription.",{"severity":1133,"description":1506,"ref":1507},"Duration of the trial extension","/types/duration.type.json","content:types:actions:extend-trial:request.type.json","json","types/actions/extend-trial/request.type.json","types/actions/extend-trial/request.type",{"data":1513,"body":1514,"toc":1520},{"title":314,"description":1502},{"type":318,"children":1515},[1516],{"type":321,"tag":322,"props":1517,"children":1518},{},[1519],{"type":326,"value":1502},{"title":314,"searchDepth":365,"depth":365,"links":1521},[],{"data":1523,"body":1524,"toc":1530},{"title":314,"description":1504},{"type":318,"children":1525},[1526],{"type":321,"tag":322,"props":1527,"children":1528},{},[1529],{"type":326,"value":1504},{"title":314,"searchDepth":365,"depth":365,"links":1531},[],{"_path":1533,"_dir":1496,"_draft":313,"_partial":313,"_locale":314,"type":1497,"title":1534,"properties":1535,"_id":1548,"_type":1509,"_source":1480,"_file":1549,"_stem":1550,"_extension":1509},"/types/actions/extend-trial/features.type","Extend Trial Features",{"enabled":1536,"durations":1539,"multiple":1546},{"type":1537,"severity":1133,"description":1538},"boolean","If true, the action is enabled and can be used by Churnkey, otherwise it is disabled.",{"type":1497,"severity":1133,"description":1540,"properties":1541},"Defines supported duration types for a trial extension. At least one duration type should be enabled.",{"period":1542,"date":1544},{"type":1537,"severity":1133,"description":1543},"If your system supports pauses for a period of time (e.g. 1 month) set this to true",{"type":1537,"severity":1133,"description":1545},"If your system supports pauses until a specific date (e.g. 2021-12-31) set this to true",{"type":1537,"description":1547,"severity":1133},"If your system supports multiple trial extension for one subscription, set this to true","content:types:actions:extend-trial:features.type.json","types/actions/extend-trial/features.type.json","types/actions/extend-trial/features.type",{"data":1552,"body":1553,"excerpt":-1,"toc":1559},{"title":314,"description":1538},{"type":318,"children":1554},[1555],{"type":321,"tag":322,"props":1556,"children":1557},{},[1558],{"type":326,"value":1538},{"title":314,"searchDepth":365,"depth":365,"links":1560},[],{"data":1562,"body":1563,"excerpt":-1,"toc":1569},{"title":314,"description":1540},{"type":318,"children":1564},[1565],{"type":321,"tag":322,"props":1566,"children":1567},{},[1568],{"type":326,"value":1540},{"title":314,"searchDepth":365,"depth":365,"links":1570},[],{"data":1572,"body":1573,"excerpt":-1,"toc":1579},{"title":314,"description":1547},{"type":318,"children":1574},[1575],{"type":321,"tag":322,"props":1576,"children":1577},{},[1578],{"type":326,"value":1547},{"title":314,"searchDepth":365,"depth":365,"links":1580},[],{"_path":1582,"_dir":1583,"_draft":313,"_partial":313,"_locale":314,"type":1584,"title":1585,"oneOf":1586,"_id":1613,"_type":1509,"_source":1480,"_file":1614,"_stem":1615,"_extension":1509},"/types/duration.type","types","union","Duration",[1587,1604],{"type":1497,"title":1588,"description":1589,"properties":1590},"Period","Duration for a period of time",{"type":1591,"amount":1596,"unit":1599},{"type":1592,"description":1593,"values":1594},"enum","Duration type",[1595],"'period'",{"type":1597,"severity":1133,"description":1598},"integer","Amount of `unit`. For example, if `unit` is `month`, then `amount` is the number of months.",{"type":1592,"severity":1133,"description":1600,"values":1601},"Duration unit.",[1602,1603],"'month'","'year'",{"type":1497,"title":1605,"description":1606,"properties":1607},"Date","Duration until a specific date",{"type":1608,"date":1611},{"type":1592,"description":1593,"values":1609},[1610],"'date'",{"type":1605,"severity":1133,"description":1612},"Duration until the specific date","content:types:duration.type.json","types/duration.type.json","types/duration.type",{"data":1617,"body":1618,"excerpt":-1,"toc":1624},{"title":314,"description":1506},{"type":318,"children":1619},[1620],{"type":321,"tag":322,"props":1621,"children":1622},{},[1623],{"type":326,"value":1506},{"title":314,"searchDepth":365,"depth":365,"links":1625},[],1775515594064]