[{"data":1,"prerenderedAt":1713},["ShallowReactive",2],{"navigation":3,"/integrations/actions/change-price":310,"/integrations/actions/change-price-surround":1547,"/types/actions/change-price/request.type":1556,"Y5X4kvR7xY":1583,"Uzbcrwb7K0":1605,"mvUbUXcxHo":1615,"PUPHtCXtCc":1625,"BKo7m2Lsun":1645,"Myz5aAbGsH":1655,"/types/actions/change-price/features.type":1665,"qydw4KL87Y":1683,"WNCt23YDgb":1693,"uqCmce4Aky":1703},[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":1540,"_id":1541,"_source":1542,"_file":1543,"_stem":1544,"_extension":1545,"sitemap":1546},"/integrations/actions/change-price","actions",false,"","Change Price - Action","Changes the price and/or product of a subscription.",{"type":318,"children":319,"toc":1532},"root",[320,335,355,362,445,451,463,940,946,956,965,986,991,1001,1037,1239,1248,1260,1268,1526],{"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},"Change Price 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},"Change Price",{"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,420],{"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},"Prices - Controller","/integrations/controllers/prices",[402,413],{"type":321,"tag":322,"props":403,"children":404},{},[405,406,412],{"type":326,"value":377},{"type":321,"tag":341,"props":407,"children":409},{"className":408},[],[410],{"type":326,"value":411},"Prices",{"type":326,"value":385},{"type":321,"tag":387,"props":414,"children":416},{"className":415},[390],[417],{"type":321,"tag":329,"props":418,"children":419},{"label":394,"color":395},[],{"type":321,"tag":368,"props":421,"children":424},{"title":422,"to":423},"Cancel - Action","/integrations/actions/cancel",[425,438],{"type":321,"tag":322,"props":426,"children":427},{},[428,430,436],{"type":326,"value":429},"Price change is a part of the Cancel Flow. You must implement the ",{"type":321,"tag":341,"props":431,"children":433},{"className":432},[],[434],{"type":326,"value":435},"Cancel",{"type":326,"value":437}," action first.",{"type":321,"tag":387,"props":439,"children":441},{"className":440},[390],[442],{"type":321,"tag":329,"props":443,"children":444},{"label":394,"color":395},[],{"type":321,"tag":356,"props":446,"children":448},{"id":447},"sdk",[449],{"type":326,"value":450},"SDK",{"type":321,"tag":322,"props":452,"children":453},{},[454,456,461],{"type":326,"value":455},"If you are using the SDK, you can implement the ",{"type":321,"tag":341,"props":457,"children":459},{"className":458},[],[460],{"type":326,"value":346},{"type":326,"value":462}," 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":464,"props":465,"children":466},"code-group",{},[467],{"type":321,"tag":468,"props":469,"children":474},"pre",{"className":470,"code":471,"filename":472,"language":473,"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'\nimport { Prices } from '../controllers/Prices'\n\nexport const ChangePrice = Integrator.ChangePrice.config({\n    Subscriptions: Subscriptions,\n    Prices: Prices,\n    features: {\n        enabled: true,\n        schedules: {\n            [Integrator.ChangePrice.Schedule.Immediate]: true,\n            [Integrator.ChangePrice.Schedule.EndOfPeriod]: true\n        },\n        prorate: true\n    },\n    async handle(ctx, options) {\n        const subscription = await this.subscriptions.retrieve({\n            customerId: options.customerId,\n            id: options.subscriptionId\n        })\n\n        const price = await this.prices.retrieve({\n            id: options.price\n        })\n\n        await ctx.db.changePrice({ subscription, price, at: options.scheduledAt, prorate: options.prorate })\n    }\n})\n","Typescript","typescript",[475],{"type":321,"tag":341,"props":476,"children":477},{"__ignoreMap":314},[478,507,528,550,560,601,610,619,628,647,656,673,687,696,709,718,758,800,809,818,827,835,873,882,890,898,922,931],{"type":321,"tag":479,"props":480,"children":483},"span",{"class":481,"line":482},"line",1,[484,490,496,501],{"type":321,"tag":479,"props":485,"children":487},{"style":486},"--shiki-light:#CF222E;--shiki-default:#CF222E;--shiki-dark:#FF7B72",[488],{"type":326,"value":489},"import",{"type":321,"tag":479,"props":491,"children":493},{"style":492},"--shiki-light:#1F2328;--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[494],{"type":326,"value":495}," { Integrator } ",{"type":321,"tag":479,"props":497,"children":498},{"style":486},[499],{"type":326,"value":500},"from",{"type":321,"tag":479,"props":502,"children":504},{"style":503},"--shiki-light:#0A3069;--shiki-default:#0A3069;--shiki-dark:#A5D6FF",[505],{"type":326,"value":506}," '@churnkey/sdk'\n",{"type":321,"tag":479,"props":508,"children":509},{"class":481,"line":365},[510,514,519,523],{"type":321,"tag":479,"props":511,"children":512},{"style":486},[513],{"type":326,"value":489},{"type":321,"tag":479,"props":515,"children":516},{"style":492},[517],{"type":326,"value":518}," { Subscriptions } ",{"type":321,"tag":479,"props":520,"children":521},{"style":486},[522],{"type":326,"value":500},{"type":321,"tag":479,"props":524,"children":525},{"style":503},[526],{"type":326,"value":527}," '../controllers/Subscriptions'\n",{"type":321,"tag":479,"props":529,"children":531},{"class":481,"line":530},3,[532,536,541,545],{"type":321,"tag":479,"props":533,"children":534},{"style":486},[535],{"type":326,"value":489},{"type":321,"tag":479,"props":537,"children":538},{"style":492},[539],{"type":326,"value":540}," { Prices } ",{"type":321,"tag":479,"props":542,"children":543},{"style":486},[544],{"type":326,"value":500},{"type":321,"tag":479,"props":546,"children":547},{"style":503},[548],{"type":326,"value":549}," '../controllers/Prices'\n",{"type":321,"tag":479,"props":551,"children":553},{"class":481,"line":552},4,[554],{"type":321,"tag":479,"props":555,"children":557},{"emptyLinePlaceholder":556},true,[558],{"type":326,"value":559},"\n",{"type":321,"tag":479,"props":561,"children":563},{"class":481,"line":562},5,[564,569,574,580,585,590,596],{"type":321,"tag":479,"props":565,"children":566},{"style":486},[567],{"type":326,"value":568},"export",{"type":321,"tag":479,"props":570,"children":571},{"style":486},[572],{"type":326,"value":573}," const",{"type":321,"tag":479,"props":575,"children":577},{"style":576},"--shiki-light:#0550AE;--shiki-default:#0550AE;--shiki-dark:#79C0FF",[578],{"type":326,"value":579}," ChangePrice",{"type":321,"tag":479,"props":581,"children":582},{"style":486},[583],{"type":326,"value":584}," =",{"type":321,"tag":479,"props":586,"children":587},{"style":492},[588],{"type":326,"value":589}," Integrator.ChangePrice.",{"type":321,"tag":479,"props":591,"children":593},{"style":592},"--shiki-light:#8250DF;--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[594],{"type":326,"value":595},"config",{"type":321,"tag":479,"props":597,"children":598},{"style":492},[599],{"type":326,"value":600},"({\n",{"type":321,"tag":479,"props":602,"children":604},{"class":481,"line":603},6,[605],{"type":321,"tag":479,"props":606,"children":607},{"style":492},[608],{"type":326,"value":609},"    Subscriptions: Subscriptions,\n",{"type":321,"tag":479,"props":611,"children":613},{"class":481,"line":612},7,[614],{"type":321,"tag":479,"props":615,"children":616},{"style":492},[617],{"type":326,"value":618},"    Prices: Prices,\n",{"type":321,"tag":479,"props":620,"children":622},{"class":481,"line":621},8,[623],{"type":321,"tag":479,"props":624,"children":625},{"style":492},[626],{"type":326,"value":627},"    features: {\n",{"type":321,"tag":479,"props":629,"children":631},{"class":481,"line":630},9,[632,637,642],{"type":321,"tag":479,"props":633,"children":634},{"style":492},[635],{"type":326,"value":636},"        enabled: ",{"type":321,"tag":479,"props":638,"children":639},{"style":576},[640],{"type":326,"value":641},"true",{"type":321,"tag":479,"props":643,"children":644},{"style":492},[645],{"type":326,"value":646},",\n",{"type":321,"tag":479,"props":648,"children":650},{"class":481,"line":649},10,[651],{"type":321,"tag":479,"props":652,"children":653},{"style":492},[654],{"type":326,"value":655},"        schedules: {\n",{"type":321,"tag":479,"props":657,"children":659},{"class":481,"line":658},11,[660,665,669],{"type":321,"tag":479,"props":661,"children":662},{"style":492},[663],{"type":326,"value":664},"            [Integrator.ChangePrice.Schedule.Immediate]: ",{"type":321,"tag":479,"props":666,"children":667},{"style":576},[668],{"type":326,"value":641},{"type":321,"tag":479,"props":670,"children":671},{"style":492},[672],{"type":326,"value":646},{"type":321,"tag":479,"props":674,"children":676},{"class":481,"line":675},12,[677,682],{"type":321,"tag":479,"props":678,"children":679},{"style":492},[680],{"type":326,"value":681},"            [Integrator.ChangePrice.Schedule.EndOfPeriod]: ",{"type":321,"tag":479,"props":683,"children":684},{"style":576},[685],{"type":326,"value":686},"true\n",{"type":321,"tag":479,"props":688,"children":690},{"class":481,"line":689},13,[691],{"type":321,"tag":479,"props":692,"children":693},{"style":492},[694],{"type":326,"value":695},"        },\n",{"type":321,"tag":479,"props":697,"children":699},{"class":481,"line":698},14,[700,705],{"type":321,"tag":479,"props":701,"children":702},{"style":492},[703],{"type":326,"value":704},"        prorate: ",{"type":321,"tag":479,"props":706,"children":707},{"style":576},[708],{"type":326,"value":686},{"type":321,"tag":479,"props":710,"children":712},{"class":481,"line":711},15,[713],{"type":321,"tag":479,"props":714,"children":715},{"style":492},[716],{"type":326,"value":717},"    },\n",{"type":321,"tag":479,"props":719,"children":721},{"class":481,"line":720},16,[722,727,732,737,743,748,753],{"type":321,"tag":479,"props":723,"children":724},{"style":486},[725],{"type":326,"value":726},"    async",{"type":321,"tag":479,"props":728,"children":729},{"style":592},[730],{"type":326,"value":731}," handle",{"type":321,"tag":479,"props":733,"children":734},{"style":492},[735],{"type":326,"value":736},"(",{"type":321,"tag":479,"props":738,"children":740},{"style":739},"--shiki-light:#953800;--shiki-default:#953800;--shiki-dark:#FFA657",[741],{"type":326,"value":742},"ctx",{"type":321,"tag":479,"props":744,"children":745},{"style":492},[746],{"type":326,"value":747},", ",{"type":321,"tag":479,"props":749,"children":750},{"style":739},[751],{"type":326,"value":752},"options",{"type":321,"tag":479,"props":754,"children":755},{"style":492},[756],{"type":326,"value":757},") {\n",{"type":321,"tag":479,"props":759,"children":761},{"class":481,"line":760},17,[762,767,772,776,781,786,791,796],{"type":321,"tag":479,"props":763,"children":764},{"style":486},[765],{"type":326,"value":766},"        const",{"type":321,"tag":479,"props":768,"children":769},{"style":576},[770],{"type":326,"value":771}," subscription",{"type":321,"tag":479,"props":773,"children":774},{"style":486},[775],{"type":326,"value":584},{"type":321,"tag":479,"props":777,"children":778},{"style":486},[779],{"type":326,"value":780}," await",{"type":321,"tag":479,"props":782,"children":783},{"style":576},[784],{"type":326,"value":785}," this",{"type":321,"tag":479,"props":787,"children":788},{"style":492},[789],{"type":326,"value":790},".subscriptions.",{"type":321,"tag":479,"props":792,"children":793},{"style":592},[794],{"type":326,"value":795},"retrieve",{"type":321,"tag":479,"props":797,"children":798},{"style":492},[799],{"type":326,"value":600},{"type":321,"tag":479,"props":801,"children":803},{"class":481,"line":802},18,[804],{"type":321,"tag":479,"props":805,"children":806},{"style":492},[807],{"type":326,"value":808},"            customerId: options.customerId,\n",{"type":321,"tag":479,"props":810,"children":812},{"class":481,"line":811},19,[813],{"type":321,"tag":479,"props":814,"children":815},{"style":492},[816],{"type":326,"value":817},"            id: options.subscriptionId\n",{"type":321,"tag":479,"props":819,"children":821},{"class":481,"line":820},20,[822],{"type":321,"tag":479,"props":823,"children":824},{"style":492},[825],{"type":326,"value":826},"        })\n",{"type":321,"tag":479,"props":828,"children":830},{"class":481,"line":829},21,[831],{"type":321,"tag":479,"props":832,"children":833},{"emptyLinePlaceholder":556},[834],{"type":326,"value":559},{"type":321,"tag":479,"props":836,"children":838},{"class":481,"line":837},22,[839,843,848,852,856,860,865,869],{"type":321,"tag":479,"props":840,"children":841},{"style":486},[842],{"type":326,"value":766},{"type":321,"tag":479,"props":844,"children":845},{"style":576},[846],{"type":326,"value":847}," price",{"type":321,"tag":479,"props":849,"children":850},{"style":486},[851],{"type":326,"value":584},{"type":321,"tag":479,"props":853,"children":854},{"style":486},[855],{"type":326,"value":780},{"type":321,"tag":479,"props":857,"children":858},{"style":576},[859],{"type":326,"value":785},{"type":321,"tag":479,"props":861,"children":862},{"style":492},[863],{"type":326,"value":864},".prices.",{"type":321,"tag":479,"props":866,"children":867},{"style":592},[868],{"type":326,"value":795},{"type":321,"tag":479,"props":870,"children":871},{"style":492},[872],{"type":326,"value":600},{"type":321,"tag":479,"props":874,"children":876},{"class":481,"line":875},23,[877],{"type":321,"tag":479,"props":878,"children":879},{"style":492},[880],{"type":326,"value":881},"            id: options.price\n",{"type":321,"tag":479,"props":883,"children":885},{"class":481,"line":884},24,[886],{"type":321,"tag":479,"props":887,"children":888},{"style":492},[889],{"type":326,"value":826},{"type":321,"tag":479,"props":891,"children":893},{"class":481,"line":892},25,[894],{"type":321,"tag":479,"props":895,"children":896},{"emptyLinePlaceholder":556},[897],{"type":326,"value":559},{"type":321,"tag":479,"props":899,"children":901},{"class":481,"line":900},26,[902,907,912,917],{"type":321,"tag":479,"props":903,"children":904},{"style":486},[905],{"type":326,"value":906},"        await",{"type":321,"tag":479,"props":908,"children":909},{"style":492},[910],{"type":326,"value":911}," ctx.db.",{"type":321,"tag":479,"props":913,"children":914},{"style":592},[915],{"type":326,"value":916},"changePrice",{"type":321,"tag":479,"props":918,"children":919},{"style":492},[920],{"type":326,"value":921},"({ subscription, price, at: options.scheduledAt, prorate: options.prorate })\n",{"type":321,"tag":479,"props":923,"children":925},{"class":481,"line":924},27,[926],{"type":321,"tag":479,"props":927,"children":928},{"style":492},[929],{"type":326,"value":930},"    }\n",{"type":321,"tag":479,"props":932,"children":934},{"class":481,"line":933},28,[935],{"type":321,"tag":479,"props":936,"children":937},{"style":492},[938],{"type":326,"value":939},"})\n",{"type":321,"tag":356,"props":941,"children":943},{"id":942},"endpoints",[944],{"type":326,"value":945},"Endpoints",{"type":321,"tag":947,"props":948,"children":950},"h3",{"id":949},"handle",[951,953],{"type":326,"value":952},"Handle ",{"type":321,"tag":329,"props":954,"children":955},{"label":394,"color":395},[],{"type":321,"tag":322,"props":957,"children":958},{},[959],{"type":321,"tag":341,"props":960,"children":962},{"className":961},[],[963],{"type":326,"value":964},"POST /churnkey/actions/subscription/apply-coupon",{"type":321,"tag":322,"props":966,"children":967},{},[968,970,976,978,984],{"type":326,"value":969},"This endpoint changes a price of subscription. You should find the subscription by ",{"type":321,"tag":341,"props":971,"children":973},{"className":972},[],[974],{"type":326,"value":975},"customerId",{"type":326,"value":977}," and ",{"type":321,"tag":341,"props":979,"children":981},{"className":980},[],[982],{"type":326,"value":983},"subscriptionId",{"type":326,"value":985}," and set a new price to it.",{"type":321,"tag":322,"props":987,"children":988},{},[989],{"type":326,"value":990},"Options for this action provided in the request body.",{"type":321,"tag":992,"props":993,"children":995},"collapsible",{"name":994},"request body",[996],{"type":321,"tag":997,"props":998,"children":1000},"field-schema",{"schema":999},"/types/actions/change-price/request.type.json",[],{"type":321,"tag":992,"props":1002,"children":1004},{"name":1003},"response",[1005],{"type":321,"tag":1006,"props":1007,"children":1008},"tabs",{},[1009,1019],{"type":321,"tag":1010,"props":1011,"children":1013},"div",{"label":1012},"200",[1014],{"type":321,"tag":322,"props":1015,"children":1016},{},[1017],{"type":326,"value":1018},"Must return empty response.",{"type":321,"tag":1010,"props":1020,"children":1022},{"label":1021},"Error",[1023],{"type":321,"tag":322,"props":1024,"children":1025},{},[1026,1028,1035],{"type":326,"value":1027},"See ",{"type":321,"tag":1029,"props":1030,"children":1032},"a",{"href":1031},"/integrations/general#error-responses",[1033],{"type":326,"value":1034},"Error Responses",{"type":326,"value":1036},".",{"type":321,"tag":992,"props":1038,"children":1040},{"name":1039},"code example",[1041],{"type":321,"tag":464,"props":1042,"children":1043},{},[1044],{"type":321,"tag":468,"props":1045,"children":1048},{"className":470,"code":1046,"filename":1047,"language":473,"meta":314,"style":314},"  app.post('/churnkey/actions/subscription/change-price', async (req, res) => {\n      const subscription = await db.findSubscription(req.body.customerId, req.body.subscriptionId)\n      const price = await db.findPrice(req.body.id)\n\n      await db.changePrice({subscription, price, at: req.body.scheduledAt, prorate: req.body.prorate})\n      res.send()\n  })\n","Typescript Express",[1049],{"type":321,"tag":341,"props":1050,"children":1051},{"__ignoreMap":314},[1052,1117,1152,1185,1192,1213,1231],{"type":321,"tag":479,"props":1053,"children":1054},{"class":481,"line":482},[1055,1060,1065,1069,1074,1078,1083,1088,1093,1097,1102,1107,1112],{"type":321,"tag":479,"props":1056,"children":1057},{"style":492},[1058],{"type":326,"value":1059},"  app.",{"type":321,"tag":479,"props":1061,"children":1062},{"style":592},[1063],{"type":326,"value":1064},"post",{"type":321,"tag":479,"props":1066,"children":1067},{"style":492},[1068],{"type":326,"value":736},{"type":321,"tag":479,"props":1070,"children":1071},{"style":503},[1072],{"type":326,"value":1073},"'/churnkey/actions/subscription/change-price'",{"type":321,"tag":479,"props":1075,"children":1076},{"style":492},[1077],{"type":326,"value":747},{"type":321,"tag":479,"props":1079,"children":1080},{"style":486},[1081],{"type":326,"value":1082},"async",{"type":321,"tag":479,"props":1084,"children":1085},{"style":492},[1086],{"type":326,"value":1087}," (",{"type":321,"tag":479,"props":1089,"children":1090},{"style":739},[1091],{"type":326,"value":1092},"req",{"type":321,"tag":479,"props":1094,"children":1095},{"style":492},[1096],{"type":326,"value":747},{"type":321,"tag":479,"props":1098,"children":1099},{"style":739},[1100],{"type":326,"value":1101},"res",{"type":321,"tag":479,"props":1103,"children":1104},{"style":492},[1105],{"type":326,"value":1106},") ",{"type":321,"tag":479,"props":1108,"children":1109},{"style":486},[1110],{"type":326,"value":1111},"=>",{"type":321,"tag":479,"props":1113,"children":1114},{"style":492},[1115],{"type":326,"value":1116}," {\n",{"type":321,"tag":479,"props":1118,"children":1119},{"class":481,"line":365},[1120,1125,1129,1133,1137,1142,1147],{"type":321,"tag":479,"props":1121,"children":1122},{"style":486},[1123],{"type":326,"value":1124},"      const",{"type":321,"tag":479,"props":1126,"children":1127},{"style":576},[1128],{"type":326,"value":771},{"type":321,"tag":479,"props":1130,"children":1131},{"style":486},[1132],{"type":326,"value":584},{"type":321,"tag":479,"props":1134,"children":1135},{"style":486},[1136],{"type":326,"value":780},{"type":321,"tag":479,"props":1138,"children":1139},{"style":492},[1140],{"type":326,"value":1141}," db.",{"type":321,"tag":479,"props":1143,"children":1144},{"style":592},[1145],{"type":326,"value":1146},"findSubscription",{"type":321,"tag":479,"props":1148,"children":1149},{"style":492},[1150],{"type":326,"value":1151},"(req.body.customerId, req.body.subscriptionId)\n",{"type":321,"tag":479,"props":1153,"children":1154},{"class":481,"line":530},[1155,1159,1163,1167,1171,1175,1180],{"type":321,"tag":479,"props":1156,"children":1157},{"style":486},[1158],{"type":326,"value":1124},{"type":321,"tag":479,"props":1160,"children":1161},{"style":576},[1162],{"type":326,"value":847},{"type":321,"tag":479,"props":1164,"children":1165},{"style":486},[1166],{"type":326,"value":584},{"type":321,"tag":479,"props":1168,"children":1169},{"style":486},[1170],{"type":326,"value":780},{"type":321,"tag":479,"props":1172,"children":1173},{"style":492},[1174],{"type":326,"value":1141},{"type":321,"tag":479,"props":1176,"children":1177},{"style":592},[1178],{"type":326,"value":1179},"findPrice",{"type":321,"tag":479,"props":1181,"children":1182},{"style":492},[1183],{"type":326,"value":1184},"(req.body.id)\n",{"type":321,"tag":479,"props":1186,"children":1187},{"class":481,"line":552},[1188],{"type":321,"tag":479,"props":1189,"children":1190},{"emptyLinePlaceholder":556},[1191],{"type":326,"value":559},{"type":321,"tag":479,"props":1193,"children":1194},{"class":481,"line":562},[1195,1200,1204,1208],{"type":321,"tag":479,"props":1196,"children":1197},{"style":486},[1198],{"type":326,"value":1199},"      await",{"type":321,"tag":479,"props":1201,"children":1202},{"style":492},[1203],{"type":326,"value":1141},{"type":321,"tag":479,"props":1205,"children":1206},{"style":592},[1207],{"type":326,"value":916},{"type":321,"tag":479,"props":1209,"children":1210},{"style":492},[1211],{"type":326,"value":1212},"({subscription, price, at: req.body.scheduledAt, prorate: req.body.prorate})\n",{"type":321,"tag":479,"props":1214,"children":1215},{"class":481,"line":603},[1216,1221,1226],{"type":321,"tag":479,"props":1217,"children":1218},{"style":492},[1219],{"type":326,"value":1220},"      res.",{"type":321,"tag":479,"props":1222,"children":1223},{"style":592},[1224],{"type":326,"value":1225},"send",{"type":321,"tag":479,"props":1227,"children":1228},{"style":492},[1229],{"type":326,"value":1230},"()\n",{"type":321,"tag":479,"props":1232,"children":1233},{"class":481,"line":612},[1234],{"type":321,"tag":479,"props":1235,"children":1236},{"style":492},[1237],{"type":326,"value":1238},"  })\n",{"type":321,"tag":356,"props":1240,"children":1241},{"id":354},[1242,1244],{"type":326,"value":1243},"Features ",{"type":321,"tag":329,"props":1245,"children":1247},{"label":1246,"color":395},"required",[],{"type":321,"tag":322,"props":1249,"children":1250},{},[1251,1253,1258],{"type":326,"value":1252},"Features define which behavior is supported for the ",{"type":321,"tag":341,"props":1254,"children":1256},{"className":1255},[],[1257],{"type":326,"value":346},{"type":326,"value":1259}," action. Depending on the features you enabled, requests body will have different options.",{"type":321,"tag":992,"props":1261,"children":1263},{"name":1262},"schema",[1264],{"type":321,"tag":997,"props":1265,"children":1267},{"schema":1266},"/types/actions/change-price/features.type.json",[],{"type":321,"tag":992,"props":1269,"children":1270},{"name":1039},[1271],{"type":321,"tag":464,"props":1272,"children":1273},{},[1274],{"type":321,"tag":468,"props":1275,"children":1277},{"className":470,"code":1276,"filename":472,"language":473,"meta":314,"style":314},"export interface Features {\n  enabled: boolean\n  schedules: {\n      immediate: boolean,\n      'end-of-period': boolean\n  },\n  prorate: boolean\n}\n\nexport const features: Features = {\n  enabled: true,\n  schedules: {\n      immediate: true,\n      'end-of-period': true\n  },\n  prorate: true\n}\n",[1278],{"type":321,"tag":341,"props":1279,"children":1280},{"__ignoreMap":314},[1281,1302,1320,1336,1357,1373,1381,1397,1405,1412,1444,1460,1468,1484,1500,1507,1519],{"type":321,"tag":479,"props":1282,"children":1283},{"class":481,"line":482},[1284,1288,1293,1298],{"type":321,"tag":479,"props":1285,"children":1286},{"style":486},[1287],{"type":326,"value":568},{"type":321,"tag":479,"props":1289,"children":1290},{"style":486},[1291],{"type":326,"value":1292}," interface",{"type":321,"tag":479,"props":1294,"children":1295},{"style":739},[1296],{"type":326,"value":1297}," Features",{"type":321,"tag":479,"props":1299,"children":1300},{"style":492},[1301],{"type":326,"value":1116},{"type":321,"tag":479,"props":1303,"children":1304},{"class":481,"line":365},[1305,1310,1315],{"type":321,"tag":479,"props":1306,"children":1307},{"style":739},[1308],{"type":326,"value":1309},"  enabled",{"type":321,"tag":479,"props":1311,"children":1312},{"style":486},[1313],{"type":326,"value":1314},":",{"type":321,"tag":479,"props":1316,"children":1317},{"style":576},[1318],{"type":326,"value":1319}," boolean\n",{"type":321,"tag":479,"props":1321,"children":1322},{"class":481,"line":530},[1323,1328,1332],{"type":321,"tag":479,"props":1324,"children":1325},{"style":739},[1326],{"type":326,"value":1327},"  schedules",{"type":321,"tag":479,"props":1329,"children":1330},{"style":486},[1331],{"type":326,"value":1314},{"type":321,"tag":479,"props":1333,"children":1334},{"style":492},[1335],{"type":326,"value":1116},{"type":321,"tag":479,"props":1337,"children":1338},{"class":481,"line":552},[1339,1344,1348,1353],{"type":321,"tag":479,"props":1340,"children":1341},{"style":739},[1342],{"type":326,"value":1343},"      immediate",{"type":321,"tag":479,"props":1345,"children":1346},{"style":486},[1347],{"type":326,"value":1314},{"type":321,"tag":479,"props":1349,"children":1350},{"style":576},[1351],{"type":326,"value":1352}," boolean",{"type":321,"tag":479,"props":1354,"children":1355},{"style":492},[1356],{"type":326,"value":646},{"type":321,"tag":479,"props":1358,"children":1359},{"class":481,"line":562},[1360,1365,1369],{"type":321,"tag":479,"props":1361,"children":1362},{"style":503},[1363],{"type":326,"value":1364},"      'end-of-period'",{"type":321,"tag":479,"props":1366,"children":1367},{"style":486},[1368],{"type":326,"value":1314},{"type":321,"tag":479,"props":1370,"children":1371},{"style":576},[1372],{"type":326,"value":1319},{"type":321,"tag":479,"props":1374,"children":1375},{"class":481,"line":603},[1376],{"type":321,"tag":479,"props":1377,"children":1378},{"style":492},[1379],{"type":326,"value":1380},"  },\n",{"type":321,"tag":479,"props":1382,"children":1383},{"class":481,"line":612},[1384,1389,1393],{"type":321,"tag":479,"props":1385,"children":1386},{"style":739},[1387],{"type":326,"value":1388},"  prorate",{"type":321,"tag":479,"props":1390,"children":1391},{"style":486},[1392],{"type":326,"value":1314},{"type":321,"tag":479,"props":1394,"children":1395},{"style":576},[1396],{"type":326,"value":1319},{"type":321,"tag":479,"props":1398,"children":1399},{"class":481,"line":621},[1400],{"type":321,"tag":479,"props":1401,"children":1402},{"style":492},[1403],{"type":326,"value":1404},"}\n",{"type":321,"tag":479,"props":1406,"children":1407},{"class":481,"line":630},[1408],{"type":321,"tag":479,"props":1409,"children":1410},{"emptyLinePlaceholder":556},[1411],{"type":326,"value":559},{"type":321,"tag":479,"props":1413,"children":1414},{"class":481,"line":649},[1415,1419,1423,1428,1432,1436,1440],{"type":321,"tag":479,"props":1416,"children":1417},{"style":486},[1418],{"type":326,"value":568},{"type":321,"tag":479,"props":1420,"children":1421},{"style":486},[1422],{"type":326,"value":573},{"type":321,"tag":479,"props":1424,"children":1425},{"style":576},[1426],{"type":326,"value":1427}," features",{"type":321,"tag":479,"props":1429,"children":1430},{"style":486},[1431],{"type":326,"value":1314},{"type":321,"tag":479,"props":1433,"children":1434},{"style":739},[1435],{"type":326,"value":1297},{"type":321,"tag":479,"props":1437,"children":1438},{"style":486},[1439],{"type":326,"value":584},{"type":321,"tag":479,"props":1441,"children":1442},{"style":492},[1443],{"type":326,"value":1116},{"type":321,"tag":479,"props":1445,"children":1446},{"class":481,"line":658},[1447,1452,1456],{"type":321,"tag":479,"props":1448,"children":1449},{"style":492},[1450],{"type":326,"value":1451},"  enabled: ",{"type":321,"tag":479,"props":1453,"children":1454},{"style":576},[1455],{"type":326,"value":641},{"type":321,"tag":479,"props":1457,"children":1458},{"style":492},[1459],{"type":326,"value":646},{"type":321,"tag":479,"props":1461,"children":1462},{"class":481,"line":675},[1463],{"type":321,"tag":479,"props":1464,"children":1465},{"style":492},[1466],{"type":326,"value":1467},"  schedules: {\n",{"type":321,"tag":479,"props":1469,"children":1470},{"class":481,"line":689},[1471,1476,1480],{"type":321,"tag":479,"props":1472,"children":1473},{"style":492},[1474],{"type":326,"value":1475},"      immediate: ",{"type":321,"tag":479,"props":1477,"children":1478},{"style":576},[1479],{"type":326,"value":641},{"type":321,"tag":479,"props":1481,"children":1482},{"style":492},[1483],{"type":326,"value":646},{"type":321,"tag":479,"props":1485,"children":1486},{"class":481,"line":698},[1487,1491,1496],{"type":321,"tag":479,"props":1488,"children":1489},{"style":503},[1490],{"type":326,"value":1364},{"type":321,"tag":479,"props":1492,"children":1493},{"style":492},[1494],{"type":326,"value":1495},": ",{"type":321,"tag":479,"props":1497,"children":1498},{"style":576},[1499],{"type":326,"value":686},{"type":321,"tag":479,"props":1501,"children":1502},{"class":481,"line":711},[1503],{"type":321,"tag":479,"props":1504,"children":1505},{"style":492},[1506],{"type":326,"value":1380},{"type":321,"tag":479,"props":1508,"children":1509},{"class":481,"line":720},[1510,1515],{"type":321,"tag":479,"props":1511,"children":1512},{"style":492},[1513],{"type":326,"value":1514},"  prorate: ",{"type":321,"tag":479,"props":1516,"children":1517},{"style":576},[1518],{"type":326,"value":686},{"type":321,"tag":479,"props":1520,"children":1521},{"class":481,"line":760},[1522],{"type":321,"tag":479,"props":1523,"children":1524},{"style":492},[1525],{"type":326,"value":1404},{"type":321,"tag":1527,"props":1528,"children":1529},"style",{},[1530],{"type":326,"value":1531},"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":530,"depth":530,"links":1533},[1534,1535,1536,1539],{"id":358,"depth":365,"text":361},{"id":447,"depth":365,"text":450},{"id":942,"depth":365,"text":945,"children":1537},[1538],{"id":949,"depth":530,"text":952},{"id":354,"depth":365,"text":1243},"markdown","content:99.integrations:4.actions:5.change-price.md","content","99.integrations/4.actions/5.change-price.md","99.integrations/4.actions/5.change-price","md",{"loc":311},[1548,1552],{"_path":1549,"title":1550,"description":1551},"/integrations/actions/apply-coupon","Apply Coupon","Apply a coupon to a subscription.",{"_path":1553,"title":1554,"description":1555},"/integrations/publish","Publish your Integration","Learn how to make your integration available to Churnkey.",{"_path":1557,"_dir":1558,"_draft":313,"_partial":313,"_locale":314,"type":1559,"title":1560,"properties":1561,"_id":1579,"_type":1580,"_source":1542,"_file":1581,"_stem":1582,"_extension":1580},"/types/actions/change-price/request.type","change-price","object","Change Price Request",{"customerId":1562,"subscriptionId":1565,"id":1567,"scheduledAt":1569,"prorate":1575},{"type":1563,"severity":1246,"description":1564},"string","Unique identifier of the customer.",{"type":1563,"severity":1246,"description":1566},"Unique identifier of the subscription.",{"type":1563,"severity":1246,"description":1568},"ID of the `Price` to change to.",{"type":1570,"severity":1246,"description":1571,"values":1572},"enum","Defines when the price change should occur",[1573,1574],"'immediate'","'end-of-period'",{"type":1576,"severity":1577,"description":1578},"boolean","optional","Indicates if price change should be prorated.","content:types:actions:change-price:request.type.json","json","types/actions/change-price/request.type.json","types/actions/change-price/request.type",{"data":1584,"body":1586,"excerpt":-1,"toc":1603},{"title":314,"description":1585},"'immediate' 'end-of-period'",{"type":318,"children":1587},[1588],{"type":321,"tag":322,"props":1589,"children":1590},{},[1591,1596,1598],{"type":321,"tag":341,"props":1592,"children":1594},{"className":1593},[],[1595],{"type":326,"value":1573},{"type":326,"value":1597}," ",{"type":321,"tag":341,"props":1599,"children":1601},{"className":1600},[],[1602],{"type":326,"value":1574},{"title":314,"searchDepth":365,"depth":365,"links":1604},[],{"data":1606,"body":1607,"toc":1613},{"title":314,"description":1564},{"type":318,"children":1608},[1609],{"type":321,"tag":322,"props":1610,"children":1611},{},[1612],{"type":326,"value":1564},{"title":314,"searchDepth":365,"depth":365,"links":1614},[],{"data":1616,"body":1617,"toc":1623},{"title":314,"description":1566},{"type":318,"children":1618},[1619],{"type":321,"tag":322,"props":1620,"children":1621},{},[1622],{"type":326,"value":1566},{"title":314,"searchDepth":365,"depth":365,"links":1624},[],{"data":1626,"body":1628,"excerpt":-1,"toc":1643},{"title":314,"description":1627},"ID of the Price to change to.",{"type":318,"children":1629},[1630],{"type":321,"tag":322,"props":1631,"children":1632},{},[1633,1635,1641],{"type":326,"value":1634},"ID of the ",{"type":321,"tag":341,"props":1636,"children":1638},{"className":1637},[],[1639],{"type":326,"value":1640},"Price",{"type":326,"value":1642}," to change to.",{"title":314,"searchDepth":365,"depth":365,"links":1644},[],{"data":1646,"body":1647,"excerpt":-1,"toc":1653},{"title":314,"description":1571},{"type":318,"children":1648},[1649],{"type":321,"tag":322,"props":1650,"children":1651},{},[1652],{"type":326,"value":1571},{"title":314,"searchDepth":365,"depth":365,"links":1654},[],{"data":1656,"body":1657,"excerpt":-1,"toc":1663},{"title":314,"description":1578},{"type":318,"children":1658},[1659],{"type":321,"tag":322,"props":1660,"children":1661},{},[1662],{"type":326,"value":1578},{"title":314,"searchDepth":365,"depth":365,"links":1664},[],{"_path":1666,"_dir":1558,"_draft":313,"_partial":313,"_locale":314,"type":1559,"title":1667,"properties":1668,"_id":1680,"_type":1580,"_source":1542,"_file":1681,"_stem":1682,"_extension":1580},"/types/actions/change-price/features.type","Change Price Features",{"enabled":1669,"schedules":1671,"prorate":1678},{"type":1576,"severity":1246,"description":1670},"If true, the action is enabled and can be used by Churnkey, otherwise it is disabled.",{"type":1559,"severity":1246,"description":1672,"properties":1673},"Defines supported duration types. At least one duration type should be enabled.",{"immediate":1674,"end-of-period":1676},{"type":1576,"description":1675,"severity":1246},"If your system supports immediate price changes set this to true",{"type":1576,"description":1677,"severity":1246},"If your system supports prices changes at the end of the subscription current period set this to true",{"type":1576,"description":1679,"severity":1246},"If your system supports proration, set this to true","content:types:actions:change-price:features.type.json","types/actions/change-price/features.type.json","types/actions/change-price/features.type",{"data":1684,"body":1685,"excerpt":-1,"toc":1691},{"title":314,"description":1670},{"type":318,"children":1686},[1687],{"type":321,"tag":322,"props":1688,"children":1689},{},[1690],{"type":326,"value":1670},{"title":314,"searchDepth":365,"depth":365,"links":1692},[],{"data":1694,"body":1695,"excerpt":-1,"toc":1701},{"title":314,"description":1672},{"type":318,"children":1696},[1697],{"type":321,"tag":322,"props":1698,"children":1699},{},[1700],{"type":326,"value":1672},{"title":314,"searchDepth":365,"depth":365,"links":1702},[],{"data":1704,"body":1705,"excerpt":-1,"toc":1711},{"title":314,"description":1679},{"type":318,"children":1706},[1707],{"type":321,"tag":322,"props":1708,"children":1709},{},[1710],{"type":326,"value":1679},{"title":314,"searchDepth":365,"depth":365,"links":1712},[],1775515594112]