Full replacement of a plan’s version. On a draft plan, updates in-place.
On a published plan, creates a new version. Set status to DRAFT to
stage as a new draft without publishing.
Entitlements to attach to this plan's version. Replacing a published plan creates a
new version, and entitlements belong to a version, so passing them here keeps them
attached to whichever version the call produces.
Optional plan-level period minimum commitment. Component scope must reference names
that exist in components (matched by name, not by ID, since component IDs are
assigned by the server). Use MinimumCommitmentInput so the client can express
scope by component name.
The plan's amounts are quoted tax-included ("9.99 incl. VAT"): tax is carved out of
them at invoice time instead of being added on top, so the customer pays the quoted
price whatever rate applies. A customer who bears no tax (reverse charge, exempt,
export) still pays it in full. Defaults to false.
The plan's amounts are quoted tax-included ("9.99 incl. VAT"): tax is carved out of
them at invoice time instead of being added on top, so the customer pays the quoted
price whatever rate applies. A customer who bears no tax (reverse charge, exempt,
export) still pays it in full. Defaults to false.
Plan-level minimum commitment (period true-up floor). When set, every billing-period
invoice for this plan is guaranteed to be at least minimum_commitment.amount after
discounts, with a "Minimum commitment" line filling any shortfall.
{"docsConfig":{"theme":"almond","$schema":"https://mintlify.com/docs.json","name":"Meteroid Documentation","colors":{"primary":"#000000","light":"#ffffff","dark":"#000000"},"logo":{"light":"https://mintcdn.com/meteroid/DXZxL5GMStRjxkBm/logo/light.svg?fit=max\u0026auto=format\u0026n=DXZxL5GMStRjxkBm\u0026q=85\u0026s=1fff7e555af3dab03da62c204c63d3c8","dark":"https://mintcdn.com/meteroid/DXZxL5GMStRjxkBm/logo/dark.svg?fit=max\u0026auto=format\u0026n=DXZxL5GMStRjxkBm\u0026q=85\u0026s=15974c7197780816945c5c8ba3a2c9c2","href":"https://meteroid.com"},"favicon":"https://mintcdn.com/meteroid/DXZxL5GMStRjxkBm/favicon.svg?fit=max\u0026auto=format\u0026n=DXZxL5GMStRjxkBm\u0026q=85\u0026s=a4e1cd748df0f10df9a912ee2472503d","appearance":{"default":"dark"},"background":{"color":{"light":"#f7f7f7","dark":"#111111"}},"navbar":{"links":[{"href":"https://meteroid.com/talk-to-us","label":"Talk to us"}],"primary":{"type":"button","label":"Get started","href":"https://app.meteroid.com/registration"}},"footer":{"socials":{"github":"https://github.com/meteroid-oss/meteroid","linkedin":"https://www.linkedin.com/company/meteroid","discord":"https://go.meteroid.com/discord"}},"fonts":{"heading":{"family":"Inter","weight":600},"body":{"family":"Inter","weight":400}},"icons":{"library":"tabler"},"integrations":{"telemetry":{"enabled":false}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","grok","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Blog","icon":"book","href":"https://meteroid.com/blog"},{"anchor":"Talk to us","icon":"message","href":"https://meteroid.com/talk-to-us"},{"anchor":"GitHub","icon":"github","href":"https://go.meteroid.com/github"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"meteroid","hasAudioNarration":false,"actualSubdomain":"meteroid","customDomains":["docs.meteroid.com"],"gitSource":{"type":"github","owner":"meteroid-oss","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ad87a7aace1a45c00d9453f","collectionId":"a2f92c60-98ad-4e0b-9ccc-fb5a16d91289","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ad87a7aace1a45c00d9453f"},"entitlements":{},"buildId":"6ad87a7aace1a45c00d9453f","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"API Reference","count":158},{"language":"default","tag":"Docs","count":51},{"language":"default","tag":"webhooks","count":38},{"language":"default","tag":"Plans","count":13},{"language":"default","tag":"Subscriptions","count":12},{"language":"default","tag":"Settings","count":10},{"language":"default","tag":"Customers","count":9},{"language":"default","tag":"Webhook Endpoints","count":9},{"language":"default","tag":"Integrations","count":8},{"language":"default","tag":"Add-ons","count":8}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".dark .paragraph-small,.dark .text-sm{color:#9e9e9e}.light .paragraph-small,.light .text-sm{color:#3e3e3e}.dark .sidebar-group a{color:rgba(247,247,248,.6)!important}.sidebar-group-header{font-size:13px!important;font-weight:600!important;letter-spacing:-.01em!important;text-transform:none!important}.sidebar-group a{font-size:13px!important;font-weight:400!important;line-height:160%!important;text-decoration:none!important;transition:background-color .15s ease,color .15s ease!important}.sidebar-group a.bg-primary\\/10{border-radius:6px!important}.sidebar-group a.bg-primary\\/10,.sidebar-group a[aria-current=page]{background:rgba(255,255,255,.06)!important}.light .sidebar-group a.bg-primary\\/10,.sidebar-group a[aria-current=page]{background:rgb(0 0 0/6%)!important;border-radius:6px!important}.dark\\:hover\\:text-gray-300:hover:is(.dark *){border-radius:6px!important}.dark #topbar-cta-button a{background-color:#fff}.dark #topbar-cta-button span{color:#0e0e0e}.dark #navbar,.dark .almond-layout,.dark .almond-layout>div,.dark .almond-layout>div>div{background-color:#111!important}#search-bar-entry{border-radius:100px!important;padding-right:16px}.home-content-wrapper{max-width:1024px;margin:0 auto;padding-top:6rem;padding-left:2rem;padding-right:2rem}.home-content-wrapper H1{font-size:36px;letter-spacing:-1px;font-weight:500}.dark .home-content-wrapper H1,.dark .home-content-wrapper H2{color:#f3f3f3}.light .home-content-wrapper H1,.light .home-content-wrapper H2{color:#1e1e1e}.home-content-wrapper H2{font-size:20px;font-weight:500;margin-top:36px;margin-bottom:16px}.home-content-wrapper a H2{font-size:16px;font-weight:500;margin-top:56px;margin-bottom:8px}.home-content-wrapper a span{font-size:14px!important;font-weight:400}.home-p-description{margin-bottom:16px;margin-top:8px;line-height:160%!important}.home-content-wrapper a{border-radius:6px;font-size:14px}.dark .home-content-wrapper a{background-color:#1d1d1d!important}#navbar [role=tablist],#navbar ul{justify-content:center!important;flex:1;margin:0 auto!important}.dark .bg-primary\\/10{background-color:#111}.dark\\:bg-\\[\\#09090B\\]:is(.dark *){--tw-bg-opacity:1;background-color:#111}.dark\\:bg-white\\/5:is(.dark *){background-color:rgb(255 255 255/8%)}"}],"page":{"pagePath":"api-reference/plans/replace-a-plan","slug":"/api-reference/plans/replace-a-plan","pageMetadata":{"title":"Replace a plan","description":"Full replacement of a plan's version. On a draft plan, updates in-place.\nOn a published plan, creates a new version. Set `status` to `DRAFT` to\nstage as a new draft without publishing.","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json put /api/v1/plans/{plan_id}","href":"/api-reference/plans/replace-a-plan","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Full replacement of a plan’s version. On a draft plan, updates in-place.\\nOn a published plan, creates a new version. Set \", _jsx(_components.code, {\n children: \"status\"\n }), \" to \", _jsx(_components.code, {\n children: \"DRAFT\"\n }), \" to\\nstage as a new draft without publishing.\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Replace a plan","description":"Full replacement of a plan's version. On a draft plan, updates in-place.\nOn a published plan, creates a new version. Set `status` to `DRAFT` to\nstage as a new draft without publishing.","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json put /api/v1/plans/{plan_id}","href":"/api-reference/plans/replace-a-plan","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Plans"],"summary":"Replace a plan","description":"Full replacement of a plan's version. On a draft plan, updates in-place.\nOn a published plan, creates a new version. Set `status` to `DRAFT` to\nstage as a new draft without publishing.","operationId":"replace_plan","parameters":["66ffe04d-bd21-428e-a50f-f12fcdff8c27"],"requestBody":"7e022d51-2225-4bbe-8049-e117750fb04b","responses":{"200":"7bdbfa27-c2e4-4377-acea-638bda43d2a8","400":"86258384-a2bf-41ce-adaa-2105fb60f34e","401":"a3fcc6a6-2a75-464c-be6a-e08e60dc1ff5","404":"4f9410ee-58ca-49eb-946d-80e94006d9c1","429":"881167a9-db67-435f-87bd-976bdfa326a6"},"security":["608ee89c-b1cf-44b9-8e41-f0e0552439dc"],"method":"put","type":"path","servers":[],"path":"/api/v1/plans/{plan_id}","baseUrlOptions":[],"title":"Replace a plan","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"66ffe04d-bd21-428e-a50f-f12fcdff8c27":{"name":"plan_id","in":"path","description":"Plan ID","required":true,"schema":{"type":"string","format":"MeteroidId","examples":["plan_7n42DGM5Tflk9n8mt7Fhc7"],"isRequired":true,"description":"Plan ID","uniqueKey":"","typeLabel":"string\u003cMeteroidId>"}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name","currency","components"],"properties":{"components":{"type":"array","items":{"type":"object","required":["name","fee"],"properties":{"fee":{"oneOf":[{"type":"object","description":"Recurring rate fee (e.g., monthly subscription)","required":["rates"],"properties":{"rates":{"type":"array","items":{"type":"object","required":["term","price"],"properties":{"price":{"type":"string","format":"decimal","isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.0.rates.items.[INDEX].price","typeLabel":"string\u003cdecimal>"},"term":{"type":"string","enum":["MONTHLY","QUARTERLY","SEMIANNUAL","ANNUAL"],"isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.0.rates.items.[INDEX].term","typeLabel":"enum\u003cstring>"}},"uniqueKey":"components.items.[INDEX].fee.oneOf.0.rates.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.0.rates","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.0","typeLabel":"object"},{"type":"object","description":"Slot-based fee (e.g., per-seat pricing)","required":["rates","slot_unit_name"],"properties":{"rates":{"type":"array","items":{"type":"object","required":["term","price"],"properties":{"price":{"type":"string","format":"decimal","isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.1.rates.items.[INDEX].price","typeLabel":"string\u003cdecimal>"},"term":{"type":"string","enum":["MONTHLY","QUARTERLY","SEMIANNUAL","ANNUAL"],"isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.1.rates.items.[INDEX].term","typeLabel":"enum\u003cstring>"}},"uniqueKey":"components.items.[INDEX].fee.oneOf.1.rates.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.1.rates","typeLabel":"object[]"},"slot_unit_name":{"type":"string","isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.1.slot_unit_name","typeLabel":"string"},"minimum_count":{"oneOf":[{"type":"integer","format":"int32","minimum":0,"uniqueKey":"components.items.[INDEX].fee.oneOf.1.minimum_count.oneOf.0","typeLabel":"integer\u003cint32>"},{"type":"null","format":"int32","minimum":0,"uniqueKey":"components.items.[INDEX].fee.oneOf.1.minimum_count.oneOf.1","typeLabel":"null"}],"uniqueKey":"components.items.[INDEX].fee.oneOf.1.minimum_count","typeLabel":"integer\u003cint32> | null"},"quota":{"oneOf":[{"type":"integer","format":"int32","minimum":0,"uniqueKey":"components.items.[INDEX].fee.oneOf.1.quota.oneOf.0","typeLabel":"integer\u003cint32>"},{"type":"null","format":"int32","minimum":0,"uniqueKey":"components.items.[INDEX].fee.oneOf.1.quota.oneOf.1","typeLabel":"null"}],"uniqueKey":"components.items.[INDEX].fee.oneOf.1.quota","typeLabel":"integer\u003cint32> | null"}},"isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.1","typeLabel":"object"},{"type":"object","description":"Capacity-based fee with included committed usage and overage","required":["metric_id","thresholds","cadence"],"properties":{"cadence":{"type":"string","enum":["MONTHLY","QUARTERLY","SEMIANNUAL","ANNUAL"],"isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.2.cadence","typeLabel":"enum\u003cstring>"},"metric_id":{"type":"string","format":"MeteroidId","examples":["bm_7n42DGM5Tflk9n8mt7Fhc7"],"isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.2.metric_id","typeLabel":"string\u003cMeteroidId>"},"thresholds":{"type":"array","items":{"type":"object","required":["included_amount","price","per_unit_overage"],"properties":{"included_amount":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.2.thresholds.items.[INDEX].included_amount","typeLabel":"integer\u003cint64>"},"per_unit_overage":{"type":"string","format":"decimal","isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.2.thresholds.items.[INDEX].per_unit_overage","typeLabel":"string\u003cdecimal>"},"price":{"type":"string","format":"decimal","isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.2.thresholds.items.[INDEX].price","typeLabel":"string\u003cdecimal>"}},"uniqueKey":"components.items.[INDEX].fee.oneOf.2.thresholds.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.2.thresholds","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.2","typeLabel":"object"},{"type":"object","description":"Usage-based fee","required":["metric_id","pricing","cadence"],"properties":{"cadence":{"type":"string","enum":["MONTHLY","QUARTERLY","SEMIANNUAL","ANNUAL"],"isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.3.cadence","typeLabel":"enum\u003cstring>"},"metric_id":{"type":"string","format":"MeteroidId","examples":["bm_7n42DGM5Tflk9n8mt7Fhc7"],"isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.3.metric_id","typeLabel":"string\u003cMeteroidId>"},"pricing":{"oneOf":[{"type":"object","required":["rate"],"properties":{"rate":{"type":"string","format":"decimal","isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.0.rate","typeLabel":"string\u003cdecimal>"}},"isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.0","typeLabel":"object"},{"type":"object","required":["tiers"],"properties":{"tiers":{"type":"array","items":{"type":"object","required":["first_unit","rate"],"properties":{"first_unit":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.1.tiers.items.[INDEX].first_unit","typeLabel":"integer\u003cint64>"},"rate":{"type":"string","format":"decimal","isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.1.tiers.items.[INDEX].rate","typeLabel":"string\u003cdecimal>"},"flat_cap":{"oneOf":[{"type":"string","format":"decimal","uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.1.tiers.items.[INDEX].flat_cap.oneOf.0","typeLabel":"string\u003cdecimal>"},{"type":"null","format":"decimal","uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.1.tiers.items.[INDEX].flat_cap.oneOf.1","typeLabel":"null"}],"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.1.tiers.items.[INDEX].flat_cap","typeLabel":"string\u003cdecimal> | null"},"flat_fee":{"oneOf":[{"type":"string","format":"decimal","uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.1.tiers.items.[INDEX].flat_fee.oneOf.0","typeLabel":"string\u003cdecimal>"},{"type":"null","format":"decimal","uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.1.tiers.items.[INDEX].flat_fee.oneOf.1","typeLabel":"null"}],"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.1.tiers.items.[INDEX].flat_fee","typeLabel":"string\u003cdecimal> | null"}},"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.1.tiers.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.1.tiers","typeLabel":"object[]"},"block_size":{"oneOf":[{"type":"integer","format":"int64","minimum":0,"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.1.block_size.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","minimum":0,"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.1.block_size.oneOf.1","typeLabel":"null"}],"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.1.block_size","typeLabel":"integer\u003cint64> | null"}},"isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.1","typeLabel":"object"},{"type":"object","required":["tiers"],"properties":{"tiers":{"type":"array","items":{"type":"object","required":["first_unit","rate"],"properties":{"first_unit":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.2.tiers.items.[INDEX].first_unit","typeLabel":"integer\u003cint64>"},"rate":{"type":"string","format":"decimal","isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.2.tiers.items.[INDEX].rate","typeLabel":"string\u003cdecimal>"},"flat_cap":{"oneOf":[{"type":"string","format":"decimal","uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.2.tiers.items.[INDEX].flat_cap.oneOf.0","typeLabel":"string\u003cdecimal>"},{"type":"null","format":"decimal","uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.2.tiers.items.[INDEX].flat_cap.oneOf.1","typeLabel":"null"}],"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.2.tiers.items.[INDEX].flat_cap","typeLabel":"string\u003cdecimal> | null"},"flat_fee":{"oneOf":[{"type":"string","format":"decimal","uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.2.tiers.items.[INDEX].flat_fee.oneOf.0","typeLabel":"string\u003cdecimal>"},{"type":"null","format":"decimal","uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.2.tiers.items.[INDEX].flat_fee.oneOf.1","typeLabel":"null"}],"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.2.tiers.items.[INDEX].flat_fee","typeLabel":"string\u003cdecimal> | null"}},"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.2.tiers.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.2.tiers","typeLabel":"object[]"},"block_size":{"oneOf":[{"type":"integer","format":"int64","minimum":0,"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.2.block_size.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","minimum":0,"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.2.block_size.oneOf.1","typeLabel":"null"}],"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.2.block_size","typeLabel":"integer\u003cint64> | null"}},"isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.2","typeLabel":"object"},{"type":"object","required":["block_size","rate"],"properties":{"block_size":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.3.block_size","typeLabel":"integer\u003cint64>"},"rate":{"type":"string","format":"decimal","isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.3.rate","typeLabel":"string\u003cdecimal>"}},"isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.3","typeLabel":"object"},{"type":"object","required":["rates"],"properties":{"rates":{"type":"array","items":{"type":"object","required":["dimension1","per_unit_price"],"properties":{"dimension1":{"type":"object","required":["key","value"],"properties":{"key":{"type":"string","isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.4.rates.items.[INDEX].dimension1.key","typeLabel":"string"},"value":{"type":"string","isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.4.rates.items.[INDEX].dimension1.value","typeLabel":"string"}},"isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.4.rates.items.[INDEX].dimension1","typeLabel":"object"},"per_unit_price":{"type":"string","format":"decimal","isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.4.rates.items.[INDEX].per_unit_price","typeLabel":"string\u003cdecimal>"},"dimension2":{"oneOf":[{"type":"object","required":["key","value"],"properties":{"key":{"type":"string","isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.4.rates.items.[INDEX].dimension2.oneOf.0.key","typeLabel":"string"},"value":{"type":"string","isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.4.rates.items.[INDEX].dimension2.oneOf.0.value","typeLabel":"string"}},"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.4.rates.items.[INDEX].dimension2.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.4.rates.items.[INDEX].dimension2.oneOf.1","typeLabel":"null"}],"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.4.rates.items.[INDEX].dimension2","typeLabel":"object | null"}},"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.4.rates.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.4.rates","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing.oneOf.4","typeLabel":"object"}],"isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.3.pricing","typeLabel":"object"}},"isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.3","typeLabel":"object"},{"type":"object","description":"Extra recurring fee","required":["unit_price","quantity","billing_type","cadence"],"properties":{"billing_type":{"type":"string","enum":["ADVANCE","ARREARS"],"isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.4.billing_type","typeLabel":"enum\u003cstring>"},"cadence":{"type":"string","enum":["MONTHLY","QUARTERLY","SEMIANNUAL","ANNUAL"],"isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.4.cadence","typeLabel":"enum\u003cstring>"},"quantity":{"type":"integer","format":"int32","minimum":0,"isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.4.quantity","typeLabel":"integer\u003cint32>"},"unit_price":{"type":"string","format":"decimal","isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.4.unit_price","typeLabel":"string\u003cdecimal>"}},"isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.4","typeLabel":"object"},{"type":"object","description":"One-time fee","required":["unit_price","quantity"],"properties":{"quantity":{"type":"integer","format":"int32","minimum":0,"isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.5.quantity","typeLabel":"integer\u003cint32>"},"unit_price":{"type":"string","format":"decimal","isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.5.unit_price","typeLabel":"string\u003cdecimal>"}},"isRequired":true,"uniqueKey":"components.items.[INDEX].fee.oneOf.5","typeLabel":"object"}],"isRequired":true,"uniqueKey":"components.items.[INDEX].fee","typeLabel":"object"},"name":{"type":"string","isRequired":true,"uniqueKey":"components.items.[INDEX].name","typeLabel":"string"},"product_id":{"oneOf":[{"type":"string","format":"MeteroidId","example":"prd_7n42DGM5Tflk9n8mt7Fhc7","uniqueKey":"components.items.[INDEX].product_id.oneOf.0","typeLabel":"string\u003cMeteroidId>"},{"type":"null","uniqueKey":"components.items.[INDEX].product_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"components.items.[INDEX].product_id","typeLabel":"string\u003cMeteroidId> | null"}},"uniqueKey":"components.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"components","typeLabel":"object[]"},"currency":{"type":"string","isRequired":true,"uniqueKey":"currency","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"add_ons":{"type":"array","items":{"type":"object","required":["add_on_id"],"properties":{"add_on_id":{"type":"string","format":"MeteroidId","examples":["add_7n42DGM5Tflk9n8mt7Fhc7"],"isRequired":true,"uniqueKey":"add_ons.items.[INDEX].add_on_id","typeLabel":"string\u003cMeteroidId>"},"max_instances":{"oneOf":[{"type":"integer","format":"int32","uniqueKey":"add_ons.items.[INDEX].max_instances.oneOf.0","typeLabel":"integer\u003cint32>"},{"type":"null","format":"int32","uniqueKey":"add_ons.items.[INDEX].max_instances.oneOf.1","typeLabel":"null"}],"uniqueKey":"add_ons.items.[INDEX].max_instances","typeLabel":"integer\u003cint32> | null"},"price_id":{"oneOf":[{"type":"string","format":"MeteroidId","example":"pri_7n42DGM5Tflk9n8mt7Fhc7","uniqueKey":"add_ons.items.[INDEX].price_id.oneOf.0","typeLabel":"string\u003cMeteroidId>"},{"type":"null","uniqueKey":"add_ons.items.[INDEX].price_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"add_ons.items.[INDEX].price_id","typeLabel":"string\u003cMeteroidId> | null"},"self_serviceable":{"oneOf":[{"type":"boolean","uniqueKey":"add_ons.items.[INDEX].self_serviceable.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"add_ons.items.[INDEX].self_serviceable.oneOf.1","typeLabel":"null"}],"uniqueKey":"add_ons.items.[INDEX].self_serviceable","typeLabel":"boolean | null"}},"uniqueKey":"add_ons.items.[INDEX]","typeLabel":"object"},"uniqueKey":"add_ons","typeLabel":"object[]"},"billing":{"oneOf":[{"type":"object","properties":{"billing_cycles":{"oneOf":[{"type":"integer","format":"int32","uniqueKey":"billing.oneOf.0.billing_cycles.oneOf.0","typeLabel":"integer\u003cint32>"},{"type":"null","format":"int32","uniqueKey":"billing.oneOf.0.billing_cycles.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing.oneOf.0.billing_cycles","typeLabel":"integer\u003cint32> | null"},"net_terms":{"type":"integer","format":"int32","uniqueKey":"billing.oneOf.0.net_terms","typeLabel":"integer\u003cint32>"},"period_start_day":{"oneOf":[{"type":"integer","format":"int32","uniqueKey":"billing.oneOf.0.period_start_day.oneOf.0","typeLabel":"integer\u003cint32>"},{"type":"null","format":"int32","uniqueKey":"billing.oneOf.0.period_start_day.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing.oneOf.0.period_start_day","typeLabel":"integer\u003cint32> | null"}},"uniqueKey":"billing.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"billing.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing","typeLabel":"object | null"},"description":{"oneOf":[{"type":"string","uniqueKey":"description.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"description.oneOf.1","typeLabel":"null"}],"uniqueKey":"description","typeLabel":"string | null"},"entitlements":{"type":"array","items":{"type":"object","description":"One entitlement to create: which feature, and the value granted by the entity.","required":["feature_id","value"],"properties":{"feature_id":{"type":"string","format":"MeteroidId","examples":["feat_7n42DGM5Tflk9n8mt7Fhc7"],"isRequired":true,"uniqueKey":"entitlements.items.[INDEX].feature_id","typeLabel":"string\u003cMeteroidId>"},"value":{"oneOf":[{"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.0.enabled","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.0","typeLabel":"object"},{"type":"object","properties":{"enabled":{"type":"boolean","description":"Per-entitlement kill switch. `false` means disabled.","uniqueKey":"entitlements.items.[INDEX].value.oneOf.1.enabled","typeLabel":"boolean"},"limit":{"oneOf":[{"type":"string","format":"decimal","description":"Cap on usage. Null means unlimited.","uniqueKey":"entitlements.items.[INDEX].value.oneOf.1.limit.oneOf.0","typeLabel":"string\u003cdecimal>"},{"type":"null","format":"decimal","description":"Cap on usage. Null means unlimited.","uniqueKey":"entitlements.items.[INDEX].value.oneOf.1.limit.oneOf.1","typeLabel":"null"}],"uniqueKey":"entitlements.items.[INDEX].value.oneOf.1.limit","typeLabel":"string\u003cdecimal> | null"},"reset_period":{"oneOf":[{"type":"object","description":"Resets each time your subscription renews — anchored to your billing cycle.","uniqueKey":"entitlements.items.[INDEX].value.oneOf.1.reset_period.oneOf.0","typeLabel":"object"},{"type":"object","description":"Resets on calendar boundaries (e.g. the 1st of every month) — not tied to subscription start date.","required":["unit","interval"],"properties":{"interval":{"type":"integer","format":"int32","minimum":0,"isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.1.reset_period.oneOf.1.interval","typeLabel":"integer\u003cint32>"},"unit":{"type":"string","enum":["HOUR","DAY","WEEK","MONTH","YEAR"],"isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.1.reset_period.oneOf.1.unit","typeLabel":"enum\u003cstring>"}},"uniqueKey":"entitlements.items.[INDEX].value.oneOf.1.reset_period.oneOf.1","typeLabel":"object"},{"type":"object","description":"Resets at regular intervals — anchored to your subscription's exact activation time.","required":["unit","interval"],"properties":{"interval":{"type":"integer","format":"int32","minimum":0,"isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.1.reset_period.oneOf.2.interval","typeLabel":"integer\u003cint32>"},"unit":{"type":"string","enum":["HOUR","DAY","WEEK","MONTH","YEAR"],"isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.1.reset_period.oneOf.2.unit","typeLabel":"enum\u003cstring>"}},"uniqueKey":"entitlements.items.[INDEX].value.oneOf.1.reset_period.oneOf.2","typeLabel":"object"},{"type":"object","description":"Always ends at now — e.g. 30 days means the last 30 days, old usage drops off automatically.","required":["unit","interval"],"properties":{"interval":{"type":"integer","format":"int32","minimum":0,"isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.1.reset_period.oneOf.3.interval","typeLabel":"integer\u003cint32>"},"unit":{"type":"string","enum":["HOUR","DAY","WEEK","MONTH","YEAR"],"isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.1.reset_period.oneOf.3.unit","typeLabel":"enum\u003cstring>"}},"uniqueKey":"entitlements.items.[INDEX].value.oneOf.1.reset_period.oneOf.3","typeLabel":"object"},{"type":"object","description":"Never resets — counts all usage since the subscription was activated.","uniqueKey":"entitlements.items.[INDEX].value.oneOf.1.reset_period.oneOf.4","typeLabel":"object"}],"uniqueKey":"entitlements.items.[INDEX].value.oneOf.1.reset_period","typeLabel":"object"}},"isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.1","typeLabel":"object"},{"type":"object","required":["value"],"properties":{"value":{"oneOf":[{"type":"object","description":"A static, typed configuration value carried by a Config entitlement. Resolved synchronously\nthrough the entitlement hierarchy — no metric, no usage counter.","required":["value"],"properties":{"value":{"type":"string","format":"decimal","isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.2.value.oneOf.0.value","typeLabel":"string\u003cdecimal>"}},"isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.2.value.oneOf.0","typeLabel":"object"},{"type":"object","description":"A static, typed configuration value carried by a Config entitlement. Resolved synchronously\nthrough the entitlement hierarchy — no metric, no usage counter.","required":["value"],"properties":{"value":{"type":"boolean","isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.2.value.oneOf.1.value","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.2.value.oneOf.1","typeLabel":"object"},{"type":"object","description":"A static, typed configuration value carried by a Config entitlement. Resolved synchronously\nthrough the entitlement hierarchy — no metric, no usage counter.","required":["value"],"properties":{"value":{"type":"string","isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.2.value.oneOf.2.value","typeLabel":"string"}},"isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.2.value.oneOf.2","typeLabel":"object"},{"type":"object","description":"A static, typed configuration value carried by a Config entitlement. Resolved synchronously\nthrough the entitlement hierarchy — no metric, no usage counter.","required":["value"],"properties":{"value":{"oneOf":[{"isRequired":true}],"isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.2.value.oneOf.3.value","typeLabel":"any"}},"isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.2.value.oneOf.3","typeLabel":"object"}],"isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.2.value","typeLabel":"object"}},"isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value","typeLabel":"object"}},"uniqueKey":"entitlements.items.[INDEX]","typeLabel":"object"},"description":"Entitlements to attach to this plan's version. Replacing a published plan creates a\nnew version, and entitlements belong to a version, so passing them here keeps them\nattached to whichever version the call produces.","uniqueKey":"entitlements","typeLabel":"object[]"},"minimum_commitment":{"oneOf":[{"type":"object","description":"Optional plan-level period minimum commitment. Component scope must reference names\nthat exist in `components` (matched by name, not by ID, since component IDs are\nassigned by the server). Use `MinimumCommitmentInput` so the client can express\nscope by component name.","required":["amount","scope"],"properties":{"amount":{"type":"string","description":"Decimal string in the plan currency.","isRequired":true,"uniqueKey":"minimum_commitment.oneOf.0.amount","typeLabel":"string"},"scope":{"oneOf":[{"type":"object","description":"Every revenue line counts toward the floor.","isRequired":true,"uniqueKey":"minimum_commitment.oneOf.0.scope.oneOf.0","typeLabel":"object"},{"type":"object","description":"Component names — matched against `ReplacePlanRequest::components[].name`.","required":["component_names"],"properties":{"component_names":{"type":"array","items":{"type":"string","uniqueKey":"minimum_commitment.oneOf.0.scope.oneOf.1.component_names.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"minimum_commitment.oneOf.0.scope.oneOf.1.component_names","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"minimum_commitment.oneOf.0.scope.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"minimum_commitment.oneOf.0.scope","typeLabel":"object"}},"uniqueKey":"minimum_commitment.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"minimum_commitment.oneOf.1","typeLabel":"null"}],"uniqueKey":"minimum_commitment","typeLabel":"object | null"},"status":{"oneOf":[{"type":"string","title":"PlanStatus","enum":["DRAFT","ACTIVE","INACTIVE","ARCHIVED"],"uniqueKey":"status.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"status.oneOf.1","typeLabel":"null"}],"uniqueKey":"status","typeLabel":"enum\u003cstring> | null"},"tax_inclusive":{"type":"boolean","description":"The plan's amounts are quoted tax-included (\"9.99 incl. VAT\"): tax is carved out of\nthem at invoice time instead of being added on top, so the customer pays the quoted\nprice whatever rate applies. A customer who bears no tax (reverse charge, exempt,\nexport) still pays it in full. Defaults to `false`.","uniqueKey":"tax_inclusive","typeLabel":"boolean"},"trial":{"oneOf":[{"type":"object","required":["duration_days","is_free"],"properties":{"duration_days":{"type":"integer","format":"int32","minimum":0,"isRequired":true,"uniqueKey":"trial.oneOf.0.duration_days","typeLabel":"integer\u003cint32>"},"is_free":{"type":"boolean","isRequired":true,"uniqueKey":"trial.oneOf.0.is_free","typeLabel":"boolean"},"trialing_plan_id":{"oneOf":[{"type":"string","format":"MeteroidId","example":"plan_7n42DGM5Tflk9n8mt7Fhc7","uniqueKey":"trial.oneOf.0.trialing_plan_id.oneOf.0","typeLabel":"string\u003cMeteroidId>"},{"type":"null","uniqueKey":"trial.oneOf.0.trialing_plan_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"trial.oneOf.0.trialing_plan_id","typeLabel":"string\u003cMeteroidId> | null"}},"uniqueKey":"trial.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"trial.oneOf.1","typeLabel":"null"}],"uniqueKey":"trial","typeLabel":"object | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"components":[{"fee":{"rates":[{"price":"\u003cstring>"}]},"name":"\u003cstring>","product_id":"prd_7n42DGM5Tflk9n8mt7Fhc7"}],"currency":"\u003cstring>","name":"\u003cstring>","add_ons":[{"add_on_id":"add_7n42DGM5Tflk9n8mt7Fhc7","max_instances":123,"price_id":"pri_7n42DGM5Tflk9n8mt7Fhc7","self_serviceable":true}],"billing":{"billing_cycles":123,"net_terms":123,"period_start_day":123},"description":"\u003cstring>","entitlements":[{"feature_id":"feat_7n42DGM5Tflk9n8mt7Fhc7","value":{"enabled":true}}],"minimum_commitment":{"amount":"\u003cstring>","scope":{}},"tax_inclusive":true,"trial":{"duration_days":1,"is_free":true,"trialing_plan_id":"plan_7n42DGM5Tflk9n8mt7Fhc7"}}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"7bdbfa27-c2e4-4377-acea-638bda43d2a8":{"description":"Plan updated","content":{"application/json":{"schema":{"type":"object","required":["id","name","created_at","plan_type","status","product_family","version_id","version","currency","tax_inclusive","net_terms","price_components","available_parameters"],"properties":{"available_parameters":{"type":"object","properties":{"billing_periods":{"type":"object","description":"Map of component_id -> available billing periods (e.g., \"MONTHLY\", \"ANNUAL\")","additionalProperties":{"type":"array","items":{"type":"string","enum":["MONTHLY","QUARTERLY","SEMIANNUAL","ANNUAL"],"uniqueKey":"available_parameters.billing_periods.additionalProperties.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"available_parameters.billing_periods.additionalProperties","typeLabel":"enum\u003cstring>[]"},"propertyNames":{"type":"string"},"uniqueKey":"available_parameters.billing_periods","typeLabel":"object"},"capacity_thresholds":{"type":"object","description":"Map of component_id -> available capacity values","additionalProperties":{"type":"array","items":{"type":"integer","format":"int64","minimum":0,"uniqueKey":"available_parameters.capacity_thresholds.additionalProperties.items.[INDEX]","typeLabel":"integer\u003cint64>"},"uniqueKey":"available_parameters.capacity_thresholds.additionalProperties","typeLabel":"integer\u003cint64>[]"},"propertyNames":{"type":"string"},"uniqueKey":"available_parameters.capacity_thresholds","typeLabel":"object"},"slot_components":{"type":"array","items":{"type":"string","uniqueKey":"available_parameters.slot_components.items.[INDEX]","typeLabel":"string"},"description":"List of component_ids that support slot parametrization (initial slot count)","uniqueKey":"available_parameters.slot_components","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"available_parameters","typeLabel":"object"},"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"currency":{"type":"string","enum":["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHF","CLP","CNH","CNY","COP","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VES","VND","VUV","WST","XAF","XCD","XOF","XPF","YER","ZAR","ZMW","ZWL"],"examples":["EUR"],"isRequired":true,"uniqueKey":"currency","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"MeteroidId","examples":["plan_7n42DGM5Tflk9n8mt7Fhc7"],"isRequired":true,"uniqueKey":"id","typeLabel":"string\u003cMeteroidId>"},"name":{"type":"string","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"net_terms":{"type":"integer","format":"int32","isRequired":true,"uniqueKey":"net_terms","typeLabel":"integer\u003cint32>"},"plan_type":{"type":"string","title":"PlanType","enum":["STANDARD","FREE","CUSTOM"],"isRequired":true,"uniqueKey":"plan_type","typeLabel":"enum\u003cstring>"},"price_components":{"type":"array","items":{"type":"object","required":["id","name"],"properties":{"id":{"type":"string","format":"MeteroidId","examples":["price_7n42DGM5Tflk9n8mt7Fhc7"],"isRequired":true,"uniqueKey":"price_components.items.[INDEX].id","typeLabel":"string\u003cMeteroidId>"},"name":{"type":"string","isRequired":true,"uniqueKey":"price_components.items.[INDEX].name","typeLabel":"string"},"fee":{"oneOf":[{"type":"object","description":"Recurring rate fee (e.g., monthly subscription)","required":["rates"],"properties":{"rates":{"type":"array","items":{"type":"object","required":["term","price"],"properties":{"price":{"type":"string","format":"decimal","isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.0.rates.items.[INDEX].price","typeLabel":"string\u003cdecimal>"},"term":{"type":"string","enum":["MONTHLY","QUARTERLY","SEMIANNUAL","ANNUAL"],"isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.0.rates.items.[INDEX].term","typeLabel":"enum\u003cstring>"}},"uniqueKey":"price_components.items.[INDEX].fee.oneOf.0.rates.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.0.rates","typeLabel":"object[]"}},"uniqueKey":"price_components.items.[INDEX].fee.oneOf.0","typeLabel":"object"},{"type":"object","description":"Slot-based fee (e.g., per-seat pricing)","required":["rates","slot_unit_name"],"properties":{"rates":{"type":"array","items":{"type":"object","required":["term","price"],"properties":{"price":{"type":"string","format":"decimal","isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.1.rates.items.[INDEX].price","typeLabel":"string\u003cdecimal>"},"term":{"type":"string","enum":["MONTHLY","QUARTERLY","SEMIANNUAL","ANNUAL"],"isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.1.rates.items.[INDEX].term","typeLabel":"enum\u003cstring>"}},"uniqueKey":"price_components.items.[INDEX].fee.oneOf.1.rates.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.1.rates","typeLabel":"object[]"},"slot_unit_name":{"type":"string","isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.1.slot_unit_name","typeLabel":"string"},"minimum_count":{"oneOf":[{"type":"integer","format":"int32","minimum":0,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.1.minimum_count.oneOf.0","typeLabel":"integer\u003cint32>"},{"type":"null","format":"int32","minimum":0,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.1.minimum_count.oneOf.1","typeLabel":"null"}],"uniqueKey":"price_components.items.[INDEX].fee.oneOf.1.minimum_count","typeLabel":"integer\u003cint32> | null"},"quota":{"oneOf":[{"type":"integer","format":"int32","minimum":0,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.1.quota.oneOf.0","typeLabel":"integer\u003cint32>"},{"type":"null","format":"int32","minimum":0,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.1.quota.oneOf.1","typeLabel":"null"}],"uniqueKey":"price_components.items.[INDEX].fee.oneOf.1.quota","typeLabel":"integer\u003cint32> | null"}},"uniqueKey":"price_components.items.[INDEX].fee.oneOf.1","typeLabel":"object"},{"type":"object","description":"Capacity-based fee with included committed usage and overage","required":["metric_id","thresholds","cadence"],"properties":{"cadence":{"type":"string","enum":["MONTHLY","QUARTERLY","SEMIANNUAL","ANNUAL"],"isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.2.cadence","typeLabel":"enum\u003cstring>"},"metric_id":{"type":"string","format":"MeteroidId","examples":["bm_7n42DGM5Tflk9n8mt7Fhc7"],"isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.2.metric_id","typeLabel":"string\u003cMeteroidId>"},"thresholds":{"type":"array","items":{"type":"object","required":["included_amount","price","per_unit_overage"],"properties":{"included_amount":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.2.thresholds.items.[INDEX].included_amount","typeLabel":"integer\u003cint64>"},"per_unit_overage":{"type":"string","format":"decimal","isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.2.thresholds.items.[INDEX].per_unit_overage","typeLabel":"string\u003cdecimal>"},"price":{"type":"string","format":"decimal","isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.2.thresholds.items.[INDEX].price","typeLabel":"string\u003cdecimal>"}},"uniqueKey":"price_components.items.[INDEX].fee.oneOf.2.thresholds.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.2.thresholds","typeLabel":"object[]"}},"uniqueKey":"price_components.items.[INDEX].fee.oneOf.2","typeLabel":"object"},{"type":"object","description":"Usage-based fee","required":["metric_id","pricing","cadence"],"properties":{"cadence":{"type":"string","enum":["MONTHLY","QUARTERLY","SEMIANNUAL","ANNUAL"],"isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.cadence","typeLabel":"enum\u003cstring>"},"metric_id":{"type":"string","format":"MeteroidId","examples":["bm_7n42DGM5Tflk9n8mt7Fhc7"],"isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.metric_id","typeLabel":"string\u003cMeteroidId>"},"pricing":{"oneOf":[{"type":"object","required":["rate"],"properties":{"rate":{"type":"string","format":"decimal","isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.0.rate","typeLabel":"string\u003cdecimal>"}},"isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.0","typeLabel":"object"},{"type":"object","required":["tiers"],"properties":{"tiers":{"type":"array","items":{"type":"object","required":["first_unit","rate"],"properties":{"first_unit":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.1.tiers.items.[INDEX].first_unit","typeLabel":"integer\u003cint64>"},"rate":{"type":"string","format":"decimal","isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.1.tiers.items.[INDEX].rate","typeLabel":"string\u003cdecimal>"},"flat_cap":{"oneOf":[{"type":"string","format":"decimal","uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.1.tiers.items.[INDEX].flat_cap.oneOf.0","typeLabel":"string\u003cdecimal>"},{"type":"null","format":"decimal","uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.1.tiers.items.[INDEX].flat_cap.oneOf.1","typeLabel":"null"}],"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.1.tiers.items.[INDEX].flat_cap","typeLabel":"string\u003cdecimal> | null"},"flat_fee":{"oneOf":[{"type":"string","format":"decimal","uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.1.tiers.items.[INDEX].flat_fee.oneOf.0","typeLabel":"string\u003cdecimal>"},{"type":"null","format":"decimal","uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.1.tiers.items.[INDEX].flat_fee.oneOf.1","typeLabel":"null"}],"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.1.tiers.items.[INDEX].flat_fee","typeLabel":"string\u003cdecimal> | null"}},"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.1.tiers.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.1.tiers","typeLabel":"object[]"},"block_size":{"oneOf":[{"type":"integer","format":"int64","minimum":0,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.1.block_size.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","minimum":0,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.1.block_size.oneOf.1","typeLabel":"null"}],"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.1.block_size","typeLabel":"integer\u003cint64> | null"}},"isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.1","typeLabel":"object"},{"type":"object","required":["tiers"],"properties":{"tiers":{"type":"array","items":{"type":"object","required":["first_unit","rate"],"properties":{"first_unit":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.2.tiers.items.[INDEX].first_unit","typeLabel":"integer\u003cint64>"},"rate":{"type":"string","format":"decimal","isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.2.tiers.items.[INDEX].rate","typeLabel":"string\u003cdecimal>"},"flat_cap":{"oneOf":[{"type":"string","format":"decimal","uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.2.tiers.items.[INDEX].flat_cap.oneOf.0","typeLabel":"string\u003cdecimal>"},{"type":"null","format":"decimal","uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.2.tiers.items.[INDEX].flat_cap.oneOf.1","typeLabel":"null"}],"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.2.tiers.items.[INDEX].flat_cap","typeLabel":"string\u003cdecimal> | null"},"flat_fee":{"oneOf":[{"type":"string","format":"decimal","uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.2.tiers.items.[INDEX].flat_fee.oneOf.0","typeLabel":"string\u003cdecimal>"},{"type":"null","format":"decimal","uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.2.tiers.items.[INDEX].flat_fee.oneOf.1","typeLabel":"null"}],"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.2.tiers.items.[INDEX].flat_fee","typeLabel":"string\u003cdecimal> | null"}},"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.2.tiers.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.2.tiers","typeLabel":"object[]"},"block_size":{"oneOf":[{"type":"integer","format":"int64","minimum":0,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.2.block_size.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","minimum":0,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.2.block_size.oneOf.1","typeLabel":"null"}],"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.2.block_size","typeLabel":"integer\u003cint64> | null"}},"isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.2","typeLabel":"object"},{"type":"object","required":["block_size","rate"],"properties":{"block_size":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.3.block_size","typeLabel":"integer\u003cint64>"},"rate":{"type":"string","format":"decimal","isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.3.rate","typeLabel":"string\u003cdecimal>"}},"isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.3","typeLabel":"object"},{"type":"object","required":["rates"],"properties":{"rates":{"type":"array","items":{"type":"object","required":["dimension1","per_unit_price"],"properties":{"dimension1":{"type":"object","required":["key","value"],"properties":{"key":{"type":"string","isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.4.rates.items.[INDEX].dimension1.key","typeLabel":"string"},"value":{"type":"string","isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.4.rates.items.[INDEX].dimension1.value","typeLabel":"string"}},"isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.4.rates.items.[INDEX].dimension1","typeLabel":"object"},"per_unit_price":{"type":"string","format":"decimal","isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.4.rates.items.[INDEX].per_unit_price","typeLabel":"string\u003cdecimal>"},"dimension2":{"oneOf":[{"type":"object","required":["key","value"],"properties":{"key":{"type":"string","isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.4.rates.items.[INDEX].dimension2.oneOf.0.key","typeLabel":"string"},"value":{"type":"string","isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.4.rates.items.[INDEX].dimension2.oneOf.0.value","typeLabel":"string"}},"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.4.rates.items.[INDEX].dimension2.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.4.rates.items.[INDEX].dimension2.oneOf.1","typeLabel":"null"}],"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.4.rates.items.[INDEX].dimension2","typeLabel":"object | null"}},"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.4.rates.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.4.rates","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing.oneOf.4","typeLabel":"object"}],"isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3.pricing","typeLabel":"object"}},"uniqueKey":"price_components.items.[INDEX].fee.oneOf.3","typeLabel":"object"},{"type":"object","description":"Extra recurring fee","required":["unit_price","quantity","billing_type","cadence"],"properties":{"billing_type":{"type":"string","enum":["ADVANCE","ARREARS"],"isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.4.billing_type","typeLabel":"enum\u003cstring>"},"cadence":{"type":"string","enum":["MONTHLY","QUARTERLY","SEMIANNUAL","ANNUAL"],"isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.4.cadence","typeLabel":"enum\u003cstring>"},"quantity":{"type":"integer","format":"int32","minimum":0,"isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.4.quantity","typeLabel":"integer\u003cint32>"},"unit_price":{"type":"string","format":"decimal","isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.4.unit_price","typeLabel":"string\u003cdecimal>"}},"uniqueKey":"price_components.items.[INDEX].fee.oneOf.4","typeLabel":"object"},{"type":"object","description":"One-time fee","required":["unit_price","quantity"],"properties":{"quantity":{"type":"integer","format":"int32","minimum":0,"isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.5.quantity","typeLabel":"integer\u003cint32>"},"unit_price":{"type":"string","format":"decimal","isRequired":true,"uniqueKey":"price_components.items.[INDEX].fee.oneOf.5.unit_price","typeLabel":"string\u003cdecimal>"}},"uniqueKey":"price_components.items.[INDEX].fee.oneOf.5","typeLabel":"object"},{"type":"null","uniqueKey":"price_components.items.[INDEX].fee.oneOf.6","typeLabel":"null"}],"uniqueKey":"price_components.items.[INDEX].fee","typeLabel":"object · object · object · object · object · object · null"},"product_id":{"oneOf":[{"type":"string","format":"MeteroidId","example":"prd_7n42DGM5Tflk9n8mt7Fhc7","uniqueKey":"price_components.items.[INDEX].product_id.oneOf.0","typeLabel":"string\u003cMeteroidId>"},{"type":"null","uniqueKey":"price_components.items.[INDEX].product_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"price_components.items.[INDEX].product_id","typeLabel":"string\u003cMeteroidId> | null"}},"uniqueKey":"price_components.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"price_components","typeLabel":"object[]"},"product_family":{"type":"object","required":["id","name"],"properties":{"id":{"type":"string","format":"MeteroidId","examples":["pf_7n42DGM5Tflk9n8mt7Fhc7"],"isRequired":true,"uniqueKey":"product_family.id","typeLabel":"string\u003cMeteroidId>"},"name":{"type":"string","isRequired":true,"uniqueKey":"product_family.name","typeLabel":"string"}},"isRequired":true,"uniqueKey":"product_family","typeLabel":"object"},"status":{"type":"string","title":"PlanStatus","enum":["DRAFT","ACTIVE","INACTIVE","ARCHIVED"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"tax_inclusive":{"type":"boolean","description":"The plan's amounts are quoted tax-included (\"9.99 incl. VAT\"): tax is carved out of\nthem at invoice time instead of being added on top, so the customer pays the quoted\nprice whatever rate applies. A customer who bears no tax (reverse charge, exempt,\nexport) still pays it in full. Defaults to `false`.","isRequired":true,"uniqueKey":"tax_inclusive","typeLabel":"boolean"},"version":{"type":"integer","format":"int32","isRequired":true,"uniqueKey":"version","typeLabel":"integer\u003cint32>"},"version_id":{"type":"string","format":"MeteroidId","examples":["plv_7n42DGM5Tflk9n8mt7Fhc7"],"isRequired":true,"uniqueKey":"version_id","typeLabel":"string\u003cMeteroidId>"},"billing_cycles":{"oneOf":[{"type":"integer","format":"int32","uniqueKey":"billing_cycles.oneOf.0","typeLabel":"integer\u003cint32>"},{"type":"null","format":"int32","uniqueKey":"billing_cycles.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_cycles","typeLabel":"integer\u003cint32> | null"},"description":{"oneOf":[{"type":"string","uniqueKey":"description.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"description.oneOf.1","typeLabel":"null"}],"uniqueKey":"description","typeLabel":"string | null"},"entitlements":{"type":"array","items":{"type":"object","description":"A raw entitlement row attached to one entity (feature, plan version, add-on, or subscription).","required":["id","feature_id","value","created_at","updated_at"],"properties":{"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"entitlements.items.[INDEX].created_at","typeLabel":"string\u003cdate-time>"},"feature_id":{"type":"string","format":"MeteroidId","examples":["feat_7n42DGM5Tflk9n8mt7Fhc7"],"isRequired":true,"uniqueKey":"entitlements.items.[INDEX].feature_id","typeLabel":"string\u003cMeteroidId>"},"id":{"type":"string","format":"MeteroidId","examples":["ent_7n42DGM5Tflk9n8mt7Fhc7"],"isRequired":true,"uniqueKey":"entitlements.items.[INDEX].id","typeLabel":"string\u003cMeteroidId>"},"updated_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"entitlements.items.[INDEX].updated_at","typeLabel":"string\u003cdate-time>"},"value":{"oneOf":[{"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.0.enabled","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.0","typeLabel":"object"},{"type":"object","properties":{"enabled":{"type":"boolean","description":"Per-entitlement kill switch. `false` means disabled.","uniqueKey":"entitlements.items.[INDEX].value.oneOf.1.enabled","typeLabel":"boolean"},"limit":{"oneOf":[{"type":"string","format":"decimal","description":"Cap on usage. Null means unlimited.","uniqueKey":"entitlements.items.[INDEX].value.oneOf.1.limit.oneOf.0","typeLabel":"string\u003cdecimal>"},{"type":"null","format":"decimal","description":"Cap on usage. Null means unlimited.","uniqueKey":"entitlements.items.[INDEX].value.oneOf.1.limit.oneOf.1","typeLabel":"null"}],"uniqueKey":"entitlements.items.[INDEX].value.oneOf.1.limit","typeLabel":"string\u003cdecimal> | null"},"reset_period":{"oneOf":[{"type":"object","description":"Resets each time your subscription renews — anchored to your billing cycle.","uniqueKey":"entitlements.items.[INDEX].value.oneOf.1.reset_period.oneOf.0","typeLabel":"object"},{"type":"object","description":"Resets on calendar boundaries (e.g. the 1st of every month) — not tied to subscription start date.","required":["unit","interval"],"properties":{"interval":{"type":"integer","format":"int32","minimum":0,"isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.1.reset_period.oneOf.1.interval","typeLabel":"integer\u003cint32>"},"unit":{"type":"string","enum":["HOUR","DAY","WEEK","MONTH","YEAR"],"isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.1.reset_period.oneOf.1.unit","typeLabel":"enum\u003cstring>"}},"uniqueKey":"entitlements.items.[INDEX].value.oneOf.1.reset_period.oneOf.1","typeLabel":"object"},{"type":"object","description":"Resets at regular intervals — anchored to your subscription's exact activation time.","required":["unit","interval"],"properties":{"interval":{"type":"integer","format":"int32","minimum":0,"isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.1.reset_period.oneOf.2.interval","typeLabel":"integer\u003cint32>"},"unit":{"type":"string","enum":["HOUR","DAY","WEEK","MONTH","YEAR"],"isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.1.reset_period.oneOf.2.unit","typeLabel":"enum\u003cstring>"}},"uniqueKey":"entitlements.items.[INDEX].value.oneOf.1.reset_period.oneOf.2","typeLabel":"object"},{"type":"object","description":"Always ends at now — e.g. 30 days means the last 30 days, old usage drops off automatically.","required":["unit","interval"],"properties":{"interval":{"type":"integer","format":"int32","minimum":0,"isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.1.reset_period.oneOf.3.interval","typeLabel":"integer\u003cint32>"},"unit":{"type":"string","enum":["HOUR","DAY","WEEK","MONTH","YEAR"],"isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.1.reset_period.oneOf.3.unit","typeLabel":"enum\u003cstring>"}},"uniqueKey":"entitlements.items.[INDEX].value.oneOf.1.reset_period.oneOf.3","typeLabel":"object"},{"type":"object","description":"Never resets — counts all usage since the subscription was activated.","uniqueKey":"entitlements.items.[INDEX].value.oneOf.1.reset_period.oneOf.4","typeLabel":"object"}],"uniqueKey":"entitlements.items.[INDEX].value.oneOf.1.reset_period","typeLabel":"object"}},"isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.1","typeLabel":"object"},{"type":"object","required":["value"],"properties":{"value":{"oneOf":[{"type":"object","description":"A static, typed configuration value carried by a Config entitlement. Resolved synchronously\nthrough the entitlement hierarchy — no metric, no usage counter.","required":["value"],"properties":{"value":{"type":"string","format":"decimal","isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.2.value.oneOf.0.value","typeLabel":"string\u003cdecimal>"}},"isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.2.value.oneOf.0","typeLabel":"object"},{"type":"object","description":"A static, typed configuration value carried by a Config entitlement. Resolved synchronously\nthrough the entitlement hierarchy — no metric, no usage counter.","required":["value"],"properties":{"value":{"type":"boolean","isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.2.value.oneOf.1.value","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.2.value.oneOf.1","typeLabel":"object"},{"type":"object","description":"A static, typed configuration value carried by a Config entitlement. Resolved synchronously\nthrough the entitlement hierarchy — no metric, no usage counter.","required":["value"],"properties":{"value":{"type":"string","isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.2.value.oneOf.2.value","typeLabel":"string"}},"isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.2.value.oneOf.2","typeLabel":"object"},{"type":"object","description":"A static, typed configuration value carried by a Config entitlement. Resolved synchronously\nthrough the entitlement hierarchy — no metric, no usage counter.","required":["value"],"properties":{"value":{"oneOf":[{"isRequired":true}],"isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.2.value.oneOf.3.value","typeLabel":"any"}},"isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.2.value.oneOf.3","typeLabel":"object"}],"isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.2.value","typeLabel":"object"}},"isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"entitlements.items.[INDEX].value","typeLabel":"object"}},"uniqueKey":"entitlements.items.[INDEX]","typeLabel":"object"},"uniqueKey":"entitlements","typeLabel":"object[]"},"minimum_commitment":{"oneOf":[{"type":"object","description":"Plan-level minimum commitment (period true-up floor). When set, every billing-period\ninvoice for this plan is guaranteed to be at least `minimum_commitment.amount` after\ndiscounts, with a \"Minimum commitment\" line filling any shortfall.","required":["amount","scope"],"properties":{"amount":{"type":"string","description":"Decimal string in the plan currency, e.g. \"100.00\".","isRequired":true,"uniqueKey":"minimum_commitment.oneOf.0.amount","typeLabel":"string"},"scope":{"oneOf":[{"type":"object","description":"Every revenue line counts toward the floor.","isRequired":true,"uniqueKey":"minimum_commitment.oneOf.0.scope.oneOf.0","typeLabel":"object"},{"type":"object","description":"Only lines for the listed products count. A product is the identity shared by plan\ncomponents, overrides and ad-hoc extras, so a subscription's billed set is matched uniformly.","required":["product_ids"],"properties":{"product_ids":{"type":"array","items":{"type":"string","uniqueKey":"minimum_commitment.oneOf.0.scope.oneOf.1.product_ids.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"minimum_commitment.oneOf.0.scope.oneOf.1.product_ids","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"minimum_commitment.oneOf.0.scope.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"minimum_commitment.oneOf.0.scope","typeLabel":"object"}},"uniqueKey":"minimum_commitment.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"minimum_commitment.oneOf.1","typeLabel":"null"}],"uniqueKey":"minimum_commitment","typeLabel":"object | null"},"period_start_day":{"oneOf":[{"type":"integer","format":"int32","uniqueKey":"period_start_day.oneOf.0","typeLabel":"integer\u003cint32>"},{"type":"null","format":"int32","uniqueKey":"period_start_day.oneOf.1","typeLabel":"null"}],"uniqueKey":"period_start_day","typeLabel":"integer\u003cint32> | null"},"self_service_rank":{"oneOf":[{"type":"integer","format":"int32","uniqueKey":"self_service_rank.oneOf.0","typeLabel":"integer\u003cint32>"},{"type":"null","format":"int32","uniqueKey":"self_service_rank.oneOf.1","typeLabel":"null"}],"uniqueKey":"self_service_rank","typeLabel":"integer\u003cint32> | null"},"trial":{"oneOf":[{"type":"object","required":["duration_days","is_free"],"properties":{"duration_days":{"type":"integer","format":"int32","minimum":0,"isRequired":true,"uniqueKey":"trial.oneOf.0.duration_days","typeLabel":"integer\u003cint32>"},"is_free":{"type":"boolean","isRequired":true,"uniqueKey":"trial.oneOf.0.is_free","typeLabel":"boolean"},"trialing_plan_id":{"oneOf":[{"type":"string","format":"MeteroidId","example":"plan_7n42DGM5Tflk9n8mt7Fhc7","uniqueKey":"trial.oneOf.0.trialing_plan_id.oneOf.0","typeLabel":"string\u003cMeteroidId>"},{"type":"null","uniqueKey":"trial.oneOf.0.trialing_plan_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"trial.oneOf.0.trialing_plan_id","typeLabel":"string\u003cMeteroidId> | null"}},"uniqueKey":"trial.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"trial.oneOf.1","typeLabel":"null"}],"uniqueKey":"trial","typeLabel":"object | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"available_parameters":{"billing_periods":{},"capacity_thresholds":{},"slot_components":["\u003cstring>"]},"created_at":"2023-11-07T05:31:56Z","currency":"EUR","id":"plan_7n42DGM5Tflk9n8mt7Fhc7","name":"\u003cstring>","net_terms":123,"plan_type":"STANDARD","price_components":[{"id":"price_7n42DGM5Tflk9n8mt7Fhc7","name":"\u003cstring>","fee":{"rates":[{"price":"\u003cstring>","term":"MONTHLY"}]},"product_id":"prd_7n42DGM5Tflk9n8mt7Fhc7"}],"product_family":{"id":"pf_7n42DGM5Tflk9n8mt7Fhc7","name":"\u003cstring>"},"status":"DRAFT","tax_inclusive":true,"version":123,"version_id":"plv_7n42DGM5Tflk9n8mt7Fhc7","billing_cycles":123,"description":"\u003cstring>","entitlements":[{"created_at":"2023-11-07T05:31:56Z","feature_id":"feat_7n42DGM5Tflk9n8mt7Fhc7","id":"ent_7n42DGM5Tflk9n8mt7Fhc7","updated_at":"2023-11-07T05:31:56Z","value":{"enabled":true}}],"minimum_commitment":{"amount":"\u003cstring>","scope":{}},"period_start_day":123,"self_service_rank":123,"trial":{"duration_days":1,"is_free":true,"trialing_plan_id":"plan_7n42DGM5Tflk9n8mt7Fhc7"}}}},"exampleType":"generated"}},"exampleType":"generated"},"86258384-a2bf-41ce-adaa-2105fb60f34e":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["BAD_REQUEST","NOT_FOUND","CONFLICT","FORBIDDEN","UNAUTHORIZED","TOKEN_EXPIRED","TOO_MANY_REQUESTS","INTERNAL_SERVER_ERROR"],"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"BAD_REQUEST","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"a3fcc6a6-2a75-464c-be6a-e08e60dc1ff5":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["BAD_REQUEST","NOT_FOUND","CONFLICT","FORBIDDEN","UNAUTHORIZED","TOKEN_EXPIRED","TOO_MANY_REQUESTS","INTERNAL_SERVER_ERROR"],"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"BAD_REQUEST","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"4f9410ee-58ca-49eb-946d-80e94006d9c1":{"description":"Plan not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["BAD_REQUEST","NOT_FOUND","CONFLICT","FORBIDDEN","UNAUTHORIZED","TOKEN_EXPIRED","TOO_MANY_REQUESTS","INTERNAL_SERVER_ERROR"],"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"BAD_REQUEST","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"881167a9-db67-435f-87bd-976bdfa326a6":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["BAD_REQUEST","NOT_FOUND","CONFLICT","FORBIDDEN","UNAUTHORIZED","TOKEN_EXPIRED","TOO_MANY_REQUESTS","INTERNAL_SERVER_ERROR"],"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"BAD_REQUEST","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"608ee89c-b1cf-44b9-8e41-f0e0552439dc":{"bearer_auth":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"bearer_auth"}}},"servers":{},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"bearer_auth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearer_auth","name":"Authorization"}],"title":"bearer_auth"}]},"originalFileLocation":"https://api.meteroid.com/api-docs/openapi.json"},"subdomain":"meteroid","siteName":"Meteroid Documentation","title":"Replace a plan - Meteroid Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-20T07:39:59.532Z","originalFileLocation":"api-reference/plans/replace-a-plan.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Full replacement of a plan\u0026#x27;s version. On a draft plan, updates in-place. On a published plan, creates a new version. Set status to DRAFT to stage as a new draft without publishing.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Meteroid Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/meteroid/vMTyDzO5Zoa0hJk0/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/meteroid/vMTyDzO5Zoa0hJk0/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/meteroid/vMTyDzO5Zoa0hJk0/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/meteroid/vMTyDzO5Zoa0hJk0/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/meteroid/vMTyDzO5Zoa0hJk0/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/meteroid/vMTyDzO5Zoa0hJk0/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/meteroid/vMTyDzO5Zoa0hJk0/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/meteroid/vMTyDzO5Zoa0hJk0/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/meteroid/vMTyDzO5Zoa0hJk0/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Replace a plan - Meteroid Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Full replacement of a plan\u0026#x27;s version. On a draft plan, updates in-place. On a published plan, creates a new version. Set status to DRAFT to stage as a new draft without publishing.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Meteroid Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.meteroid.com/api-reference/plans/replace-a-plan\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://meteroid.mintlify.app/_mintlify/api/og/v2?division=Plans\u0026amp;title=Replace+a+plan\u0026amp;description=Full+replacement+of+a+plan%27s+version.+On+a+draft+plan%2C+updates+in-place.%0AOn+a+published+plan%2C+creates+a+new+version.+Set+%60status%60+to+%60DRAFT%60+to%0Astage+as+a+new+d\u0026amp;theme=748199f25fbb529687f98b1e\u0026amp;signature=71218819ea8a4a0484d1ad9865f18370f90772988271c725d0c6ee9157ad5944\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Replace a plan - Meteroid Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Full replacement of a plan\u0026#x27;s version. On a draft plan, updates in-place. On a published plan, creates a new version. Set status to DRAFT to stage as a new draft without publishing.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://meteroid.mintlify.app/_mintlify/api/og/v2?division=Plans\u0026amp;title=Replace+a+plan\u0026amp;description=Full+replacement+of+a+plan%27s+version.+On+a+draft+plan%2C+updates+in-place.%0AOn+a+published+plan%2C+creates+a+new+version.+Set+%60status%60+to+%60DRAFT%60+to%0Astage+as+a+new+d\u0026amp;theme=748199f25fbb529687f98b1e\u0026amp;signature=71218819ea8a4a0484d1ad9865f18370f90772988271c725d0c6ee9157ad5944\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/meteroid/vMTyDzO5Zoa0hJk0/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Meteroid Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#000000\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.meteroid.com/api-reference/plans/replace-a-plan\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/plans/replace-a-plan.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.meteroid.com/#organization\",\"name\":\"Meteroid Documentation\",\"url\":\"https://docs.meteroid.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/meteroid/DXZxL5GMStRjxkBm/logo/light.svg?fit=max\u0026auto=format\u0026n=DXZxL5GMStRjxkBm\u0026q=85\u0026s=1fff7e555af3dab03da62c204c63d3c8\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.meteroid.com#website\",\"name\":\"Meteroid Documentation\",\"url\":\"https://docs.meteroid.com\",\"publisher\":{\"@id\":\"https://docs.meteroid.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.meteroid.com/api-reference/plans/replace-a-plan#webpage\",\"url\":\"https://docs.meteroid.com/api-reference/plans/replace-a-plan\",\"name\":\"Replace a plan\",\"description\":\"Full replacement of a plan's version. On a draft plan, updates in-place. On a published plan, creates a new version. Set status to DRAFT to stage as a new draft without publishing.\",\"dateModified\":\"2026-10-20T07:39:59.532Z\",\"isPartOf\":{\"@id\":\"https://docs.meteroid.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.meteroid.com/api-reference/plans/replace-a-plan#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.meteroid.com/api-reference/plans/replace-a-plan#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Plans\",\"item\":\"https://docs.meteroid.com/api-reference/plans/list-plan-version-entitlements\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Replace a plan\",\"item\":\"https://docs.meteroid.com/api-reference/plans/replace-a-plan\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.meteroid.com/api-reference/plans/replace-a-plan#apireference\",\"headline\":\"Replace a plan\",\"name\":\"Replace a plan\",\"description\":\"Full replacement of a plan's version. On a draft plan, updates in-place. On a published plan, creates a new version. Set status to DRAFT to stage as a new draft without publishing.\",\"url\":\"https://docs.meteroid.com/api-reference/plans/replace-a-plan\",\"mainEntityOfPage\":{\"@id\":\"https://docs.meteroid.com/api-reference/plans/replace-a-plan#webpage\"},\"dateModified\":\"2026-10-20T07:39:59.532Z\",\"publisher\":{\"@id\":\"https://docs.meteroid.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.meteroid.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Meteroid Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Meteroid Documentation","nav":{"global":{"anchors":[{"anchor":"Blog","icon":"book","href":"https://meteroid.com/blog"},{"anchor":"Talk to us","icon":"message","href":"https://meteroid.com/talk-to-us"},{"anchor":"GitHub","icon":"github","href":"https://go.meteroid.com/github"}]},"tabs":[{"tab":"Docs","pages":[{"title":"Docs","href":"/home"}]},{"tab":"API Reference","groups":[{"group":"Add-ons","pages":[{"title":"List add-ons","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/addons","href":"/api-reference/add-ons/list-add-ons"},{"title":"Create an add-on","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/addons","href":"/api-reference/add-ons/create-an-add-on"},{"title":"Get add-on details","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/addons/{addon_id}","href":"/api-reference/add-ons/get-add-on-details"},{"title":"Update an add-on","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json patch /api/v1/addons/{addon_id}","href":"/api-reference/add-ons/update-an-add-on"},{"title":"Archive an add-on","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/addons/{addon_id}/archive","href":"/api-reference/add-ons/archive-an-add-on"},{"title":"List add-on entitlements","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/addons/{addon_id}/entitlements","href":"/api-reference/add-ons/list-add-on-entitlements"},{"title":"Create add-on entitlements","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/addons/{addon_id}/entitlements","href":"/api-reference/add-ons/create-add-on-entitlements"},{"title":"Unarchive an add-on","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/addons/{addon_id}/unarchive","href":"/api-reference/add-ons/unarchive-an-add-on"}]},{"group":"Batch Jobs","pages":[{"title":"List batch jobs","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/batch-jobs","href":"/api-reference/batch-jobs/list-batch-jobs"},{"title":"Get batch job detail","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/batch-jobs/{batch_job_id}","href":"/api-reference/batch-jobs/get-batch-job-detail"},{"title":"List batch job failures","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/batch-jobs/{batch_job_id}/failures","href":"/api-reference/batch-jobs/list-batch-job-failures"}]},{"group":"Checkout Sessions","pages":[{"title":"List checkout sessions","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/checkout-sessions","href":"/api-reference/checkout-sessions/list-checkout-sessions"},{"title":"Create a checkout session","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/checkout-sessions","href":"/api-reference/checkout-sessions/create-a-checkout-session"},{"title":"Get a checkout session by ID","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/checkout-sessions/{id}","href":"/api-reference/checkout-sessions/get-a-checkout-session-by-id"},{"title":"Cancel a checkout session","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/checkout-sessions/{id}/cancel","href":"/api-reference/checkout-sessions/cancel-a-checkout-session"}]},{"group":"Connect","pages":[{"title":"List connected accounts","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/connected-accounts","href":"/api-reference/connect/list-connected-accounts"},{"title":"Create connected account","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/connected-accounts","href":"/api-reference/connect/create-connected-account"},{"title":"Get connected account","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/connected-accounts/{id}","href":"/api-reference/connect/get-connected-account"},{"title":"Disconnect account","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json delete /api/v1/connected-accounts/{id}","href":"/api-reference/connect/disconnect-account"},{"title":"Create onboarding link","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/connected-accounts/{id}/onboarding","href":"/api-reference/connect/create-onboarding-link"}]},{"group":"Coupons","pages":[{"title":"List coupons","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/coupons","href":"/api-reference/coupons/list-coupons"},{"title":"Create a coupon","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/coupons","href":"/api-reference/coupons/create-a-coupon"},{"title":"Get coupon details","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/coupons/{coupon_id}","href":"/api-reference/coupons/get-coupon-details"},{"title":"Update a coupon","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json patch /api/v1/coupons/{coupon_id}","href":"/api-reference/coupons/update-a-coupon"},{"title":"Archive a coupon","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/coupons/{coupon_id}/archive","href":"/api-reference/coupons/archive-a-coupon"},{"title":"Disable a coupon","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/coupons/{coupon_id}/disable","href":"/api-reference/coupons/disable-a-coupon"},{"title":"Enable a coupon","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/coupons/{coupon_id}/enable","href":"/api-reference/coupons/enable-a-coupon"},{"title":"Unarchive a coupon","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/coupons/{coupon_id}/unarchive","href":"/api-reference/coupons/unarchive-a-coupon"}]},{"group":"Credit Notes","pages":[{"title":"List credit notes","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/credit-notes","href":"/api-reference/credit-notes/list-credit-notes"},{"title":"Get credit note","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/credit-notes/{credit_note_id}","href":"/api-reference/credit-notes/get-credit-note"},{"title":"Update credit note custom properties","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json patch /api/v1/credit-notes/{credit_note_id}/custom-properties","href":"/api-reference/credit-notes/update-credit-note-custom-properties"},{"title":"Get apiv1credit notes download","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/credit-notes/{credit_note_id}/download","href":"/api-reference/credit-notes/get-apiv1credit-notes-download"},{"title":"Download credit note e-invoice XML","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/credit-notes/{credit_note_id}/xml","href":"/api-reference/credit-notes/download-credit-note-e-invoice-xml"}]},{"group":"Custom Properties","pages":[{"title":"List custom property definitions","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/custom-property-definitions","href":"/api-reference/custom-properties/list-custom-property-definitions"},{"title":"Create a custom property definition","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/custom-property-definitions","href":"/api-reference/custom-properties/create-a-custom-property-definition"},{"title":"Get a custom property definition","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/custom-property-definitions/{id}","href":"/api-reference/custom-properties/get-a-custom-property-definition"},{"title":"Update a custom property definition","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json put /api/v1/custom-property-definitions/{id}","href":"/api-reference/custom-properties/update-a-custom-property-definition"},{"title":"Archive a custom property definition","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json delete /api/v1/custom-property-definitions/{id}","href":"/api-reference/custom-properties/archive-a-custom-property-definition"}]},{"group":"Customers","pages":[{"title":"List customers","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/customers","href":"/api-reference/customers/list-customers"},{"title":"Create customer","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/customers","href":"/api-reference/customers/create-customer"},{"title":"Get customer","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/customers/{id_or_alias}","href":"/api-reference/customers/get-customer"},{"title":"Update customer","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json put /api/v1/customers/{id_or_alias}","href":"/api-reference/customers/update-customer"},{"title":"Archive a customer","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json delete /api/v1/customers/{id_or_alias}","href":"/api-reference/customers/archive-a-customer"},{"title":"Patch customer","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json patch /api/v1/customers/{id_or_alias}","href":"/api-reference/customers/patch-customer"},{"title":"List customer entitlements","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/customers/{id_or_alias}/entitlements","href":"/api-reference/customers/list-customer-entitlements"},{"title":"Generate a portal token for a customer","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/customers/{id_or_alias}/portal-token","href":"/api-reference/customers/generate-a-portal-token-for-a-customer"},{"title":"Restore an archived customer","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/customers/{id_or_alias}/unarchive","href":"/api-reference/customers/restore-an-archived-customer"}]},{"group":"Entitlements","pages":[{"title":"Get entitlement details","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/entitlements/{entitlement_id}","href":"/api-reference/entitlements/get-entitlement-details"},{"title":"Delete an entitlement","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json delete /api/v1/entitlements/{entitlement_id}","href":"/api-reference/entitlements/delete-an-entitlement"},{"title":"Update an entitlement","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json patch /api/v1/entitlements/{entitlement_id}","href":"/api-reference/entitlements/update-an-entitlement"}]},{"group":"Events","pages":[{"title":"Ingest events","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/events/ingest","href":"/api-reference/events/ingest-events"}]},{"group":"Features","pages":[{"title":"List features","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/features","href":"/api-reference/features/list-features"},{"title":"Create a feature","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/features","href":"/api-reference/features/create-a-feature"},{"title":"Get feature details","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/features/{id_or_code}","href":"/api-reference/features/get-feature-details"},{"title":"Update a feature","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json patch /api/v1/features/{id_or_code}","href":"/api-reference/features/update-a-feature"},{"title":"Archive a feature","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/features/{id_or_code}/archive","href":"/api-reference/features/archive-a-feature"},{"title":"Unarchive a feature","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/features/{id_or_code}/unarchive","href":"/api-reference/features/unarchive-a-feature"}]},{"group":"Invoices","pages":[{"title":"List invoices","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/invoices","href":"/api-reference/invoices/list-invoices"},{"title":"Get invoice","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/invoices/{invoice_id}","href":"/api-reference/invoices/get-invoice"},{"title":"Update invoice custom properties","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json patch /api/v1/invoices/{invoice_id}/custom-properties","href":"/api-reference/invoices/update-invoice-custom-properties"},{"title":"Download invoice PDF","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/invoices/{invoice_id}/download","href":"/api-reference/invoices/download-invoice-pdf"},{"title":"Refresh invoice","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/invoices/{invoice_id}/refresh","href":"/api-reference/invoices/refresh-invoice"},{"title":"Download invoice e-invoice XML","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/invoices/{invoice_id}/xml","href":"/api-reference/invoices/download-invoice-e-invoice-xml"}]},{"group":"Metrics","pages":[{"title":"List billable metrics","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/metrics","href":"/api-reference/metrics/list-billable-metrics"},{"title":"Create a billable metric","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/metrics","href":"/api-reference/metrics/create-a-billable-metric"},{"title":"Get metric details","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/metrics/{metric_id}","href":"/api-reference/metrics/get-metric-details"},{"title":"Update a billable metric","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json patch /api/v1/metrics/{metric_id}","href":"/api-reference/metrics/update-a-billable-metric"},{"title":"Archive a billable metric","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/metrics/{metric_id}/archive","href":"/api-reference/metrics/archive-a-billable-metric"},{"title":"Unarchive a billable metric","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/metrics/{metric_id}/unarchive","href":"/api-reference/metrics/unarchive-a-billable-metric"}]},{"group":"OAuth Apps","pages":[{"title":"List OAuth apps","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/oauth-apps","href":"/api-reference/oauth-apps/list-oauth-apps"},{"title":"Create OAuth app","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/oauth-apps","href":"/api-reference/oauth-apps/create-oauth-app"},{"title":"Get OAuth app","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/oauth-apps/{id}","href":"/api-reference/oauth-apps/get-oauth-app"},{"title":"Delete OAuth app","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json delete /api/v1/oauth-apps/{id}","href":"/api-reference/oauth-apps/delete-oauth-app"},{"title":"Rotate client secret","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/oauth-apps/{id}/rotate","href":"/api-reference/oauth-apps/rotate-client-secret"}]},{"group":"OAuth","pages":[{"title":"Introspect token","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/oauth/introspect","href":"/api-reference/oauth/introspect-token"},{"title":"Revoke token","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/oauth/revoke","href":"/api-reference/oauth/revoke-token"},{"title":"Exchange tokens","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/oauth/token","href":"/api-reference/oauth/exchange-tokens"}]},{"group":"Plans","pages":[{"title":"List plan version entitlements","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/plan-versions/{plan_version_id}/entitlements","href":"/api-reference/plans/list-plan-version-entitlements"},{"title":"Create plan version entitlements","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/plan-versions/{plan_version_id}/entitlements","href":"/api-reference/plans/create-plan-version-entitlements"},{"title":"List plans","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/plans","href":"/api-reference/plans/list-plans"},{"title":"Create a plan","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/plans","href":"/api-reference/plans/create-a-plan"},{"title":"Set or replace the plan-level minimum commitment for a draft plan version.","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json put /api/v1/plans/versions/{plan_version_id}/minimum","href":"/api-reference/plans/set-or-replace-the-plan-level-minimum-commitment-for-a-draft-plan-version"},{"title":"Remove the plan-level minimum commitment for a draft plan version.","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json delete /api/v1/plans/versions/{plan_version_id}/minimum","href":"/api-reference/plans/remove-the-plan-level-minimum-commitment-for-a-draft-plan-version"},{"title":"Get plan details","description":"Retrieve a specific plan. Use `?version=draft` for the draft version,\n`?version=2` for a specific version number, or omit for the active version.","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/plans/{plan_id}","href":"/api-reference/plans/get-plan-details"},{"title":"Replace a plan","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json put /api/v1/plans/{plan_id}","href":"/api-reference/plans/replace-a-plan"},{"title":"Update plan metadata","description":"Partially update plan-level fields (name, description, self_service_rank).\nDoes not modify version-level configuration or components.","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json patch /api/v1/plans/{plan_id}","href":"/api-reference/plans/update-plan-metadata"},{"title":"Archive a plan","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/plans/{plan_id}/archive","href":"/api-reference/plans/archive-a-plan"},{"title":"Publish a draft plan version","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/plans/{plan_id}/publish","href":"/api-reference/plans/publish-a-draft-plan-version"},{"title":"Unarchive a plan","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/plans/{plan_id}/unarchive","href":"/api-reference/plans/unarchive-a-plan"},{"title":"List plan versions","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/plans/{plan_id}/versions","href":"/api-reference/plans/list-plan-versions"}]},{"group":"Product Families","pages":[{"title":"List product families","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/product_families","href":"/api-reference/product-families/list-product-families"},{"title":"Create product family","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/product_families","href":"/api-reference/product-families/create-product-family"},{"title":"Get product family","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/product_families/{id_or_alias}","href":"/api-reference/product-families/get-product-family"}]},{"group":"Products","pages":[{"title":"List products","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/products","href":"/api-reference/products/list-products"},{"title":"Create a product","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/products","href":"/api-reference/products/create-a-product"},{"title":"Get product details","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/products/{product_id}","href":"/api-reference/products/get-product-details"},{"title":"Update a product","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json patch /api/v1/products/{product_id}","href":"/api-reference/products/update-a-product"},{"title":"Archive a product","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/products/{product_id}/archive","href":"/api-reference/products/archive-a-product"},{"title":"List product entitlements","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/products/{product_id}/entitlements","href":"/api-reference/products/list-product-entitlements"},{"title":"Create product entitlements","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/products/{product_id}/entitlements","href":"/api-reference/products/create-product-entitlements"},{"title":"Unarchive a product","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/products/{product_id}/unarchive","href":"/api-reference/products/unarchive-a-product"}]},{"group":"Subscriptions","pages":[{"title":"List subscriptions","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/subscriptions","href":"/api-reference/subscriptions/list-subscriptions"},{"title":"Create subscription","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/subscriptions","href":"/api-reference/subscriptions/create-subscription"},{"title":"Get subscription details","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/subscriptions/{subscription_id}","href":"/api-reference/subscriptions/get-subscription-details"},{"title":"Update subscription","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json patch /api/v1/subscriptions/{subscription_id}","href":"/api-reference/subscriptions/update-subscription"},{"title":"Cancel subscription","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/subscriptions/{subscription_id}/cancel","href":"/api-reference/subscriptions/cancel-subscription"},{"title":"List subscription entitlements","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/subscriptions/{subscription_id}/entitlements","href":"/api-reference/subscriptions/list-subscription-entitlements"},{"title":"Get subscription summary","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/subscriptions/{subscription_id}/summary","href":"/api-reference/subscriptions/get-subscription-summary"}]},{"group":"Usage","pages":[{"title":"Get customer usage","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/usage/customer/{customer_id}","href":"/api-reference/usage/get-customer-usage"},{"title":"Get subscription usage","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/usage/subscription/{subscription_id}","href":"/api-reference/usage/get-subscription-usage"},{"title":"Get usage summary","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/usage/summary","href":"/api-reference/usage/get-usage-summary"}]},{"group":"Webhook Endpoints","pages":[{"title":"Resend a webhook delivery","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/webhooks/deliveries/{delivery_id}/resend","href":"/api-reference/webhook-endpoints/resend-a-webhook-delivery"},{"title":"List webhook endpoints","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/webhooks/endpoints","href":"/api-reference/webhook-endpoints/list-webhook-endpoints"},{"title":"Create a webhook endpoint","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/webhooks/endpoints","href":"/api-reference/webhook-endpoints/create-a-webhook-endpoint"},{"title":"Get a webhook endpoint","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/webhooks/endpoints/{endpoint_id}","href":"/api-reference/webhook-endpoints/get-a-webhook-endpoint"},{"title":"Delete a webhook endpoint","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json delete /api/v1/webhooks/endpoints/{endpoint_id}","href":"/api-reference/webhook-endpoints/delete-a-webhook-endpoint"},{"title":"Update a webhook endpoint","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json patch /api/v1/webhooks/endpoints/{endpoint_id}","href":"/api-reference/webhook-endpoints/update-a-webhook-endpoint"},{"title":"List deliveries for a webhook endpoint","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/webhooks/endpoints/{endpoint_id}/deliveries","href":"/api-reference/webhook-endpoints/list-deliveries-for-a-webhook-endpoint"},{"title":"Rotate a webhook endpoint secret","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json post /api/v1/webhooks/endpoints/{endpoint_id}/rotate-secret","href":"/api-reference/webhook-endpoints/rotate-a-webhook-endpoint-secret"},{"title":"Reveal a webhook endpoint secret","deprecated":null,"version":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json get /api/v1/webhooks/endpoints/{endpoint_id}/secret","href":"/api-reference/webhook-endpoints/reveal-a-webhook-endpoint-secret"}]},{"group":"webhooks","pages":[{"title":"Addonarchived webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook addon.archived","href":"/api-reference/webhooks/addonarchived-webhook"},{"title":"Addoncreated webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook addon.created","href":"/api-reference/webhooks/addoncreated-webhook"},{"title":"Addonupdated webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook addon.updated","href":"/api-reference/webhooks/addonupdated-webhook"},{"title":"Couponarchived webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook coupon.archived","href":"/api-reference/webhooks/couponarchived-webhook"},{"title":"Couponcreated webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook coupon.created","href":"/api-reference/webhooks/couponcreated-webhook"},{"title":"Couponupdated webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook coupon.updated","href":"/api-reference/webhooks/couponupdated-webhook"},{"title":"Credit notecreated webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook credit_note.created","href":"/api-reference/webhooks/credit_notecreated-webhook"},{"title":"Credit notefinalized webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook credit_note.finalized","href":"/api-reference/webhooks/credit_notefinalized-webhook"},{"title":"Credit notevoided webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook credit_note.voided","href":"/api-reference/webhooks/credit_notevoided-webhook"},{"title":"Customercreated webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook customer.created","href":"/api-reference/webhooks/customercreated-webhook"},{"title":"Invoiceaccounting pdf generated webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook invoice.accounting_pdf_generated","href":"/api-reference/webhooks/invoiceaccounting_pdf_generated-webhook"},{"title":"Invoiceclosed webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook invoice.closed","href":"/api-reference/webhooks/invoiceclosed-webhook"},{"title":"Invoiceconsolidated webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook invoice.consolidated","href":"/api-reference/webhooks/invoiceconsolidated-webhook"},{"title":"Invoicecreated webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook invoice.created","href":"/api-reference/webhooks/invoicecreated-webhook"},{"title":"Invoicedeleted webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook invoice.deleted","href":"/api-reference/webhooks/invoicedeleted-webhook"},{"title":"Invoicefinalized webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook invoice.finalized","href":"/api-reference/webhooks/invoicefinalized-webhook"},{"title":"Invoicepaid webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook invoice.paid","href":"/api-reference/webhooks/invoicepaid-webhook"},{"title":"Invoicevoided webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook invoice.voided","href":"/api-reference/webhooks/invoicevoided-webhook"},{"title":"Metricarchived webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook metric.archived","href":"/api-reference/webhooks/metricarchived-webhook"},{"title":"Metriccreated webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook metric.created","href":"/api-reference/webhooks/metriccreated-webhook"},{"title":"Metricupdated webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook metric.updated","href":"/api-reference/webhooks/metricupdated-webhook"},{"title":"Paymentfailed webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook payment.failed","href":"/api-reference/webhooks/paymentfailed-webhook"},{"title":"Paymentreversed webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook payment.reversed","href":"/api-reference/webhooks/paymentreversed-webhook"},{"title":"Planarchived webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook plan.archived","href":"/api-reference/webhooks/planarchived-webhook"},{"title":"Plancreated webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook plan.created","href":"/api-reference/webhooks/plancreated-webhook"},{"title":"Planpublished webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook plan.published","href":"/api-reference/webhooks/planpublished-webhook"},{"title":"Productarchived webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook product.archived","href":"/api-reference/webhooks/productarchived-webhook"},{"title":"Productcreated webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook product.created","href":"/api-reference/webhooks/productcreated-webhook"},{"title":"Productupdated webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook product.updated","href":"/api-reference/webhooks/productupdated-webhook"},{"title":"Quoteaccepted webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook quote.accepted","href":"/api-reference/webhooks/quoteaccepted-webhook"},{"title":"Quoteconverted webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook quote.converted","href":"/api-reference/webhooks/quoteconverted-webhook"},{"title":"Refundfailed webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook refund.failed","href":"/api-reference/webhooks/refundfailed-webhook"},{"title":"Refundissued webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook refund.issued","href":"/api-reference/webhooks/refundissued-webhook"},{"title":"Refundsettled webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook refund.settled","href":"/api-reference/webhooks/refundsettled-webhook"},{"title":"Subscriptioncancelled webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook subscription.cancelled","href":"/api-reference/webhooks/subscriptioncancelled-webhook"},{"title":"Subscriptioncreated webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook subscription.created","href":"/api-reference/webhooks/subscriptioncreated-webhook"},{"title":"Subscriptionended webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook subscription.ended","href":"/api-reference/webhooks/subscriptionended-webhook"},{"title":"Subscriptionupdated webhook","version":null,"deprecated":null,"openapi":"https://api.meteroid.com/api-docs/openapi.json webhook subscription.updated","href":"/api-reference/webhooks/subscriptionupdated-webhook"}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog/product-update"}]}]},"basePath":"","title":"Replace a plan - Meteroid Documentation","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CS552b7R.js","utils-DDTCYAF2.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-De8ttokP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DrwRDvAh.js","snippetPresets-DtAN0nWx.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D5rWArI6.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-O2i12wsz.js","shallow-DV8xABTt.js","getApiPlaygroundDisplay-DBZ0B5Jx.js","CodeSnippet-BVi0tPUX.js","CodeSnippets-CqASbIwY.js","Page-m07pfKpT.js","getPastedJson-DG9vsMS8.js","icon-CXzRSCr8.js","MethodPill-BdKVtEuX.js","DuplicateIcon-CZlmBrJI.js","createIcon-biFEUKPL.js","DynamicMarkdown-B54_zNBF.js","SectionHeading-DwwHK3Pt.js","axios-vUo_bRtp.js","Markdown-DfhCTwyA.js","clsx-xpJZXxdP.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BTZUMDnx.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-DqdKa2R4.js"]}