Change the plan, the quantity (seats, licences), or both.
Increase → charged now on the subscription’s card (prorated; full new price if the cadence changes) and applied once paid · 202, applied: false. Under 1.00 the difference is waived.
Decrease → applied at the period end, no charge.
A quantity-only change keeps the subscriber’s unit price. Licence activation limits follow the quantity.
actionUrl → returned when the customer must act (3-D Secure, card to re-enter, crypto deposit). Suby-hosted page, full page, popup or iframe: it posts { source: "suby", type: "payment_action.completed", paymentId, status } to its opener, or redirects to successUrl / cancelUrl.
subscription.updated fires once applied. Price it first with change-plan/preview.
Optional key (≤255 chars, e.g. a UUID v4) making this POST safe to retry · the response is cached 24h and a retry with the SAME key replays it instead of re-executing. The same key with a different body → 422 IDEMPOTENCY_KEY_CONFLICT; a retry while the first is in flight → 409.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Suby.fi","colors":{"primary":"#2F5BFF","light":"#6E8CFF","dark":"#1E3ECC"},"logo":{"light":"https://mintcdn.com/suby/78hmNhVo7Bl_AwU_/logo/dark.png?fit=max\u0026auto=format\u0026n=78hmNhVo7Bl_AwU_\u0026q=85\u0026s=5a8b457489b514aac7397c50d3db89fd","dark":"https://mintcdn.com/suby/78hmNhVo7Bl_AwU_/logo/white.png?fit=max\u0026auto=format\u0026n=78hmNhVo7Bl_AwU_\u0026q=85\u0026s=24b2f25a962d5405a87e21b992972103","href":"https://suby.fi"},"favicon":"https://mintcdn.com/suby/78hmNhVo7Bl_AwU_/logo/icon.png?fit=max\u0026auto=format\u0026n=78hmNhVo7Bl_AwU_\u0026q=85\u0026s=ca6a8614c28bf9d93ddfdea94f947bf2","navbar":{"links":[{"href":"https://app.suby.fi","label":"Dashboard v2"}],"primary":{"type":"button","label":"Get API key","href":"https://app.suby.fi/dashboard/settings"}},"footer":{"socials":{"website":"https://suby.fi","discord":"https://discord.com/invite/C8dxBm3hpj"}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"suby","hasAudioNarration":false,"actualSubdomain":"suby","customDomains":["docs.suby.fi"],"gitSource":{"type":"github","owner":"subyhq","repo":"suby-monorepo","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ada11330d9ece1d40e85bba","collectionId":"8aa6702d-ba15-44c3-a3cf-bcd9d3875091","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ada11330d9ece1d40e85bba"},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6aedfc842f3197cf5b9676ad","clientVersion":"0.0.4074","searchFilterCounts":[{"language":"default","tag":"API Reference","count":46},{"language":"default","tag":"Documentation","count":42},{"language":"default","tag":"Endpoints","count":39},{"language":"default","tag":"Platform","count":28},{"language":"default","tag":"Guides","count":15},{"language":"default","tag":"Features","count":14},{"language":"default","tag":"Bots","count":10},{"language":"default","tag":"Merchants","count":10},{"language":"default","tag":"Subscriptions","count":8},{"language":"default","tag":"Overview","count":7}]},"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":"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":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"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":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"v3-beta/api-reference/subscriptions/change-the-plan-or-the-quantity","slug":"/v3-beta/api-reference/subscriptions/change-the-plan-or-the-quantity","pageMetadata":{"title":"Change the plan or the quantity","description":"Change the plan, the quantity (seats, licences), or both.\n\n**Increase** → charged now on the subscription's card (prorated; full new price if the cadence changes) and applied once paid · `202`, `applied: false`. Under 1.00 the difference is waived.\n\n**Decrease** → applied at the period end, no charge.\n\nA quantity-only change keeps the subscriber's unit price. Licence activation limits follow the quantity.\n\n**`actionUrl`** → returned when the customer must act (3-D Secure, card to re-enter, crypto deposit). Suby-hosted page, full page, popup or iframe: it posts `{ source: \"suby\", type: \"payment_action.completed\", paymentId, status }` to its opener, or redirects to `successUrl` / `cancelUrl`.\n\n`subscription.updated` fires once applied. Price it first with `change-plan/preview`.\n","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml post /v3/subscriptions/{id}/change-plan","href":"/v3-beta/api-reference/subscriptions/change-the-plan-or-the-quantity","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Change the plan, the quantity (seats, licences), or both.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Increase\"\n }), \" → charged now on the subscription’s card (prorated; full new price if the cadence changes) and applied once paid · \", _jsx(_components.code, {\n children: \"202\"\n }), \", \", _jsx(_components.code, {\n children: \"applied: false\"\n }), \". Under 1.00 the difference is waived.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Decrease\"\n }), \" → applied at the period end, no charge.\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"A quantity-only change keeps the subscriber’s unit price. Licence activation limits follow the quantity.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: _jsx(_components.code, {\n children: \"actionUrl\"\n })\n }), \" → returned when the customer must act (3-D Secure, card to re-enter, crypto deposit). Suby-hosted page, full page, popup or iframe: it posts \", _jsx(_components.code, {\n children: \"{ source: \\\"suby\\\", type: \\\"payment_action.completed\\\", paymentId, status }\"\n }), \" to its opener, or redirects to \", _jsx(_components.code, {\n children: \"successUrl\"\n }), \" / \", _jsx(_components.code, {\n children: \"cancelUrl\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.code, {\n children: \"subscription.updated\"\n }), \" fires once applied. Price it first with \", _jsx(_components.code, {\n children: \"change-plan/preview\"\n }), \".\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Change the plan or the quantity","description":"Change the plan, the quantity (seats, licences), or both.\n\n**Increase** → charged now on the subscription's card (prorated; full new price if the cadence changes) and applied once paid · `202`, `applied: false`. Under 1.00 the difference is waived.\n\n**Decrease** → applied at the period end, no charge.\n\nA quantity-only change keeps the subscriber's unit price. Licence activation limits follow the quantity.\n\n**`actionUrl`** → returned when the customer must act (3-D Secure, card to re-enter, crypto deposit). Suby-hosted page, full page, popup or iframe: it posts `{ source: \"suby\", type: \"payment_action.completed\", paymentId, status }` to its opener, or redirects to `successUrl` / `cancelUrl`.\n\n`subscription.updated` fires once applied. Price it first with `change-plan/preview`.\n","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml post /v3/subscriptions/{id}/change-plan","href":"/v3-beta/api-reference/subscriptions/change-the-plan-or-the-quantity","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Subscriptions"],"summary":"Change the plan or the quantity","description":"Change the plan, the quantity (seats, licences), or both.\n\n**Increase** → charged now on the subscription's card (prorated; full new price if the cadence changes) and applied once paid · `202`, `applied: false`. Under 1.00 the difference is waived.\n\n**Decrease** → applied at the period end, no charge.\n\nA quantity-only change keeps the subscriber's unit price. Licence activation limits follow the quantity.\n\n**`actionUrl`** → returned when the customer must act (3-D Secure, card to re-enter, crypto deposit). Suby-hosted page, full page, popup or iframe: it posts `{ source: \"suby\", type: \"payment_action.completed\", paymentId, status }` to its opener, or redirects to `successUrl` / `cancelUrl`.\n\n`subscription.updated` fires once applied. Price it first with `change-plan/preview`.\n","operationId":"changeSubscriptionPlan","parameters":["216f76c7-4926-4a5e-ad98-f1dccf96c7bd","f1c6c3a7-1a00-47a8-b6e6-4088c27a5682"],"requestBody":"7d9ee4df-a36f-40b7-bfc7-fa720a3772b9","responses":{"202":"ed8d483c-9818-44f5-8ae6-9f51de202f08","401":"71c07031-850c-4133-bd1d-7899646c6d0d","404":"57fbda26-f777-4b26-bad2-de518c98c17a","409":"491e09a0-0bef-475e-9031-218a26b95e2a","422":"baa1f000-e188-429f-96f9-89867478c553"},"method":"post","type":"path","servers":["e2472143-6a38-4579-ad5b-0b951c4a4adb"],"security":["5eede530-7b2f-4d68-95b5-ee4a338c930c"],"path":"/v3/subscriptions/{id}/change-plan","baseUrlOptions":["https://api.beta.suby.fi"],"title":"Change the plan or the quantity","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"216f76c7-4926-4a5e-ad98-f1dccf96c7bd":{"name":"id","in":"path","required":true,"schema":{"type":"string","example":"sub_abc123","isRequired":true,"uniqueKey":"","typeLabel":"string"}},"f1c6c3a7-1a00-47a8-b6e6-4088c27a5682":{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional key (≤255 chars, e.g. a UUID v4) making this POST safe to retry · the response is cached 24h and a retry with the SAME key replays it instead of re-executing. The same key with a different body → `422 IDEMPOTENCY_KEY_CONFLICT`; a retry while the first is in flight → `409`.","schema":{"type":"string","maxLength":255,"example":"5f3b9c2e-1a4d-4f2b-9c31-7e2a1b6d8c04","isRequired":false,"description":"Optional key (≤255 chars, e.g. a UUID v4) making this POST safe to retry · the response is cached 24h and a retry with the SAME key replays it instead of re-executing. The same key with a different body → `422 IDEMPOTENCY_KEY_CONFLICT`; a retry while the first is in flight → `409`.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"`productId`, `quantity`, or both.","properties":{"productId":{"type":"string","description":"Target plan. Omitted = current plan.","example":"pro_9m2k1x8s7d6f","uniqueKey":"productId","typeLabel":"string"},"quantity":{"type":"integer","minimum":1,"maximum":999,"description":"Units to hold afterwards (absolute, not a delta).","example":3,"uniqueKey":"quantity","typeLabel":"integer"},"effective":{"type":"string","enum":["auto","now","period_end"],"default":"auto","description":"`auto`: increase now, decrease at period end.","uniqueKey":"effective","typeLabel":"enum\u003cstring>"},"proration":{"type":"string","enum":["delta","none"],"default":"delta","description":"`delta` charges the prorated difference; `none` charges nothing.","uniqueKey":"proration","typeLabel":"enum\u003cstring>"},"useCustomerPaymentMethod":{"type":"boolean","default":true,"description":"Charge the subscription's saved card. `false`, or a `method` + `card`, uses a fresh card.","uniqueKey":"useCustomerPaymentMethod","typeLabel":"boolean"},"method":{"type":"string","enum":["CARD","APPLE_PAY","GOOGLE_PAY"],"description":"Fresh card only.","uniqueKey":"method","typeLabel":"enum\u003cstring>"},"card":{"type":"object","properties":{"tokenizedInstrument":{"type":"string","description":"Fresh card token.","uniqueKey":"card.tokenizedInstrument","typeLabel":"string"}},"uniqueKey":"card","typeLabel":"object"},"successUrl":{"type":"string","format":"uri","description":"Redirect after `actionUrl` succeeds (full page). Omitted: a confirmation page.","uniqueKey":"successUrl","typeLabel":"string\u003curi>"},"cancelUrl":{"type":"string","format":"uri","description":"Redirect after `actionUrl` fails.","uniqueKey":"cancelUrl","typeLabel":"string\u003curi>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"productId":"pro_9m2k1x8s7d6f","quantity":3,"effective":"auto","proration":"delta","useCustomerPaymentMethod":true,"card":{"tokenizedInstrument":"\u003cstring>"},"successUrl":"\u003cstring>","cancelUrl":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"ed8d483c-9818-44f5-8ae6-9f51de202f08":{"description":"Change accepted","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"type":"boolean","example":true,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"data":{"type":"object","description":"Endpoint-specific payload.","properties":{"subscription":{"type":"object","properties":{"id":{"type":"string","example":"sub_abc123","uniqueKey":"data.subscription.id","typeLabel":"string"},"organizationId":{"type":"string","uniqueKey":"data.subscription.organizationId","typeLabel":"string"},"customerId":{"type":"string","uniqueKey":"data.subscription.customerId","typeLabel":"string"},"productId":{"type":"string","uniqueKey":"data.subscription.productId","typeLabel":"string"},"status":{"type":"string","enum":["INCOMPLETE","TRIALING","PENDING_3DS","PENDING_REDIRECT","ACTIVE","PAST_DUE","PAUSED","CANCELED","EXPIRED"],"uniqueKey":"data.subscription.status","typeLabel":"enum\u003cstring>"},"currentCycle":{"type":"integer","uniqueKey":"data.subscription.currentCycle","typeLabel":"integer"},"totalCycles":{"oneOf":[{"type":"integer","uniqueKey":"data.subscription.totalCycles.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"data.subscription.totalCycles.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.subscription.totalCycles","typeLabel":"integer | null"},"trialEndAt":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"data.subscription.trialEndAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"data.subscription.trialEndAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.subscription.trialEndAt","typeLabel":"string\u003cdate-time> | null"},"cancelAtPeriodEnd":{"type":"boolean","uniqueKey":"data.subscription.cancelAtPeriodEnd","typeLabel":"boolean"},"currentCycleDueAt":{"oneOf":[{"type":"string","format":"date-time","description":"Period-end / access-expiry clock for BOTH rails (replaces the removed `expiresAt`): card subs renew off-session at this date, crypto subs renew by email around it. Null once no further renewal is scheduled (final cycle reached or terminated).","uniqueKey":"data.subscription.currentCycleDueAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Period-end / access-expiry clock for BOTH rails (replaces the removed `expiresAt`): card subs renew off-session at this date, crypto subs renew by email around it. Null once no further renewal is scheduled (final cycle reached or terminated).","uniqueKey":"data.subscription.currentCycleDueAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.subscription.currentCycleDueAt","typeLabel":"string\u003cdate-time> | null"},"renewalAttempt":{"type":"integer","description":"Attempts made for the current cycle: 0 while healthy, then 1..N while dunning (card smart-retry). N depends on the plan's cadence · 2 for weekly/daily, 4 for monthly/yearly, so a chain always finishes inside one billing period.","uniqueKey":"data.subscription.renewalAttempt","typeLabel":"integer"},"nextRenewalAttemptAt":{"oneOf":[{"type":"string","format":"date-time","description":"Scheduled next retry while PAST_DUE (card back-off).","uniqueKey":"data.subscription.nextRenewalAttemptAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Scheduled next retry while PAST_DUE (card back-off).","uniqueKey":"data.subscription.nextRenewalAttemptAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.subscription.nextRenewalAttemptAt","typeLabel":"string\u003cdate-time> | null"},"lastDeclineCategory":{"oneOf":[{"type":"string","enum":["SOFT","HARD","AUTHENTICATION_REQUIRED"],"description":"Category of the most recent decline: SOFT (retried), HARD (ends the subscription), or AUTHENTICATION_REQUIRED (the issuer wants the cardholder to confirm the card · retried on the same schedule, but only the customer can clear it).","uniqueKey":"data.subscription.lastDeclineCategory.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["SOFT","HARD","AUTHENTICATION_REQUIRED"],"description":"Category of the most recent decline: SOFT (retried), HARD (ends the subscription), or AUTHENTICATION_REQUIRED (the issuer wants the cardholder to confirm the card · retried on the same schedule, but only the customer can clear it).","uniqueKey":"data.subscription.lastDeclineCategory.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.subscription.lastDeclineCategory","typeLabel":"enum\u003cstring> | null"},"priceCents":{"oneOf":[{"type":"string","description":"The price the customer AGREED to, frozen at subscribe time · in minor units. This is what every renewal bills, NOT the plan's current `priceCents`: editing a product's price never re-prices the people already subscribed to it, so the two diverge by design. Null only on rows created before the freeze existed.","example":"1999","uniqueKey":"data.subscription.priceCents.oneOf.0","typeLabel":"string"},{"type":"null","description":"The price the customer AGREED to, frozen at subscribe time · in minor units. This is what every renewal bills, NOT the plan's current `priceCents`: editing a product's price never re-prices the people already subscribed to it, so the two diverge by design. Null only on rows created before the freeze existed.","example":"1999","uniqueKey":"data.subscription.priceCents.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.subscription.priceCents","typeLabel":"string | null"},"currency":{"oneOf":[{"type":"string","description":"Currency of the agreed price. Frozen with it.","example":"EUR","uniqueKey":"data.subscription.currency.oneOf.0","typeLabel":"string"},{"type":"null","description":"Currency of the agreed price. Frozen with it.","example":"EUR","uniqueKey":"data.subscription.currency.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.subscription.currency","typeLabel":"string | null"},"quantity":{"type":"integer","description":"Units held (seats, licences). `priceCents` is the whole cycle (unit × quantity).","example":3,"uniqueKey":"data.subscription.quantity","typeLabel":"integer"},"taxInclusive":{"type":"boolean","description":"Whether the agreed price already includes VAT (extract from it) or excludes it (add on top). Frozen with the price and read by every renewal. Inert unless Suby is merchant of record for your account.","uniqueKey":"data.subscription.taxInclusive","typeLabel":"boolean"},"purchaseAsBusiness":{"type":"boolean","description":"B2B reverse charge · the customer subscribed as a business. Frozen at subscribe time, applied to every later charge.","uniqueKey":"data.subscription.purchaseAsBusiness","typeLabel":"boolean"},"externalRef":{"oneOf":[{"type":"string","description":"Merchant business reference set at create.","uniqueKey":"data.subscription.externalRef.oneOf.0","typeLabel":"string"},{"type":"null","description":"Merchant business reference set at create.","uniqueKey":"data.subscription.externalRef.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.subscription.externalRef","typeLabel":"string | null"},"endedAt":{"oneOf":[{"type":"string","format":"date-time","description":"When the subscription left the active set for good. Null while it is still running. Separate from `updatedAt`, which moves on any write · a churn date read off `updatedAt` re-dates itself every time anything else on the row changes.","uniqueKey":"data.subscription.endedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the subscription left the active set for good. Null while it is still running. Separate from `updatedAt`, which moves on any write · a churn date read off `updatedAt` re-dates itself every time anything else on the row changes.","uniqueKey":"data.subscription.endedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.subscription.endedAt","typeLabel":"string\u003cdate-time> | null"},"endReason":{"oneOf":[{"type":"string","enum":["CANCELED_BY_CUSTOMER","PAYMENT_FAILED","COMPLETED","NEVER_ACTIVATED"],"description":"Why it ended. `CANCELED_BY_CUSTOMER` = voluntary churn; `PAYMENT_FAILED` = the retry chain ran out (involuntary); `COMPLETED` = the last agreed cycle was reached, which is not churn; `NEVER_ACTIVATED` = the first cycle never confirmed. Null on rows that ended before this was recorded.","uniqueKey":"data.subscription.endReason.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["CANCELED_BY_CUSTOMER","PAYMENT_FAILED","COMPLETED","NEVER_ACTIVATED"],"description":"Why it ended. `CANCELED_BY_CUSTOMER` = voluntary churn; `PAYMENT_FAILED` = the retry chain ran out (involuntary); `COMPLETED` = the last agreed cycle was reached, which is not churn; `NEVER_ACTIVATED` = the first cycle never confirmed. Null on rows that ended before this was recorded.","uniqueKey":"data.subscription.endReason.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.subscription.endReason","typeLabel":"enum\u003cstring> | null"},"createdAt":{"type":"string","format":"date-time","uniqueKey":"data.subscription.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","uniqueKey":"data.subscription.updatedAt","typeLabel":"string\u003cdate-time>"},"product":{"type":"object","description":"The plan behind the subscription. Present only when `?expand=product` asked for it.\n\nIts `priceCents` is the plan's price TODAY, which is not necessarily what this\nsubscriber is billed · read `priceCents` on the subscription itself for that.\n","properties":{"id":{"type":"string","example":"pro_abc123","uniqueKey":"data.subscription.product.id","typeLabel":"string"},"name":{"type":"string","uniqueKey":"data.subscription.product.name","typeLabel":"string"},"description":{"oneOf":[{"type":"string","uniqueKey":"data.subscription.product.description.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.subscription.product.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.subscription.product.description","typeLabel":"string | null"},"imageUrl":{"oneOf":[{"type":"string","uniqueKey":"data.subscription.product.imageUrl.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.subscription.product.imageUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.subscription.product.imageUrl","typeLabel":"string | null"},"status":{"type":"string","enum":["ACTIVE","ARCHIVED"],"description":"An `ARCHIVED` plan is closed to new subscribers and keeps billing the ones it already has.","uniqueKey":"data.subscription.product.status","typeLabel":"enum\u003cstring>"},"priceCents":{"oneOf":[{"type":"string","description":"The plan's CURRENT price, in minor units.","uniqueKey":"data.subscription.product.priceCents.oneOf.0","typeLabel":"string"},{"type":"null","description":"The plan's CURRENT price, in minor units.","uniqueKey":"data.subscription.product.priceCents.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.subscription.product.priceCents","typeLabel":"string | null"},"currency":{"oneOf":[{"type":"string","uniqueKey":"data.subscription.product.currency.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.subscription.product.currency.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.subscription.product.currency","typeLabel":"string | null"},"recurringInterval":{"oneOf":[{"type":"string","enum":["DAY","WEEK","MONTH","YEAR"],"uniqueKey":"data.subscription.product.recurringInterval.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["DAY","WEEK","MONTH","YEAR"],"uniqueKey":"data.subscription.product.recurringInterval.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.subscription.product.recurringInterval","typeLabel":"enum\u003cstring> | null"},"recurringIntervalCount":{"oneOf":[{"type":"integer","uniqueKey":"data.subscription.product.recurringIntervalCount.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"data.subscription.product.recurringIntervalCount.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.subscription.product.recurringIntervalCount","typeLabel":"integer | null"},"recurringCycleCount":{"oneOf":[{"type":"integer","description":"Agreed number of cycles · null = until canceled.","uniqueKey":"data.subscription.product.recurringCycleCount.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Agreed number of cycles · null = until canceled.","uniqueKey":"data.subscription.product.recurringCycleCount.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.subscription.product.recurringCycleCount","typeLabel":"integer | null"},"trialDurationCount":{"oneOf":[{"type":"integer","uniqueKey":"data.subscription.product.trialDurationCount.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"data.subscription.product.trialDurationCount.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.subscription.product.trialDurationCount","typeLabel":"integer | null"},"trialDurationUnit":{"oneOf":[{"type":"string","enum":["DAY","WEEK","MONTH","YEAR"],"uniqueKey":"data.subscription.product.trialDurationUnit.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["DAY","WEEK","MONTH","YEAR"],"uniqueKey":"data.subscription.product.trialDurationUnit.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.subscription.product.trialDurationUnit","typeLabel":"enum\u003cstring> | null"},"adjustableQuantity":{"type":"boolean","description":"Whether the subscriber may change the quantity themselves.","uniqueKey":"data.subscription.product.adjustableQuantity","typeLabel":"boolean"},"adjustableMin":{"oneOf":[{"type":"integer","uniqueKey":"data.subscription.product.adjustableMin.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"data.subscription.product.adjustableMin.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.subscription.product.adjustableMin","typeLabel":"integer | null"},"adjustableMax":{"oneOf":[{"type":"integer","uniqueKey":"data.subscription.product.adjustableMax.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"data.subscription.product.adjustableMax.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.subscription.product.adjustableMax","typeLabel":"integer | null"}},"uniqueKey":"data.subscription.product","typeLabel":"object"},"customer":{"type":"object","description":"Present only when `?expand=customer` asked for it.","properties":{"id":{"type":"string","example":"cus_abc123","uniqueKey":"data.subscription.customer.id","typeLabel":"string"},"email":{"type":"string","format":"email","uniqueKey":"data.subscription.customer.email","typeLabel":"string\u003cemail>"}},"uniqueKey":"data.subscription.customer","typeLabel":"object"}},"uniqueKey":"data.subscription","typeLabel":"object"},"scheduledChange":{"type":"object","description":"A plan or quantity change · pending while `appliedAt` and `canceledAt` are null.","properties":{"id":{"type":"string","example":"ssc_abc123","uniqueKey":"data.scheduledChange.id","typeLabel":"string"},"type":{"type":"string","enum":["UPGRADE","DOWNGRADE","INSTRUMENT_CHANGE"],"uniqueKey":"data.scheduledChange.type","typeLabel":"enum\u003cstring>"},"targetPriceId":{"oneOf":[{"type":"string","description":"Target plan (the current one on a quantity-only change).","example":"pro_9m2k1x8s7d6f","uniqueKey":"data.scheduledChange.targetPriceId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Target plan (the current one on a quantity-only change).","example":"pro_9m2k1x8s7d6f","uniqueKey":"data.scheduledChange.targetPriceId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.scheduledChange.targetPriceId","typeLabel":"string | null"},"targetQuantity":{"oneOf":[{"type":"integer","description":"Units held once applied.","uniqueKey":"data.scheduledChange.targetQuantity.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Units held once applied.","uniqueKey":"data.scheduledChange.targetQuantity.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.scheduledChange.targetQuantity","typeLabel":"integer | null"},"targetProduct":{"oneOf":[{"type":"object","description":"The target plan itself, resolved from `targetPriceId` so you do not have to fetch it. Null when the change names no target, or when the product has since been deleted — a change is kept as billing history and outlives the plan it pointed at.","properties":{"id":{"type":"string","example":"pro_abc123","uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.id","typeLabel":"string"},"name":{"type":"string","uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.name","typeLabel":"string"},"description":{"oneOf":[{"type":"string","uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.description.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.description","typeLabel":"string | null"},"imageUrl":{"oneOf":[{"type":"string","uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.imageUrl.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.imageUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.imageUrl","typeLabel":"string | null"},"status":{"type":"string","enum":["ACTIVE","ARCHIVED"],"description":"An `ARCHIVED` plan is closed to new subscribers and keeps billing the ones it already has.","uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.status","typeLabel":"enum\u003cstring>"},"priceCents":{"oneOf":[{"type":"string","description":"The plan's CURRENT price, in minor units.","uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.priceCents.oneOf.0","typeLabel":"string"},{"type":"null","description":"The plan's CURRENT price, in minor units.","uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.priceCents.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.priceCents","typeLabel":"string | null"},"currency":{"oneOf":[{"type":"string","uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.currency.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.currency.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.currency","typeLabel":"string | null"},"recurringInterval":{"oneOf":[{"type":"string","enum":["DAY","WEEK","MONTH","YEAR"],"uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.recurringInterval.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["DAY","WEEK","MONTH","YEAR"],"uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.recurringInterval.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.recurringInterval","typeLabel":"enum\u003cstring> | null"},"recurringIntervalCount":{"oneOf":[{"type":"integer","uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.recurringIntervalCount.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.recurringIntervalCount.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.recurringIntervalCount","typeLabel":"integer | null"},"recurringCycleCount":{"oneOf":[{"type":"integer","description":"Agreed number of cycles · null = until canceled.","uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.recurringCycleCount.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Agreed number of cycles · null = until canceled.","uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.recurringCycleCount.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.recurringCycleCount","typeLabel":"integer | null"},"trialDurationCount":{"oneOf":[{"type":"integer","uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.trialDurationCount.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.trialDurationCount.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.trialDurationCount","typeLabel":"integer | null"},"trialDurationUnit":{"oneOf":[{"type":"string","enum":["DAY","WEEK","MONTH","YEAR"],"uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.trialDurationUnit.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["DAY","WEEK","MONTH","YEAR"],"uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.trialDurationUnit.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.trialDurationUnit","typeLabel":"enum\u003cstring> | null"},"adjustableQuantity":{"type":"boolean","description":"Whether the subscriber may change the quantity themselves.","uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.adjustableQuantity","typeLabel":"boolean"},"adjustableMin":{"oneOf":[{"type":"integer","uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.adjustableMin.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.adjustableMin.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.adjustableMin","typeLabel":"integer | null"},"adjustableMax":{"oneOf":[{"type":"integer","uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.adjustableMax.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.adjustableMax.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.scheduledChange.targetProduct.oneOf.0.adjustableMax","typeLabel":"integer | null"}},"uniqueKey":"data.scheduledChange.targetProduct.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"data.scheduledChange.targetProduct.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.scheduledChange.targetProduct","typeLabel":"object | null"},"scheduledFor":{"type":"string","format":"date-time","description":"When the change applies: `now` for an immediate upgrade, the period end for a downgrade.","uniqueKey":"data.scheduledChange.scheduledFor","typeLabel":"string\u003cdate-time>"},"appliedAt":{"oneOf":[{"type":"string","format":"date-time","description":"Null while pending; set once the plan swap has been applied.","uniqueKey":"data.scheduledChange.appliedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Null while pending; set once the plan swap has been applied.","uniqueKey":"data.scheduledChange.appliedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.scheduledChange.appliedAt","typeLabel":"string\u003cdate-time> | null"},"canceledAt":{"oneOf":[{"type":"string","format":"date-time","description":"Set when the change was called off before it took effect (`POST /cancel-plan-change`, or superseded by a newer scheduled change). It will never apply. A change is PENDING while `appliedAt` and `canceledAt` are both null.","uniqueKey":"data.scheduledChange.canceledAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Set when the change was called off before it took effect (`POST /cancel-plan-change`, or superseded by a newer scheduled change). It will never apply. A change is PENDING while `appliedAt` and `canceledAt` are both null.","uniqueKey":"data.scheduledChange.canceledAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.scheduledChange.canceledAt","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"data.scheduledChange","typeLabel":"object"},"applied":{"type":"boolean","description":"`true` when applied immediately (nothing to collect).","uniqueKey":"data.applied","typeLabel":"boolean"},"payment":{"type":"object","description":"The card charge for the difference.","properties":{"rail":{"type":"string","enum":["card","crypto"],"description":"Card or chain · which half of this shape the payment fills in. Read it instead of inferring the rail from a null field.","uniqueKey":"data.payment.rail","typeLabel":"enum\u003cstring>"},"id":{"type":"string","example":"pay_abc123","uniqueKey":"data.payment.id","typeLabel":"string"},"organizationId":{"type":"string","uniqueKey":"data.payment.organizationId","typeLabel":"string"},"customerId":{"oneOf":[{"type":"string","uniqueKey":"data.payment.customerId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.payment.customerId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.customerId","typeLabel":"string | null"},"productId":{"oneOf":[{"type":"string","uniqueKey":"data.payment.productId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.payment.productId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.productId","typeLabel":"string | null"},"subscriptionId":{"oneOf":[{"type":"string","uniqueKey":"data.payment.subscriptionId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.payment.subscriptionId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.subscriptionId","typeLabel":"string | null"},"status":{"type":"string","enum":["PENDING","AUTHORIZED","PENDING_3DS","PENDING_REDIRECT","BRIDGING","RECEIVED","PARTIAL","COMPLETED","FAILED","DECLINED","REFUNDED","PARTIALLY_REFUNDED","CANCELED","EXPIRED"],"uniqueKey":"data.payment.status","typeLabel":"enum\u003cstring>"},"paymentMethodCategory":{"oneOf":[{"type":"string","enum":["CARD","AMEX","COMMERCIAL_CARD","APPLE_PAY","GOOGLE_PAY","KLARNA","IDEAL","BANCONTACT","TWINT","BLIK","AFFIRM","ALMA","BILLIE","SCALAPAY","MULTIBANCO","PAYPAL","SEPA_DIRECT_DEBIT","ACH_DIRECT_DEBIT","STABLECOIN","VOLATILE_CRYPTO"],"description":"The method the NETWORK reported, resolved at settlement · not the one the payer clicked. Null until then, so absence means \"not settled yet\", never \"a card\". It names the payer's instrument (Klarna, iDEAL, Apple Pay), never the acquirer that processed it.","uniqueKey":"data.payment.paymentMethodCategory.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["CARD","AMEX","COMMERCIAL_CARD","APPLE_PAY","GOOGLE_PAY","KLARNA","IDEAL","BANCONTACT","TWINT","BLIK","AFFIRM","ALMA","BILLIE","SCALAPAY","MULTIBANCO","PAYPAL","SEPA_DIRECT_DEBIT","ACH_DIRECT_DEBIT","STABLECOIN","VOLATILE_CRYPTO"],"description":"The method the NETWORK reported, resolved at settlement · not the one the payer clicked. Null until then, so absence means \"not settled yet\", never \"a card\". It names the payer's instrument (Klarna, iDEAL, Apple Pay), never the acquirer that processed it.","uniqueKey":"data.payment.paymentMethodCategory.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.paymentMethodCategory","typeLabel":"enum\u003cstring> | null"},"declineCode":{"oneOf":[{"type":"string","description":"Normalized decline reason for a FAILED charge (Stripe-parity `decline_code`), e.g. `insufficient_funds`, `not_supported`, `stolen_card`, `expired_card`. Null on non-declined / non-card payments.","uniqueKey":"data.payment.declineCode.oneOf.0","typeLabel":"string"},{"type":"null","description":"Normalized decline reason for a FAILED charge (Stripe-parity `decline_code`), e.g. `insufficient_funds`, `not_supported`, `stolen_card`, `expired_card`. Null on non-declined / non-card payments.","uniqueKey":"data.payment.declineCode.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.declineCode","typeLabel":"string | null"},"declineCategory":{"oneOf":[{"type":"string","enum":["SOFT","HARD","AUTHENTICATION_REQUIRED"],"description":"Retryability of the decline: SOFT = transient (a retry may succeed), HARD = terminal (the credential is unusable), AUTHENTICATION_REQUIRED = the card is fine but the issuer wants the cardholder to authenticate, which no retry can supply. Null when not a decline.","uniqueKey":"data.payment.declineCategory.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["SOFT","HARD","AUTHENTICATION_REQUIRED"],"description":"Retryability of the decline: SOFT = transient (a retry may succeed), HARD = terminal (the credential is unusable), AUTHENTICATION_REQUIRED = the card is fine but the issuer wants the cardholder to authenticate, which no retry can supply. Null when not a decline.","uniqueKey":"data.payment.declineCategory.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.declineCategory","typeLabel":"enum\u003cstring> | null"},"declineAdvice":{"oneOf":[{"type":"string","enum":["TRY_AGAIN_LATER","DO_NOT_TRY_AGAIN","CONFIRM_CARD_DATA"],"description":"The card network's own instruction on what to do next. Distinct from `declineCategory`, which is our reading of the reason: the same reason can come back TRY_AGAIN_LATER on one charge and DO_NOT_TRY_AGAIN on another, and only this field says which. Null when the network returned no advice.","uniqueKey":"data.payment.declineAdvice.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["TRY_AGAIN_LATER","DO_NOT_TRY_AGAIN","CONFIRM_CARD_DATA"],"description":"The card network's own instruction on what to do next. Distinct from `declineCategory`, which is our reading of the reason: the same reason can come back TRY_AGAIN_LATER on one charge and DO_NOT_TRY_AGAIN on another, and only this field says which. Null when the network returned no advice.","uniqueKey":"data.payment.declineAdvice.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.declineAdvice","typeLabel":"enum\u003cstring> | null"},"declineNetworkCode":{"oneOf":[{"type":"string","description":"The card network's own decline code, verbatim (e.g. Visa `1A`). Not normalized on purpose · it is the identifier the cardholder's bank recognises. Null when the network returned none.","uniqueKey":"data.payment.declineNetworkCode.oneOf.0","typeLabel":"string"},{"type":"null","description":"The card network's own decline code, verbatim (e.g. Visa `1A`). Not normalized on purpose · it is the identifier the cardholder's bank recognises. Null when the network returned none.","uniqueKey":"data.payment.declineNetworkCode.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.declineNetworkCode","typeLabel":"string | null"},"threeDSecureResult":{"oneOf":[{"type":"string","enum":["AUTHENTICATED","ATTEMPT_ACKNOWLEDGED","FAILED","NOT_SUPPORTED","PROCESSING_ERROR","NOT_REQUESTED"],"description":"How the 3-D Secure step ended for this charge. A refusal that follows a FAILED or PROCESSING_ERROR authentication is not the same event as an issuer refusing the funds, and no decline code separates them. Null when the charge never reached an authentication step.","uniqueKey":"data.payment.threeDSecureResult.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["AUTHENTICATED","ATTEMPT_ACKNOWLEDGED","FAILED","NOT_SUPPORTED","PROCESSING_ERROR","NOT_REQUESTED"],"description":"How the 3-D Secure step ended for this charge. A refusal that follows a FAILED or PROCESSING_ERROR authentication is not the same event as an issuer refusing the funds, and no decline code separates them. Null when the charge never reached an authentication step.","uniqueKey":"data.payment.threeDSecureResult.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.threeDSecureResult","typeLabel":"enum\u003cstring> | null"},"displayName":{"oneOf":[{"type":"string","uniqueKey":"data.payment.displayName.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.payment.displayName.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.displayName","typeLabel":"string | null"},"displayDescription":{"oneOf":[{"type":"string","uniqueKey":"data.payment.displayDescription.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.payment.displayDescription.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.displayDescription","typeLabel":"string | null"},"displayImageUrl":{"oneOf":[{"type":"string","uniqueKey":"data.payment.displayImageUrl.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.payment.displayImageUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.displayImageUrl","typeLabel":"string | null"},"priceCents":{"oneOf":[{"type":"string","uniqueKey":"data.payment.priceCents.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.payment.priceCents.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.priceCents","typeLabel":"string | null"},"currency":{"oneOf":[{"type":"string","uniqueKey":"data.payment.currency.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.payment.currency.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.currency","typeLabel":"string | null"},"tokenAmount":{"oneOf":[{"type":"string","uniqueKey":"data.payment.tokenAmount.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.payment.tokenAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.tokenAmount","typeLabel":"string | null"},"tokenFeeAmount":{"oneOf":[{"type":"string","uniqueKey":"data.payment.tokenFeeAmount.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.payment.tokenFeeAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.tokenFeeAmount","typeLabel":"string | null"},"quoteFiatAmountCents":{"oneOf":[{"type":"integer","uniqueKey":"data.payment.quoteFiatAmountCents.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"data.payment.quoteFiatAmountCents.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.quoteFiatAmountCents","typeLabel":"integer | null"},"quoteFiatCurrency":{"oneOf":[{"type":"string","uniqueKey":"data.payment.quoteFiatCurrency.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.payment.quoteFiatCurrency.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.quoteFiatCurrency","typeLabel":"string | null"},"grossAmountCents":{"oneOf":[{"type":"integer","uniqueKey":"data.payment.grossAmountCents.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"data.payment.grossAmountCents.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.grossAmountCents","typeLabel":"integer | null"},"platformFeeCents":{"oneOf":[{"type":"integer","uniqueKey":"data.payment.platformFeeCents.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"data.payment.platformFeeCents.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.platformFeeCents","typeLabel":"integer | null"},"merchantNetCents":{"oneOf":[{"type":"integer","uniqueKey":"data.payment.merchantNetCents.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"data.payment.merchantNetCents.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.merchantNetCents","typeLabel":"integer | null"},"vatAmountCents":{"oneOf":[{"type":"integer","description":"The VAT portion INCLUDED in `grossAmountCents`. Null whenever `vatRateBps` is · same three conditions.","uniqueKey":"data.payment.vatAmountCents.oneOf.0","typeLabel":"integer"},{"type":"null","description":"The VAT portion INCLUDED in `grossAmountCents`. Null whenever `vatRateBps` is · same three conditions.","uniqueKey":"data.payment.vatAmountCents.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.vatAmountCents","typeLabel":"integer | null"},"vatRateBps":{"oneOf":[{"type":"integer","description":"Applied VAT rate in basis points (2000 = 20%). Non-null only on a CARD charge, for a merchant Suby is the seller of record for, billed in the EU · null everywhere else. A crypto payment is never taxed whatever the merchant's mode: the payer sends an amount sized from the merchant's price and nothing is added on top.","uniqueKey":"data.payment.vatRateBps.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Applied VAT rate in basis points (2000 = 20%). Non-null only on a CARD charge, for a merchant Suby is the seller of record for, billed in the EU · null everywhere else. A crypto payment is never taxed whatever the merchant's mode: the payer sends an amount sized from the merchant's price and nothing is added on top.","uniqueKey":"data.payment.vatRateBps.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.vatRateBps","typeLabel":"integer | null"},"vatRemittedByMerchant":{"type":"boolean","description":"Who files `vatAmountCents` with the tax authority. `false` = Suby, as seller of record, kept it out of `merchantNetCents`. `true` = your account is set up to remit its own VAT: the payer was charged the same VAT, and it stays inside `merchantNetCents` for you to declare. Always `false` on a charge that carries no VAT.","uniqueKey":"data.payment.vatRemittedByMerchant","typeLabel":"boolean"},"taxInclusive":{"type":"boolean","description":"true = price is VAT-inclusive (gross = price); false = exclusive (gross = price + VAT). The behavior the charge was priced with, snapshotted · it records how the price was READ, so it stays meaningful on a charge that collected no VAT (crypto, non-MoR), where gross = price either way.","uniqueKey":"data.payment.taxInclusive","typeLabel":"boolean"},"fxSurchargeCents":{"oneOf":[{"type":"integer","description":"Currency-conversion surcharge, INCLUDED in platformFeeCents (never a second deduction). Billed only when the acquirer settled this charge in a currency it was not priced in, and only on a fee plan that passes it through. Null = not billed.","uniqueKey":"data.payment.fxSurchargeCents.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Currency-conversion surcharge, INCLUDED in platformFeeCents (never a second deduction). Billed only when the acquirer settled this charge in a currency it was not priced in, and only on a fee plan that passes it through. Null = not billed.","uniqueKey":"data.payment.fxSurchargeCents.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.fxSurchargeCents","typeLabel":"integer | null"},"internationalCardSurchargeCents":{"oneOf":[{"type":"integer","description":"Surcharge for a card issued outside your own region, INCLUDED in platformFeeCents. Resolved at capture from the card's issuing country. Null = not billed.","uniqueKey":"data.payment.internationalCardSurchargeCents.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Surcharge for a card issued outside your own region, INCLUDED in platformFeeCents. Resolved at capture from the card's issuing country. Null = not billed.","uniqueKey":"data.payment.internationalCardSurchargeCents.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.internationalCardSurchargeCents","typeLabel":"integer | null"},"rollingReserveCents":{"oneOf":[{"type":"integer","description":"Held back at capture and released on maturity · NOT a fee and NOT deducted from merchantNetCents. It is your own money kept aside to cover a refund or a chargeback, and it is the difference between merchantNetCents and what the balance was credited. Null when your account carries no reserve.","uniqueKey":"data.payment.rollingReserveCents.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Held back at capture and released on maturity · NOT a fee and NOT deducted from merchantNetCents. It is your own money kept aside to cover a refund or a chargeback, and it is the difference between merchantNetCents and what the balance was credited. Null when your account carries no reserve.","uniqueKey":"data.payment.rollingReserveCents.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.rollingReserveCents","typeLabel":"integer | null"},"refundedAmountCents":{"oneOf":[{"type":"integer","uniqueKey":"data.payment.refundedAmountCents.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"data.payment.refundedAmountCents.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.refundedAmountCents","typeLabel":"integer | null"},"refundedAt":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"data.payment.refundedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"data.payment.refundedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.refundedAt","typeLabel":"string\u003cdate-time> | null"},"cryptoSettlementMode":{"oneOf":[{"type":"string","uniqueKey":"data.payment.cryptoSettlementMode.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.payment.cryptoSettlementMode.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.cryptoSettlementMode","typeLabel":"string | null"},"settlementChainId":{"oneOf":[{"type":"integer","uniqueKey":"data.payment.settlementChainId.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"data.payment.settlementChainId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.settlementChainId","typeLabel":"integer | null"},"settlementAsset":{"oneOf":[{"type":"string","uniqueKey":"data.payment.settlementAsset.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.payment.settlementAsset.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.settlementAsset","typeLabel":"string | null"},"settlementRecipient":{"oneOf":[{"type":"string","uniqueKey":"data.payment.settlementRecipient.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.payment.settlementRecipient.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.settlementRecipient","typeLabel":"string | null"},"depositAddress":{"oneOf":[{"type":"string","uniqueKey":"data.payment.depositAddress.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.payment.depositAddress.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.depositAddress","typeLabel":"string | null"},"settlementTxHash":{"oneOf":[{"type":"string","description":"Ours · the settlement transfer. Null until the chain produces it.","uniqueKey":"data.payment.settlementTxHash.oneOf.0","typeLabel":"string"},{"type":"null","description":"Ours · the settlement transfer. Null until the chain produces it.","uniqueKey":"data.payment.settlementTxHash.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.settlementTxHash","typeLabel":"string | null"},"lifiTxHash":{"oneOf":[{"type":"string","description":"The bridge's transaction, on a payment we convert cross-chain. Null on a same-chain settlement, and until the bridge fills.","uniqueKey":"data.payment.lifiTxHash.oneOf.0","typeLabel":"string"},{"type":"null","description":"The bridge's transaction, on a payment we convert cross-chain. Null on a same-chain settlement, and until the bridge fills.","uniqueKey":"data.payment.lifiTxHash.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.lifiTxHash","typeLabel":"string | null"},"lifiSubstatus":{"oneOf":[{"type":"string","description":"Where that bridge transfer currently stands, as the bridge reports it. Null when no bridge is involved.","uniqueKey":"data.payment.lifiSubstatus.oneOf.0","typeLabel":"string"},{"type":"null","description":"Where that bridge transfer currently stands, as the bridge reports it. Null when no bridge is involved.","uniqueKey":"data.payment.lifiSubstatus.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.lifiSubstatus","typeLabel":"string | null"},"successUrl":{"oneOf":[{"type":"string","uniqueKey":"data.payment.successUrl.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.payment.successUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.successUrl","typeLabel":"string | null"},"cancelUrl":{"oneOf":[{"type":"string","uniqueKey":"data.payment.cancelUrl.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.payment.cancelUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.cancelUrl","typeLabel":"string | null"},"externalRef":{"oneOf":[{"type":"string","uniqueKey":"data.payment.externalRef.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.payment.externalRef.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.externalRef","typeLabel":"string | null"},"paymentReceivedAt":{"oneOf":[{"type":"string","format":"date-time","description":"When the payer's crypto deposit landed at the address we gave them. It does NOT mean the sale is confirmed: on-chain funds still have to clear the settlement step (the SubyPayment split, or the bridge transaction) before we announce anything. Null on card charges.","uniqueKey":"data.payment.paymentReceivedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the payer's crypto deposit landed at the address we gave them. It does NOT mean the sale is confirmed: on-chain funds still have to clear the settlement step (the SubyPayment split, or the bridge transaction) before we announce anything. Null on card charges.","uniqueKey":"data.payment.paymentReceivedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.paymentReceivedAt","typeLabel":"string\u003cdate-time> | null"},"paymentSettledAt":{"oneOf":[{"type":"string","format":"date-time","description":"When the merchant's share reached its destination on-chain.","uniqueKey":"data.payment.paymentSettledAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the merchant's share reached its destination on-chain.","uniqueKey":"data.payment.paymentSettledAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.paymentSettledAt","typeLabel":"string\u003cdate-time> | null"},"paymentConfirmedAt":{"oneOf":[{"type":"string","format":"date-time","description":"When the sale was confirmed to both sides · the instant `payment.succeeded` was emitted, the access granted, the receipt sent and the payer shown a success screen. On a crypto payment this is a few seconds after `paymentReceivedAt`: the settlement step that proves the deposit spendable has to clear first, and if it takes longer than ~35s we confirm anyway rather than hold the payer on our settlement. Null on card charges, where the capture (COMPLETED) is itself the confirmation.","uniqueKey":"data.payment.paymentConfirmedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the sale was confirmed to both sides · the instant `payment.succeeded` was emitted, the access granted, the receipt sent and the payer shown a success screen. On a crypto payment this is a few seconds after `paymentReceivedAt`: the settlement step that proves the deposit spendable has to clear first, and if it takes longer than ~35s we confirm anyway rather than hold the payer on our settlement. Null on card charges, where the capture (COMPLETED) is itself the confirmation.","uniqueKey":"data.payment.paymentConfirmedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.paymentConfirmedAt","typeLabel":"string\u003cdate-time> | null"},"createdAt":{"type":"string","format":"date-time","uniqueKey":"data.payment.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","uniqueKey":"data.payment.updatedAt","typeLabel":"string\u003cdate-time>"},"expiresAt":{"oneOf":[{"type":"string","format":"date-time","description":"When an unfinished intent stops being payable. Set for card/APM (bounded to the checkout-session window, else 30 min) and crypto (per-chain deposit window · 60 min on Bitcoin). Past this, an abandoned PENDING intent is swept to EXPIRED. On a crypto deposit the sweep waits out a per-chain grace first (~20 min on Bitcoin, ~3 elsewhere): a transfer broadcast just inside the window is only visible to us just outside it, and one that arrives in that grace still settles. So `EXPIRED` lands later than this timestamp, and a deposit already seen is never expired by the clock at all · it is only waiting on confirmations. Null only for legacy rows.","uniqueKey":"data.payment.expiresAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When an unfinished intent stops being payable. Set for card/APM (bounded to the checkout-session window, else 30 min) and crypto (per-chain deposit window · 60 min on Bitcoin). Past this, an abandoned PENDING intent is swept to EXPIRED. On a crypto deposit the sweep waits out a per-chain grace first (~20 min on Bitcoin, ~3 elsewhere): a transfer broadcast just inside the window is only visible to us just outside it, and one that arrives in that grace still settles. So `EXPIRED` lands later than this timestamp, and a deposit already seen is never expired by the clock at all · it is only waiting on confirmations. Null only for legacy rows.","uniqueKey":"data.payment.expiresAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.expiresAt","typeLabel":"string\u003cdate-time> | null"},"statusTimeline":{"type":"array","description":"Append-only status history · every status the payment moved through, oldest→newest. The last entry is where it currently stands / stopped. Populated on detail + list reads; empty for legacy rows created before the feature.","items":{"type":"object","properties":{"status":{"type":"string","description":"The status the payment transitioned into.","enum":["PENDING","AUTHORIZED","PENDING_3DS","PENDING_REDIRECT","BRIDGING","RECEIVED","PARTIAL","COMPLETED","FAILED","DECLINED","REFUNDED","PARTIALLY_REFUNDED","CANCELED","EXPIRED"],"uniqueKey":"data.payment.statusTimeline.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"at":{"type":"string","format":"date-time","description":"When the transition happened.","uniqueKey":"data.payment.statusTimeline.items.[INDEX].at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"data.payment.statusTimeline.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.payment.statusTimeline","typeLabel":"object[]"},"items":{"type":"array","description":"What was bought, line by line, frozen at create time. A payment link charges ONE total against N products, so `productId` alone cannot describe the order · read this instead. Absent on payments created before the field existed and on charges whose caller priced no lines. Amounts are in the payment's `currency`; a discount applies to the total, so the lines do not necessarily sum to `grossAmountCents`.","items":{"type":"object","properties":{"productId":{"oneOf":[{"type":"string","description":"Catalogue product · null on an ad-hoc line (a price and a label, no catalogue entry).","uniqueKey":"data.payment.\\items.items.[INDEX].productId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Catalogue product · null on an ad-hoc line (a price and a label, no catalogue entry).","uniqueKey":"data.payment.\\items.items.[INDEX].productId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.\\items.items.[INDEX].productId","typeLabel":"string | null"},"name":{"type":"string","description":"Product name as displayed at checkout, frozen at that moment.","uniqueKey":"data.payment.\\items.items.[INDEX].name","typeLabel":"string"},"quantity":{"type":"integer","uniqueKey":"data.payment.\\items.items.[INDEX].quantity","typeLabel":"integer"},"unitPriceCents":{"type":"integer","uniqueKey":"data.payment.\\items.items.[INDEX].unitPriceCents","typeLabel":"integer"}},"uniqueKey":"data.payment.\\items.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.payment.\\items","typeLabel":"object[]"},"asset":{"oneOf":[{"type":"object","description":"What the PAYER sent · their chain and their token. Populated on crypto reads. Distinct from `settlementAsset` / `settlementChain`, which say where the funds are HEADED: on an account that converges every token to one stablecoin the two sides differ on almost every payment.","properties":{"chainId":{"type":"integer","uniqueKey":"data.payment.asset.oneOf.0.chainId","typeLabel":"integer"},"chainName":{"oneOf":[{"type":"string","description":"The chain's proper noun, e.g. `BNB Smart Chain`. Data, never localized.","uniqueKey":"data.payment.asset.oneOf.0.chainName.oneOf.0","typeLabel":"string"},{"type":"null","description":"The chain's proper noun, e.g. `BNB Smart Chain`. Data, never localized.","uniqueKey":"data.payment.asset.oneOf.0.chainName.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.asset.oneOf.0.chainName","typeLabel":"string | null"},"chainLogoUrl":{"oneOf":[{"type":"string","uniqueKey":"data.payment.asset.oneOf.0.chainLogoUrl.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.payment.asset.oneOf.0.chainLogoUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.asset.oneOf.0.chainLogoUrl","typeLabel":"string | null"},"symbol":{"type":"string","uniqueKey":"data.payment.asset.oneOf.0.symbol","typeLabel":"string"},"decimals":{"type":"integer","uniqueKey":"data.payment.asset.oneOf.0.decimals","typeLabel":"integer"},"address":{"type":"string","description":"Token contract / SPL mint, or `NATIVE`.","uniqueKey":"data.payment.asset.oneOf.0.address","typeLabel":"string"},"logoUrl":{"oneOf":[{"type":"string","uniqueKey":"data.payment.asset.oneOf.0.logoUrl.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.payment.asset.oneOf.0.logoUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.asset.oneOf.0.logoUrl","typeLabel":"string | null"}},"uniqueKey":"data.payment.asset.oneOf.0","typeLabel":"object"},{"type":"null","description":"What the PAYER sent · their chain and their token. Populated on crypto reads. Distinct from `settlementAsset` / `settlementChain`, which say where the funds are HEADED: on an account that converges every token to one stablecoin the two sides differ on almost every payment.","properties":{"chainId":{"type":"integer"},"chainName":{"oneOf":[{"type":"string","description":"The chain's proper noun, e.g. `BNB Smart Chain`. Data, never localized."},{"type":"null","description":"The chain's proper noun, e.g. `BNB Smart Chain`. Data, never localized."}]},"chainLogoUrl":{"oneOf":[{"type":"string"},{"type":"null"}]},"symbol":{"type":"string"},"decimals":{"type":"integer"},"address":{"type":"string","description":"Token contract / SPL mint, or `NATIVE`."},"logoUrl":{"oneOf":[{"type":"string"},{"type":"null"}]}},"uniqueKey":"data.payment.asset.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.asset","typeLabel":"object | null"},"settlementChain":{"oneOf":[{"type":"object","description":"The chain named by `settlementChainId` · where the funds converge. Read together with `settlementAsset`. Null on card charges.","properties":{"chainId":{"type":"integer","uniqueKey":"data.payment.settlementChain.oneOf.0.chainId","typeLabel":"integer"},"name":{"oneOf":[{"type":"string","description":"The chain's proper noun, e.g. `Polygon`. Data, never localized.","uniqueKey":"data.payment.settlementChain.oneOf.0.name.oneOf.0","typeLabel":"string"},{"type":"null","description":"The chain's proper noun, e.g. `Polygon`. Data, never localized.","uniqueKey":"data.payment.settlementChain.oneOf.0.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.settlementChain.oneOf.0.name","typeLabel":"string | null"},"logoUrl":{"oneOf":[{"type":"string","uniqueKey":"data.payment.settlementChain.oneOf.0.logoUrl.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.payment.settlementChain.oneOf.0.logoUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.settlementChain.oneOf.0.logoUrl","typeLabel":"string | null"}},"uniqueKey":"data.payment.settlementChain.oneOf.0","typeLabel":"object"},{"type":"null","description":"The chain named by `settlementChainId` · where the funds converge. Read together with `settlementAsset`. Null on card charges.","properties":{"chainId":{"type":"integer"},"name":{"oneOf":[{"type":"string","description":"The chain's proper noun, e.g. `Polygon`. Data, never localized."},{"type":"null","description":"The chain's proper noun, e.g. `Polygon`. Data, never localized."}]},"logoUrl":{"oneOf":[{"type":"string"},{"type":"null"}]}},"uniqueKey":"data.payment.settlementChain.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.settlementChain","typeLabel":"object | null"},"deposit":{"oneOf":[{"type":"object","description":"Where the payer's deposit stands · **`GET /v3/payments/{id}` only**, and only while a crypto deposit is being watched. The list read does not carry it: it is what you poll ONE payment with, and paging it in would parse three chain snapshots per row to answer a question nobody asks of a page.","properties":{"expected":{"type":"string","uniqueKey":"data.payment.deposit.oneOf.0.expected","typeLabel":"string"},"received":{"type":"string","uniqueKey":"data.payment.deposit.oneOf.0.received","typeLabel":"string"},"remaining":{"type":"string","uniqueKey":"data.payment.deposit.oneOf.0.remaining","typeLabel":"string"},"confirmations":{"oneOf":[{"type":"object","properties":{"observed":{"type":"integer","uniqueKey":"data.payment.deposit.oneOf.0.confirmations.oneOf.0.observed","typeLabel":"integer"},"required":{"type":"integer","uniqueKey":"data.payment.deposit.oneOf.0.confirmations.oneOf.0.required","typeLabel":"integer"},"detectedAt":{"type":"string","format":"date-time","uniqueKey":"data.payment.deposit.oneOf.0.confirmations.oneOf.0.detectedAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"data.payment.deposit.oneOf.0.confirmations.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"observed":{"type":"integer"},"required":{"type":"integer"},"detectedAt":{"type":"string","format":"date-time"}},"uniqueKey":"data.payment.deposit.oneOf.0.confirmations.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.deposit.oneOf.0.confirmations","typeLabel":"object | null"},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["INSUFFICIENT_DEPOSIT_AMOUNT","RBF_DETECTED","NETWORK_FEE_SURCHARGE"],"uniqueKey":"data.payment.deposit.oneOf.0.warnings.items.[INDEX].code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","uniqueKey":"data.payment.deposit.oneOf.0.warnings.items.[INDEX].message","typeLabel":"string"},"data":{"type":"object","additionalProperties":true,"uniqueKey":"data.payment.deposit.oneOf.0.warnings.items.[INDEX].data","typeLabel":"object"}},"uniqueKey":"data.payment.deposit.oneOf.0.warnings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.payment.deposit.oneOf.0.warnings","typeLabel":"object[]"}},"uniqueKey":"data.payment.deposit.oneOf.0","typeLabel":"object"},{"type":"null","description":"Where the payer's deposit stands · **`GET /v3/payments/{id}` only**, and only while a crypto deposit is being watched. The list read does not carry it: it is what you poll ONE payment with, and paging it in would parse three chain snapshots per row to answer a question nobody asks of a page.","properties":{"expected":{"type":"string"},"received":{"type":"string"},"remaining":{"type":"string"},"confirmations":{"oneOf":[{"type":"object","properties":{"observed":{"type":"integer"},"required":{"type":"integer"},"detectedAt":{"type":"string","format":"date-time"}}},{"type":"null","properties":{"observed":{"type":"integer"},"required":{"type":"integer"},"detectedAt":{"type":"string","format":"date-time"}}}]},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["INSUFFICIENT_DEPOSIT_AMOUNT","RBF_DETECTED","NETWORK_FEE_SURCHARGE"]},"message":{"type":"string"},"data":{"type":"object","additionalProperties":true}}}}},"uniqueKey":"data.payment.deposit.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment.deposit","typeLabel":"object | null"}},"uniqueKey":"data.payment","typeLabel":"object"},"actionUrl":{"type":"string","format":"uri","description":"Page where the customer completes the payment (3-D Secure, card to re-enter, crypto deposit). Valid 30 minutes.","uniqueKey":"data.actionUrl","typeLabel":"string\u003curi>"}},"isRequired":true,"uniqueKey":"data","typeLabel":"object"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"data":{"subscription":{"id":"sub_abc123","organizationId":"\u003cstring>","customerId":"\u003cstring>","productId":"\u003cstring>","status":"INCOMPLETE","currentCycle":123,"totalCycles":123,"trialEndAt":"2023-11-07T05:31:56Z","cancelAtPeriodEnd":true,"currentCycleDueAt":"2023-11-07T05:31:56Z","renewalAttempt":123,"nextRenewalAttemptAt":"2023-11-07T05:31:56Z","lastDeclineCategory":"SOFT","priceCents":"1999","currency":"EUR","quantity":3,"taxInclusive":true,"purchaseAsBusiness":true,"externalRef":"\u003cstring>","endedAt":"2023-11-07T05:31:56Z","endReason":"CANCELED_BY_CUSTOMER","createdAt":"2023-11-07T05:31:56Z","updatedAt":"2023-11-07T05:31:56Z","product":{"id":"pro_abc123","name":"\u003cstring>","description":"\u003cstring>","imageUrl":"\u003cstring>","status":"ACTIVE","priceCents":"\u003cstring>","currency":"\u003cstring>","recurringInterval":"DAY","recurringIntervalCount":123,"recurringCycleCount":123,"trialDurationCount":123,"trialDurationUnit":"DAY","adjustableQuantity":true,"adjustableMin":123,"adjustableMax":123},"customer":{"id":"cus_abc123","email":"jsmith@example.com"}},"scheduledChange":{"id":"ssc_abc123","type":"UPGRADE","targetPriceId":"pro_9m2k1x8s7d6f","targetQuantity":123,"targetProduct":{"id":"pro_abc123","name":"\u003cstring>","description":"\u003cstring>","imageUrl":"\u003cstring>","status":"ACTIVE","priceCents":"\u003cstring>","currency":"\u003cstring>","recurringInterval":"DAY","recurringIntervalCount":123,"recurringCycleCount":123,"trialDurationCount":123,"trialDurationUnit":"DAY","adjustableQuantity":true,"adjustableMin":123,"adjustableMax":123},"scheduledFor":"2023-11-07T05:31:56Z","appliedAt":"2023-11-07T05:31:56Z","canceledAt":"2023-11-07T05:31:56Z"},"applied":true,"payment":{"rail":"card","id":"pay_abc123","organizationId":"\u003cstring>","customerId":"\u003cstring>","productId":"\u003cstring>","subscriptionId":"\u003cstring>","status":"PENDING","paymentMethodCategory":"CARD","declineCode":"\u003cstring>","declineCategory":"SOFT","declineAdvice":"TRY_AGAIN_LATER","declineNetworkCode":"\u003cstring>","threeDSecureResult":"AUTHENTICATED","displayName":"\u003cstring>","displayDescription":"\u003cstring>","displayImageUrl":"\u003cstring>","priceCents":"\u003cstring>","currency":"\u003cstring>","tokenAmount":"\u003cstring>","tokenFeeAmount":"\u003cstring>","quoteFiatAmountCents":123,"quoteFiatCurrency":"\u003cstring>","grossAmountCents":123,"platformFeeCents":123,"merchantNetCents":123,"vatAmountCents":123,"vatRateBps":123,"vatRemittedByMerchant":true,"taxInclusive":true,"fxSurchargeCents":123,"internationalCardSurchargeCents":123,"rollingReserveCents":123,"refundedAmountCents":123,"refundedAt":"2023-11-07T05:31:56Z","cryptoSettlementMode":"\u003cstring>","settlementChainId":123,"settlementAsset":"\u003cstring>","settlementRecipient":"\u003cstring>","depositAddress":"\u003cstring>","settlementTxHash":"\u003cstring>","lifiTxHash":"\u003cstring>","lifiSubstatus":"\u003cstring>","successUrl":"\u003cstring>","cancelUrl":"\u003cstring>","externalRef":"\u003cstring>","paymentReceivedAt":"2023-11-07T05:31:56Z","paymentSettledAt":"2023-11-07T05:31:56Z","paymentConfirmedAt":"2023-11-07T05:31:56Z","createdAt":"2023-11-07T05:31:56Z","updatedAt":"2023-11-07T05:31:56Z","expiresAt":"2023-11-07T05:31:56Z","statusTimeline":[{"status":"PENDING","at":"2023-11-07T05:31:56Z"}],"items":[{"productId":"\u003cstring>","name":"\u003cstring>","quantity":123,"unitPriceCents":123}],"asset":{"chainId":123,"chainName":"\u003cstring>","chainLogoUrl":"\u003cstring>","symbol":"\u003cstring>","decimals":123,"address":"\u003cstring>","logoUrl":"\u003cstring>"},"settlementChain":{"chainId":123,"name":"\u003cstring>","logoUrl":"\u003cstring>"},"deposit":{"expected":"\u003cstring>","received":"\u003cstring>","remaining":"\u003cstring>","confirmations":{"observed":123,"required":123,"detectedAt":"2023-11-07T05:31:56Z"},"warnings":[{"code":"INSUFFICIENT_DEPOSIT_AMOUNT","message":"\u003cstring>","data":{}}]}},"actionUrl":"\u003cstring>"},"message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"71c07031-850c-4133-bd1d-7899646c6d0d":{"description":"Invalid or missing API key","content":{"application/json":{"schema":{"type":"object","required":["success","error"],"properties":{"success":{"type":"boolean","example":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"string","description":"Machine-readable error code.","example":"NOT_FOUND","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","example":"Resource not found","uniqueKey":"message","typeLabel":"string"},"data":{"description":"Optional error detail.","uniqueKey":"data","typeLabel":"any"}},"uniqueKey":"","typeLabel":"object"},"example":{"success":false,"error":"UNAUTHORIZED","message":"Invalid or missing API key"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":"UNAUTHORIZED","message":"Invalid or missing API key"}}},"exampleType":"examples"}},"exampleType":"examples"},"57fbda26-f777-4b26-bad2-de518c98c17a":{"description":"Subscription or target plan not found (`SUBSCRIPTION_NOT_FOUND`, `TARGET_PRODUCT_NOT_FOUND`)","content":{"application/json":{"schema":{"type":"object","required":["success","error"],"properties":{"success":{"type":"boolean","example":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"string","description":"Machine-readable error code.","example":"NOT_FOUND","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","example":"Resource not found","uniqueKey":"message","typeLabel":"string"},"data":{"description":"Optional error detail.","uniqueKey":"data","typeLabel":"any"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":"NOT_FOUND","message":"Resource not found","data":"\u003cunknown>"}}},"exampleType":"generated"}},"exampleType":"generated"},"491e09a0-0bef-475e-9031-218a26b95e2a":{"description":"`SAME_PLAN`, `PLAN_CHANGE_IN_PROGRESS` (an earlier increase is still being paid)","content":{"application/json":{"schema":{"type":"object","required":["success","error"],"properties":{"success":{"type":"boolean","example":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"string","description":"Machine-readable error code.","example":"NOT_FOUND","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","example":"Resource not found","uniqueKey":"message","typeLabel":"string"},"data":{"description":"Optional error detail.","uniqueKey":"data","typeLabel":"any"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":"NOT_FOUND","message":"Resource not found","data":"\u003cunknown>"}}},"exampleType":"generated"}},"exampleType":"generated"},"baa1f000-e188-429f-96f9-89867478c553":{"description":"`SUBSCRIPTION_NOT_MODIFIABLE`, `TARGET_PRODUCT_NOT_RECURRING`, `PLAN_CHANGE_CURRENCY_MISMATCH`, `QUANTITY_OUT_OF_RANGE`, `UPGRADE_REQUIRES_CARD`, `PLAN_CHANGE_DECLINED`","content":{"application/json":{"schema":{"type":"object","required":["success","error"],"properties":{"success":{"type":"boolean","example":false,"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"string","description":"Machine-readable error code.","example":"NOT_FOUND","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","example":"Resource not found","uniqueKey":"message","typeLabel":"string"},"data":{"description":"Optional error detail.","uniqueKey":"data","typeLabel":"any"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":"NOT_FOUND","message":"Resource not found","data":"\u003cunknown>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"5eede530-7b2f-4d68-95b5-ee4a338c930c":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-Suby-Api-Key","description":"Secret API key. `sk_live_…` (production) or `sk_sandbox_…` (sandbox).","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"e2472143-6a38-4579-ad5b-0b951c4a4adb":{"url":"https://api.beta.suby.fi","description":"Production + sandbox (environment selected by API key prefix)"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-Suby-Api-Key","description":"Secret API key. `sk_live_…` (production) or `sk_sandbox_…` (sandbox).","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"X-Suby-Api-Key","type":"string","description":"Secret API key. `sk_live_…` (production) or `sk_sandbox_…` (sandbox).","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"X-Suby-Api-Key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"v3-beta/api-reference/openapi.yaml"},"subdomain":"suby","siteName":"Suby.fi","title":"Change the plan or the quantity - Suby.fi","navMaps":{"firstHrefInVersion":{"v3-beta":{"href":"/v3-beta/api-reference/subscriptions/change-the-plan-or-the-quantity","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-11-06T16:13:01.950Z","originalFileLocation":"v3-beta/api-reference/subscriptions/change-the-plan-or-the-quantity.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}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=\"Change the plan, the quantity (seats, licences), or both. Increase → charged now on the subscription\u0026#x27;s card (prorated; full new price if the cadence changes) and applied once paid · 202, applied: false. Under 1.00 the difference is waived. Decrease → applied at the period end, no charge. A quantity-only change keeps the subscriber\u0026#x27;s unit price. Licence activation limits follow the quantity. actionUrl → returned when the customer must act (3-D Secure, card to re-enter, crypto deposit). Suby-hosted page, full page, popup or iframe: it posts { source: \u0026quot;suby\u0026quot;, type: \u0026quot;payment_action.completed\u0026quot;, paymentId, status } to its opener, or redirects to successUrl / cancelUrl. subscription.updated fires once applied. Price it first with change-plan/preview.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Suby.fi\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/suby/K5zAxKZCvFlEOxIM/_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/suby/K5zAxKZCvFlEOxIM/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/suby/K5zAxKZCvFlEOxIM/_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/suby/K5zAxKZCvFlEOxIM/_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/suby/K5zAxKZCvFlEOxIM/_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/suby/K5zAxKZCvFlEOxIM/_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/suby/K5zAxKZCvFlEOxIM/_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/suby/K5zAxKZCvFlEOxIM/_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/suby/K5zAxKZCvFlEOxIM/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Change the plan or the quantity - Suby.fi\">\u003cmeta data-mint-head property=\"og:description\" content=\"Change the plan, the quantity (seats, licences), or both. Increase → charged now on the subscription\u0026#x27;s card (prorated; full new price if the cadence changes) and applied once paid · 202, applied: false. Under 1.00 the difference is waived. Decrease → applied at the period end, no charge. A quantity-only change keeps the subscriber\u0026#x27;s unit price. Licence activation limits follow the quantity. actionUrl → returned when the customer must act (3-D Secure, card to re-enter, crypto deposit). Suby-hosted page, full page, popup or iframe: it posts { source: \u0026quot;suby\u0026quot;, type: \u0026quot;payment_action.completed\u0026quot;, paymentId, status } to its opener, or redirects to successUrl / cancelUrl. subscription.updated fires once applied. Price it first with change-plan/preview.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Suby.fi\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.suby.fi/v3-beta/api-reference/subscriptions/change-the-plan-or-the-quantity\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://suby.mintlify.site/_mintlify/api/og/v2?division=Subscriptions\u0026amp;title=Change+the+plan+or+the+quantity\u0026amp;description=Change+the+plan%2C+the+quantity+%28seats%2C+licences%29%2C+or+both.%0A%0A**Increase**+%E2%86%92+charged+now+on+the+subscription%27s+card+%28prorated%3B+full+new+price+if+the+cadence+change\u0026amp;theme=69a80b99b04499f8ba92403e\u0026amp;signature=e202b05987de69f135d568fa7ce98e903a009434e81e25efbb4b5b7ac3c422ab\">\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 the plan or the quantity - Suby.fi\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Change the plan, the quantity (seats, licences), or both. Increase → charged now on the subscription\u0026#x27;s card (prorated; full new price if the cadence changes) and applied once paid · 202, applied: false. Under 1.00 the difference is waived. Decrease → applied at the period end, no charge. A quantity-only change keeps the subscriber\u0026#x27;s unit price. Licence activation limits follow the quantity. actionUrl → returned when the customer must act (3-D Secure, card to re-enter, crypto deposit). Suby-hosted page, full page, popup or iframe: it posts { source: \u0026quot;suby\u0026quot;, type: \u0026quot;payment_action.completed\u0026quot;, paymentId, status } to its opener, or redirects to successUrl / cancelUrl. subscription.updated fires once applied. Price it first with change-plan/preview.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://suby.mintlify.site/_mintlify/api/og/v2?division=Subscriptions\u0026amp;title=Change+the+plan+or+the+quantity\u0026amp;description=Change+the+plan%2C+the+quantity+%28seats%2C+licences%29%2C+or+both.%0A%0A**Increase**+%E2%86%92+charged+now+on+the+subscription%27s+card+%28prorated%3B+full+new+price+if+the+cadence+change\u0026amp;theme=69a80b99b04499f8ba92403e\u0026amp;signature=e202b05987de69f135d568fa7ce98e903a009434e81e25efbb4b5b7ac3c422ab\">\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/suby/K5zAxKZCvFlEOxIM/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Suby.fi\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2F5BFF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.suby.fi/v3-beta/api-reference/subscriptions/change-the-plan-or-the-quantity\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/v3-beta/api-reference/subscriptions/change-the-plan-or-the-quantity.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.suby.fi/#organization\",\"name\":\"Suby.fi\",\"url\":\"https://docs.suby.fi\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/suby/78hmNhVo7Bl_AwU_/logo/dark.png?fit=max\u0026auto=format\u0026n=78hmNhVo7Bl_AwU_\u0026q=85\u0026s=5a8b457489b514aac7397c50d3db89fd\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.suby.fi#website\",\"name\":\"Suby.fi\",\"url\":\"https://docs.suby.fi\",\"publisher\":{\"@id\":\"https://docs.suby.fi/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.suby.fi/v3-beta/api-reference/subscriptions/change-the-plan-or-the-quantity#webpage\",\"url\":\"https://docs.suby.fi/v3-beta/api-reference/subscriptions/change-the-plan-or-the-quantity\",\"name\":\"Change the plan or the quantity\",\"description\":\"Change the plan, the quantity (seats, licences), or both. Increase → charged now on the subscription's card (prorated; full new price if the cadence changes) and applied once paid · 202, applied: false. Under 1.00 the difference is waived. Decrease → applied at the period end, no charge. A quantity-only change keeps the subscriber's unit price. Licence activation limits follow the quantity. actionUrl → returned when the customer must act (3-D Secure, card to re-enter, crypto deposit). Suby-hosted page, full page, popup or iframe: it posts { source: \\\"suby\\\", type: \\\"payment_action.completed\\\", paymentId, status } to its opener, or redirects to successUrl / cancelUrl. subscription.updated fires once applied. Price it first with change-plan/preview.\",\"dateModified\":\"2026-11-06T16:13:01.950Z\",\"isPartOf\":{\"@id\":\"https://docs.suby.fi#website\"},\"breadcrumb\":{\"@id\":\"https://docs.suby.fi/v3-beta/api-reference/subscriptions/change-the-plan-or-the-quantity#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.suby.fi/v3-beta/api-reference/subscriptions/change-the-plan-or-the-quantity#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.suby.fi/v3-beta/api-reference/products/list-products\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Subscriptions\",\"item\":\"https://docs.suby.fi/v3-beta/api-reference/subscriptions/list-subscriptions\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Change the plan or the quantity\",\"item\":\"https://docs.suby.fi/v3-beta/api-reference/subscriptions/change-the-plan-or-the-quantity\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.suby.fi/v3-beta/api-reference/subscriptions/change-the-plan-or-the-quantity#apireference\",\"headline\":\"Change the plan or the quantity\",\"name\":\"Change the plan or the quantity\",\"description\":\"Change the plan, the quantity (seats, licences), or both. Increase → charged now on the subscription's card (prorated; full new price if the cadence changes) and applied once paid · 202, applied: false. Under 1.00 the difference is waived. Decrease → applied at the period end, no charge. A quantity-only change keeps the subscriber's unit price. Licence activation limits follow the quantity. actionUrl → returned when the customer must act (3-D Secure, card to re-enter, crypto deposit). Suby-hosted page, full page, popup or iframe: it posts { source: \\\"suby\\\", type: \\\"payment_action.completed\\\", paymentId, status } to its opener, or redirects to successUrl / cancelUrl. subscription.updated fires once applied. Price it first with change-plan/preview.\",\"url\":\"https://docs.suby.fi/v3-beta/api-reference/subscriptions/change-the-plan-or-the-quantity\",\"mainEntityOfPage\":{\"@id\":\"https://docs.suby.fi/v3-beta/api-reference/subscriptions/change-the-plan-or-the-quantity#webpage\"},\"dateModified\":\"2026-11-06T16:13:01.950Z\",\"publisher\":{\"@id\":\"https://docs.suby.fi/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.suby.fi#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Suby.fi\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Suby.fi","nav":{"global":null,"versions":[{"version":"v3-beta","default":true,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/v3-beta/docs/introduction/AI"}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/v3-beta/docs/guides/discord/overview"}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"API Reference","href":"/v3-beta/api-reference/overview"},{"group":"Get started","pages":[{"title":"Introduction","href":"/v3-beta/introduction"},{"title":"Authentication","href":"/v3-beta/authentication"},{"title":"Quickstart","href":"/v3-beta/quickstart"}]},{"group":"Core concepts","pages":[{"title":"Idempotency","href":"/v3-beta/idempotency"},{"title":"Webhooks","href":"/v3-beta/webhooks"},{"title":"Errors \u0026 responses","href":"/v3-beta/errors"}]}]},{"group":"Endpoints","pages":[{"group":"Products","pages":[{"title":"List products","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml get /v3/products","href":"/v3-beta/api-reference/products/list-products"},{"title":"Create a product","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml post /v3/products","href":"/v3-beta/api-reference/products/create-a-product"},{"title":"Retrieve a product","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml get /v3/products/{id}","href":"/v3-beta/api-reference/products/retrieve-a-product"},{"title":"Update a product","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml patch /v3/products/{id}","href":"/v3-beta/api-reference/products/update-a-product"},{"title":"Take a product off sale","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml post /v3/products/{id}/archive","href":"/v3-beta/api-reference/products/take-a-product-off-sale"},{"title":"Put a product back on sale","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml post /v3/products/{id}/unarchive","href":"/v3-beta/api-reference/products/put-a-product-back-on-sale"}]},{"group":"Checkout","pages":[{"title":"Create a checkout session","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml post /v3/checkout/sessions","href":"/v3-beta/api-reference/checkout/create-a-checkout-session"},{"title":"Retrieve a checkout session","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml get /v3/checkout/sessions/{token}","href":"/v3-beta/api-reference/checkout/retrieve-a-checkout-session"}]},{"group":"Payments","pages":[{"title":"List payments","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml get /v3/payments","href":"/v3-beta/api-reference/payments/list-payments"},{"title":"Retrieve a payment","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml get /v3/payments/{id}","href":"/v3-beta/api-reference/payments/retrieve-a-payment"},{"title":"Get the receipt (JSON)","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml get /v3/payments/{id}/receipt","href":"/v3-beta/api-reference/payments/get-the-receipt-json"},{"title":"Get the receipt (PDF)","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml get /v3/payments/{id}/receipt.pdf","href":"/v3-beta/api-reference/payments/get-the-receipt-pdf"},{"title":"Debit a stored card, off-session","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml post /v3/payments/off-session","href":"/v3-beta/api-reference/payments/debit-a-stored-card-off-session"},{"title":"Refund a captured payment","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml post /v3/payments/{id}/refund","href":"/v3-beta/api-reference/payments/refund-a-captured-payment"}]},{"group":"Subscriptions","pages":[{"title":"List subscriptions","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml get /v3/subscriptions","href":"/v3-beta/api-reference/subscriptions/list-subscriptions"},{"title":"Retrieve a subscription","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml get /v3/subscriptions/{id}","href":"/v3-beta/api-reference/subscriptions/retrieve-a-subscription"},{"title":"Cancel a subscription","description":null,"deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml post /v3/subscriptions/{id}/cancel","href":"/v3-beta/api-reference/subscriptions/cancel-a-subscription"},{"title":"Change the plan or the quantity","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml post /v3/subscriptions/{id}/change-plan","href":"/v3-beta/api-reference/subscriptions/change-the-plan-or-the-quantity"},{"title":"Price a plan or quantity change","description":"Same body as `change-plan`, nothing charged · what to show before the customer confirms (\"+1 seat: 5.00 today, then 30.00/month\").\n","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml post /v3/subscriptions/{id}/change-plan/preview","href":"/v3-beta/api-reference/subscriptions/price-a-plan-or-quantity-change"},{"title":"Call off a scheduled plan change","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml post /v3/subscriptions/{id}/cancel-plan-change","href":"/v3-beta/api-reference/subscriptions/call-off-a-scheduled-plan-change"},{"title":"Retry a failing renewal now","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml post /v3/subscriptions/{id}/retry-renewal","href":"/v3-beta/api-reference/subscriptions/retry-a-failing-renewal-now"},{"title":"Change the expiration date","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml post /v3/subscriptions/{id}/period-end","href":"/v3-beta/api-reference/subscriptions/change-the-expiration-date"}]},{"group":"Discount Codes","pages":[{"title":"List discount codes","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml get /v3/discount-codes","href":"/v3-beta/api-reference/discount-codes/list-discount-codes"},{"title":"Create a discount code","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml post /v3/discount-codes","href":"/v3-beta/api-reference/discount-codes/create-a-discount-code"},{"title":"Retrieve a discount code","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml get /v3/discount-codes/{id}","href":"/v3-beta/api-reference/discount-codes/retrieve-a-discount-code"},{"title":"Delete a discount code","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml delete /v3/discount-codes/{id}","href":"/v3-beta/api-reference/discount-codes/delete-a-discount-code"},{"title":"Update a discount code","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml patch /v3/discount-codes/{id}","href":"/v3-beta/api-reference/discount-codes/update-a-discount-code"}]},{"group":"Crypto","pages":[{"title":"Chains and tokens this account accepts","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml get /v3/crypto/assets","href":"/v3-beta/api-reference/crypto/chains-and-tokens-this-account-accepts"},{"title":"Price a fiat amount in a token","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml get /v3/crypto/quote","href":"/v3-beta/api-reference/crypto/price-a-fiat-amount-in-a-token"},{"title":"Create a crypto charge","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml post /v3/crypto/charges","href":"/v3-beta/api-reference/crypto/create-a-crypto-charge"}]},{"group":"Customers","pages":[{"title":"List customers","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml get /v3/customers","href":"/v3-beta/api-reference/customers/list-customers"},{"title":"Create (or get) a customer","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml post /v3/customers","href":"/v3-beta/api-reference/customers/create-or-get-a-customer"},{"title":"Retrieve a customer","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml get /v3/customers/{id}","href":"/v3-beta/api-reference/customers/retrieve-a-customer"},{"title":"Update a customer","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml patch /v3/customers/{id}","href":"/v3-beta/api-reference/customers/update-a-customer"}]},{"group":"Payment Methods","pages":[{"title":"List saved payment methods","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml get /v3/customers/{id}/payment-methods","href":"/v3-beta/api-reference/payment-methods/list-saved-payment-methods"},{"title":"Revoke a saved payment method","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml delete /v3/customers/{id}/payment-methods/{pmId}","href":"/v3-beta/api-reference/payment-methods/revoke-a-saved-payment-method"}]},{"group":"Licence Key","pages":[{"title":"Is this licence key still valid","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml post /v3/licenses/validate","href":"/v3-beta/api-reference/licence-key/is-this-licence-key-still-valid"},{"title":"Take a seat for one machine","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml post /v3/licenses/activate","href":"/v3-beta/api-reference/licence-key/take-a-seat-for-one-machine"},{"title":"Free a machine's seat","deprecated":null,"version":null,"openapi":"/v3-beta/api-reference/openapi.yaml post /v3/licenses/deactivate","href":"/v3-beta/api-reference/licence-key/free-a-machines-seat"}]}]}]}]}]},"basePath":"","title":"Change the plan or the quantity - Suby.fi","buildId":"dpl_BLQvU86QFwq3AhPofSTw6q8dGWKm","deploymentId":"dpl_BLQvU86QFwq3AhPofSTw6q8dGWKm","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-Myd8dsju.js","utils-C2HkQgW0.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-8rSppmTv.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-B6MjiCFm.js","snippetPresets-DwrSAONL.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-1-a5UQKQ.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C541m7wZ.js","shallow-CWELCZ77.js","getApiPlaygroundDisplay-CTo5Zn03.js","CodeSnippet-D--dzvnl.js","CodeSnippets-DM3cXEDh.js","Page-CxAy5y67.js","getPastedJson-C-VECgcL.js","icon-BPq2-Mg3.js","MethodPill-D9J5cUHd.js","DuplicateIcon-BqHaxUnD.js","createIcon-CIbcZHp9.js","DynamicMarkdown-BKiHAm_d.js","SectionHeading-DstQXt3H.js","axios-vUo_bRtp.js","Markdown-CpxgzsKA.js","clsx-C5EfhVm0.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CJ9Oly2E.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Mk6P3qvh.js"]}