{
"error": "<string>",
"message": "No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment.",
"issues": [
{
"path": "<string>",
"message": "<string>"
}
]
}
{
"error": "<string>",
"message": "No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment.",
"issues": [
{
"path": "<string>",
"message": "<string>"
}
]
}
{
"error": "insufficient_permissions",
"requiredScope": "customers:read",
"message": "No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment."
}
{
"error": "<string>",
"message": "No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment.",
"issues": [
{
"path": "<string>",
"message": "<string>"
}
]
}
{
"error": "<string>",
"message": "No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment.",
"issues": [
{
"path": "<string>",
"message": "<string>"
}
]
}
{
"error": "payload_too_large",
"message": "No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment."
}
{
"error": "rate_limited",
"message": "No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment."
}
{
"error": "<string>",
"message": "No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment.",
"issues": [
{
"path": "<string>",
"message": "<string>"
}
]
}
Customers
Change custom terms
Give a subscription new custom terms, from its renewal or now.
{
"error": "<string>",
"message": "No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment.",
"issues": [
{
"path": "<string>",
"message": "<string>"
}
]
}
{
"error": "<string>",
"message": "No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment.",
"issues": [
{
"path": "<string>",
"message": "<string>"
}
]
}
{
"error": "insufficient_permissions",
"requiredScope": "customers:read",
"message": "No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment."
}
{
"error": "<string>",
"message": "No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment.",
"issues": [
{
"path": "<string>",
"message": "<string>"
}
]
}
{
"error": "<string>",
"message": "No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment.",
"issues": [
{
"path": "<string>",
"message": "<string>"
}
]
}
{
"error": "payload_too_large",
"message": "No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment."
}
{
"error": "rate_limited",
"message": "No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment."
}
{
"error": "<string>",
"message": "No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment.",
"issues": [
{
"path": "<string>",
"message": "<string>"
}
]
}
Patches customize over the subscription’s current terms and moves it onto them. Custom plans explains the fields.
at_renewal changes nothing now; the next period bills and grants the new terms.
now starts them at once, with no proration and no charge: the period’s allowance is the new one less what it used, and the renewal bills the new price.
A trialing subscription, one waiting on a payment or billed another way answers 409 subscription_not_movable; one with a plan change open, 409 pending_change.
Terms the plan rules refuse answer 400 invalid_customize.
Needs the Billing permission at Write.
Authorizations
Authorization
string
header
required
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
subscriptionId
integer
required
The subscription's id from List customer subscriptions.
Required range: x <= 2147483647
Query Parameters
customerId
string
required
Your ID for the customer, such as your user ID.
Required string length: 1 - 255
Body
application/json
customize
object
required
This customer's own terms over the plan, for a sales-led deal: a price, credits, items or overage of their own. Ledger makes a private version of the plan for the customer, billed under its name; the same customize again reuses it. A plan with customOnly needs it.
Show child attributes
timing
enum<string>
required
at_renewal: the new terms start with the next billing period, and nothing changes now. now: they start at once, with no proration and no charge; the period's allowance is the new one less what it already used, and the renewal bills the new price.
Available options:
at_renewal,
now
Response
The new terms, scheduled or applied
subscriptionId
integer
required
timing
enum<string>
required
Available options:
at_renewal,
now
status
enum<string>
required
scheduled: the new terms start at the renewal. applied: they are the subscription's terms now.
Available options:
scheduled,
applied
planId
string
required
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Ledger","description":"Ledger, usage-based billing on Stripe: meters, allowances, seats, limits, feature flags and credits, checked and tracked in real time.","colors":{"primary":"#1a1816","light":"#93a7f0","dark":"#1a1816"},"logo":{"light":"https://mintcdn.com/the-monetization-company/ahIz9sTI-PocTQyT/logo/light.svg?fit=max\u0026auto=format\u0026n=ahIz9sTI-PocTQyT\u0026q=85\u0026s=0a7860016a3760c9689ef39ab2ac2124","dark":"https://mintcdn.com/the-monetization-company/ahIz9sTI-PocTQyT/logo/dark.svg?fit=max\u0026auto=format\u0026n=ahIz9sTI-PocTQyT\u0026q=85\u0026s=de2eab69b7e0583b7bd0d45b76fd4832","href":"https://www.integrateledger.com"},"favicon":"https://mintcdn.com/the-monetization-company/ahIz9sTI-PocTQyT/favicon.svg?fit=max\u0026auto=format\u0026n=ahIz9sTI-PocTQyT\u0026q=85\u0026s=4893a209e521556cd21337856127c081","api":{"openapi":"openapi.json","playground":{"display":"simple"},"examples":{"languages":["curl","typescript","python"],"autogenerate":false}},"appearance":{"default":"light","strict":true},"background":{"color":{"light":"#ffffff","dark":"#1a1816"}},"navbar":{"links":[{"href":"/security","label":"Security"},{"href":"mailto:support@integrateledger.com","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://dashboard.integrateledger.com"}},"footer":{"links":[{"header":"Ledger","items":[{"label":"Dashboard","href":"https://dashboard.integrateledger.com"},{"label":"Terms of Service","href":"/terms"},{"label":"Merchant Terms","href":"/merchant-terms"},{"label":"Privacy Policy","href":"/privacy"},{"label":"Data Processing Addendum","href":"/dpa"}]},{"header":"Resources","items":[{"label":"Security","href":"/security"},{"label":"Support","href":"mailto:support@integrateledger.com"}]},{"header":"SDKs","items":[{"label":"TypeScript on npm","href":"https://www.npmjs.com/package/integrateledger"},{"label":"Python on PyPI","href":"https://pypi.org/project/integrateledger"}]}]},"fonts":{"family":"IBM Plex Sans","weight":400},"icons":{"library":"lucide"},"styling":{"eyebrows":"section","codeblocks":"system","latex":true},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode","download-spec"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"the-monetization-company","hasAudioNarration":false,"actualSubdomain":"the-monetization-company","customDomains":["docs.integrateledger.com"],"gitSource":{"type":"github","owner":"tmc-ledger","repo":"ledger","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":"","_id":"6ae2d50fa009304b407da8cc"},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6b04e9db8cd98be7be542400","clientVersion":"0.0.4286","searchFilterCounts":[{"language":"default","tag":"API reference","count":95},{"language":"default","tag":"Documentation","count":73},{"language":"default","tag":"Model your pricing","count":33},{"language":"default","tag":"Customers","count":26},{"language":"default","tag":"Usage","count":15},{"language":"default","tag":"Plans","count":12},{"language":"default","tag":"Rewards","count":10},{"language":"default","tag":"Billing","count":9},{"language":"default","tag":"Customers at runtime","count":9},{"language":"default","tag":"Reference","count":8}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"rbac-expansion","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":"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":"site-roles","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":"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":"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":"editor-metadata","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},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"/* cyrillic-ext */\n@font-face {\n font-family: 'IBM Plex Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/ibmplexmono/v23/-F63fjptAgt5VM-kVkqdyU8n1iIq129k.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'IBM Plex Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/ibmplexmono/v23/-F63fjptAgt5VM-kVkqdyU8n1isq129k.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'IBM Plex Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/ibmplexmono/v23/-F63fjptAgt5VM-kVkqdyU8n1pUL8lJdhg.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'IBM Plex Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/ibmplexmono/v23/-F63fjptAgt5VM-kVkqdyU8n1iAq129k.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'IBM Plex Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/ibmplexmono/v23/-F63fjptAgt5VM-kVkqdyU8n1iEq129k.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'IBM Plex Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/ibmplexmono/v23/-F63fjptAgt5VM-kVkqdyU8n1i8q1w.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* cyrillic-ext */\n@font-face {\n font-family: 'IBM Plex Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/ibmplexmono/v23/-F6qfjptAgt5VM-kVkqdyU8n3twJwl1FgtIU.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'IBM Plex Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/ibmplexmono/v23/-F6qfjptAgt5VM-kVkqdyU8n3twJwlRFgtIU.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'IBM Plex Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/ibmplexmono/v23/-F6qfjptAgt5VM-kVkqdyU8n3twJwupkp-8tFQ.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'IBM Plex Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/ibmplexmono/v23/-F6qfjptAgt5VM-kVkqdyU8n3twJwl9FgtIU.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'IBM Plex Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/ibmplexmono/v23/-F6qfjptAgt5VM-kVkqdyU8n3twJwl5FgtIU.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'IBM Plex Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/ibmplexmono/v23/-F6qfjptAgt5VM-kVkqdyU8n3twJwlBFgg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n:root{--ldg-text: #1a1816;--ldg-text-secondary: #3d3934;--ldg-text-muted: #555049;--ldg-text-subtle: #6b655c;--ldg-border: #e7e4de;--ldg-border-strong: #dbd7cf;--ldg-canvas: #f7f6f3;--ldg-surface-muted: #f0eeea;--ldg-accent-text: #1d36a0;--ldg-accent-border: #bfcbf7;--ldg-accent-subtle: #eff2fd;--ldg-focus: #2443c4;--ldg-warning-bg: #fff7e8;--ldg-warning-border: #f3d9a4;--ldg-danger-bg: #fdf1f0;--ldg-danger-border: #f4cac6}#content-area,#content-area p,#content-area li,#content-area td{color:var(--ldg-text-secondary)}#content-area h1,#content-area h2,#content-area h3,#content-area h4,#content-area strong,#content-area th{color:var(--ldg-text)}#sidebar .sidebar-group-header,#sidebar .sidebar-group-header .sidebar-title{font-weight:600;color:var(--ldg-text)}#content-area a.link,#content-area p a,#content-area li a,#content-area td a{color:var(--ldg-accent-text);text-decoration:underline;text-decoration-color:var(--ldg-accent-border);text-underline-offset:3px;border-bottom:0}#content-area a.link:hover,#content-area p a:hover,#content-area li a:hover,#content-area td a:hover{text-decoration-color:currentColor}code,pre,kbd,samp{font-family:\"IBM Plex Mono\", ui-monospace, SFMono-Regular, Menlo, monospace!important}#content-area :not(pre)>code,#content-area span>code{border-color:var(--ldg-border);background:var(--ldg-surface-muted);color:var(--ldg-text)}#content-area .code-block,#content-area .code-group{border-color:var(--ldg-border);box-shadow:none}#content-area .card{border-color:var(--ldg-border);border-radius:8px;box-shadow:none}#content-area .card:hover{border-color:var(--ldg-border-strong)}#content-area table{font-variant-numeric:tabular-nums}#content-area thead th{background:var(--ldg-canvas);font-weight:500}#content-area .mermaid,#content-area [data-component-part=\"mermaid\"]{padding:16px;border:1px solid var(--ldg-border);border-radius:8px;background:#ffffff}a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(--ldg-focus);outline-offset:2px}"}]}
{"page":{"pagePath":"api-reference/customers/plan-terms","slug":"/api-reference/customers/plan-terms","pageMetadata":{"title":"Change custom terms","sidebarTitle":"Change custom terms","description":"Give a subscription new custom terms, from its renewal or now.","openapi":"openapi.json POST /v1/customers/subscriptions/{subscriptionId}/plan","href":"/api-reference/customers/plan-terms"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Give a subscription new custom terms, from its renewal or now.\"\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,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components};return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Patches `,_jsx(_components.code,{children:`customize`}),` over the subscription’s current terms and moves it onto them. `,_jsx(_components.a,{href:`/billing/custom-plans`,children:`Custom plans`}),` explains the fields.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`at_renewal`}),` changes nothing now; the next period bills and grants the new terms.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`now`}),` starts them at once, with no proration and no charge: the period’s allowance is the new one less what it used, and the renewal bills the new price.`]}),`\n`,_jsxs(_components.li,{children:[`A trialing subscription, one waiting on a payment or billed another way answers `,_jsx(_components.code,{children:`409 subscription_not_movable`}),`; one with a plan change open, `,_jsx(_components.code,{children:`409 pending_change`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Terms the plan rules refuse answer `,_jsx(_components.code,{children:`400 invalid_customize`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Needs the `,_jsx(_components.strong,{children:`Billing`}),` permission at Write.`]})]})}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":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Change custom terms","sidebarTitle":"Change custom terms","description":"Give a subscription new custom terms, from its renewal or now.","openapi":"openapi.json POST /v1/customers/subscriptions/{subscriptionId}/plan","href":"/api-reference/customers/plan-terms"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"changeSubscriptionPlanTerms","description":"Give a subscription new custom terms, from its renewal or now.","security":["0c31fff0-abb6-4958-9966-fe43671b88b1"],"parameters":["1d2aca90-ee82-4d8b-936f-d9a08714c8dc","eeb8719e-ee8a-4f72-8db0-3a935bb63284"],"requestBody":"545755a8-9e71-460d-81d8-e54d762a4894","responses":{"200":"52915778-6bc2-4621-8b37-68f3a07a5153","400":"57e332cc-ff7a-495c-93de-38556aa43cd9","401":"881ec9fd-ed56-44c4-a62f-667640c3d902","403":"9a3536dc-a7d9-4b5a-9aa3-699f57017970","404":"816da17a-013b-4f95-852f-977439ba5ad0","409":"0422a6db-901c-4a3f-98f6-ce3f19918192","413":"2c2a381e-2663-45d7-b05d-d6a7a584109a","429":"8e3a0a53-1eda-4bd2-bc80-c890baad11cf","502":"6a52b6ea-f3db-4c7d-899d-74b776769367"},"summary":"Change a subscription's custom terms","x-codeSamples":[{"lang":"python","label":"Python SDK","source":"import os\nfrom integrateledger import ledger\n\nclient = ledger(api_key=os.environ[\"LEDGER_API_KEY\"])\nclient.change_subscription_plan_terms(customer_id=\"user_123\", subscription_id=42, customize={\"monthlyPriceCents\": 200000}, timing=\"at_renewal\")"},{"lang":"bash","label":"cURL","source":"curl --request POST 'https://api.integrateledger.com/v1/customers/subscriptions/42/plan?customerId=user_123' \\\n -H \"Authorization: Bearer $LEDGER_API_KEY\" \\\n -H 'Content-Type: application/json' \\\n --data '{\"customize\":{\"monthlyPriceCents\":200000},\"timing\":\"at_renewal\"}'"},{"lang":"typescript","label":"TypeScript SDK","source":"import ledger from \"integrateledger\";\n\nconst client = new ledger({ apiKey: process.env.LEDGER_API_KEY ?? \"\" });\nawait client.changeSubscriptionPlanTerms({ subscriptionId: 42, customerId: \"user_123\", body: { customize: { monthlyPriceCents: 200000 }, timing: \"at_renewal\" } });"}],"tags":["Customers"],"method":"post","type":"path","servers":["6bcf0280-878f-455c-b126-344cff00e380"],"path":"/v1/customers/subscriptions/{subscriptionId}/plan","baseUrlOptions":["https://api.integrateledger.com"],"title":"Change a subscription's custom terms","codeSamples":[{"label":"Python SDK","lang":"python","source":"import os\nfrom integrateledger import ledger\n\nclient = ledger(api_key=os.environ[\"LEDGER_API_KEY\"])\nclient.change_subscription_plan_terms(customer_id=\"user_123\", subscription_id=42, customize={\"monthlyPriceCents\": 200000}, timing=\"at_renewal\")"},{"label":"cURL","lang":"bash","source":"curl --request POST 'https://api.integrateledger.com/v1/customers/subscriptions/42/plan?customerId=user_123' \\\n -H \"Authorization: Bearer $LEDGER_API_KEY\" \\\n -H 'Content-Type: application/json' \\\n --data '{\"customize\":{\"monthlyPriceCents\":200000},\"timing\":\"at_renewal\"}'"},{"label":"TypeScript SDK","lang":"typescript","source":"import ledger from \"integrateledger\";\n\nconst client = new ledger({ apiKey: process.env.LEDGER_API_KEY ?? \"\" });\nawait client.changeSubscriptionPlanTerms({ subscriptionId: 42, customerId: \"user_123\", body: { customize: { monthlyPriceCents: 200000 }, timing: \"at_renewal\" } });"}],"requestExampleLanguages":["bash","typescript","python"],"requiredOnlyExamples":false,"disableCodeSampleGeneration":true,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{"1d2aca90-ee82-4d8b-936f-d9a08714c8dc":{"schema":{"type":"integer","exclusiveMinimum":0,"maximum":2147483647,"description":"The subscription's `id` from List customer subscriptions.","isRequired":true,"uniqueKey":"","typeLabel":"integer"},"required":true,"description":"The subscription's `id` from List customer subscriptions.","name":"subscriptionId","in":"path"},"eeb8719e-ee8a-4f72-8db0-3a935bb63284":{"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Your ID for the customer, such as your user ID.","isRequired":true,"uniqueKey":"","typeLabel":"string"},"required":true,"description":"Your ID for the customer, such as your user ID.","name":"customerId","in":"query"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"customize":{"type":"object","properties":{"monthlyCredits":{"type":"integer","minimum":0,"description":"Credits granted at the start of each allowance period (each month, unless resetInterval is year). 0 for a plan with only items, or with pay-as-you-go credits. At most 2,147,483,647: $21,474.83 at 100,000 credits per dollar.","uniqueKey":"customize.monthlyCredits","typeLabel":"integer"},"priceCents":{"type":"integer","minimum":0,"maximum":2147483647,"description":"Price in US cents per billing interval: a year's price on an annual plan. 0 makes a free plan. Required unless monthlyPriceCents is sent.","uniqueKey":"customize.priceCents","typeLabel":"integer"},"monthlyPriceCents":{"type":"integer","minimum":0,"maximum":2147483647,"description":"The older name for priceCents, accepted on monthly plans only. Listed for monthly plans.","uniqueKey":"customize.monthlyPriceCents","typeLabel":"integer"},"overageUnitAmountCents":{"oneOf":[{"type":"integer","maximum":2147483647,"exclusiveMinimum":0,"description":"Price in cents per overageBillingUnits credits used after the plan's credits and packs run out. Null or omitted: no overage.","uniqueKey":"customize.overageUnitAmountCents.oneOf.0","typeLabel":"integer"},{"type":"null","maximum":2147483647,"exclusiveMinimum":0,"description":"Price in cents per overageBillingUnits credits used after the plan's credits and packs run out. Null or omitted: no overage.","uniqueKey":"customize.overageUnitAmountCents.oneOf.1","typeLabel":"null"}],"uniqueKey":"customize.overageUnitAmountCents","typeLabel":"integer | null"},"overageBillingUnits":{"type":"integer","exclusiveMinimum":0,"maximum":2147483647,"description":"Credits billed per overageUnitAmountCents. Defaults to 1.","uniqueKey":"customize.overageBillingUnits","typeLabel":"integer"},"overageCapCents":{"oneOf":[{"type":"integer","minimum":0,"maximum":2147483647,"description":"Default monthly overage spend cap in cents. A customer's own cap replaces it. Null or omitted: no cap.","uniqueKey":"customize.overageCapCents.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":0,"maximum":2147483647,"description":"Default monthly overage spend cap in cents. A customer's own cap replaces it. Null or omitted: no cap.","uniqueKey":"customize.overageCapCents.oneOf.1","typeLabel":"null"}],"uniqueKey":"customize.overageCapCents","typeLabel":"integer | null"},"overageTiers":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"upTo":{"oneOf":[{"type":"integer","maximum":2147483647,"exclusiveMinimum":0,"description":"The band's last billed unit; null for the last band, which has no limit.","isRequired":true,"uniqueKey":"customize.overageTiers.oneOf.0.items.[INDEX].upTo.oneOf.0","typeLabel":"integer"},{"type":"null","maximum":2147483647,"exclusiveMinimum":0,"description":"The band's last billed unit; null for the last band, which has no limit.","isRequired":true,"uniqueKey":"customize.overageTiers.oneOf.0.items.[INDEX].upTo.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"customize.overageTiers.oneOf.0.items.[INDEX].upTo","typeLabel":"integer | null"},"unitAmountCents":{"type":"integer","maximum":2147483647,"exclusiveMinimum":0,"description":"Price in cents per billed unit in this band.","isRequired":true,"uniqueKey":"customize.overageTiers.oneOf.0.items.[INDEX].unitAmountCents","typeLabel":"integer"},"flatAmountCents":{"type":"integer","minimum":0,"maximum":2147483647,"description":"A flat amount billed once the band is reached. Defaults to 0.","uniqueKey":"customize.overageTiers.oneOf.0.items.[INDEX].flatAmountCents","typeLabel":"integer"}},"required":["upTo","unitAmountCents"],"additionalProperties":false,"uniqueKey":"customize.overageTiers.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Bands for the period's overage instead of one rate, over billed units (overage rounded up to the billing units), ascending, the last with upTo null. overageUnitAmountCents must be sent as the first band's rate. The invoice bills one line per band reached.","uniqueKey":"customize.overageTiers.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"upTo":{"oneOf":[{"type":"integer","maximum":2147483647,"exclusiveMinimum":0,"description":"The band's last billed unit; null for the last band, which has no limit."},{"type":"null","maximum":2147483647,"exclusiveMinimum":0,"description":"The band's last billed unit; null for the last band, which has no limit."}]},"unitAmountCents":{"type":"integer","maximum":2147483647,"exclusiveMinimum":0,"description":"Price in cents per billed unit in this band."},"flatAmountCents":{"type":"integer","minimum":0,"maximum":2147483647,"description":"A flat amount billed once the band is reached. Defaults to 0."}},"required":["upTo","unitAmountCents"],"additionalProperties":false},"description":"Bands for the period's overage instead of one rate, over billed units (overage rounded up to the billing units), ascending, the last with upTo null. overageUnitAmountCents must be sent as the first band's rate. The invoice bills one line per band reached.","uniqueKey":"customize.overageTiers.oneOf.1","typeLabel":"null"}],"uniqueKey":"customize.overageTiers","typeLabel":"object[] | null"},"overageTiersMode":{"oneOf":[{"type":"string","enum":["graduated","volume",null],"description":"With overageTiers: `graduated` (the default) prices each band's units at its rate; `volume` prices every unit at the rate of the band the period's total reaches. Null or omitted without tiers.","uniqueKey":"customize.overageTiersMode.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["graduated","volume",null],"description":"With overageTiers: `graduated` (the default) prices each band's units at its rate; `volume` prices every unit at the rate of the band the period's total reaches. Null or omitted without tiers.","uniqueKey":"customize.overageTiersMode.oneOf.1","typeLabel":"null"}],"uniqueKey":"customize.overageTiersMode","typeLabel":"enum\u003cstring> | null"},"rollover":{"oneOf":[{"type":"object","properties":{"maxCredits":{"oneOf":[{"type":"integer","exclusiveMinimum":0,"maximum":2147483647,"description":"The most rolled-over credits (or units, on an item) live at once. Send this or maxPercent.","uniqueKey":"customize.rollover.oneOf.0.maxCredits.oneOf.0","typeLabel":"integer"},{"type":"null","exclusiveMinimum":0,"maximum":2147483647,"description":"The most rolled-over credits (or units, on an item) live at once. Send this or maxPercent.","uniqueKey":"customize.rollover.oneOf.0.maxCredits.oneOf.1","typeLabel":"null"}],"uniqueKey":"customize.rollover.oneOf.0.maxCredits","typeLabel":"integer | null"},"maxPercent":{"oneOf":[{"type":"integer","minimum":1,"maximum":100,"description":"The most rolled over as a percent of one period's allowance, 1 to 100. Send this or maxCredits.","uniqueKey":"customize.rollover.oneOf.0.maxPercent.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"maximum":100,"description":"The most rolled over as a percent of one period's allowance, 1 to 100. Send this or maxCredits.","uniqueKey":"customize.rollover.oneOf.0.maxPercent.oneOf.1","typeLabel":"null"}],"uniqueKey":"customize.rollover.oneOf.0.maxPercent","typeLabel":"integer | null"},"periods":{"oneOf":[{"type":"integer","exclusiveMinimum":0,"maximum":2147483647,"description":"How many allowance periods a rolled grant lasts. Defaults to 1 (it ends with the next period); null keeps it until used.","uniqueKey":"customize.rollover.oneOf.0.periods.oneOf.0","typeLabel":"integer"},{"type":"null","exclusiveMinimum":0,"maximum":2147483647,"description":"How many allowance periods a rolled grant lasts. Defaults to 1 (it ends with the next period); null keeps it until used.","uniqueKey":"customize.rollover.oneOf.0.periods.oneOf.1","typeLabel":"null"}],"uniqueKey":"customize.rollover.oneOf.0.periods","typeLabel":"integer | null"}},"additionalProperties":false,"description":"Unused monthlyCredits carried into the next allowance period, up to a maximum, and spent first. Null or omitted: they end with the period. A change publishes a new plan version.","uniqueKey":"customize.rollover.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"maxCredits":{"oneOf":[{"type":"integer","exclusiveMinimum":0,"maximum":2147483647,"description":"The most rolled-over credits (or units, on an item) live at once. Send this or maxPercent."},{"type":"null","exclusiveMinimum":0,"maximum":2147483647,"description":"The most rolled-over credits (or units, on an item) live at once. Send this or maxPercent."}]},"maxPercent":{"oneOf":[{"type":"integer","minimum":1,"maximum":100,"description":"The most rolled over as a percent of one period's allowance, 1 to 100. Send this or maxCredits."},{"type":"null","minimum":1,"maximum":100,"description":"The most rolled over as a percent of one period's allowance, 1 to 100. Send this or maxCredits."}]},"periods":{"oneOf":[{"type":"integer","exclusiveMinimum":0,"maximum":2147483647,"description":"How many allowance periods a rolled grant lasts. Defaults to 1 (it ends with the next period); null keeps it until used."},{"type":"null","exclusiveMinimum":0,"maximum":2147483647,"description":"How many allowance periods a rolled grant lasts. Defaults to 1 (it ends with the next period); null keeps it until used."}]}},"additionalProperties":false,"description":"Unused monthlyCredits carried into the next allowance period, up to a maximum, and spent first. Null or omitted: they end with the period. A change publishes a new plan version.","uniqueKey":"customize.rollover.oneOf.1","typeLabel":"null"}],"uniqueKey":"customize.rollover","typeLabel":"object | null"},"autoTopUp":{"oneOf":[{"type":"object","properties":{"thresholdCredits":{"type":"integer","exclusiveMinimum":0,"maximum":2147483647,"description":"Buy when the shared balance's available credits fall below this. Above 0.","isRequired":true,"uniqueKey":"customize.autoTopUp.oneOf.0.thresholdCredits","typeLabel":"integer"},"maxPerPeriod":{"type":"integer","minimum":1,"maximum":31,"description":"The most automatic top-ups per billing period, 1 to 31.","isRequired":true,"uniqueKey":"customize.autoTopUp.oneOf.0.maxPerPeriod","typeLabel":"integer"},"addOnId":{"oneOf":[{"type":"string","minLength":1,"maxLength":100,"description":"The credit pack to buy. Send this or amountCents.","uniqueKey":"customize.autoTopUp.oneOf.0.addOnId.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"maxLength":100,"description":"The credit pack to buy. Send this or amountCents.","uniqueKey":"customize.autoTopUp.oneOf.0.addOnId.oneOf.1","typeLabel":"null"}],"uniqueKey":"customize.autoTopUp.oneOf.0.addOnId","typeLabel":"string | null"},"amountCents":{"oneOf":[{"type":"integer","exclusiveMinimum":0,"maximum":99999999,"description":"Or an amount to buy, in cents, at the catalog's top-up rate. Within topUps.minCents and maxCents.","uniqueKey":"customize.autoTopUp.oneOf.0.amountCents.oneOf.0","typeLabel":"integer"},{"type":"null","exclusiveMinimum":0,"maximum":99999999,"description":"Or an amount to buy, in cents, at the catalog's top-up rate. Within topUps.minCents and maxCents.","uniqueKey":"customize.autoTopUp.oneOf.0.amountCents.oneOf.1","typeLabel":"null"}],"uniqueKey":"customize.autoTopUp.oneOf.0.amountCents","typeLabel":"integer | null"},"maxAmountCentsPerPeriod":{"oneOf":[{"type":"integer","exclusiveMinimum":0,"maximum":99999999,"description":"The most automatic top-ups may charge per billing period, in cents. Null or omitted: no money limit.","uniqueKey":"customize.autoTopUp.oneOf.0.maxAmountCentsPerPeriod.oneOf.0","typeLabel":"integer"},{"type":"null","exclusiveMinimum":0,"maximum":99999999,"description":"The most automatic top-ups may charge per billing period, in cents. Null or omitted: no money limit.","uniqueKey":"customize.autoTopUp.oneOf.0.maxAmountCentsPerPeriod.oneOf.1","typeLabel":"null"}],"uniqueKey":"customize.autoTopUp.oneOf.0.maxAmountCentsPerPeriod","typeLabel":"integer | null"}},"required":["thresholdCredits","maxPerPeriod"],"additionalProperties":false,"description":"The plan's auto top-up default: below thresholdCredits, buy a credit pack or an amount with the saved card. A customer's own setting replaces it. A change publishes a new plan version.","uniqueKey":"customize.autoTopUp.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"thresholdCredits":{"type":"integer","exclusiveMinimum":0,"maximum":2147483647,"description":"Buy when the shared balance's available credits fall below this. Above 0."},"addOnId":{"oneOf":[{"type":"string","minLength":1,"maxLength":100,"description":"The credit pack to buy. Send this or amountCents."},{"type":"null","minLength":1,"maxLength":100,"description":"The credit pack to buy. Send this or amountCents."}]},"amountCents":{"oneOf":[{"type":"integer","exclusiveMinimum":0,"maximum":99999999,"description":"Or an amount to buy, in cents, at the catalog's top-up rate. Within topUps.minCents and maxCents."},{"type":"null","exclusiveMinimum":0,"maximum":99999999,"description":"Or an amount to buy, in cents, at the catalog's top-up rate. Within topUps.minCents and maxCents."}]},"maxPerPeriod":{"type":"integer","minimum":1,"maximum":31,"description":"The most automatic top-ups per billing period, 1 to 31."},"maxAmountCentsPerPeriod":{"oneOf":[{"type":"integer","exclusiveMinimum":0,"maximum":99999999,"description":"The most automatic top-ups may charge per billing period, in cents. Null or omitted: no money limit."},{"type":"null","exclusiveMinimum":0,"maximum":99999999,"description":"The most automatic top-ups may charge per billing period, in cents. Null or omitted: no money limit."}]}},"required":["thresholdCredits","maxPerPeriod"],"additionalProperties":false,"description":"The plan's auto top-up default: below thresholdCredits, buy a credit pack or an amount with the saved card. A customer's own setting replaces it. A change publishes a new plan version.","uniqueKey":"customize.autoTopUp.oneOf.1","typeLabel":"null"}],"uniqueKey":"customize.autoTopUp","typeLabel":"object | null"},"trial":{"oneOf":[{"type":"object","properties":{"days":{"type":"integer","minimum":1,"maximum":365,"description":"How long the trial lasts: 1 to 365 days.","isRequired":true,"uniqueKey":"customize.trial.oneOf.0.days","typeLabel":"integer"},"cardRequired":{"type":"boolean","description":"true (the default): the customer gives a card, Stripe holds the trial and bills at its end. false: no card and no Stripe subscription during the trial.","uniqueKey":"customize.trial.oneOf.0.cardRequired","typeLabel":"boolean"},"onEnd":{"type":"string","enum":["bill","revert"],"description":"What happens when the trial ends: `bill` starts charging (the default with a card); `revert` goes back to the plan the customer had before, or to none (the default without a card).","uniqueKey":"customize.trial.oneOf.0.onEnd","typeLabel":"enum\u003cstring>"},"credits":{"type":"integer","minimum":0,"maximum":2147483647,"description":"Credits granted to the pool for the trial. Defaults to monthlyCredits.","uniqueKey":"customize.trial.oneOf.0.credits","typeLabel":"integer"}},"required":["days"],"additionalProperties":false,"description":"A free trial when a customer first starts the plan, once per customer and plan. Not on a one-off plan (`trial_not_supported`). Null or omitted: no trial. A change publishes a new plan version.","uniqueKey":"customize.trial.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"days":{"type":"integer","minimum":1,"maximum":365,"description":"How long the trial lasts: 1 to 365 days."},"cardRequired":{"type":"boolean","description":"true (the default): the customer gives a card, Stripe holds the trial and bills at its end. false: no card and no Stripe subscription during the trial."},"onEnd":{"type":"string","enum":["bill","revert"],"description":"What happens when the trial ends: `bill` starts charging (the default with a card); `revert` goes back to the plan the customer had before, or to none (the default without a card)."},"credits":{"type":"integer","minimum":0,"maximum":2147483647,"description":"Credits granted to the pool for the trial. Defaults to monthlyCredits."}},"required":["days"],"additionalProperties":false,"description":"A free trial when a customer first starts the plan, once per customer and plan. Not on a one-off plan (`trial_not_supported`). Null or omitted: no trial. A change publishes a new plan version.","uniqueKey":"customize.trial.oneOf.1","typeLabel":"null"}],"uniqueKey":"customize.trial","typeLabel":"object | null"},"items":{"type":"array","items":{"type":"object","properties":{"featureId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9_-]+$","description":"The feature this item includes.","isRequired":true,"uniqueKey":"customize.\\items.items.[INDEX].featureId","typeLabel":"string"},"included":{"oneOf":[{"type":"integer","minimum":0,"description":"For a metered feature, units granted each period; for a held feature, the most the customer may hold; for an AI feature with its own balance, credits of that balance each period. At most 2,147,483,647. Leave out with unlimited, and for boolean, credits and pool AI features.","uniqueKey":"customize.\\items.items.[INDEX].included.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":0,"description":"For a metered feature, units granted each period; for a held feature, the most the customer may hold; for an AI feature with its own balance, credits of that balance each period. At most 2,147,483,647. Leave out with unlimited, and for boolean, credits and pool AI features.","uniqueKey":"customize.\\items.items.[INDEX].included.oneOf.1","typeLabel":"null"}],"uniqueKey":"customize.\\items.items.[INDEX].included","typeLabel":"integer | null"},"unlimited":{"type":"boolean","description":"No limit: uses are always allowed and never debited. The only field a credits or pool AI item takes, and it must be true there.","uniqueKey":"customize.\\items.items.[INDEX].unlimited","typeLabel":"boolean"},"overageUnitAmountCents":{"oneOf":[{"type":"integer","maximum":2147483647,"exclusiveMinimum":0,"description":"Metered and own-balance AI items only: price in cents per overageBillingUnits units (credits, for AI) used past `included`, billed on the renewal invoice. Counts toward the customer's one overage cap. `included: 0` with a price is pay as you go. Null or omitted: no overage.","uniqueKey":"customize.\\items.items.[INDEX].overageUnitAmountCents.oneOf.0","typeLabel":"integer"},{"type":"null","maximum":2147483647,"exclusiveMinimum":0,"description":"Metered and own-balance AI items only: price in cents per overageBillingUnits units (credits, for AI) used past `included`, billed on the renewal invoice. Counts toward the customer's one overage cap. `included: 0` with a price is pay as you go. Null or omitted: no overage.","uniqueKey":"customize.\\items.items.[INDEX].overageUnitAmountCents.oneOf.1","typeLabel":"null"}],"uniqueKey":"customize.\\items.items.[INDEX].overageUnitAmountCents","typeLabel":"integer | null"},"overageBillingUnits":{"type":"integer","exclusiveMinimum":0,"maximum":2147483647,"description":"Units billed per overageUnitAmountCents. Defaults to 1.","uniqueKey":"customize.\\items.items.[INDEX].overageBillingUnits","typeLabel":"integer"},"overageTiers":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"upTo":{"oneOf":[{"type":"integer","maximum":2147483647,"exclusiveMinimum":0,"description":"The band's last billed unit; null for the last band, which has no limit.","isRequired":true,"uniqueKey":"customize.\\items.items.[INDEX].overageTiers.oneOf.0.items.[INDEX].upTo.oneOf.0","typeLabel":"integer"},{"type":"null","maximum":2147483647,"exclusiveMinimum":0,"description":"The band's last billed unit; null for the last band, which has no limit.","isRequired":true,"uniqueKey":"customize.\\items.items.[INDEX].overageTiers.oneOf.0.items.[INDEX].upTo.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"customize.\\items.items.[INDEX].overageTiers.oneOf.0.items.[INDEX].upTo","typeLabel":"integer | null"},"unitAmountCents":{"type":"integer","maximum":2147483647,"exclusiveMinimum":0,"description":"Price in cents per billed unit in this band.","isRequired":true,"uniqueKey":"customize.\\items.items.[INDEX].overageTiers.oneOf.0.items.[INDEX].unitAmountCents","typeLabel":"integer"},"flatAmountCents":{"type":"integer","minimum":0,"maximum":2147483647,"description":"A flat amount billed once the band is reached. Defaults to 0.","uniqueKey":"customize.\\items.items.[INDEX].overageTiers.oneOf.0.items.[INDEX].flatAmountCents","typeLabel":"integer"}},"required":["upTo","unitAmountCents"],"additionalProperties":false,"uniqueKey":"customize.\\items.items.[INDEX].overageTiers.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Bands for the period's overage instead of one rate, over billed units (overage rounded up to the billing units), ascending, the last with upTo null. overageUnitAmountCents must be sent as the first band's rate. The invoice bills one line per band reached.","uniqueKey":"customize.\\items.items.[INDEX].overageTiers.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"upTo":{"oneOf":[{"type":"integer","maximum":2147483647,"exclusiveMinimum":0,"description":"The band's last billed unit; null for the last band, which has no limit."},{"type":"null","maximum":2147483647,"exclusiveMinimum":0,"description":"The band's last billed unit; null for the last band, which has no limit."}]},"unitAmountCents":{"type":"integer","maximum":2147483647,"exclusiveMinimum":0,"description":"Price in cents per billed unit in this band."},"flatAmountCents":{"type":"integer","minimum":0,"maximum":2147483647,"description":"A flat amount billed once the band is reached. Defaults to 0."}},"required":["upTo","unitAmountCents"],"additionalProperties":false},"description":"Bands for the period's overage instead of one rate, over billed units (overage rounded up to the billing units), ascending, the last with upTo null. overageUnitAmountCents must be sent as the first band's rate. The invoice bills one line per band reached.","uniqueKey":"customize.\\items.items.[INDEX].overageTiers.oneOf.1","typeLabel":"null"}],"uniqueKey":"customize.\\items.items.[INDEX].overageTiers","typeLabel":"object[] | null"},"overageTiersMode":{"oneOf":[{"type":"string","enum":["graduated","volume",null],"description":"With overageTiers: `graduated` (the default) prices each band's units at its rate; `volume` prices every unit at the rate of the band the period's total reaches. Null or omitted without tiers.","uniqueKey":"customize.\\items.items.[INDEX].overageTiersMode.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["graduated","volume",null],"description":"With overageTiers: `graduated` (the default) prices each band's units at its rate; `volume` prices every unit at the rate of the band the period's total reaches. Null or omitted without tiers.","uniqueKey":"customize.\\items.items.[INDEX].overageTiersMode.oneOf.1","typeLabel":"null"}],"uniqueKey":"customize.\\items.items.[INDEX].overageTiersMode","typeLabel":"enum\u003cstring> | null"},"price":{"oneOf":[{"type":"object","properties":{"model":{"type":"string","enum":["per_unit","measured"],"description":"`per_unit`: billed per unit held (seats), in advance at the plan's interval, prorated when the count changes. `measured`: the amount held over each period, billed in arrears as unit-months (storage: 100 GB for half a month is 50 GB-months), on the renewal invoice.","isRequired":true,"uniqueKey":"customize.\\items.items.[INDEX].price.oneOf.0.model","typeLabel":"enum\u003cstring>"},"billingUnits":{"type":"integer","maximum":2147483647,"exclusiveMinimum":0,"description":"Measured prices: held units per billed unit, such as 1024 to bill a count in MB per GB-month. Defaults to 1.","uniqueKey":"customize.\\items.items.[INDEX].price.oneOf.0.billingUnits","typeLabel":"integer"},"unitAmountCents":{"oneOf":[{"type":"integer","maximum":2147483647,"exclusiveMinimum":0,"description":"Price in US cents per unit held, per billing interval. Leave out with tiers.","uniqueKey":"customize.\\items.items.[INDEX].price.oneOf.0.unitAmountCents.oneOf.0","typeLabel":"integer"},{"type":"null","maximum":2147483647,"exclusiveMinimum":0,"description":"Price in US cents per unit held, per billing interval. Leave out with tiers.","uniqueKey":"customize.\\items.items.[INDEX].price.oneOf.0.unitAmountCents.oneOf.1","typeLabel":"null"}],"uniqueKey":"customize.\\items.items.[INDEX].price.oneOf.0.unitAmountCents","typeLabel":"integer | null"},"tiers":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"upTo":{"oneOf":[{"type":"integer","maximum":2147483647,"exclusiveMinimum":0,"description":"The band's last unit; null for the last band, which has no limit.","isRequired":true,"uniqueKey":"customize.\\items.items.[INDEX].price.oneOf.0.tiers.oneOf.0.items.[INDEX].upTo.oneOf.0","typeLabel":"integer"},{"type":"null","maximum":2147483647,"exclusiveMinimum":0,"description":"The band's last unit; null for the last band, which has no limit.","isRequired":true,"uniqueKey":"customize.\\items.items.[INDEX].price.oneOf.0.tiers.oneOf.0.items.[INDEX].upTo.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"customize.\\items.items.[INDEX].price.oneOf.0.tiers.oneOf.0.items.[INDEX].upTo","typeLabel":"integer | null"},"unitAmountCents":{"type":"integer","minimum":0,"maximum":2147483647,"description":"Price in US cents per unit in this band.","isRequired":true,"uniqueKey":"customize.\\items.items.[INDEX].price.oneOf.0.tiers.oneOf.0.items.[INDEX].unitAmountCents","typeLabel":"integer"}},"required":["upTo","unitAmountCents"],"additionalProperties":false,"uniqueKey":"customize.\\items.items.[INDEX].price.oneOf.0.tiers.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Bands instead of one unitAmountCents, ascending, the last with upTo null. A first band at 0 makes seats free.","uniqueKey":"customize.\\items.items.[INDEX].price.oneOf.0.tiers.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"upTo":{"oneOf":[{"type":"integer","maximum":2147483647,"exclusiveMinimum":0,"description":"The band's last unit; null for the last band, which has no limit."},{"type":"null","maximum":2147483647,"exclusiveMinimum":0,"description":"The band's last unit; null for the last band, which has no limit."}]},"unitAmountCents":{"type":"integer","minimum":0,"maximum":2147483647,"description":"Price in US cents per unit in this band."}},"required":["upTo","unitAmountCents"],"additionalProperties":false},"description":"Bands instead of one unitAmountCents, ascending, the last with upTo null. A first band at 0 makes seats free.","uniqueKey":"customize.\\items.items.[INDEX].price.oneOf.0.tiers.oneOf.1","typeLabel":"null"}],"uniqueKey":"customize.\\items.items.[INDEX].price.oneOf.0.tiers","typeLabel":"object[] | null"},"tiersMode":{"oneOf":[{"type":"string","enum":["graduated","volume",null],"description":"With tiers: `graduated` (the default) prices each band's units at its rate; `volume` prices every unit at the rate of the band the count reaches.","uniqueKey":"customize.\\items.items.[INDEX].price.oneOf.0.tiersMode.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["graduated","volume",null],"description":"With tiers: `graduated` (the default) prices each band's units at its rate; `volume` prices every unit at the rate of the band the count reaches.","uniqueKey":"customize.\\items.items.[INDEX].price.oneOf.0.tiersMode.oneOf.1","typeLabel":"null"}],"uniqueKey":"customize.\\items.items.[INDEX].price.oneOf.0.tiersMode","typeLabel":"enum\u003cstring> | null"},"includedQuantity":{"type":"integer","minimum":0,"maximum":2147483647,"description":"Units held free before unitAmountCents applies. Defaults to 0. With tiers, use a first band at 0.","uniqueKey":"customize.\\items.items.[INDEX].price.oneOf.0.includedQuantity","typeLabel":"integer"},"proration":{"type":"object","properties":{"onIncrease":{"type":"string","enum":["next_invoice","charge_now","none"],"description":"A rise in the count: prorated on the next invoice (the default), invoiced and charged now, or billed from the next period.","uniqueKey":"customize.\\items.items.[INDEX].price.oneOf.0.proration.onIncrease","typeLabel":"enum\u003cstring>"},"onDecrease":{"type":"string","enum":["next_invoice","none"],"description":"A fall in the count: credited on the next invoice (the default), or not (the lower count bills from the next period).","uniqueKey":"customize.\\items.items.[INDEX].price.oneOf.0.proration.onDecrease","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"customize.\\items.items.[INDEX].price.oneOf.0.proration","typeLabel":"object"}},"required":["model"],"additionalProperties":false,"uniqueKey":"customize.\\items.items.[INDEX].price.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"model":{"type":"string","enum":["per_unit","measured"],"description":"`per_unit`: billed per unit held (seats), in advance at the plan's interval, prorated when the count changes. `measured`: the amount held over each period, billed in arrears as unit-months (storage: 100 GB for half a month is 50 GB-months), on the renewal invoice."},"billingUnits":{"type":"integer","maximum":2147483647,"exclusiveMinimum":0,"description":"Measured prices: held units per billed unit, such as 1024 to bill a count in MB per GB-month. Defaults to 1."},"unitAmountCents":{"oneOf":[{"type":"integer","maximum":2147483647,"exclusiveMinimum":0,"description":"Price in US cents per unit held, per billing interval. Leave out with tiers."},{"type":"null","maximum":2147483647,"exclusiveMinimum":0,"description":"Price in US cents per unit held, per billing interval. Leave out with tiers."}]},"tiers":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"upTo":{"oneOf":[{"type":"integer","maximum":2147483647,"exclusiveMinimum":0,"description":"The band's last unit; null for the last band, which has no limit."},{"type":"null","maximum":2147483647,"exclusiveMinimum":0,"description":"The band's last unit; null for the last band, which has no limit."}]},"unitAmountCents":{"type":"integer","minimum":0,"maximum":2147483647,"description":"Price in US cents per unit in this band."}},"required":["upTo","unitAmountCents"],"additionalProperties":false},"description":"Bands instead of one unitAmountCents, ascending, the last with upTo null. A first band at 0 makes seats free."},{"type":"null","items":{"type":"object","properties":{"upTo":{"oneOf":[{"type":"integer","maximum":2147483647,"exclusiveMinimum":0,"description":"The band's last unit; null for the last band, which has no limit."},{"type":"null","maximum":2147483647,"exclusiveMinimum":0,"description":"The band's last unit; null for the last band, which has no limit."}]},"unitAmountCents":{"type":"integer","minimum":0,"maximum":2147483647,"description":"Price in US cents per unit in this band."}},"required":["upTo","unitAmountCents"],"additionalProperties":false},"description":"Bands instead of one unitAmountCents, ascending, the last with upTo null. A first band at 0 makes seats free."}]},"tiersMode":{"oneOf":[{"type":"string","enum":["graduated","volume",null],"description":"With tiers: `graduated` (the default) prices each band's units at its rate; `volume` prices every unit at the rate of the band the count reaches."},{"type":"null","enum":["graduated","volume",null],"description":"With tiers: `graduated` (the default) prices each band's units at its rate; `volume` prices every unit at the rate of the band the count reaches."}]},"includedQuantity":{"type":"integer","minimum":0,"maximum":2147483647,"description":"Units held free before unitAmountCents applies. Defaults to 0. With tiers, use a first band at 0."},"proration":{"type":"object","properties":{"onIncrease":{"type":"string","enum":["next_invoice","charge_now","none"],"description":"A rise in the count: prorated on the next invoice (the default), invoiced and charged now, or billed from the next period."},"onDecrease":{"type":"string","enum":["next_invoice","none"],"description":"A fall in the count: credited on the next invoice (the default), or not (the lower count bills from the next period)."}},"additionalProperties":false}},"required":["model"],"additionalProperties":false,"uniqueKey":"customize.\\items.items.[INDEX].price.oneOf.1","typeLabel":"null"}],"uniqueKey":"customize.\\items.items.[INDEX].price","typeLabel":"object | null"},"trialIncluded":{"oneOf":[{"type":"integer","minimum":0,"maximum":2147483647,"description":"Metered items only: units granted for the plan's trial instead of `included`. Null or omitted: `included`.","uniqueKey":"customize.\\items.items.[INDEX].trialIncluded.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":0,"maximum":2147483647,"description":"Metered items only: units granted for the plan's trial instead of `included`. Null or omitted: `included`.","uniqueKey":"customize.\\items.items.[INDEX].trialIncluded.oneOf.1","typeLabel":"null"}],"uniqueKey":"customize.\\items.items.[INDEX].trialIncluded","typeLabel":"integer | null"},"rollover":{"oneOf":[{"type":"object","properties":{"maxCredits":{"oneOf":[{"type":"integer","exclusiveMinimum":0,"maximum":2147483647,"description":"The most rolled-over credits (or units, on an item) live at once. Send this or maxPercent.","uniqueKey":"customize.\\items.items.[INDEX].rollover.oneOf.0.maxCredits.oneOf.0","typeLabel":"integer"},{"type":"null","exclusiveMinimum":0,"maximum":2147483647,"description":"The most rolled-over credits (or units, on an item) live at once. Send this or maxPercent.","uniqueKey":"customize.\\items.items.[INDEX].rollover.oneOf.0.maxCredits.oneOf.1","typeLabel":"null"}],"uniqueKey":"customize.\\items.items.[INDEX].rollover.oneOf.0.maxCredits","typeLabel":"integer | null"},"maxPercent":{"oneOf":[{"type":"integer","minimum":1,"maximum":100,"description":"The most rolled over as a percent of one period's allowance, 1 to 100. Send this or maxCredits.","uniqueKey":"customize.\\items.items.[INDEX].rollover.oneOf.0.maxPercent.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"maximum":100,"description":"The most rolled over as a percent of one period's allowance, 1 to 100. Send this or maxCredits.","uniqueKey":"customize.\\items.items.[INDEX].rollover.oneOf.0.maxPercent.oneOf.1","typeLabel":"null"}],"uniqueKey":"customize.\\items.items.[INDEX].rollover.oneOf.0.maxPercent","typeLabel":"integer | null"},"periods":{"oneOf":[{"type":"integer","exclusiveMinimum":0,"maximum":2147483647,"description":"How many allowance periods a rolled grant lasts. Defaults to 1 (it ends with the next period); null keeps it until used.","uniqueKey":"customize.\\items.items.[INDEX].rollover.oneOf.0.periods.oneOf.0","typeLabel":"integer"},{"type":"null","exclusiveMinimum":0,"maximum":2147483647,"description":"How many allowance periods a rolled grant lasts. Defaults to 1 (it ends with the next period); null keeps it until used.","uniqueKey":"customize.\\items.items.[INDEX].rollover.oneOf.0.periods.oneOf.1","typeLabel":"null"}],"uniqueKey":"customize.\\items.items.[INDEX].rollover.oneOf.0.periods","typeLabel":"integer | null"}},"additionalProperties":false,"description":"Metered items with included above 0 only: unused units carried into the next period, up to a maximum. Null or omitted: they end with the period.","uniqueKey":"customize.\\items.items.[INDEX].rollover.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"maxCredits":{"oneOf":[{"type":"integer","exclusiveMinimum":0,"maximum":2147483647,"description":"The most rolled-over credits (or units, on an item) live at once. Send this or maxPercent."},{"type":"null","exclusiveMinimum":0,"maximum":2147483647,"description":"The most rolled-over credits (or units, on an item) live at once. Send this or maxPercent."}]},"maxPercent":{"oneOf":[{"type":"integer","minimum":1,"maximum":100,"description":"The most rolled over as a percent of one period's allowance, 1 to 100. Send this or maxCredits."},{"type":"null","minimum":1,"maximum":100,"description":"The most rolled over as a percent of one period's allowance, 1 to 100. Send this or maxCredits."}]},"periods":{"oneOf":[{"type":"integer","exclusiveMinimum":0,"maximum":2147483647,"description":"How many allowance periods a rolled grant lasts. Defaults to 1 (it ends with the next period); null keeps it until used."},{"type":"null","exclusiveMinimum":0,"maximum":2147483647,"description":"How many allowance periods a rolled grant lasts. Defaults to 1 (it ends with the next period); null keeps it until used."}]}},"additionalProperties":false,"description":"Metered items with included above 0 only: unused units carried into the next period, up to a maximum. Null or omitted: they end with the period.","uniqueKey":"customize.\\items.items.[INDEX].rollover.oneOf.1","typeLabel":"null"}],"uniqueKey":"customize.\\items.items.[INDEX].rollover","typeLabel":"object | null"},"prepaid":{"oneOf":[{"type":"object","properties":{"billingUnits":{"type":"integer","exclusiveMinimum":0,"maximum":2147483647,"description":"Units in one pack: what the customer buys at a time, such as 1000. 1 or more.","isRequired":true,"uniqueKey":"customize.\\items.items.[INDEX].prepaid.oneOf.0.billingUnits","typeLabel":"integer"},"unitAmountCents":{"type":"integer","maximum":2147483647,"exclusiveMinimum":0,"description":"Price in US cents of one pack per billing interval of the plan, above 0.","isRequired":true,"uniqueKey":"customize.\\items.items.[INDEX].prepaid.oneOf.0.unitAmountCents","typeLabel":"integer"},"maxQuantity":{"type":"integer","exclusiveMinimum":0,"maximum":2147483647,"description":"The most one customer may hold a period, the included units counted. Above them, by whole packs (`prepaid_max_below_included`, `prepaid_max_not_multiple`). Omitted: no maximum.","uniqueKey":"customize.\\items.items.[INDEX].prepaid.oneOf.0.maxQuantity","typeLabel":"integer"}},"required":["billingUnits","unitAmountCents"],"additionalProperties":false,"description":"Metered items only, not unlimited: units past `included` sold in prepaid packs. Null or omitted: none.","uniqueKey":"customize.\\items.items.[INDEX].prepaid.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"billingUnits":{"type":"integer","exclusiveMinimum":0,"maximum":2147483647,"description":"Units in one pack: what the customer buys at a time, such as 1000. 1 or more."},"unitAmountCents":{"type":"integer","maximum":2147483647,"exclusiveMinimum":0,"description":"Price in US cents of one pack per billing interval of the plan, above 0."},"maxQuantity":{"type":"integer","exclusiveMinimum":0,"maximum":2147483647,"description":"The most one customer may hold a period, the included units counted. Above them, by whole packs (`prepaid_max_below_included`, `prepaid_max_not_multiple`). Omitted: no maximum."}},"required":["billingUnits","unitAmountCents"],"additionalProperties":false,"description":"Metered items only, not unlimited: units past `included` sold in prepaid packs. Null or omitted: none.","uniqueKey":"customize.\\items.items.[INDEX].prepaid.oneOf.1","typeLabel":"null"}],"uniqueKey":"customize.\\items.items.[INDEX].prepaid","typeLabel":"object | null"}},"required":["featureId"],"additionalProperties":false,"uniqueKey":"customize.\\items.items.[INDEX]","typeLabel":"object"},"maxItems":100,"description":"Items that replace the base's item for the same feature, or add a feature it doesn't have.","uniqueKey":"customize.\\items","typeLabel":"object[]"},"removeItems":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9_-]+$","description":"Your ID for the item: letters, numbers, `_` or `-`. It can't be changed.","uniqueKey":"customize.removeItems.items.[INDEX]","typeLabel":"string"},"maxItems":100,"description":"Features the base includes that this customer's plan leaves out. Never `included: 0`.","uniqueKey":"customize.removeItems","typeLabel":"string[]"}},"additionalProperties":false,"description":"This customer's own terms over the plan, for a sales-led deal: a price, credits, items or overage of their own. Ledger makes a private version of the plan for the customer, billed under its name; the same customize again reuses it. A plan with customOnly needs it.","isRequired":true,"uniqueKey":"customize","typeLabel":"object"},"timing":{"type":"string","enum":["at_renewal","now"],"description":"`at_renewal`: the new terms start with the next billing period, and nothing changes now. `now`: they start at once, with no proration and no charge; the period's allowance is the new one less what it already used, and the renewal bills the new price.","isRequired":true,"uniqueKey":"timing","typeLabel":"enum\u003cstring>"}},"required":["customize","timing"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"customize":{"monthlyCredits":1,"priceCents":1073741823,"monthlyPriceCents":1073741823,"overageUnitAmountCents":123,"overageBillingUnits":123,"overageCapCents":1073741823,"overageTiers":[{"upTo":123,"unitAmountCents":123,"flatAmountCents":1073741823}],"rollover":{"maxCredits":123,"maxPercent":50,"periods":123},"autoTopUp":{"thresholdCredits":123,"maxPerPeriod":16,"addOnId":"\u003cstring>","amountCents":123,"maxAmountCentsPerPeriod":123},"trial":{"days":183,"cardRequired":true,"credits":1073741823},"items":[{"featureId":"\u003cstring>","included":1,"unlimited":true,"overageUnitAmountCents":123,"overageBillingUnits":123,"overageTiers":[{"upTo":123,"unitAmountCents":123,"flatAmountCents":1073741823}],"price":{"billingUnits":123,"unitAmountCents":123,"tiers":[{"upTo":123,"unitAmountCents":1073741823}],"includedQuantity":1073741823,"proration":{}},"trialIncluded":1073741823,"rollover":{"maxCredits":123,"maxPercent":50,"periods":123},"prepaid":{"billingUnits":123,"unitAmountCents":123,"maxQuantity":123}}],"removeItems":["\u003cstring>"]}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"52915778-6bc2-4621-8b37-68f3a07a5153":{"description":"The new terms, scheduled or applied","content":{"application/json":{"schema":{"type":"object","properties":{"subscriptionId":{"type":"integer","isRequired":true,"uniqueKey":"subscriptionId","typeLabel":"integer"},"timing":{"type":"string","enum":["at_renewal","now"],"isRequired":true,"uniqueKey":"timing","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["scheduled","applied"],"description":"`scheduled`: the new terms start at the renewal. `applied`: they are the subscription's terms now.","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"planId":{"type":"string","isRequired":true,"uniqueKey":"planId","typeLabel":"string"}},"required":["subscriptionId","timing","status","planId"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"subscriptionId":123,"timing":"at_renewal","status":"scheduled","planId":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"57e332cc-ff7a-495c-93de-38556aa43cd9":{"description":"Invalid request, or terms the plan rules refuse (invalid_customize)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","description":"What went wrong and what to do about it, for a person or an agent to read. Every Ledger error has one. The wording can change: branch on `error`, not on this text.","example":"No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment.","uniqueKey":"message","typeLabel":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","isRequired":true,"uniqueKey":"issues.items.[INDEX].path","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"}},"required":["path","message"],"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"description":"With `invalid_request`: each field that failed validation and why. `path` is empty for the body itself, such as an unknown field.","uniqueKey":"issues","typeLabel":"object[]"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","message":"No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment.","issues":[{"path":"\u003cstring>","message":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"881ec9fd-ed56-44c4-a62f-667640c3d902":{"description":"Missing or invalid Ledger API key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","description":"What went wrong and what to do about it, for a person or an agent to read. Every Ledger error has one. The wording can change: branch on `error`, not on this text.","example":"No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment.","uniqueKey":"message","typeLabel":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","isRequired":true,"uniqueKey":"issues.items.[INDEX].path","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"}},"required":["path","message"],"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"description":"With `invalid_request`: each field that failed validation and why. `path` is empty for the body itself, such as an unknown field.","uniqueKey":"issues","typeLabel":"object[]"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","message":"No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment.","issues":[{"path":"\u003cstring>","message":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"9a3536dc-a7d9-4b5a-9aa3-699f57017970":{"description":"The API key works but lacks the permission this endpoint needs, named in requiredScope. See the API keys guide.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"insufficient_permissions","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"requiredScope":{"type":"string","example":"customers:read","isRequired":true,"uniqueKey":"requiredScope","typeLabel":"string"},"message":{"type":"string","description":"What went wrong and what to do about it, for a person or an agent to read. Every Ledger error has one. The wording can change: branch on `error`, not on this text.","example":"No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment.","uniqueKey":"message","typeLabel":"string"}},"required":["error","requiredScope"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"insufficient_permissions","requiredScope":"customers:read","message":"No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment."}}},"exampleType":"generated"}},"exampleType":"generated"},"816da17a-013b-4f95-852f-977439ba5ad0":{"description":"No such subscription for this customer","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","description":"What went wrong and what to do about it, for a person or an agent to read. Every Ledger error has one. The wording can change: branch on `error`, not on this text.","example":"No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment.","uniqueKey":"message","typeLabel":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","isRequired":true,"uniqueKey":"issues.items.[INDEX].path","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"}},"required":["path","message"],"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"description":"With `invalid_request`: each field that failed validation and why. `path` is empty for the body itself, such as an unknown field.","uniqueKey":"issues","typeLabel":"object[]"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","message":"No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment.","issues":[{"path":"\u003cstring>","message":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"0422a6db-901c-4a3f-98f6-ce3f19918192":{"description":"The subscription is trialing, waiting on a payment or billed another way (subscription_not_movable), or has a plan change open (pending_change)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","description":"What went wrong and what to do about it, for a person or an agent to read. Every Ledger error has one. The wording can change: branch on `error`, not on this text.","example":"No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment.","uniqueKey":"message","typeLabel":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","isRequired":true,"uniqueKey":"issues.items.[INDEX].path","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"}},"required":["path","message"],"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"description":"With `invalid_request`: each field that failed validation and why. `path` is empty for the body itself, such as an unknown field.","uniqueKey":"issues","typeLabel":"object[]"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","message":"No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment.","issues":[{"path":"\u003cstring>","message":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"2c2a381e-2663-45d7-b05d-d6a7a584109a":{"description":"The request body is over the limit: 1 MiB, or 5 MiB for a webhook.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"payload_too_large","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","description":"What went wrong and what to do about it, for a person or an agent to read. Every Ledger error has one. The wording can change: branch on `error`, not on this text.","example":"No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment.","uniqueKey":"message","typeLabel":"string"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"payload_too_large","message":"No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment."}}},"exampleType":"generated"}},"exampleType":"generated"},"8e3a0a53-1eda-4bd2-bc80-c890baad11cf":{"description":"Too many requests. Wait Retry-After seconds, then retry. See the rate limits guide.","headers":{"Retry-After":{"description":"Seconds until a request is allowed again","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"The burst: requests allowed at once","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left right now","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the full burst is back","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The sustained rate per second and the burst, such as 200;w=1;burst=1000","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"rate_limited","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","description":"What went wrong and what to do about it, for a person or an agent to read. Every Ledger error has one. The wording can change: branch on `error`, not on this text.","example":"No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment.","uniqueKey":"message","typeLabel":"string"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"rate_limited","message":"No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment."}}},"exampleType":"generated"}},"exampleType":"generated"},"6a52b6ea-f3db-4c7d-899d-74b776769367":{"description":"No Stripe connection (stripe_not_configured) or Stripe unavailable (stripe_request_failed)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","description":"What went wrong and what to do about it, for a person or an agent to read. Every Ledger error has one. The wording can change: branch on `error`, not on this text.","example":"No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment.","uniqueKey":"message","typeLabel":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","isRequired":true,"uniqueKey":"issues.items.[INDEX].path","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"}},"required":["path","message"],"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"description":"With `invalid_request`: each field that failed validation and why. `path` is empty for the body itself, such as an unknown field.","uniqueKey":"issues","typeLabel":"object[]"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","message":"No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment.","issues":[{"path":"\u003cstring>","message":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"0c31fff0-abb6-4958-9966-fe43671b88b1":{"ApiKey":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"ApiKey"}}},"servers":{"6bcf0280-878f-455c-b126-344cff00e380":{"url":"https://api.integrateledger.com","description":"Hosted Ledger API"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"ApiKey"},"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":"ApiKey","name":"Authorization"}],"title":"ApiKey"}]},"originalFileLocation":"openapi.json"},"subdomain":"the-monetization-company","siteName":"Ledger","title":"Change custom terms - Ledger","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-24T00:05:30.078Z","originalFileLocation":"api-reference/customers/plan-terms.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";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=\"light\"}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=\"Give a subscription new custom terms, from its renewal or now.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Ledger\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/the-monetization-company/O7Td7oI1CGEEjch4/_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/the-monetization-company/O7Td7oI1CGEEjch4/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/the-monetization-company/O7Td7oI1CGEEjch4/_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/the-monetization-company/O7Td7oI1CGEEjch4/_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/the-monetization-company/O7Td7oI1CGEEjch4/_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/the-monetization-company/O7Td7oI1CGEEjch4/_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/the-monetization-company/O7Td7oI1CGEEjch4/_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/the-monetization-company/O7Td7oI1CGEEjch4/_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/the-monetization-company/O7Td7oI1CGEEjch4/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Change custom terms - Ledger\">\u003cmeta data-mint-head property=\"og:description\" content=\"Give a subscription new custom terms, from its renewal or now.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Ledger\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.integrateledger.com/api-reference/customers/plan-terms\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://the-monetization-company.mintlify.site/_mintlify/api/og/v2?division=Customers\u0026amp;title=Change+custom+terms\u0026amp;description=Give+a+subscription+new+custom+terms%2C+from+its+renewal+or+now.\u0026amp;theme=f803062996ce5bd5ff82ee31\u0026amp;signature=54d77a062b1ad29e1544997ddfa9f8232ea16bbb2f1afcf681f7a1c3b0ac826b\">\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=\"Change custom terms - Ledger\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Give a subscription new custom terms, from its renewal or now.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://the-monetization-company.mintlify.site/_mintlify/api/og/v2?division=Customers\u0026amp;title=Change+custom+terms\u0026amp;description=Give+a+subscription+new+custom+terms%2C+from+its+renewal+or+now.\u0026amp;theme=f803062996ce5bd5ff82ee31\u0026amp;signature=54d77a062b1ad29e1544997ddfa9f8232ea16bbb2f1afcf681f7a1c3b0ac826b\">\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/the-monetization-company/O7Td7oI1CGEEjch4/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Ledger\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1a1816\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.integrateledger.com/api-reference/customers/plan-terms\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/customers/plan-terms.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.integrateledger.com/#organization\",\"name\":\"Ledger\",\"url\":\"https://docs.integrateledger.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/the-monetization-company/ahIz9sTI-PocTQyT/logo/light.svg?fit=max\u0026auto=format\u0026n=ahIz9sTI-PocTQyT\u0026q=85\u0026s=0a7860016a3760c9689ef39ab2ac2124\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.integrateledger.com#website\",\"name\":\"Ledger\",\"url\":\"https://docs.integrateledger.com\",\"publisher\":{\"@id\":\"https://docs.integrateledger.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.integrateledger.com/api-reference/customers/plan-terms#webpage\",\"url\":\"https://docs.integrateledger.com/api-reference/customers/plan-terms\",\"name\":\"Change custom terms\",\"description\":\"Give a subscription new custom terms, from its renewal or now.\",\"dateModified\":\"2026-11-24T00:05:30.078Z\",\"isPartOf\":{\"@id\":\"https://docs.integrateledger.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.integrateledger.com/api-reference/customers/plan-terms#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.integrateledger.com/api-reference/customers/plan-terms#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Customers\",\"item\":\"https://docs.integrateledger.com/api-reference/customers/create\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Change custom terms\",\"item\":\"https://docs.integrateledger.com/api-reference/customers/plan-terms\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.integrateledger.com/api-reference/customers/plan-terms#apireference\",\"headline\":\"Change custom terms\",\"name\":\"Change custom terms\",\"description\":\"Give a subscription new custom terms, from its renewal or now.\",\"url\":\"https://docs.integrateledger.com/api-reference/customers/plan-terms\",\"mainEntityOfPage\":{\"@id\":\"https://docs.integrateledger.com/api-reference/customers/plan-terms#webpage\"},\"dateModified\":\"2026-11-24T00:05:30.078Z\",\"publisher\":{\"@id\":\"https://docs.integrateledger.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.integrateledger.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Ledger\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Ledger\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/customers/plan-terms.md","siteName":"Ledger","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API reference","groups":[{"group":"Get started","pages":[{"title":"API reference","sidebarTitle":"Introduction","href":"/api-reference/introduction"}]},{"group":"Usage","pages":[{"title":"Check credits","openapi":"openapi.json POST /v1/check","href":"/api-reference/usage/check"},{"title":"Track usage","openapi":"openapi.json POST /v1/track","href":"/api-reference/usage/track"},{"title":"List the usage log","sidebarTitle":"List usage","openapi":"openapi.json GET /v1/usage","href":"/api-reference/usage/list"},{"title":"Usage totals","sidebarTitle":"Usage totals","openapi":"openapi.json GET /v1/usage/totals","href":"/api-reference/usage/totals"},{"title":"Get a usage event","sidebarTitle":"Get usage event","openapi":"openapi.json GET /v1/usage/{id}","href":"/api-reference/usage/event"}]},{"group":"Customers","pages":[{"title":"Create or get a customer","sidebarTitle":"Create or get","openapi":"openapi.json POST /v1/customers","href":"/api-reference/customers/create"},{"title":"Get a customer","sidebarTitle":"Get","openapi":"openapi.json GET /v1/customers","href":"/api-reference/customers/get"},{"title":"List customers","sidebarTitle":"List","openapi":"openapi.json GET /v1/customers/list","href":"/api-reference/customers/list"},{"title":"Delete a customer","sidebarTitle":"Delete","openapi":"openapi.json DELETE /v1/customers","href":"/api-reference/customers/delete"},{"title":"Link a Stripe customer","openapi":"openapi.json POST /v1/customers/stripe-customer","href":"/api-reference/customers/stripe-customer"},{"title":"Set billing details","sidebarTitle":"Set billing details","openapi":"openapi.json POST /v1/customers/billing-details","href":"/api-reference/customers/billing-details"},{"title":"Get billing details","sidebarTitle":"Get billing details","openapi":"openapi.json GET /v1/customers/billing-details","href":"/api-reference/customers/get-billing-details"},{"title":"List customer subscriptions","sidebarTitle":"List subscriptions","openapi":"openapi.json GET /v1/customers/subscriptions","href":"/api-reference/customers/subscriptions"},{"title":"List customer purchases","sidebarTitle":"List purchases","openapi":"openapi.json GET /v1/customers/purchases","href":"/api-reference/customers/purchases"},{"title":"Stop or resume renewal","sidebarTitle":"Stop or resume renewal","openapi":"openapi.json POST /v1/customers/subscriptions/{subscriptionId}/cancellation","href":"/api-reference/customers/cancellation"},{"title":"Cancel a subscription item","sidebarTitle":"Cancel an add-on","openapi":"openapi.json POST /v1/customers/subscription-items/{itemId}/cancellation","href":"/api-reference/customers/cancel-subscription-item"},{"title":"Change a trial","sidebarTitle":"Change trial","description":"Extend, shorten or end a subscription's trial.","openapi":"openapi.json POST /v1/customers/subscriptions/{subscriptionId}/trial","href":"/api-reference/customers/trial"},{"title":"Change custom terms","sidebarTitle":"Change custom terms","openapi":"openapi.json POST /v1/customers/subscriptions/{subscriptionId}/plan","href":"/api-reference/customers/plan-terms"},{"title":"Set a customer's overage cap","sidebarTitle":"Set overage cap","description":"Set or clear the most one customer can spend on overage each month.","openapi":"openapi.json POST /v1/customers/overage-cap","href":"/api-reference/customers/overage-cap"},{"title":"Set a customer's auto top-up","openapi":"openapi.json POST /v1/customers/auto-top-up","href":"/api-reference/customers/auto-top-up"},{"title":"Get a customer's auto top-up","openapi":"openapi.json GET /v1/customers/auto-top-up","href":"/api-reference/customers/get-auto-top-up"},{"title":"Set a customer's controls","openapi":"openapi.json POST /v1/customers/controls","href":"/api-reference/customers/controls"},{"title":"Get a customer's controls","openapi":"openapi.json GET /v1/customers/controls","href":"/api-reference/customers/get-controls"},{"title":"Set a customer's ignore past due","openapi":"openapi.json POST /v1/customers/ignore-past-due","href":"/api-reference/customers/ignore-past-due"},{"title":"Get a customer's ignore past due","openapi":"openapi.json GET /v1/customers/ignore-past-due","href":"/api-reference/customers/get-ignore-past-due"},{"title":"Set a customer's overage rate","sidebarTitle":"Set overage rate","openapi":"openapi.json POST /v1/customers/overage-override","href":"/api-reference/customers/overage-override"},{"title":"Adjust a customer's balance","sidebarTitle":"Adjust balance","openapi":"openapi.json POST /v1/customers/balance-adjustments","href":"/api-reference/customers/balance-adjustments"},{"title":"Redeem a promotion code","sidebarTitle":"Redeem a code","openapi":"openapi.json POST /v1/customers/redemptions","href":"/api-reference/customers/redeem-promotion-code"},{"title":"List a customer's redemptions","sidebarTitle":"Redemptions","openapi":"openapi.json GET /v1/customers/redemptions","href":"/api-reference/customers/redemptions"},{"title":"Get a customer's referral code","sidebarTitle":"Referral code","openapi":"openapi.json POST /v1/customers/referral-codes","href":"/api-reference/customers/referral-code"},{"title":"List a customer's referrals","sidebarTitle":"Referrals","openapi":"openapi.json GET /v1/customers/referrals","href":"/api-reference/customers/referrals"}]},{"group":"Billing","pages":[{"title":"Attach a plan or credit pack","sidebarTitle":"Attach","openapi":"openapi.json POST /v1/billing/attach","href":"/api-reference/billing/attach"},{"title":"Change a prepaid quantity","sidebarTitle":"Quantities","openapi":"openapi.json POST /v1/billing/quantities","href":"/api-reference/billing/quantities"},{"title":"Top up by amount","openapi":"openapi.json POST /v1/billing/top-up","href":"/api-reference/billing/top-up"},{"title":"Upgrade a paid plan","sidebarTitle":"Upgrade","openapi":"openapi.json POST /v1/billing/upgrade","href":"/api-reference/billing/upgrade"},{"title":"Import a Stripe subscription","openapi":"openapi.json POST /v1/billing/import","href":"/api-reference/billing/import"},{"title":"Preview a Stripe migration","openapi":"openapi.json GET /v1/migrate/stripe/preview","href":"/api-reference/migrate/stripe-preview"},{"title":"Downgrade a paid plan","openapi":"openapi.json POST /v1/billing/downgrade","href":"/api-reference/billing/downgrade"},{"title":"Get a scheduled downgrade","openapi":"openapi.json GET /v1/billing/downgrade","href":"/api-reference/billing/scheduled-downgrade"},{"title":"Undo a scheduled downgrade","openapi":"openapi.json POST /v1/billing/downgrade/{downgradeId}/cancel","href":"/api-reference/billing/cancel-downgrade"}]},{"group":"Plans","pages":[{"title":"List plans","sidebarTitle":"List","openapi":"openapi.json GET /v1/plans","href":"/api-reference/plans/list"},{"title":"Create a plan","sidebarTitle":"Create","openapi":"openapi.json POST /v1/plans","href":"/api-reference/plans/create"},{"title":"Get a plan","sidebarTitle":"Get","openapi":"openapi.json GET /v1/plans/{id}","href":"/api-reference/plans/get"},{"title":"Update a plan","sidebarTitle":"Update","openapi":"openapi.json POST /v1/plans/{id}","href":"/api-reference/plans/update"},{"title":"Archive a plan","sidebarTitle":"Archive","openapi":"openapi.json DELETE /v1/plans/{id}","href":"/api-reference/plans/archive"},{"title":"List plan versions","sidebarTitle":"List versions","openapi":"openapi.json GET /v1/plans/{id}/versions","href":"/api-reference/plans/versions"},{"title":"Promote a plan version","sidebarTitle":"Promote version","openapi":"openapi.json POST /v1/plans/{id}/versions/{version}/promote","href":"/api-reference/plans/promote"},{"title":"Preview moving subscribers to another version","sidebarTitle":"Preview migration","openapi":"openapi.json POST /v1/plans/{id}/migrations","href":"/api-reference/plans/migrations-create"},{"title":"Run a plan migration","sidebarTitle":"Run migration","openapi":"openapi.json POST /v1/plans/{id}/migrations/{migrationId}/run","href":"/api-reference/plans/migrations-run"},{"title":"Get a plan migration","sidebarTitle":"Get migration","openapi":"openapi.json GET /v1/plans/{id}/migrations/{migrationId}","href":"/api-reference/plans/migrations-get"},{"title":"Rename a plan","sidebarTitle":"Rename","openapi":"openapi.json POST /v1/plans/{id}/rename","href":"/api-reference/plans/rename"},{"title":"Drop a plan's earlier ID","sidebarTitle":"Drop earlier ID","openapi":"openapi.json DELETE /v1/plans/{id}/aliases/{alias}","href":"/api-reference/plans/delete-alias"}]},{"group":"Features","pages":[{"title":"List features","sidebarTitle":"List","openapi":"openapi.json GET /v1/features","href":"/api-reference/features/list"},{"title":"Create a feature","sidebarTitle":"Create","openapi":"openapi.json POST /v1/features","href":"/api-reference/features/create"},{"title":"Get a feature","sidebarTitle":"Get","openapi":"openapi.json GET /v1/features/{id}","href":"/api-reference/features/get"},{"title":"Update a feature","sidebarTitle":"Update","openapi":"openapi.json POST /v1/features/{id}","href":"/api-reference/features/update"},{"title":"Archive a feature","sidebarTitle":"Archive","openapi":"openapi.json DELETE /v1/features/{id}","href":"/api-reference/features/archive"}]},{"group":"Credit packs","pages":[{"title":"List credit packs","sidebarTitle":"List","openapi":"openapi.json GET /v1/add-ons","href":"/api-reference/add-ons/list"},{"title":"Create a credit pack","sidebarTitle":"Create","openapi":"openapi.json POST /v1/add-ons","href":"/api-reference/add-ons/create"},{"title":"Get a credit pack","sidebarTitle":"Get","openapi":"openapi.json GET /v1/add-ons/{id}","href":"/api-reference/add-ons/get"},{"title":"Update a credit pack","sidebarTitle":"Update","openapi":"openapi.json POST /v1/add-ons/{id}","href":"/api-reference/add-ons/update"},{"title":"Archive a credit pack","sidebarTitle":"Archive","openapi":"openapi.json DELETE /v1/add-ons/{id}","href":"/api-reference/add-ons/archive"}]},{"group":"Rewards","pages":[{"title":"List rewards","sidebarTitle":"List","openapi":"openapi.json GET /v1/rewards","href":"/api-reference/rewards/list"},{"title":"Get a reward","sidebarTitle":"Get","openapi":"openapi.json GET /v1/rewards/{rewardId}","href":"/api-reference/rewards/get"},{"title":"Create or update a reward","sidebarTitle":"Create or update","openapi":"openapi.json POST /v1/rewards","href":"/api-reference/rewards/write"},{"title":"Archive a reward","sidebarTitle":"Archive","openapi":"openapi.json DELETE /v1/rewards/{rewardId}","href":"/api-reference/rewards/archive"},{"title":"Add a promotion code","sidebarTitle":"Add a code","openapi":"openapi.json POST /v1/rewards/{rewardId}/promotion-codes","href":"/api-reference/rewards/create-promotion-code"},{"title":"Deactivate a promotion code","sidebarTitle":"Deactivate a code","openapi":"openapi.json POST /v1/rewards/{rewardId}/promotion-codes/{code}/deactivate","href":"/api-reference/rewards/deactivate-promotion-code"},{"title":"List referral programs","sidebarTitle":"List","openapi":"openapi.json GET /v1/referral-programs","href":"/api-reference/referral-programs/list"},{"title":"Get a referral program","sidebarTitle":"Get","openapi":"openapi.json GET /v1/referral-programs/{programId}","href":"/api-reference/referral-programs/get"},{"title":"Create or update a referral program","sidebarTitle":"Write","openapi":"openapi.json POST /v1/referral-programs","href":"/api-reference/referral-programs/write"},{"title":"Archive a referral program","sidebarTitle":"Archive","openapi":"openapi.json DELETE /v1/referral-programs/{programId}","href":"/api-reference/referral-programs/archive"}]},{"group":"Webhooks","pages":[{"title":"List webhook endpoints","openapi":"openapi.json GET /v1/webhook-endpoints","href":"/api-reference/webhooks/list"},{"title":"Create a webhook endpoint","openapi":"openapi.json POST /v1/webhook-endpoints","href":"/api-reference/webhooks/create"},{"title":"Get a webhook endpoint","openapi":"openapi.json GET /v1/webhook-endpoints/{id}","href":"/api-reference/webhooks/get"},{"title":"Update a webhook endpoint","openapi":"openapi.json POST /v1/webhook-endpoints/{id}","href":"/api-reference/webhooks/update"},{"title":"Delete a webhook endpoint","openapi":"openapi.json DELETE /v1/webhook-endpoints/{id}","href":"/api-reference/webhooks/delete"}]},{"group":"Reservations","pages":[{"title":"Get a reservation","openapi":"openapi.json GET /v1/reservations/{requestId}","href":"/api-reference/reservations/get"},{"title":"Release a reservation","openapi":"openapi.json POST /v1/reservations/{requestId}/release","href":"/api-reference/reservations/release"}]},{"group":"Entities","pages":[{"title":"Create or update an entity","openapi":"openapi.json POST /v1/entities","href":"/api-reference/entities/upsert"},{"title":"List a customer's entities","openapi":"openapi.json GET /v1/entities","href":"/api-reference/entities/list"},{"title":"Get an entity","openapi":"openapi.json GET /v1/entities/{entityId}","href":"/api-reference/entities/get"},{"title":"Delete an entity","openapi":"openapi.json DELETE /v1/entities/{entityId}","href":"/api-reference/entities/delete"}]},{"group":"Accounts","pages":[{"title":"Create or update an account","openapi":"openapi.json POST /v1/accounts","href":"/api-reference/accounts/save"},{"title":"Get an account","openapi":"openapi.json GET /v1/accounts/{accountId}","href":"/api-reference/accounts/get"},{"title":"Get a customer's account","openapi":"openapi.json GET /v1/accounts","href":"/api-reference/accounts/customer"},{"title":"Delete an account","openapi":"openapi.json DELETE /v1/accounts/{accountId}","href":"/api-reference/accounts/delete"}]},{"group":"Licenses","pages":[{"title":"List licenses","openapi":"openapi.json GET /v1/licenses","href":"/api-reference/licenses/list"},{"title":"Assign a seat","openapi":"openapi.json POST /v1/licenses/assign","href":"/api-reference/licenses/assign"},{"title":"Release a seat","openapi":"openapi.json POST /v1/licenses/release","href":"/api-reference/licenses/release"},{"title":"Set the seat count","openapi":"openapi.json POST /v1/licenses","href":"/api-reference/licenses/set-seats"}]},{"group":"Catalog","pages":[{"title":"Publish a catalog","sidebarTitle":"Publish","openapi":"openapi.json POST /v1/catalog","href":"/api-reference/catalog/publish"},{"title":"Get the catalog","sidebarTitle":"Get","openapi":"openapi.json GET /v1/catalog","href":"/api-reference/catalog/get"}]},{"group":"Setup","pages":[{"title":"Get setup status","openapi":"openapi.json GET /v1/setup","href":"/api-reference/setup/status"}]}]}]},"basePath":"","title":"Change custom terms - Ledger","deploymentId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","buildId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-x4vGgoST.js","snippetPresets-BGlsYH49.js","utils-D225GpYB.js","style-to-object-BY3JEAdk.js","utils-fb7dxv-3.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-D0sNzoEe.js","conditional-requirements-CFM0id0Q.js","cloneDeep-C4iMfrOs.js","_Uint8Array-DDor1j2p.js","isObject-FP1Yky1u.js","ApiExamples-Bw_TWYoP.js","usePlaygroundInputsStore-DLRpNM_Z.js","shallow-DCZ_mvT2.js","isEqual-BZMHHGz2.js","CodeSnippets-CqYNT6UN.js","CodeSnippet-AsYrl7_f.js","getApiPlaygroundDisplay-B1HdZsAn.js","Page-COAeG2by.js","DynamicMarkdown-Bg54PExR.js","SectionHeading-BVOfbSTS.js","icon-Bwg0LftJ.js","MethodPill-ETXe5J4U.js","getPastedJson-6m1DH7UM.js","Check2Icon-Bz4v4IkN.js","axios-CsQoIw0U.js","Markdown-CYkmN8yk.js","AssistantPageLink-BZUrxqjy.js","dist-C-58LlaB.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}