Optional. Target addon configuration after the update.
applyPromoCredit
boolean
No
Optional. Whether to apply available promo credit when creating the update invoice.
applyPromoCreditAmount
integer
No
Optional. Maximum promo credit amount to apply. If omitted and applyPromoCredit is true, the system auto-computes the usable amount.
cancelUrl
string
No
Optional. URL to redirect the customer to when the customer cancels or the update payment fails.
confirmCurrency
string
No
Optional. When provided, represents the expected currency code for the update invoice and must match the value returned from update_preview, otherwise the request is rejected.
confirmTotalAmount
integer
No
Optional. When provided, represents the expected total amount (in minor units) for the update invoice and must match the value returned from update_preview, otherwise the request is rejected.
currency
string
No
Optional. Target currency for the updated subscription. If not provided, use current subscription currency. Currency change is not allowed when a proration invoice is required.
discount
string
No
discountCode
string
No
Optional. Discount or coupon code applied to this update. Overrides the subscription’s recurring discount for this invoice.
effectImmediate
integer
No
Optional. Override for when to apply the plan change: 1 = immediate (current period, proration will be computed if needed), 2 = at next period (no proration in current period). If 0 or omitted, the system uses default rules (immediate for upgrades, merchant configuration for downgrades, and immediate for non-active subscriptions).
gatewayId
integer
No
Optional. Gateway ID to be used for the invoice generated by this update. If omitted, the subscription’s current gateway is used.
gatewayPaymentType
string
No
Optional. Payment type for the selected gateway, such as card, wallet, etc.
manualPayment
boolean
No
Optional. If true, do not create an automatic payment for the update invoice; the invoice will be created in open status for manual collection.
metadata
object
No
Optional. Custom metadata map that will be stored on the update invoice and subscription pending update record.
newPlanId
integer
Yes
Required. Target plan ID to switch the subscription to.
Optional. UTC timestamp at which proration should start when effectImmediate = 1. Defaults to current time if not provided.
quantity
integer
Yes
Required. Target quantity for the subscription after update.
returnUrl
string
No
Optional. URL to redirect the customer to after the update is completed or payment succeeds.
subscriptionId
string
No
Optional. SubscriptionId to be upgraded or downgraded. Either subscriptionId or userId must be provided. When userId is used instead of subscriptionId, the only active subscription of that user will be updated.
taxPercentage
integer
No
Optional. External tax percentage override for the update invoice, in basis points (e.g. 1000 = 10%%). Overrides the subscription taxPercentage when provided.
userId
integer
No
Optional. UserId associated with the subscription to update. Either subscriptionId or userId must be provided. When subscriptionId is omitted, the system uses this userId to locate the active subscription.
Optional. When provided, represents the expected currency code for the update invoice and must match the value returned from update_preview, otherwise the request is rejected.
Optional. When provided, represents the expected total amount (in minor units) for the update invoice and must match the value returned from update_preview, otherwise the request is rejected.
Optional. Target currency for the updated subscription. If not provided, use current subscription currency. Currency change is not allowed when a proration invoice is required.
Optional. Override for when to apply the plan change: 1 = immediate (current period, proration will be computed if needed), 2 = at next period (no proration in current period). If 0 or omitted, the system uses default rules (immediate for upgrades, merchant configuration for downgrades, and immediate for non-active subscriptions).
Optional. Defaults to true. If true, do not create an automatic payment for the update invoice; the invoice will be created in open status for manual collection.
Optional. SubscriptionId to be upgraded or downgraded. Either subscriptionId or userId must be provided. When userId is used instead of subscriptionId, the only active subscription of that user will be updated.
Optional. External tax percentage override for the update invoice, in basis points (e.g. 1000 = 10%%). Overrides the subscription taxPercentage when provided.
Optional. UserId associated with the subscription to update. Either subscriptionId or userId must be provided. When subscriptionId is omitted, the system uses this userId to locate the active subscription.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"UniBee Documentation","colors":{"primary":"#EBC414","light":"#EBC414","dark":"#EBC414"},"favicon":"https://mintcdn.com/aaaabmero/PAQKVjj86U1Qa7E1/favicon.png?fit=max\u0026auto=format\u0026n=PAQKVjj86U1Qa7E1\u0026q=85\u0026s=112d45cfc3e0323dbde8cca2a58f0729","logo":{"light":"https://mintcdn.com/aaaabmero/PAQKVjj86U1Qa7E1/logo/light.png?fit=max\u0026auto=format\u0026n=PAQKVjj86U1Qa7E1\u0026q=85\u0026s=e36e2bf3ee7aa0192915208acf4cb2f6","dark":"https://mintcdn.com/aaaabmero/PAQKVjj86U1Qa7E1/logo/dark.png?fit=max\u0026auto=format\u0026n=PAQKVjj86U1Qa7E1\u0026q=85\u0026s=d26411d58a3cf9dd6b459a562d5c9bb4"},"background":{"image":"https://mintcdn.com/aaaabmero/PAQKVjj86U1Qa7E1/images/bg-element.png?fit=max\u0026auto=format\u0026n=PAQKVjj86U1Qa7E1\u0026q=85\u0026s=226c835d8aae1e695dd0314ede835052","decoration":null},"navbar":{"links":[{"label":"About","href":"https://unibee.dev"},{"label":"Contact","href":"https://unibee.dev/contact"}],"primary":null},"footer":{"socials":{"website":"https://unibee.dev/","github":"https://github.com/unibee-billing","linkedin":"https://www.linkedin.com/company/unibee-billing/"}},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"GitHub","href":"https://github.com/unibee-billing","icon":"github"},{"anchor":"Community","href":"https://github.com/unibee-billing","icon":"discord"},{"anchor":"Official website","href":"https://unibee.dev/","icon":"earth-americas"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"aaaabmero","hasAudioNarration":false,"actualSubdomain":"aaaabmero","customDomains":["docs.unibee.dev"],"gitSource":{"type":"github","owner":"unibee-billing","repo":"unibee-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a8dbc7957e7f1206a6e72cd","collectionId":"b4af5490-8de5-4f39-9f6b-e0d81f734d93","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6a8dbc7957e7f1206a6e72cd"},"entitlements":{},"buildId":"6a8dbc7957e7f1206a6e72cd","clientVersion":"0.0.4043","searchFilterCounts":[{"language":"default","tag":"Documentation","count":406},{"language":"default","tag":"Reference","count":317},{"language":"default","tag":"Guides","count":56},{"language":"default","tag":"Invoice","count":25},{"language":"default","tag":"Payment","count":21},{"language":"default","tag":"Core Concepts","count":21},{"language":"default","tag":"Member Authentication","count":19},{"language":"default","tag":"Subscription","count":19},{"language":"default","tag":"Admin Member","count":18},{"language":"default","tag":"User","count":17}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/subscription-update/update-subscription","slug":"/api-reference/subscription-update/update-subscription","pageMetadata":{"openapi":"post /merchant/subscription/update_submit","title":"Update Subscription","description":null,"href":"/api-reference/subscription-update/update-subscription"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,hr:`hr`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`endpoint-overview`,children:`Endpoint Overview`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`POST`}),` `,_jsx(_components.code,{children:`https://api.unibee.dev/merchant/subscription/update_submit`})]}),`\n`,_jsx(_components.p,{children:`Update Subscription`}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`authorization`,children:`Authorization`}),`\n`,_jsx(_components.p,{children:`All UniBee Merchant API requests require authentication via API key.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Header`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Authorization`})}),_jsx(_components.td,{children:`Yes`}),_jsxs(_components.td,{children:[`Bearer `,_jsx(_components.code,{children:`\u003cyour_api_key>`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Content-Type`})}),_jsx(_components.td,{children:`Yes`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`application/json`}),` (for request body)`]})]})]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`parameters`,children:`Parameters`}),`\n`,_jsx(_components.p,{children:`Parameters for this endpoint are listed below. The schema is also shown in the Try it panel.`}),`\n`,_jsx(Heading,{level:`3`,id:`request-body`,children:`Request body`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Name`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`addonParams`})}),_jsx(_components.td,{children:`array`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Optional. Target addon configuration after the update.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`applyPromoCredit`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Optional. Whether to apply available promo credit when creating the update invoice.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`applyPromoCreditAmount`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Optional. Maximum promo credit amount to apply. If omitted and applyPromoCredit is true, the system auto-computes the usable amount.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`cancelUrl`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Optional. URL to redirect the customer to when the customer cancels or the update payment fails.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`confirmCurrency`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Optional. When provided, represents the expected currency code for the update invoice and must match the value returned from update_preview, otherwise the request is rejected.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`confirmTotalAmount`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Optional. When provided, represents the expected total amount (in minor units) for the update invoice and must match the value returned from update_preview, otherwise the request is rejected.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`currency`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Optional. Target currency for the updated subscription. If not provided, use current subscription currency. Currency change is not allowed when a proration invoice is required.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`discount`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`discountCode`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Optional. Discount or coupon code applied to this update. Overrides the subscription’s recurring discount for this invoice.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`effectImmediate`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Optional. Override for when to apply the plan change: 1 = immediate (current period, proration will be computed if needed), 2 = at next period (no proration in current period). If 0 or omitted, the system uses default rules (immediate for upgrades, merchant configuration for downgrades, and immediate for non-active subscriptions).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`gatewayId`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Optional. Gateway ID to be used for the invoice generated by this update. If omitted, the subscription’s current gateway is used.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`gatewayPaymentType`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Optional. Payment type for the selected gateway, such as card, wallet, etc.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`manualPayment`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Optional. If true, do not create an automatic payment for the update invoice; the invoice will be created in open status for manual collection.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`metadata`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Optional. Custom metadata map that will be stored on the update invoice and subscription pending update record.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`newPlanId`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Required. Target plan ID to switch the subscription to.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`paymentUIMode`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Optional. Checkout UI mode: hosted | embedded | custom. Default is hosted.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`productData`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`prorationDate`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Optional. UTC timestamp at which proration should start when effectImmediate = 1. Defaults to current time if not provided.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`quantity`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Required. Target quantity for the subscription after update.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`returnUrl`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Optional. URL to redirect the customer to after the update is completed or payment succeeds.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`subscriptionId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Optional. SubscriptionId to be upgraded or downgraded. Either subscriptionId or userId must be provided. When userId is used instead of subscriptionId, the only active subscription of that user will be updated.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`taxPercentage`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Optional. External tax percentage override for the update invoice, in basis points (e.g. 1000 = 10%%). Overrides the subscription taxPercentage when provided.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`userId`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Optional. UserId associated with the subscription to update. Either subscriptionId or userId must be provided. When subscriptionId is omitted, the system uses this userId to locate the active subscription.`})]})]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`request-examples`,children:`Request examples`}),`\n`,_jsx(Heading,{level:`3`,id:`curl`,children:`cURL`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`28`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`28`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.unibee.dev/merchant/subscription/update_submit\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"addonParams\": [],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"applyPromoCredit\": false,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"applyPromoCreditAmount\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"cancelUrl\": \"https://example.com\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"confirmCurrency\": \"\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"confirmTotalAmount\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"currency\": \"\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"discount\": \"\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"discountCode\": \"\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"effectImmediate\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"gatewayId\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"gatewayPaymentType\": \"\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"manualPayment\": false,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"metadata\": {},`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"newPlanId\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"paymentUIMode\": \"\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"productData\": \"\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prorationDate\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"quantity\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"returnUrl\": \"https://example.com\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"subscriptionId\": \"id_example\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"taxPercentage\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"userId\": 0`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}'`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`sandbox`,children:`Sandbox`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`28`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`28`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api-sandbox.unibee.top/merchant/subscription/update_submit\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer YOUR_SANDBOX_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"addonParams\": [],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"applyPromoCredit\": false,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"applyPromoCreditAmount\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"cancelUrl\": \"https://example.com\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"confirmCurrency\": \"\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"confirmTotalAmount\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"currency\": \"\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"discount\": \"\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"discountCode\": \"\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"effectImmediate\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"gatewayId\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"gatewayPaymentType\": \"\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"manualPayment\": false,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"metadata\": {},`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"newPlanId\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"paymentUIMode\": \"\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"productData\": \"\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prorationDate\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"quantity\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"returnUrl\": \"https://example.com\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"subscriptionId\": \"id_example\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"taxPercentage\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"userId\": 0`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}'`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(_components.p,{children:[`Success responses return a JSON envelope with `,_jsx(_components.code,{children:`code`}),`, `,_jsx(_components.code,{children:`data`}),`, `,_jsx(_components.code,{children:`message`}),`, `,_jsx(_components.code,{children:`redirect`}),`, and `,_jsx(_components.code,{children:`requestId`}),`. `,_jsx(_components.code,{children:`code`}),` `,_jsx(_components.code,{children:`0`}),` indicates success.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`code`})}),_jsx(_components.td,{children:`integer`}),_jsxs(_components.td,{children:[`Response code. `,_jsx(_components.code,{children:`0`}),` = success`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{children:`Response payload`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data.action`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data.invoiceId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`ID of the invoice generated by this update (proration or next-period invoice, depending on effectImmediate).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data.link`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Hosted payment or invoice link. When paid=false and an invoice exists, redirect the customer to this link to complete payment.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data.note`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Additional message describing the update result, used for internal or merchant-facing explanations.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data.paid`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:`Whether the update invoice has been successfully paid at the time of response.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data.paymentId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`ID of the payment created for the update invoice, if any.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data.subscriptionPendingUpdate`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`message`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Human-readable message`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`requestId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Request ID for support`})]})]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`error-handling`,children:`Error handling`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`HTTP status`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsxs(_components.td,{children:[`Bad request — invalid or missing parameters. Check `,_jsx(_components.code,{children:`message`}),` in the body.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{children:`Unauthorized — missing or invalid API key.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:`Not found — invalid path or resource.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`500`}),_jsx(_components.td,{children:`Server error — retry with backoff.`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`code`}),` in the response body is non-zero, check `,_jsx(_components.code,{children:`message`}),` for details. Use `,_jsx(_components.code,{children:`requestId`}),` when contacting support.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"post /merchant/subscription/update_submit","title":"Update Subscription","description":null,"href":"/api-reference/subscription-update/update-subscription"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Endpoint Overview","slug":"endpoint-overview","depth":2,"children":[]},{"title":"Authorization","slug":"authorization","depth":2,"children":[]},{"title":"Parameters","slug":"parameters","depth":2,"children":[{"title":"Request body","slug":"request-body","depth":3,"children":[]}]},{"title":"Request examples","slug":"request-examples","depth":2,"children":[{"title":"cURL","slug":"curl","depth":3,"children":[]},{"title":"Sandbox","slug":"sandbox","depth":3,"children":[]}]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Error handling","slug":"error-handling","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"requestBody":"96be654e-dd61-4505-a002-2c8bfdfa7720","responses":{"200":"d4159f56-ce01-47b8-99c4-7174a69fd0ae"},"summary":"Update Subscription","tags":["Subscription Update"],"method":"post","type":"path","servers":["75789b68-5973-4ba3-92da-0924615d428f","5637436d-a7fe-4176-b59d-c0d00970ec4f"],"security":["9d6da29d-526a-407f-a8a5-71b401f04868"],"path":"/merchant/subscription/update_submit","baseUrlOptions":["https://api.unibee.dev","https://api-sandbox.unibee.top"],"title":"Update Subscription","description":"","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"properties":{"newPlanId":{"description":"Required. Target plan ID to switch the subscription to.","format":"int64","properties":{},"type":"integer","isRequired":true,"uniqueKey":"newPlanId","typeLabel":"integer\u003cint64>"},"quantity":{"description":"Required. Target quantity for the subscription after update.","format":"int64","properties":{},"type":"integer","isRequired":true,"uniqueKey":"quantity","typeLabel":"integer\u003cint64>"},"addonParams":{"description":"Optional. Target addon configuration after the update.","format":"[]*bean.PlanAddonParam","items":{"properties":{"addonPlanId":{"description":"AddonPlanId","format":"int64","properties":{},"type":"integer","uniqueKey":"addonParams.items.[INDEX].addonPlanId","typeLabel":"integer\u003cint64>"},"quantity":{"description":"Quantity,Default 1","format":"int64","properties":{},"type":"integer","uniqueKey":"addonParams.items.[INDEX].quantity","typeLabel":"integer\u003cint64>"}},"type":"object","uniqueKey":"addonParams.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"addonParams","typeLabel":"object[]"},"applyPromoCredit":{"description":"Optional. Whether to apply available promo credit when creating the update invoice.","format":"bool","properties":{},"type":"boolean","uniqueKey":"applyPromoCredit","typeLabel":"boolean\u003cbool>"},"applyPromoCreditAmount":{"description":"Optional. Maximum promo credit amount to apply. If omitted and applyPromoCredit is true, the system auto-computes the usable amount.","format":"*int64","properties":{},"type":"integer","uniqueKey":"applyPromoCreditAmount","typeLabel":"integer\u003c*int64>"},"cancelUrl":{"description":"Optional. URL to redirect the customer to when the customer cancels or the update payment fails.","format":"string","properties":{},"type":"string","uniqueKey":"cancelUrl","typeLabel":"string\u003cstring>"},"confirmCurrency":{"description":"Optional. When provided, represents the expected currency code for the update invoice and must match the value returned from update_preview, otherwise the request is rejected.","format":"string","properties":{},"type":"string","uniqueKey":"confirmCurrency","typeLabel":"string\u003cstring>"},"confirmTotalAmount":{"description":"Optional. When provided, represents the expected total amount (in minor units) for the update invoice and must match the value returned from update_preview, otherwise the request is rejected.","format":"int64","properties":{},"type":"integer","uniqueKey":"confirmTotalAmount","typeLabel":"integer\u003cint64>"},"currency":{"description":"Optional. Target currency for the updated subscription. If not provided, use current subscription currency. Currency change is not allowed when a proration invoice is required.","format":"*string","properties":{},"type":"string","uniqueKey":"currency","typeLabel":"string\u003c*string>"},"discount":{"properties":{"cycleLimit":{"description":"the count limitation of subscription recurring cycle, recurring need enable if cycleLimit set","format":"*int","properties":{},"type":"integer","uniqueKey":"discount.cycleLimit","typeLabel":"integer\u003c*int>"},"discountAmount":{"description":"Amount of discount","format":"*int64","properties":{},"type":"integer","uniqueKey":"discount.discountAmount","typeLabel":"integer\u003c*int64>"},"discountPercentage":{"description":"Percentage of discount, 100=1%, ignore if discountAmount set","format":"*int64","properties":{},"type":"integer","uniqueKey":"discount.discountPercentage","typeLabel":"integer\u003c*int64>"},"endTime":{"description":"end of discount available utc time","format":"*int64","properties":{},"type":"integer","uniqueKey":"discount.endTime","typeLabel":"integer\u003c*int64>"},"metadata":{"additionalProperties":{"properties":{},"type":"object","uniqueKey":"discount.metadata.additionalProperties","typeLabel":"object"},"description":"Metadata,Map","format":"map[string]interface {}","properties":{},"type":"object","uniqueKey":"discount.metadata","typeLabel":"object"},"recurring":{"description":"Discount recurring enable, default false","format":"*bool","properties":{},"type":"boolean","uniqueKey":"discount.recurring","typeLabel":"boolean\u003c*bool>"}},"type":"object","uniqueKey":"discount","typeLabel":"object"},"discountCode":{"description":"Optional. Discount or coupon code applied to this update. Overrides the subscription's recurring discount for this invoice.","format":"string","properties":{},"type":"string","uniqueKey":"discountCode","typeLabel":"string\u003cstring>"},"effectImmediate":{"description":"Optional. Override for when to apply the plan change: 1 = immediate (current period, proration will be computed if needed), 2 = at next period (no proration in current period). If 0 or omitted, the system uses default rules (immediate for upgrades, merchant configuration for downgrades, and immediate for non-active subscriptions).","format":"int","properties":{},"type":"integer","uniqueKey":"effectImmediate","typeLabel":"integer\u003cint>"},"gatewayId":{"description":"Optional. Gateway ID to be used for the invoice generated by this update. If omitted, the subscription's current gateway is used.","format":"*int64","properties":{},"type":"integer","uniqueKey":"gatewayId","typeLabel":"integer\u003c*int64>"},"gatewayPaymentType":{"description":"Optional. Payment type for the selected gateway, such as card, wallet, etc.","format":"string","properties":{},"type":"string","uniqueKey":"gatewayPaymentType","typeLabel":"string\u003cstring>"},"manualPayment":{"description":"Optional. Defaults to true. If true, do not create an automatic payment for the update invoice; the invoice will be created in open status for manual collection.","format":"*bool","properties":{},"type":"boolean","uniqueKey":"manualPayment","typeLabel":"boolean\u003c*bool>"},"metadata":{"additionalProperties":{"properties":{},"type":"object","uniqueKey":"metadata.additionalProperties","typeLabel":"object"},"description":"Optional. Custom metadata map that will be stored on the update invoice and subscription pending update record.","format":"map[string]interface {}","properties":{},"type":"object","uniqueKey":"metadata","typeLabel":"object"},"paymentUIMode":{"description":"Optional. Checkout UI mode: hosted | embedded | custom. Default is hosted.","format":"string","properties":{},"type":"string","uniqueKey":"paymentUIMode","typeLabel":"string\u003cstring>"},"productData":{"properties":{"description":{"description":"Description","format":"string","properties":{},"type":"string","uniqueKey":"productData.description","typeLabel":"string\u003cstring>"},"name":{"description":"Name","format":"string","properties":{},"type":"string","uniqueKey":"productData.name","typeLabel":"string\u003cstring>"}},"type":"object","uniqueKey":"productData","typeLabel":"object"},"prorationDate":{"description":"Optional. UTC timestamp at which proration should start when effectImmediate = 1. Defaults to current time if not provided.","format":"*int64","properties":{},"type":"integer","uniqueKey":"prorationDate","typeLabel":"integer\u003c*int64>"},"returnUrl":{"description":"Optional. URL to redirect the customer to after the update is completed or payment succeeds.","format":"string","properties":{},"type":"string","uniqueKey":"returnUrl","typeLabel":"string\u003cstring>"},"subscriptionId":{"description":"Optional. SubscriptionId to be upgraded or downgraded. Either subscriptionId or userId must be provided. When userId is used instead of subscriptionId, the only active subscription of that user will be updated.","format":"string","properties":{},"type":"string","uniqueKey":"subscriptionId","typeLabel":"string\u003cstring>"},"taxPercentage":{"description":"Optional. External tax percentage override for the update invoice, in basis points (e.g. 1000 = 10%%). Overrides the subscription taxPercentage when provided.","format":"*int64","properties":{},"type":"integer","uniqueKey":"taxPercentage","typeLabel":"integer\u003c*int64>"},"userId":{"description":"Optional. UserId associated with the subscription to update. Either subscriptionId or userId must be provided. When subscriptionId is omitted, the system uses this userId to locate the active subscription.","format":"int64","properties":{},"type":"integer","uniqueKey":"userId","typeLabel":"integer\u003cint64>"}},"required":["newPlanId","quantity"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"newPlanId":123,"quantity":123,"addonParams":[{"addonPlanId":123,"quantity":123}],"applyPromoCredit":true,"applyPromoCreditAmount":123,"cancelUrl":"\u003cstring>","confirmCurrency":"\u003cstring>","confirmTotalAmount":123,"currency":"\u003cstring>","discount":{"cycleLimit":123,"discountAmount":123,"discountPercentage":123,"endTime":123,"metadata":{},"recurring":true},"discountCode":"\u003cstring>","effectImmediate":123,"gatewayId":123,"gatewayPaymentType":"\u003cstring>","manualPayment":true,"metadata":{},"paymentUIMode":"\u003cstring>","productData":{"description":"\u003cstring>","name":"\u003cstring>"},"prorationDate":123,"returnUrl":"\u003cstring>","subscriptionId":"\u003cstring>","taxPercentage":123,"userId":123}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"d4159f56-ce01-47b8-99c4-7174a69fd0ae":{"content":{"application/json":{"schema":{"properties":{"code":{"format":"int","properties":{},"type":"integer","uniqueKey":"code","typeLabel":"integer\u003cint>"},"data":{"properties":{"action":{"properties":{},"type":"object","uniqueKey":"data.action","typeLabel":"object"},"invoiceId":{"description":"ID of the invoice generated by this update (proration or next-period invoice, depending on effectImmediate).","format":"string","properties":{},"type":"string","uniqueKey":"data.invoiceId","typeLabel":"string\u003cstring>"},"link":{"description":"Hosted payment or invoice link. When paid=false and an invoice exists, redirect the customer to this link to complete payment.","format":"string","properties":{},"type":"string","uniqueKey":"data.link","typeLabel":"string\u003cstring>"},"note":{"description":"Additional message describing the update result, used for internal or merchant-facing explanations.","format":"string","properties":{},"type":"string","uniqueKey":"data.note","typeLabel":"string\u003cstring>"},"paid":{"description":"Whether the update invoice has been successfully paid at the time of response.","format":"bool","properties":{},"type":"boolean","uniqueKey":"data.paid","typeLabel":"boolean\u003cbool>"},"paymentId":{"description":"ID of the payment created for the update invoice, if any.","format":"string","properties":{},"type":"string","uniqueKey":"data.paymentId","typeLabel":"string\u003cstring>"},"subscriptionPendingUpdate":{"properties":{"addonData":{"description":"plan addon json data","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.addonData","typeLabel":"string\u003cstring>"},"addons":{"description":"Addons","format":"[]*bean.PlanAddonDetail","items":{"properties":{"addonPlan":{"properties":{"amount":{"description":"amount, cent, without tax","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.amount","typeLabel":"integer\u003cint64>"},"autoChargeConfig":{"properties":{"autoChargeLeadTime":{"description":"plan-level auto-charge lead time before period end (seconds); nil = fall back to merchant TryAutomaticPaymentBeforePeriodEnd; value must be >= 300.","format":"*int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.autoChargeConfig.autoChargeLeadTime","typeLabel":"integer\u003c*int64>"},"autoChargeMaxRetryCount":{"description":"plan-level max auto-charge attempts for one invoice, including the first automatic attempt; nil = fall back; 0 = unlimited.","format":"*int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.autoChargeConfig.autoChargeMaxRetryCount","typeLabel":"integer\u003c*int64>"},"autoChargeRetryInterval":{"description":"plan-level retry interval after a failed auto-charge (seconds); nil = fall back to merchant/system default; value must be >= 300.","format":"*int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.autoChargeConfig.autoChargeRetryInterval","typeLabel":"integer\u003c*int64>"},"incompleteExpireTime":{"description":"plan-level incomplete/expire grace time after period/trial end (seconds); nil = fall back to merchant/system default; 0 = no grace period, expire immediately after period/trial end.","format":"*int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.autoChargeConfig.incompleteExpireTime","typeLabel":"integer\u003c*int64>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.autoChargeConfig","typeLabel":"object"},"autoUpgradePlanId":{"description":"Target plan id for auto-upgrade; stored in additional settings JSON; 0 if unset","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.autoUpgradePlanId","typeLabel":"integer\u003cint64>"},"bindingAddonIds":{"description":"binded recurring addon planIds,split with ,","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.bindingAddonIds","typeLabel":"string\u003cstring>"},"bindingOnetimeAddonIds":{"description":"binded onetime addon planIds,split with ,","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.bindingOnetimeAddonIds","typeLabel":"string\u003cstring>"},"cancelAtTrialEnd":{"description":"whether cancel at subscription first trial end,0-false | 1-true, will pass to cancelAtPeriodEnd of subscription","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.cancelAtTrialEnd","typeLabel":"integer\u003cint>"},"checkoutTemplateId":{"description":"Checkout template id, stored in plan additional settings","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.checkoutTemplateId","typeLabel":"integer\u003cint64>"},"checkoutUrl":{"description":"CheckoutUrl built from checkoutTemplateId and planId","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.checkoutUrl","typeLabel":"string\u003cstring>"},"compareAtAmount":{"description":"optional compare-at / strikethrough display price for regular plan amount in minor units (plan currency); UI only, not used in billing; stored in plan additional settings JSON with multiTrials","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.compareAtAmount","typeLabel":"integer\u003cint64>"},"createTime":{"description":"create utc time","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.createTime","typeLabel":"integer\u003cint64>"},"currency":{"description":"currency","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.currency","typeLabel":"string\u003cstring>"},"description":{"description":"description","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.description","typeLabel":"string\u003cstring>"},"disableAutoCharge":{"description":"1=auto-charge off; for main recurring plans with amount>0 also 0=may auto-charge. Always 1 when amount=0 or plan type is not main (those plans never use subscription auto-charge).","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.disableAutoCharge","typeLabel":"integer\u003cint>"},"externalPlanId":{"description":"external_user_id","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.externalPlanId","typeLabel":"string\u003cstring>"},"extraMetricData":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.extraMetricData","typeLabel":"string\u003cstring>"},"gasPayer":{"description":"who pay the gas, merchant|user","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.gasPayer","typeLabel":"string\u003cstring>"},"homeUrl":{"description":"home_url","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.homeUrl","typeLabel":"string\u003cstring>"},"id":{"format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.id","typeLabel":"integer\u003cint64>"},"imageUrl":{"description":"image_url","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.imageUrl","typeLabel":"string\u003cstring>"},"internalName":{"description":"PlanInternalName","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.internalName","typeLabel":"string\u003cstring>"},"intervalCount":{"description":"period unit count","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.intervalCount","typeLabel":"integer\u003cint>"},"intervalUnit":{"description":"period unit,day|month|year|week","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.intervalUnit","typeLabel":"string\u003cstring>"},"merchantId":{"description":"merchant id","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.merchantId","typeLabel":"integer\u003cint64>"},"metadata":{"additionalProperties":{"properties":{},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.metadata.additionalProperties","typeLabel":"object"},"format":"map[string]interface {}","properties":{},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.metadata","typeLabel":"object"},"metricLimits":{"description":"Plan's MetricLimit List","format":"[]*bean.PlanMetricLimitParam","items":{"properties":{"metricId":{"description":"MetricId","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.metricLimits.items.[INDEX].metricId","typeLabel":"integer\u003cint64>"},"metricLimit":{"description":"MetricLimit","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.metricLimits.items.[INDEX].metricLimit","typeLabel":"integer\u003cint64>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.metricLimits.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.metricLimits","typeLabel":"object[]"},"metricMeteredCharge":{"description":"Plan's MetricMeteredCharge","format":"[]*bean.PlanMetricMeteredChargeParam","items":{"properties":{"chargeType":{"description":"ChargeType,0-standard pricing 1-graduated pricing","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.metricMeteredCharge.items.[INDEX].chargeType","typeLabel":"integer\u003cint>"},"graduatedAmounts":{"description":"GraduatedAmounts, used for graduated pricing","format":"[]*bean.MetricPlanChargeGraduatedStep","items":{"properties":{"endValue":{"description":"EndValue, -1 = infinity value(∞)","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.metricMeteredCharge.items.[INDEX].graduatedAmounts.items.[INDEX].endValue","typeLabel":"integer\u003cint64>"},"flatAmount":{"description":"FlatAmount,cent","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.metricMeteredCharge.items.[INDEX].graduatedAmounts.items.[INDEX].flatAmount","typeLabel":"integer\u003cint64>"},"perAmount":{"description":"PerAmount,cent","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.metricMeteredCharge.items.[INDEX].graduatedAmounts.items.[INDEX].perAmount","typeLabel":"integer\u003cint64>"},"startValue":{"description":"StartValue","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.metricMeteredCharge.items.[INDEX].graduatedAmounts.items.[INDEX].startValue","typeLabel":"integer\u003cint64>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.metricMeteredCharge.items.[INDEX].graduatedAmounts.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.metricMeteredCharge.items.[INDEX].graduatedAmounts","typeLabel":"object[]"},"metricId":{"description":"MetricId","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.metricMeteredCharge.items.[INDEX].metricId","typeLabel":"integer\u003cint64>"},"standardAmount":{"description":"StandardAmount, cent, used for standard pricing,cent","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.metricMeteredCharge.items.[INDEX].standardAmount","typeLabel":"integer\u003cint64>"},"standardStartValue":{"description":"StandardStartValue, used for standard pricing","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.metricMeteredCharge.items.[INDEX].standardStartValue","typeLabel":"integer\u003cint64>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.metricMeteredCharge.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.metricMeteredCharge","typeLabel":"object[]"},"metricRecurringCharge":{"description":"Plan's MetricRecurringCharge","format":"[]*bean.PlanMetricMeteredChargeParam","items":{"properties":{"chargeType":{"description":"ChargeType,0-standard pricing 1-graduated pricing","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.metricRecurringCharge.items.[INDEX].chargeType","typeLabel":"integer\u003cint>"},"graduatedAmounts":{"description":"GraduatedAmounts, used for graduated pricing","format":"[]*bean.MetricPlanChargeGraduatedStep","items":{"properties":{"endValue":{"description":"EndValue, -1 = infinity value(∞)","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.metricRecurringCharge.items.[INDEX].graduatedAmounts.items.[INDEX].endValue","typeLabel":"integer\u003cint64>"},"flatAmount":{"description":"FlatAmount,cent","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.metricRecurringCharge.items.[INDEX].graduatedAmounts.items.[INDEX].flatAmount","typeLabel":"integer\u003cint64>"},"perAmount":{"description":"PerAmount,cent","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.metricRecurringCharge.items.[INDEX].graduatedAmounts.items.[INDEX].perAmount","typeLabel":"integer\u003cint64>"},"startValue":{"description":"StartValue","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.metricRecurringCharge.items.[INDEX].graduatedAmounts.items.[INDEX].startValue","typeLabel":"integer\u003cint64>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.metricRecurringCharge.items.[INDEX].graduatedAmounts.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.metricRecurringCharge.items.[INDEX].graduatedAmounts","typeLabel":"object[]"},"metricId":{"description":"MetricId","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.metricRecurringCharge.items.[INDEX].metricId","typeLabel":"integer\u003cint64>"},"standardAmount":{"description":"StandardAmount, cent, used for standard pricing,cent","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.metricRecurringCharge.items.[INDEX].standardAmount","typeLabel":"integer\u003cint64>"},"standardStartValue":{"description":"StandardStartValue, used for standard pricing","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.metricRecurringCharge.items.[INDEX].standardStartValue","typeLabel":"integer\u003cint64>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.metricRecurringCharge.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.metricRecurringCharge","typeLabel":"object[]"},"multiCurrencies":{"description":"Plan's MultiCurrencies","format":"[]*bean.PlanMultiCurrency","items":{"properties":{"amount":{"description":"exchanged amount preview for this plan \u0026 currency; plan-level override not available in billing logic","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.multiCurrencies.items.[INDEX].amount","typeLabel":"integer\u003cint64>"},"autoExchange":{"description":"using https://app.exchangerate-api.com/ to update exchange rate if true, the exchange APIKey need setup first; plan-level override not available","format":"bool","properties":{},"type":"boolean","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.multiCurrencies.items.[INDEX].autoExchange","typeLabel":"boolean\u003cbool>"},"currency":{"description":"target currency","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.multiCurrencies.items.[INDEX].currency","typeLabel":"string\u003cstring>"},"disable":{"description":"disable currency exchange for this plan \u0026 currency","format":"bool","properties":{},"type":"boolean","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.multiCurrencies.items.[INDEX].disable","typeLabel":"boolean\u003cbool>"},"exchangeRate":{"description":"exchange rate; plan-level override not available, real billing FX always comes from merchant's multi-currency config","format":"float64","properties":{},"type":"number","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.multiCurrencies.items.[INDEX].exchangeRate","typeLabel":"number\u003cfloat64>"},"fixedAmount":{"description":"locked billing amount for this plan \u0026 currency; when > 0, locks the main plan price only","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.multiCurrencies.items.[INDEX].fixedAmount","typeLabel":"integer\u003cint64>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.multiCurrencies.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.multiCurrencies","typeLabel":"object[]"},"multiTrials":{"description":"multi-step trials for this plan; when non-empty, the first item also defines the effective trialAmount \u0026 trialDurationTime","format":"[]*bean.PlanMultiTrial","items":{"properties":{"intervalCount":{"description":"for stage 2+: must be > 0 when intervalUnit is set; for stage 1 (index 0) used with intervalUnit to set TrialDurationTime at save","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.multiTrials.items.[INDEX].intervalCount","typeLabel":"integer\u003cint64>"},"intervalUnit":{"description":"for stage 2+: billing; for stage 1 (index 0) converted to plan TrialDurationTime at save (day/week/month≈30d/year≈365d)","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.multiTrials.items.[INDEX].intervalUnit","typeLabel":"string\u003cstring>"},"metadata":{"additionalProperties":{"properties":{},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.multiTrials.items.[INDEX].metadata.additionalProperties","typeLabel":"object"},"description":"optional metadata for this trial stage; persisted to subscription multi-trial snapshot and exposed in webhook payloads","format":"map[string]interface {}","properties":{},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.multiTrials.items.[INDEX].metadata","typeLabel":"object"},"name":{"description":"optional display name for this trial stage; when set, used instead of plan name in multi-trial invoices","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.multiTrials.items.[INDEX].name","typeLabel":"string\u003cstring>"},"trialCompareAtPrice":{"description":"optional compare-at / strikethrough display price in minor units (plan currency); UI only, not used in billing","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.multiTrials.items.[INDEX].trialCompareAtPrice","typeLabel":"integer\u003cint64>"},"trialDuration":{"description":"trial duration in seconds; first stage: at least 86400 unless valid intervalUnit+intervalCount is set","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.multiTrials.items.[INDEX].trialDuration","typeLabel":"integer\u003cint64>"},"trialPrice":{"description":"trial price; only the first trial is allowed to be 0, subsequent trials must be > 0","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.multiTrials.items.[INDEX].trialPrice","typeLabel":"integer\u003cint64>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.multiTrials.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.multiTrials","typeLabel":"object[]"},"planName":{"description":"PlanName","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.planName","typeLabel":"string\u003cstring>"},"productId":{"description":"product id","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.productId","typeLabel":"integer\u003cint64>"},"publishStatus":{"description":"1-UnPublish,2-Publish, Use For Display Plan At UserPortal","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.publishStatus","typeLabel":"integer\u003cint>"},"status":{"description":"status,1-editing,2-active,3-inactive,4-soft archive, 5-hard archive","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.status","typeLabel":"integer\u003cint>"},"taxPercentage":{"description":"TaxPercentage 1000 = 10%","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.taxPercentage","typeLabel":"integer\u003cint>"},"trialAmount":{"description":"price of trial period; may be overridden by multiTrials[0].trialPrice","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.trialAmount","typeLabel":"integer\u003cint64>"},"trialDemand":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.trialDemand","typeLabel":"string\u003cstring>"},"trialDurationTime":{"description":"duration of trial (seconds); may be overridden by multiTrials[0].trialDuration","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.trialDurationTime","typeLabel":"integer\u003cint64>"},"type":{"description":"type,1-main plan,2-addon plan","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.type","typeLabel":"integer\u003cint>"},"usVATConfig":{"properties":{"active":{"format":"bool","properties":{},"type":"boolean","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.usVATConfig.active","typeLabel":"boolean\u003cbool>"},"fromAddress":{"properties":{"address":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.usVATConfig.fromAddress.address","typeLabel":"string\u003cstring>"},"city":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.usVATConfig.fromAddress.city","typeLabel":"string\u003cstring>"},"countryCode":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.usVATConfig.fromAddress.countryCode","typeLabel":"string\u003cstring>"},"state":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.usVATConfig.fromAddress.state","typeLabel":"string\u003cstring>"},"verified":{"format":"bool","properties":{},"type":"boolean","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.usVATConfig.fromAddress.verified","typeLabel":"boolean\u003cbool>"},"zipCode":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.usVATConfig.fromAddress.zipCode","typeLabel":"string\u003cstring>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.usVATConfig.fromAddress","typeLabel":"object"},"nexusAddresses":{"format":"[]*bean.USAddress","items":{"properties":{"address":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.usVATConfig.nexusAddresses.items.[INDEX].address","typeLabel":"string\u003cstring>"},"city":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.usVATConfig.nexusAddresses.items.[INDEX].city","typeLabel":"string\u003cstring>"},"countryCode":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.usVATConfig.nexusAddresses.items.[INDEX].countryCode","typeLabel":"string\u003cstring>"},"state":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.usVATConfig.nexusAddresses.items.[INDEX].state","typeLabel":"string\u003cstring>"},"verified":{"format":"bool","properties":{},"type":"boolean","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.usVATConfig.nexusAddresses.items.[INDEX].verified","typeLabel":"boolean\u003cbool>"},"zipCode":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.usVATConfig.nexusAddresses.items.[INDEX].zipCode","typeLabel":"string\u003cstring>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.usVATConfig.nexusAddresses.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.usVATConfig.nexusAddresses","typeLabel":"object[]"},"sellOnUSOnly":{"format":"bool","properties":{},"type":"boolean","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.usVATConfig.sellOnUSOnly","typeLabel":"boolean\u003cbool>"},"taxCode":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.usVATConfig.taxCode","typeLabel":"string\u003cstring>"},"toAddress":{"properties":{"address":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.usVATConfig.toAddress.address","typeLabel":"string\u003cstring>"},"city":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.usVATConfig.toAddress.city","typeLabel":"string\u003cstring>"},"countryCode":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.usVATConfig.toAddress.countryCode","typeLabel":"string\u003cstring>"},"state":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.usVATConfig.toAddress.state","typeLabel":"string\u003cstring>"},"verified":{"format":"bool","properties":{},"type":"boolean","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.usVATConfig.toAddress.verified","typeLabel":"boolean\u003cbool>"},"zipCode":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.usVATConfig.toAddress.zipCode","typeLabel":"string\u003cstring>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.usVATConfig.toAddress","typeLabel":"object"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan.usVATConfig","typeLabel":"object"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].addonPlan","typeLabel":"object"},"quantity":{"description":"Quantity","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX].quantity","typeLabel":"integer\u003cint64>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.addons.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"data.subscriptionPendingUpdate.addons","typeLabel":"object[]"},"amount":{"description":"CaptureAmount, Cent","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.amount","typeLabel":"integer\u003cint64>"},"currency":{"description":"Currency","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.currency","typeLabel":"string\u003cstring>"},"effectImmediate":{"description":"EffectImmediate","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.effectImmediate","typeLabel":"integer\u003cint>"},"effectTime":{"description":"effect_immediate=0, EffectTime unit_time","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.effectTime","typeLabel":"integer\u003cint64>"},"gatewayId":{"description":"Id","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.gatewayId","typeLabel":"integer\u003cint64>"},"gmtCreate":{"description":"GmtCreate","format":"*gtime.Time","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.gmtCreate","typeLabel":"string\u003c*gtime.Time>"},"gmtModify":{"description":"GmtModify","format":"*gtime.Time","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.gmtModify","typeLabel":"string\u003c*gtime.Time>"},"invoiceId":{"description":"invoice id","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.invoiceId","typeLabel":"string\u003cstring>"},"link":{"description":"Link","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.link","typeLabel":"string\u003cstring>"},"merchantId":{"description":"MerchantId","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.merchantId","typeLabel":"integer\u003cint64>"},"merchantMember":{"properties":{"createTime":{"description":"create utc time","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.merchantMember.createTime","typeLabel":"integer\u003cint64>"},"email":{"description":"email","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.merchantMember.email","typeLabel":"string\u003cstring>"},"firstName":{"description":"first name","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.merchantMember.firstName","typeLabel":"string\u003cstring>"},"id":{"description":"userId","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.merchantMember.id","typeLabel":"integer\u003cint64>"},"isOwner":{"description":"Check Member is Owner","format":"bool","properties":{},"type":"boolean","uniqueKey":"data.subscriptionPendingUpdate.merchantMember.isOwner","typeLabel":"boolean\u003cbool>"},"lastName":{"description":"last name","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.merchantMember.lastName","typeLabel":"string\u003cstring>"},"merchantId":{"description":"merchant id","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.merchantMember.merchantId","typeLabel":"integer\u003cint64>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.merchantMember","typeLabel":"object"},"metadata":{"additionalProperties":{"properties":{},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.metadata.additionalProperties","typeLabel":"object"},"format":"map[string]interface {}","properties":{},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.metadata","typeLabel":"object"},"name":{"description":"Pending update invoice-name intent (mirrors DB column name)","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.name","typeLabel":"string\u003cstring>"},"note":{"description":"Update Note","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.note","typeLabel":"string\u003cstring>"},"paid":{"description":"Paid","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.paid","typeLabel":"integer\u003cint>"},"pendingUpdateId":{"description":"PendingUpdateId","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.pendingUpdateId","typeLabel":"string\u003cstring>"},"plan":{"properties":{"amount":{"description":"amount, cent, without tax","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.amount","typeLabel":"integer\u003cint64>"},"autoChargeConfig":{"properties":{"autoChargeLeadTime":{"description":"plan-level auto-charge lead time before period end (seconds); nil = fall back to merchant TryAutomaticPaymentBeforePeriodEnd; value must be >= 300.","format":"*int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.autoChargeConfig.autoChargeLeadTime","typeLabel":"integer\u003c*int64>"},"autoChargeMaxRetryCount":{"description":"plan-level max auto-charge attempts for one invoice, including the first automatic attempt; nil = fall back; 0 = unlimited.","format":"*int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.autoChargeConfig.autoChargeMaxRetryCount","typeLabel":"integer\u003c*int64>"},"autoChargeRetryInterval":{"description":"plan-level retry interval after a failed auto-charge (seconds); nil = fall back to merchant/system default; value must be >= 300.","format":"*int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.autoChargeConfig.autoChargeRetryInterval","typeLabel":"integer\u003c*int64>"},"incompleteExpireTime":{"description":"plan-level incomplete/expire grace time after period/trial end (seconds); nil = fall back to merchant/system default; 0 = no grace period, expire immediately after period/trial end.","format":"*int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.autoChargeConfig.incompleteExpireTime","typeLabel":"integer\u003c*int64>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.plan.autoChargeConfig","typeLabel":"object"},"autoUpgradePlanId":{"description":"Target plan id for auto-upgrade; stored in additional settings JSON; 0 if unset","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.autoUpgradePlanId","typeLabel":"integer\u003cint64>"},"bindingAddonIds":{"description":"binded recurring addon planIds,split with ,","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.plan.bindingAddonIds","typeLabel":"string\u003cstring>"},"bindingOnetimeAddonIds":{"description":"binded onetime addon planIds,split with ,","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.plan.bindingOnetimeAddonIds","typeLabel":"string\u003cstring>"},"cancelAtTrialEnd":{"description":"whether cancel at subscription first trial end,0-false | 1-true, will pass to cancelAtPeriodEnd of subscription","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.cancelAtTrialEnd","typeLabel":"integer\u003cint>"},"checkoutTemplateId":{"description":"Checkout template id, stored in plan additional settings","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.checkoutTemplateId","typeLabel":"integer\u003cint64>"},"checkoutUrl":{"description":"CheckoutUrl built from checkoutTemplateId and planId","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.plan.checkoutUrl","typeLabel":"string\u003cstring>"},"compareAtAmount":{"description":"optional compare-at / strikethrough display price for regular plan amount in minor units (plan currency); UI only, not used in billing; stored in plan additional settings JSON with multiTrials","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.compareAtAmount","typeLabel":"integer\u003cint64>"},"createTime":{"description":"create utc time","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.createTime","typeLabel":"integer\u003cint64>"},"currency":{"description":"currency","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.plan.currency","typeLabel":"string\u003cstring>"},"description":{"description":"description","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.plan.description","typeLabel":"string\u003cstring>"},"disableAutoCharge":{"description":"1=auto-charge off; for main recurring plans with amount>0 also 0=may auto-charge. Always 1 when amount=0 or plan type is not main (those plans never use subscription auto-charge).","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.disableAutoCharge","typeLabel":"integer\u003cint>"},"externalPlanId":{"description":"external_user_id","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.plan.externalPlanId","typeLabel":"string\u003cstring>"},"extraMetricData":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.plan.extraMetricData","typeLabel":"string\u003cstring>"},"gasPayer":{"description":"who pay the gas, merchant|user","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.plan.gasPayer","typeLabel":"string\u003cstring>"},"homeUrl":{"description":"home_url","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.plan.homeUrl","typeLabel":"string\u003cstring>"},"id":{"format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.id","typeLabel":"integer\u003cint64>"},"imageUrl":{"description":"image_url","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.plan.imageUrl","typeLabel":"string\u003cstring>"},"internalName":{"description":"PlanInternalName","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.plan.internalName","typeLabel":"string\u003cstring>"},"intervalCount":{"description":"period unit count","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.intervalCount","typeLabel":"integer\u003cint>"},"intervalUnit":{"description":"period unit,day|month|year|week","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.plan.intervalUnit","typeLabel":"string\u003cstring>"},"merchantId":{"description":"merchant id","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.merchantId","typeLabel":"integer\u003cint64>"},"metadata":{"additionalProperties":{"properties":{},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.plan.metadata.additionalProperties","typeLabel":"object"},"format":"map[string]interface {}","properties":{},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.plan.metadata","typeLabel":"object"},"metricLimits":{"description":"Plan's MetricLimit List","format":"[]*bean.PlanMetricLimitParam","items":{"properties":{"metricId":{"description":"MetricId","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.metricLimits.items.[INDEX].metricId","typeLabel":"integer\u003cint64>"},"metricLimit":{"description":"MetricLimit","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.metricLimits.items.[INDEX].metricLimit","typeLabel":"integer\u003cint64>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.plan.metricLimits.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"data.subscriptionPendingUpdate.plan.metricLimits","typeLabel":"object[]"},"metricMeteredCharge":{"description":"Plan's MetricMeteredCharge","format":"[]*bean.PlanMetricMeteredChargeParam","items":{"properties":{"chargeType":{"description":"ChargeType,0-standard pricing 1-graduated pricing","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.metricMeteredCharge.items.[INDEX].chargeType","typeLabel":"integer\u003cint>"},"graduatedAmounts":{"description":"GraduatedAmounts, used for graduated pricing","format":"[]*bean.MetricPlanChargeGraduatedStep","items":{"properties":{"endValue":{"description":"EndValue, -1 = infinity value(∞)","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.metricMeteredCharge.items.[INDEX].graduatedAmounts.items.[INDEX].endValue","typeLabel":"integer\u003cint64>"},"flatAmount":{"description":"FlatAmount,cent","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.metricMeteredCharge.items.[INDEX].graduatedAmounts.items.[INDEX].flatAmount","typeLabel":"integer\u003cint64>"},"perAmount":{"description":"PerAmount,cent","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.metricMeteredCharge.items.[INDEX].graduatedAmounts.items.[INDEX].perAmount","typeLabel":"integer\u003cint64>"},"startValue":{"description":"StartValue","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.metricMeteredCharge.items.[INDEX].graduatedAmounts.items.[INDEX].startValue","typeLabel":"integer\u003cint64>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.plan.metricMeteredCharge.items.[INDEX].graduatedAmounts.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"data.subscriptionPendingUpdate.plan.metricMeteredCharge.items.[INDEX].graduatedAmounts","typeLabel":"object[]"},"metricId":{"description":"MetricId","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.metricMeteredCharge.items.[INDEX].metricId","typeLabel":"integer\u003cint64>"},"standardAmount":{"description":"StandardAmount, cent, used for standard pricing,cent","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.metricMeteredCharge.items.[INDEX].standardAmount","typeLabel":"integer\u003cint64>"},"standardStartValue":{"description":"StandardStartValue, used for standard pricing","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.metricMeteredCharge.items.[INDEX].standardStartValue","typeLabel":"integer\u003cint64>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.plan.metricMeteredCharge.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"data.subscriptionPendingUpdate.plan.metricMeteredCharge","typeLabel":"object[]"},"metricRecurringCharge":{"description":"Plan's MetricRecurringCharge","format":"[]*bean.PlanMetricMeteredChargeParam","items":{"properties":{"chargeType":{"description":"ChargeType,0-standard pricing 1-graduated pricing","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.metricRecurringCharge.items.[INDEX].chargeType","typeLabel":"integer\u003cint>"},"graduatedAmounts":{"description":"GraduatedAmounts, used for graduated pricing","format":"[]*bean.MetricPlanChargeGraduatedStep","items":{"properties":{"endValue":{"description":"EndValue, -1 = infinity value(∞)","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.metricRecurringCharge.items.[INDEX].graduatedAmounts.items.[INDEX].endValue","typeLabel":"integer\u003cint64>"},"flatAmount":{"description":"FlatAmount,cent","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.metricRecurringCharge.items.[INDEX].graduatedAmounts.items.[INDEX].flatAmount","typeLabel":"integer\u003cint64>"},"perAmount":{"description":"PerAmount,cent","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.metricRecurringCharge.items.[INDEX].graduatedAmounts.items.[INDEX].perAmount","typeLabel":"integer\u003cint64>"},"startValue":{"description":"StartValue","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.metricRecurringCharge.items.[INDEX].graduatedAmounts.items.[INDEX].startValue","typeLabel":"integer\u003cint64>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.plan.metricRecurringCharge.items.[INDEX].graduatedAmounts.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"data.subscriptionPendingUpdate.plan.metricRecurringCharge.items.[INDEX].graduatedAmounts","typeLabel":"object[]"},"metricId":{"description":"MetricId","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.metricRecurringCharge.items.[INDEX].metricId","typeLabel":"integer\u003cint64>"},"standardAmount":{"description":"StandardAmount, cent, used for standard pricing,cent","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.metricRecurringCharge.items.[INDEX].standardAmount","typeLabel":"integer\u003cint64>"},"standardStartValue":{"description":"StandardStartValue, used for standard pricing","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.metricRecurringCharge.items.[INDEX].standardStartValue","typeLabel":"integer\u003cint64>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.plan.metricRecurringCharge.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"data.subscriptionPendingUpdate.plan.metricRecurringCharge","typeLabel":"object[]"},"multiCurrencies":{"description":"Plan's MultiCurrencies","format":"[]*bean.PlanMultiCurrency","items":{"properties":{"amount":{"description":"exchanged amount preview for this plan \u0026 currency; plan-level override not available in billing logic","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.multiCurrencies.items.[INDEX].amount","typeLabel":"integer\u003cint64>"},"autoExchange":{"description":"using https://app.exchangerate-api.com/ to update exchange rate if true, the exchange APIKey need setup first; plan-level override not available","format":"bool","properties":{},"type":"boolean","uniqueKey":"data.subscriptionPendingUpdate.plan.multiCurrencies.items.[INDEX].autoExchange","typeLabel":"boolean\u003cbool>"},"currency":{"description":"target currency","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.plan.multiCurrencies.items.[INDEX].currency","typeLabel":"string\u003cstring>"},"disable":{"description":"disable currency exchange for this plan \u0026 currency","format":"bool","properties":{},"type":"boolean","uniqueKey":"data.subscriptionPendingUpdate.plan.multiCurrencies.items.[INDEX].disable","typeLabel":"boolean\u003cbool>"},"exchangeRate":{"description":"exchange rate; plan-level override not available, real billing FX always comes from merchant's multi-currency config","format":"float64","properties":{},"type":"number","uniqueKey":"data.subscriptionPendingUpdate.plan.multiCurrencies.items.[INDEX].exchangeRate","typeLabel":"number\u003cfloat64>"},"fixedAmount":{"description":"locked billing amount for this plan \u0026 currency; when > 0, locks the main plan price only","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.multiCurrencies.items.[INDEX].fixedAmount","typeLabel":"integer\u003cint64>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.plan.multiCurrencies.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"data.subscriptionPendingUpdate.plan.multiCurrencies","typeLabel":"object[]"},"multiTrials":{"description":"multi-step trials for this plan; when non-empty, the first item also defines the effective trialAmount \u0026 trialDurationTime","format":"[]*bean.PlanMultiTrial","items":{"properties":{"intervalCount":{"description":"for stage 2+: must be > 0 when intervalUnit is set; for stage 1 (index 0) used with intervalUnit to set TrialDurationTime at save","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.multiTrials.items.[INDEX].intervalCount","typeLabel":"integer\u003cint64>"},"intervalUnit":{"description":"for stage 2+: billing; for stage 1 (index 0) converted to plan TrialDurationTime at save (day/week/month≈30d/year≈365d)","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.plan.multiTrials.items.[INDEX].intervalUnit","typeLabel":"string\u003cstring>"},"metadata":{"additionalProperties":{"properties":{},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.plan.multiTrials.items.[INDEX].metadata.additionalProperties","typeLabel":"object"},"description":"optional metadata for this trial stage; persisted to subscription multi-trial snapshot and exposed in webhook payloads","format":"map[string]interface {}","properties":{},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.plan.multiTrials.items.[INDEX].metadata","typeLabel":"object"},"name":{"description":"optional display name for this trial stage; when set, used instead of plan name in multi-trial invoices","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.plan.multiTrials.items.[INDEX].name","typeLabel":"string\u003cstring>"},"trialCompareAtPrice":{"description":"optional compare-at / strikethrough display price in minor units (plan currency); UI only, not used in billing","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.multiTrials.items.[INDEX].trialCompareAtPrice","typeLabel":"integer\u003cint64>"},"trialDuration":{"description":"trial duration in seconds; first stage: at least 86400 unless valid intervalUnit+intervalCount is set","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.multiTrials.items.[INDEX].trialDuration","typeLabel":"integer\u003cint64>"},"trialPrice":{"description":"trial price; only the first trial is allowed to be 0, subsequent trials must be > 0","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.multiTrials.items.[INDEX].trialPrice","typeLabel":"integer\u003cint64>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.plan.multiTrials.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"data.subscriptionPendingUpdate.plan.multiTrials","typeLabel":"object[]"},"planName":{"description":"PlanName","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.plan.planName","typeLabel":"string\u003cstring>"},"productId":{"description":"product id","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.productId","typeLabel":"integer\u003cint64>"},"publishStatus":{"description":"1-UnPublish,2-Publish, Use For Display Plan At UserPortal","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.publishStatus","typeLabel":"integer\u003cint>"},"status":{"description":"status,1-editing,2-active,3-inactive,4-soft archive, 5-hard archive","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.status","typeLabel":"integer\u003cint>"},"taxPercentage":{"description":"TaxPercentage 1000 = 10%","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.taxPercentage","typeLabel":"integer\u003cint>"},"trialAmount":{"description":"price of trial period; may be overridden by multiTrials[0].trialPrice","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.trialAmount","typeLabel":"integer\u003cint64>"},"trialDemand":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.plan.trialDemand","typeLabel":"string\u003cstring>"},"trialDurationTime":{"description":"duration of trial (seconds); may be overridden by multiTrials[0].trialDuration","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.trialDurationTime","typeLabel":"integer\u003cint64>"},"type":{"description":"type,1-main plan,2-addon plan","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.plan.type","typeLabel":"integer\u003cint>"},"usVATConfig":{"properties":{"active":{"format":"bool","properties":{},"type":"boolean","uniqueKey":"data.subscriptionPendingUpdate.plan.usVATConfig.active","typeLabel":"boolean\u003cbool>"},"fromAddress":{"properties":{"address":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.plan.usVATConfig.fromAddress.address","typeLabel":"string\u003cstring>"},"city":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.plan.usVATConfig.fromAddress.city","typeLabel":"string\u003cstring>"},"countryCode":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.plan.usVATConfig.fromAddress.countryCode","typeLabel":"string\u003cstring>"},"state":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.plan.usVATConfig.fromAddress.state","typeLabel":"string\u003cstring>"},"verified":{"format":"bool","properties":{},"type":"boolean","uniqueKey":"data.subscriptionPendingUpdate.plan.usVATConfig.fromAddress.verified","typeLabel":"boolean\u003cbool>"},"zipCode":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.plan.usVATConfig.fromAddress.zipCode","typeLabel":"string\u003cstring>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.plan.usVATConfig.fromAddress","typeLabel":"object"},"nexusAddresses":{"format":"[]*bean.USAddress","items":{"properties":{"address":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.plan.usVATConfig.nexusAddresses.items.[INDEX].address","typeLabel":"string\u003cstring>"},"city":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.plan.usVATConfig.nexusAddresses.items.[INDEX].city","typeLabel":"string\u003cstring>"},"countryCode":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.plan.usVATConfig.nexusAddresses.items.[INDEX].countryCode","typeLabel":"string\u003cstring>"},"state":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.plan.usVATConfig.nexusAddresses.items.[INDEX].state","typeLabel":"string\u003cstring>"},"verified":{"format":"bool","properties":{},"type":"boolean","uniqueKey":"data.subscriptionPendingUpdate.plan.usVATConfig.nexusAddresses.items.[INDEX].verified","typeLabel":"boolean\u003cbool>"},"zipCode":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.plan.usVATConfig.nexusAddresses.items.[INDEX].zipCode","typeLabel":"string\u003cstring>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.plan.usVATConfig.nexusAddresses.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"data.subscriptionPendingUpdate.plan.usVATConfig.nexusAddresses","typeLabel":"object[]"},"sellOnUSOnly":{"format":"bool","properties":{},"type":"boolean","uniqueKey":"data.subscriptionPendingUpdate.plan.usVATConfig.sellOnUSOnly","typeLabel":"boolean\u003cbool>"},"taxCode":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.plan.usVATConfig.taxCode","typeLabel":"string\u003cstring>"},"toAddress":{"properties":{"address":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.plan.usVATConfig.toAddress.address","typeLabel":"string\u003cstring>"},"city":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.plan.usVATConfig.toAddress.city","typeLabel":"string\u003cstring>"},"countryCode":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.plan.usVATConfig.toAddress.countryCode","typeLabel":"string\u003cstring>"},"state":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.plan.usVATConfig.toAddress.state","typeLabel":"string\u003cstring>"},"verified":{"format":"bool","properties":{},"type":"boolean","uniqueKey":"data.subscriptionPendingUpdate.plan.usVATConfig.toAddress.verified","typeLabel":"boolean\u003cbool>"},"zipCode":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.plan.usVATConfig.toAddress.zipCode","typeLabel":"string\u003cstring>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.plan.usVATConfig.toAddress","typeLabel":"object"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.plan.usVATConfig","typeLabel":"object"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.plan","typeLabel":"object"},"planId":{"description":"PlanId","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.planId","typeLabel":"integer\u003cint64>"},"prorationAmount":{"description":"ProrationAmount,Cents","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.prorationAmount","typeLabel":"integer\u003cint64>"},"quantity":{"description":"quantity","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.quantity","typeLabel":"integer\u003cint64>"},"status":{"description":"Status,1-Pending|2-Finished|3-Cancelled","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.status","typeLabel":"integer\u003cint>"},"subscriptionId":{"description":"SubscriptionId","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.subscriptionId","typeLabel":"string\u003cstring>"},"updateAddonData":{"description":"UpdateAddonData","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updateAddonData","typeLabel":"string\u003cstring>"},"updateAddons":{"description":"UpdateAddons","format":"[]*bean.PlanAddonDetail","items":{"properties":{"addonPlan":{"properties":{"amount":{"description":"amount, cent, without tax","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.amount","typeLabel":"integer\u003cint64>"},"autoChargeConfig":{"properties":{"autoChargeLeadTime":{"description":"plan-level auto-charge lead time before period end (seconds); nil = fall back to merchant TryAutomaticPaymentBeforePeriodEnd; value must be >= 300.","format":"*int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.autoChargeConfig.autoChargeLeadTime","typeLabel":"integer\u003c*int64>"},"autoChargeMaxRetryCount":{"description":"plan-level max auto-charge attempts for one invoice, including the first automatic attempt; nil = fall back; 0 = unlimited.","format":"*int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.autoChargeConfig.autoChargeMaxRetryCount","typeLabel":"integer\u003c*int64>"},"autoChargeRetryInterval":{"description":"plan-level retry interval after a failed auto-charge (seconds); nil = fall back to merchant/system default; value must be >= 300.","format":"*int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.autoChargeConfig.autoChargeRetryInterval","typeLabel":"integer\u003c*int64>"},"incompleteExpireTime":{"description":"plan-level incomplete/expire grace time after period/trial end (seconds); nil = fall back to merchant/system default; 0 = no grace period, expire immediately after period/trial end.","format":"*int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.autoChargeConfig.incompleteExpireTime","typeLabel":"integer\u003c*int64>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.autoChargeConfig","typeLabel":"object"},"autoUpgradePlanId":{"description":"Target plan id for auto-upgrade; stored in additional settings JSON; 0 if unset","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.autoUpgradePlanId","typeLabel":"integer\u003cint64>"},"bindingAddonIds":{"description":"binded recurring addon planIds,split with ,","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.bindingAddonIds","typeLabel":"string\u003cstring>"},"bindingOnetimeAddonIds":{"description":"binded onetime addon planIds,split with ,","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.bindingOnetimeAddonIds","typeLabel":"string\u003cstring>"},"cancelAtTrialEnd":{"description":"whether cancel at subscription first trial end,0-false | 1-true, will pass to cancelAtPeriodEnd of subscription","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.cancelAtTrialEnd","typeLabel":"integer\u003cint>"},"checkoutTemplateId":{"description":"Checkout template id, stored in plan additional settings","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.checkoutTemplateId","typeLabel":"integer\u003cint64>"},"checkoutUrl":{"description":"CheckoutUrl built from checkoutTemplateId and planId","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.checkoutUrl","typeLabel":"string\u003cstring>"},"compareAtAmount":{"description":"optional compare-at / strikethrough display price for regular plan amount in minor units (plan currency); UI only, not used in billing; stored in plan additional settings JSON with multiTrials","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.compareAtAmount","typeLabel":"integer\u003cint64>"},"createTime":{"description":"create utc time","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.createTime","typeLabel":"integer\u003cint64>"},"currency":{"description":"currency","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.currency","typeLabel":"string\u003cstring>"},"description":{"description":"description","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.description","typeLabel":"string\u003cstring>"},"disableAutoCharge":{"description":"1=auto-charge off; for main recurring plans with amount>0 also 0=may auto-charge. Always 1 when amount=0 or plan type is not main (those plans never use subscription auto-charge).","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.disableAutoCharge","typeLabel":"integer\u003cint>"},"externalPlanId":{"description":"external_user_id","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.externalPlanId","typeLabel":"string\u003cstring>"},"extraMetricData":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.extraMetricData","typeLabel":"string\u003cstring>"},"gasPayer":{"description":"who pay the gas, merchant|user","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.gasPayer","typeLabel":"string\u003cstring>"},"homeUrl":{"description":"home_url","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.homeUrl","typeLabel":"string\u003cstring>"},"id":{"format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.id","typeLabel":"integer\u003cint64>"},"imageUrl":{"description":"image_url","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.imageUrl","typeLabel":"string\u003cstring>"},"internalName":{"description":"PlanInternalName","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.internalName","typeLabel":"string\u003cstring>"},"intervalCount":{"description":"period unit count","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.intervalCount","typeLabel":"integer\u003cint>"},"intervalUnit":{"description":"period unit,day|month|year|week","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.intervalUnit","typeLabel":"string\u003cstring>"},"merchantId":{"description":"merchant id","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.merchantId","typeLabel":"integer\u003cint64>"},"metadata":{"additionalProperties":{"properties":{},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.metadata.additionalProperties","typeLabel":"object"},"format":"map[string]interface {}","properties":{},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.metadata","typeLabel":"object"},"metricLimits":{"description":"Plan's MetricLimit List","format":"[]*bean.PlanMetricLimitParam","items":{"properties":{"metricId":{"description":"MetricId","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.metricLimits.items.[INDEX].metricId","typeLabel":"integer\u003cint64>"},"metricLimit":{"description":"MetricLimit","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.metricLimits.items.[INDEX].metricLimit","typeLabel":"integer\u003cint64>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.metricLimits.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.metricLimits","typeLabel":"object[]"},"metricMeteredCharge":{"description":"Plan's MetricMeteredCharge","format":"[]*bean.PlanMetricMeteredChargeParam","items":{"properties":{"chargeType":{"description":"ChargeType,0-standard pricing 1-graduated pricing","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.metricMeteredCharge.items.[INDEX].chargeType","typeLabel":"integer\u003cint>"},"graduatedAmounts":{"description":"GraduatedAmounts, used for graduated pricing","format":"[]*bean.MetricPlanChargeGraduatedStep","items":{"properties":{"endValue":{"description":"EndValue, -1 = infinity value(∞)","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.metricMeteredCharge.items.[INDEX].graduatedAmounts.items.[INDEX].endValue","typeLabel":"integer\u003cint64>"},"flatAmount":{"description":"FlatAmount,cent","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.metricMeteredCharge.items.[INDEX].graduatedAmounts.items.[INDEX].flatAmount","typeLabel":"integer\u003cint64>"},"perAmount":{"description":"PerAmount,cent","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.metricMeteredCharge.items.[INDEX].graduatedAmounts.items.[INDEX].perAmount","typeLabel":"integer\u003cint64>"},"startValue":{"description":"StartValue","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.metricMeteredCharge.items.[INDEX].graduatedAmounts.items.[INDEX].startValue","typeLabel":"integer\u003cint64>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.metricMeteredCharge.items.[INDEX].graduatedAmounts.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.metricMeteredCharge.items.[INDEX].graduatedAmounts","typeLabel":"object[]"},"metricId":{"description":"MetricId","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.metricMeteredCharge.items.[INDEX].metricId","typeLabel":"integer\u003cint64>"},"standardAmount":{"description":"StandardAmount, cent, used for standard pricing,cent","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.metricMeteredCharge.items.[INDEX].standardAmount","typeLabel":"integer\u003cint64>"},"standardStartValue":{"description":"StandardStartValue, used for standard pricing","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.metricMeteredCharge.items.[INDEX].standardStartValue","typeLabel":"integer\u003cint64>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.metricMeteredCharge.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.metricMeteredCharge","typeLabel":"object[]"},"metricRecurringCharge":{"description":"Plan's MetricRecurringCharge","format":"[]*bean.PlanMetricMeteredChargeParam","items":{"properties":{"chargeType":{"description":"ChargeType,0-standard pricing 1-graduated pricing","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.metricRecurringCharge.items.[INDEX].chargeType","typeLabel":"integer\u003cint>"},"graduatedAmounts":{"description":"GraduatedAmounts, used for graduated pricing","format":"[]*bean.MetricPlanChargeGraduatedStep","items":{"properties":{"endValue":{"description":"EndValue, -1 = infinity value(∞)","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.metricRecurringCharge.items.[INDEX].graduatedAmounts.items.[INDEX].endValue","typeLabel":"integer\u003cint64>"},"flatAmount":{"description":"FlatAmount,cent","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.metricRecurringCharge.items.[INDEX].graduatedAmounts.items.[INDEX].flatAmount","typeLabel":"integer\u003cint64>"},"perAmount":{"description":"PerAmount,cent","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.metricRecurringCharge.items.[INDEX].graduatedAmounts.items.[INDEX].perAmount","typeLabel":"integer\u003cint64>"},"startValue":{"description":"StartValue","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.metricRecurringCharge.items.[INDEX].graduatedAmounts.items.[INDEX].startValue","typeLabel":"integer\u003cint64>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.metricRecurringCharge.items.[INDEX].graduatedAmounts.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.metricRecurringCharge.items.[INDEX].graduatedAmounts","typeLabel":"object[]"},"metricId":{"description":"MetricId","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.metricRecurringCharge.items.[INDEX].metricId","typeLabel":"integer\u003cint64>"},"standardAmount":{"description":"StandardAmount, cent, used for standard pricing,cent","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.metricRecurringCharge.items.[INDEX].standardAmount","typeLabel":"integer\u003cint64>"},"standardStartValue":{"description":"StandardStartValue, used for standard pricing","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.metricRecurringCharge.items.[INDEX].standardStartValue","typeLabel":"integer\u003cint64>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.metricRecurringCharge.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.metricRecurringCharge","typeLabel":"object[]"},"multiCurrencies":{"description":"Plan's MultiCurrencies","format":"[]*bean.PlanMultiCurrency","items":{"properties":{"amount":{"description":"exchanged amount preview for this plan \u0026 currency; plan-level override not available in billing logic","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.multiCurrencies.items.[INDEX].amount","typeLabel":"integer\u003cint64>"},"autoExchange":{"description":"using https://app.exchangerate-api.com/ to update exchange rate if true, the exchange APIKey need setup first; plan-level override not available","format":"bool","properties":{},"type":"boolean","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.multiCurrencies.items.[INDEX].autoExchange","typeLabel":"boolean\u003cbool>"},"currency":{"description":"target currency","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.multiCurrencies.items.[INDEX].currency","typeLabel":"string\u003cstring>"},"disable":{"description":"disable currency exchange for this plan \u0026 currency","format":"bool","properties":{},"type":"boolean","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.multiCurrencies.items.[INDEX].disable","typeLabel":"boolean\u003cbool>"},"exchangeRate":{"description":"exchange rate; plan-level override not available, real billing FX always comes from merchant's multi-currency config","format":"float64","properties":{},"type":"number","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.multiCurrencies.items.[INDEX].exchangeRate","typeLabel":"number\u003cfloat64>"},"fixedAmount":{"description":"locked billing amount for this plan \u0026 currency; when > 0, locks the main plan price only","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.multiCurrencies.items.[INDEX].fixedAmount","typeLabel":"integer\u003cint64>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.multiCurrencies.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.multiCurrencies","typeLabel":"object[]"},"multiTrials":{"description":"multi-step trials for this plan; when non-empty, the first item also defines the effective trialAmount \u0026 trialDurationTime","format":"[]*bean.PlanMultiTrial","items":{"properties":{"intervalCount":{"description":"for stage 2+: must be > 0 when intervalUnit is set; for stage 1 (index 0) used with intervalUnit to set TrialDurationTime at save","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.multiTrials.items.[INDEX].intervalCount","typeLabel":"integer\u003cint64>"},"intervalUnit":{"description":"for stage 2+: billing; for stage 1 (index 0) converted to plan TrialDurationTime at save (day/week/month≈30d/year≈365d)","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.multiTrials.items.[INDEX].intervalUnit","typeLabel":"string\u003cstring>"},"metadata":{"additionalProperties":{"properties":{},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.multiTrials.items.[INDEX].metadata.additionalProperties","typeLabel":"object"},"description":"optional metadata for this trial stage; persisted to subscription multi-trial snapshot and exposed in webhook payloads","format":"map[string]interface {}","properties":{},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.multiTrials.items.[INDEX].metadata","typeLabel":"object"},"name":{"description":"optional display name for this trial stage; when set, used instead of plan name in multi-trial invoices","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.multiTrials.items.[INDEX].name","typeLabel":"string\u003cstring>"},"trialCompareAtPrice":{"description":"optional compare-at / strikethrough display price in minor units (plan currency); UI only, not used in billing","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.multiTrials.items.[INDEX].trialCompareAtPrice","typeLabel":"integer\u003cint64>"},"trialDuration":{"description":"trial duration in seconds; first stage: at least 86400 unless valid intervalUnit+intervalCount is set","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.multiTrials.items.[INDEX].trialDuration","typeLabel":"integer\u003cint64>"},"trialPrice":{"description":"trial price; only the first trial is allowed to be 0, subsequent trials must be > 0","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.multiTrials.items.[INDEX].trialPrice","typeLabel":"integer\u003cint64>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.multiTrials.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.multiTrials","typeLabel":"object[]"},"planName":{"description":"PlanName","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.planName","typeLabel":"string\u003cstring>"},"productId":{"description":"product id","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.productId","typeLabel":"integer\u003cint64>"},"publishStatus":{"description":"1-UnPublish,2-Publish, Use For Display Plan At UserPortal","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.publishStatus","typeLabel":"integer\u003cint>"},"status":{"description":"status,1-editing,2-active,3-inactive,4-soft archive, 5-hard archive","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.status","typeLabel":"integer\u003cint>"},"taxPercentage":{"description":"TaxPercentage 1000 = 10%","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.taxPercentage","typeLabel":"integer\u003cint>"},"trialAmount":{"description":"price of trial period; may be overridden by multiTrials[0].trialPrice","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.trialAmount","typeLabel":"integer\u003cint64>"},"trialDemand":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.trialDemand","typeLabel":"string\u003cstring>"},"trialDurationTime":{"description":"duration of trial (seconds); may be overridden by multiTrials[0].trialDuration","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.trialDurationTime","typeLabel":"integer\u003cint64>"},"type":{"description":"type,1-main plan,2-addon plan","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.type","typeLabel":"integer\u003cint>"},"usVATConfig":{"properties":{"active":{"format":"bool","properties":{},"type":"boolean","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.usVATConfig.active","typeLabel":"boolean\u003cbool>"},"fromAddress":{"properties":{"address":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.usVATConfig.fromAddress.address","typeLabel":"string\u003cstring>"},"city":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.usVATConfig.fromAddress.city","typeLabel":"string\u003cstring>"},"countryCode":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.usVATConfig.fromAddress.countryCode","typeLabel":"string\u003cstring>"},"state":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.usVATConfig.fromAddress.state","typeLabel":"string\u003cstring>"},"verified":{"format":"bool","properties":{},"type":"boolean","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.usVATConfig.fromAddress.verified","typeLabel":"boolean\u003cbool>"},"zipCode":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.usVATConfig.fromAddress.zipCode","typeLabel":"string\u003cstring>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.usVATConfig.fromAddress","typeLabel":"object"},"nexusAddresses":{"format":"[]*bean.USAddress","items":{"properties":{"address":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.usVATConfig.nexusAddresses.items.[INDEX].address","typeLabel":"string\u003cstring>"},"city":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.usVATConfig.nexusAddresses.items.[INDEX].city","typeLabel":"string\u003cstring>"},"countryCode":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.usVATConfig.nexusAddresses.items.[INDEX].countryCode","typeLabel":"string\u003cstring>"},"state":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.usVATConfig.nexusAddresses.items.[INDEX].state","typeLabel":"string\u003cstring>"},"verified":{"format":"bool","properties":{},"type":"boolean","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.usVATConfig.nexusAddresses.items.[INDEX].verified","typeLabel":"boolean\u003cbool>"},"zipCode":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.usVATConfig.nexusAddresses.items.[INDEX].zipCode","typeLabel":"string\u003cstring>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.usVATConfig.nexusAddresses.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.usVATConfig.nexusAddresses","typeLabel":"object[]"},"sellOnUSOnly":{"format":"bool","properties":{},"type":"boolean","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.usVATConfig.sellOnUSOnly","typeLabel":"boolean\u003cbool>"},"taxCode":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.usVATConfig.taxCode","typeLabel":"string\u003cstring>"},"toAddress":{"properties":{"address":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.usVATConfig.toAddress.address","typeLabel":"string\u003cstring>"},"city":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.usVATConfig.toAddress.city","typeLabel":"string\u003cstring>"},"countryCode":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.usVATConfig.toAddress.countryCode","typeLabel":"string\u003cstring>"},"state":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.usVATConfig.toAddress.state","typeLabel":"string\u003cstring>"},"verified":{"format":"bool","properties":{},"type":"boolean","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.usVATConfig.toAddress.verified","typeLabel":"boolean\u003cbool>"},"zipCode":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.usVATConfig.toAddress.zipCode","typeLabel":"string\u003cstring>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.usVATConfig.toAddress","typeLabel":"object"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan.usVATConfig","typeLabel":"object"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].addonPlan","typeLabel":"object"},"quantity":{"description":"Quantity","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX].quantity","typeLabel":"integer\u003cint64>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.updateAddons.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"data.subscriptionPendingUpdate.updateAddons","typeLabel":"object[]"},"updateAmount":{"description":"UpdateAmount, Cents","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateAmount","typeLabel":"integer\u003cint64>"},"updateCurrency":{"description":"UpdateCurrency","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updateCurrency","typeLabel":"string\u003cstring>"},"updatePlan":{"properties":{"amount":{"description":"amount, cent, without tax","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.amount","typeLabel":"integer\u003cint64>"},"autoChargeConfig":{"properties":{"autoChargeLeadTime":{"description":"plan-level auto-charge lead time before period end (seconds); nil = fall back to merchant TryAutomaticPaymentBeforePeriodEnd; value must be >= 300.","format":"*int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.autoChargeConfig.autoChargeLeadTime","typeLabel":"integer\u003c*int64>"},"autoChargeMaxRetryCount":{"description":"plan-level max auto-charge attempts for one invoice, including the first automatic attempt; nil = fall back; 0 = unlimited.","format":"*int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.autoChargeConfig.autoChargeMaxRetryCount","typeLabel":"integer\u003c*int64>"},"autoChargeRetryInterval":{"description":"plan-level retry interval after a failed auto-charge (seconds); nil = fall back to merchant/system default; value must be >= 300.","format":"*int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.autoChargeConfig.autoChargeRetryInterval","typeLabel":"integer\u003c*int64>"},"incompleteExpireTime":{"description":"plan-level incomplete/expire grace time after period/trial end (seconds); nil = fall back to merchant/system default; 0 = no grace period, expire immediately after period/trial end.","format":"*int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.autoChargeConfig.incompleteExpireTime","typeLabel":"integer\u003c*int64>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.autoChargeConfig","typeLabel":"object"},"autoUpgradePlanId":{"description":"Target plan id for auto-upgrade; stored in additional settings JSON; 0 if unset","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.autoUpgradePlanId","typeLabel":"integer\u003cint64>"},"bindingAddonIds":{"description":"binded recurring addon planIds,split with ,","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.bindingAddonIds","typeLabel":"string\u003cstring>"},"bindingOnetimeAddonIds":{"description":"binded onetime addon planIds,split with ,","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.bindingOnetimeAddonIds","typeLabel":"string\u003cstring>"},"cancelAtTrialEnd":{"description":"whether cancel at subscription first trial end,0-false | 1-true, will pass to cancelAtPeriodEnd of subscription","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.cancelAtTrialEnd","typeLabel":"integer\u003cint>"},"checkoutTemplateId":{"description":"Checkout template id, stored in plan additional settings","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.checkoutTemplateId","typeLabel":"integer\u003cint64>"},"checkoutUrl":{"description":"CheckoutUrl built from checkoutTemplateId and planId","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.checkoutUrl","typeLabel":"string\u003cstring>"},"compareAtAmount":{"description":"optional compare-at / strikethrough display price for regular plan amount in minor units (plan currency); UI only, not used in billing; stored in plan additional settings JSON with multiTrials","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.compareAtAmount","typeLabel":"integer\u003cint64>"},"createTime":{"description":"create utc time","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.createTime","typeLabel":"integer\u003cint64>"},"currency":{"description":"currency","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.currency","typeLabel":"string\u003cstring>"},"description":{"description":"description","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.description","typeLabel":"string\u003cstring>"},"disableAutoCharge":{"description":"1=auto-charge off; for main recurring plans with amount>0 also 0=may auto-charge. Always 1 when amount=0 or plan type is not main (those plans never use subscription auto-charge).","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.disableAutoCharge","typeLabel":"integer\u003cint>"},"externalPlanId":{"description":"external_user_id","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.externalPlanId","typeLabel":"string\u003cstring>"},"extraMetricData":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.extraMetricData","typeLabel":"string\u003cstring>"},"gasPayer":{"description":"who pay the gas, merchant|user","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.gasPayer","typeLabel":"string\u003cstring>"},"homeUrl":{"description":"home_url","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.homeUrl","typeLabel":"string\u003cstring>"},"id":{"format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.id","typeLabel":"integer\u003cint64>"},"imageUrl":{"description":"image_url","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.imageUrl","typeLabel":"string\u003cstring>"},"internalName":{"description":"PlanInternalName","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.internalName","typeLabel":"string\u003cstring>"},"intervalCount":{"description":"period unit count","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.intervalCount","typeLabel":"integer\u003cint>"},"intervalUnit":{"description":"period unit,day|month|year|week","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.intervalUnit","typeLabel":"string\u003cstring>"},"merchantId":{"description":"merchant id","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.merchantId","typeLabel":"integer\u003cint64>"},"metadata":{"additionalProperties":{"properties":{},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.metadata.additionalProperties","typeLabel":"object"},"format":"map[string]interface {}","properties":{},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.metadata","typeLabel":"object"},"metricLimits":{"description":"Plan's MetricLimit List","format":"[]*bean.PlanMetricLimitParam","items":{"properties":{"metricId":{"description":"MetricId","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.metricLimits.items.[INDEX].metricId","typeLabel":"integer\u003cint64>"},"metricLimit":{"description":"MetricLimit","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.metricLimits.items.[INDEX].metricLimit","typeLabel":"integer\u003cint64>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.metricLimits.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.metricLimits","typeLabel":"object[]"},"metricMeteredCharge":{"description":"Plan's MetricMeteredCharge","format":"[]*bean.PlanMetricMeteredChargeParam","items":{"properties":{"chargeType":{"description":"ChargeType,0-standard pricing 1-graduated pricing","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.metricMeteredCharge.items.[INDEX].chargeType","typeLabel":"integer\u003cint>"},"graduatedAmounts":{"description":"GraduatedAmounts, used for graduated pricing","format":"[]*bean.MetricPlanChargeGraduatedStep","items":{"properties":{"endValue":{"description":"EndValue, -1 = infinity value(∞)","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.metricMeteredCharge.items.[INDEX].graduatedAmounts.items.[INDEX].endValue","typeLabel":"integer\u003cint64>"},"flatAmount":{"description":"FlatAmount,cent","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.metricMeteredCharge.items.[INDEX].graduatedAmounts.items.[INDEX].flatAmount","typeLabel":"integer\u003cint64>"},"perAmount":{"description":"PerAmount,cent","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.metricMeteredCharge.items.[INDEX].graduatedAmounts.items.[INDEX].perAmount","typeLabel":"integer\u003cint64>"},"startValue":{"description":"StartValue","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.metricMeteredCharge.items.[INDEX].graduatedAmounts.items.[INDEX].startValue","typeLabel":"integer\u003cint64>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.metricMeteredCharge.items.[INDEX].graduatedAmounts.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.metricMeteredCharge.items.[INDEX].graduatedAmounts","typeLabel":"object[]"},"metricId":{"description":"MetricId","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.metricMeteredCharge.items.[INDEX].metricId","typeLabel":"integer\u003cint64>"},"standardAmount":{"description":"StandardAmount, cent, used for standard pricing,cent","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.metricMeteredCharge.items.[INDEX].standardAmount","typeLabel":"integer\u003cint64>"},"standardStartValue":{"description":"StandardStartValue, used for standard pricing","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.metricMeteredCharge.items.[INDEX].standardStartValue","typeLabel":"integer\u003cint64>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.metricMeteredCharge.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.metricMeteredCharge","typeLabel":"object[]"},"metricRecurringCharge":{"description":"Plan's MetricRecurringCharge","format":"[]*bean.PlanMetricMeteredChargeParam","items":{"properties":{"chargeType":{"description":"ChargeType,0-standard pricing 1-graduated pricing","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.metricRecurringCharge.items.[INDEX].chargeType","typeLabel":"integer\u003cint>"},"graduatedAmounts":{"description":"GraduatedAmounts, used for graduated pricing","format":"[]*bean.MetricPlanChargeGraduatedStep","items":{"properties":{"endValue":{"description":"EndValue, -1 = infinity value(∞)","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.metricRecurringCharge.items.[INDEX].graduatedAmounts.items.[INDEX].endValue","typeLabel":"integer\u003cint64>"},"flatAmount":{"description":"FlatAmount,cent","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.metricRecurringCharge.items.[INDEX].graduatedAmounts.items.[INDEX].flatAmount","typeLabel":"integer\u003cint64>"},"perAmount":{"description":"PerAmount,cent","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.metricRecurringCharge.items.[INDEX].graduatedAmounts.items.[INDEX].perAmount","typeLabel":"integer\u003cint64>"},"startValue":{"description":"StartValue","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.metricRecurringCharge.items.[INDEX].graduatedAmounts.items.[INDEX].startValue","typeLabel":"integer\u003cint64>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.metricRecurringCharge.items.[INDEX].graduatedAmounts.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.metricRecurringCharge.items.[INDEX].graduatedAmounts","typeLabel":"object[]"},"metricId":{"description":"MetricId","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.metricRecurringCharge.items.[INDEX].metricId","typeLabel":"integer\u003cint64>"},"standardAmount":{"description":"StandardAmount, cent, used for standard pricing,cent","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.metricRecurringCharge.items.[INDEX].standardAmount","typeLabel":"integer\u003cint64>"},"standardStartValue":{"description":"StandardStartValue, used for standard pricing","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.metricRecurringCharge.items.[INDEX].standardStartValue","typeLabel":"integer\u003cint64>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.metricRecurringCharge.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.metricRecurringCharge","typeLabel":"object[]"},"multiCurrencies":{"description":"Plan's MultiCurrencies","format":"[]*bean.PlanMultiCurrency","items":{"properties":{"amount":{"description":"exchanged amount preview for this plan \u0026 currency; plan-level override not available in billing logic","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.multiCurrencies.items.[INDEX].amount","typeLabel":"integer\u003cint64>"},"autoExchange":{"description":"using https://app.exchangerate-api.com/ to update exchange rate if true, the exchange APIKey need setup first; plan-level override not available","format":"bool","properties":{},"type":"boolean","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.multiCurrencies.items.[INDEX].autoExchange","typeLabel":"boolean\u003cbool>"},"currency":{"description":"target currency","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.multiCurrencies.items.[INDEX].currency","typeLabel":"string\u003cstring>"},"disable":{"description":"disable currency exchange for this plan \u0026 currency","format":"bool","properties":{},"type":"boolean","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.multiCurrencies.items.[INDEX].disable","typeLabel":"boolean\u003cbool>"},"exchangeRate":{"description":"exchange rate; plan-level override not available, real billing FX always comes from merchant's multi-currency config","format":"float64","properties":{},"type":"number","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.multiCurrencies.items.[INDEX].exchangeRate","typeLabel":"number\u003cfloat64>"},"fixedAmount":{"description":"locked billing amount for this plan \u0026 currency; when > 0, locks the main plan price only","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.multiCurrencies.items.[INDEX].fixedAmount","typeLabel":"integer\u003cint64>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.multiCurrencies.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.multiCurrencies","typeLabel":"object[]"},"multiTrials":{"description":"multi-step trials for this plan; when non-empty, the first item also defines the effective trialAmount \u0026 trialDurationTime","format":"[]*bean.PlanMultiTrial","items":{"properties":{"intervalCount":{"description":"for stage 2+: must be > 0 when intervalUnit is set; for stage 1 (index 0) used with intervalUnit to set TrialDurationTime at save","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.multiTrials.items.[INDEX].intervalCount","typeLabel":"integer\u003cint64>"},"intervalUnit":{"description":"for stage 2+: billing; for stage 1 (index 0) converted to plan TrialDurationTime at save (day/week/month≈30d/year≈365d)","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.multiTrials.items.[INDEX].intervalUnit","typeLabel":"string\u003cstring>"},"metadata":{"additionalProperties":{"properties":{},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.multiTrials.items.[INDEX].metadata.additionalProperties","typeLabel":"object"},"description":"optional metadata for this trial stage; persisted to subscription multi-trial snapshot and exposed in webhook payloads","format":"map[string]interface {}","properties":{},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.multiTrials.items.[INDEX].metadata","typeLabel":"object"},"name":{"description":"optional display name for this trial stage; when set, used instead of plan name in multi-trial invoices","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.multiTrials.items.[INDEX].name","typeLabel":"string\u003cstring>"},"trialCompareAtPrice":{"description":"optional compare-at / strikethrough display price in minor units (plan currency); UI only, not used in billing","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.multiTrials.items.[INDEX].trialCompareAtPrice","typeLabel":"integer\u003cint64>"},"trialDuration":{"description":"trial duration in seconds; first stage: at least 86400 unless valid intervalUnit+intervalCount is set","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.multiTrials.items.[INDEX].trialDuration","typeLabel":"integer\u003cint64>"},"trialPrice":{"description":"trial price; only the first trial is allowed to be 0, subsequent trials must be > 0","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.multiTrials.items.[INDEX].trialPrice","typeLabel":"integer\u003cint64>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.multiTrials.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.multiTrials","typeLabel":"object[]"},"planName":{"description":"PlanName","format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.planName","typeLabel":"string\u003cstring>"},"productId":{"description":"product id","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.productId","typeLabel":"integer\u003cint64>"},"publishStatus":{"description":"1-UnPublish,2-Publish, Use For Display Plan At UserPortal","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.publishStatus","typeLabel":"integer\u003cint>"},"status":{"description":"status,1-editing,2-active,3-inactive,4-soft archive, 5-hard archive","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.status","typeLabel":"integer\u003cint>"},"taxPercentage":{"description":"TaxPercentage 1000 = 10%","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.taxPercentage","typeLabel":"integer\u003cint>"},"trialAmount":{"description":"price of trial period; may be overridden by multiTrials[0].trialPrice","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.trialAmount","typeLabel":"integer\u003cint64>"},"trialDemand":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.trialDemand","typeLabel":"string\u003cstring>"},"trialDurationTime":{"description":"duration of trial (seconds); may be overridden by multiTrials[0].trialDuration","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.trialDurationTime","typeLabel":"integer\u003cint64>"},"type":{"description":"type,1-main plan,2-addon plan","format":"int","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.type","typeLabel":"integer\u003cint>"},"usVATConfig":{"properties":{"active":{"format":"bool","properties":{},"type":"boolean","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.usVATConfig.active","typeLabel":"boolean\u003cbool>"},"fromAddress":{"properties":{"address":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.usVATConfig.fromAddress.address","typeLabel":"string\u003cstring>"},"city":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.usVATConfig.fromAddress.city","typeLabel":"string\u003cstring>"},"countryCode":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.usVATConfig.fromAddress.countryCode","typeLabel":"string\u003cstring>"},"state":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.usVATConfig.fromAddress.state","typeLabel":"string\u003cstring>"},"verified":{"format":"bool","properties":{},"type":"boolean","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.usVATConfig.fromAddress.verified","typeLabel":"boolean\u003cbool>"},"zipCode":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.usVATConfig.fromAddress.zipCode","typeLabel":"string\u003cstring>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.usVATConfig.fromAddress","typeLabel":"object"},"nexusAddresses":{"format":"[]*bean.USAddress","items":{"properties":{"address":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.usVATConfig.nexusAddresses.items.[INDEX].address","typeLabel":"string\u003cstring>"},"city":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.usVATConfig.nexusAddresses.items.[INDEX].city","typeLabel":"string\u003cstring>"},"countryCode":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.usVATConfig.nexusAddresses.items.[INDEX].countryCode","typeLabel":"string\u003cstring>"},"state":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.usVATConfig.nexusAddresses.items.[INDEX].state","typeLabel":"string\u003cstring>"},"verified":{"format":"bool","properties":{},"type":"boolean","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.usVATConfig.nexusAddresses.items.[INDEX].verified","typeLabel":"boolean\u003cbool>"},"zipCode":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.usVATConfig.nexusAddresses.items.[INDEX].zipCode","typeLabel":"string\u003cstring>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.usVATConfig.nexusAddresses.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.usVATConfig.nexusAddresses","typeLabel":"object[]"},"sellOnUSOnly":{"format":"bool","properties":{},"type":"boolean","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.usVATConfig.sellOnUSOnly","typeLabel":"boolean\u003cbool>"},"taxCode":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.usVATConfig.taxCode","typeLabel":"string\u003cstring>"},"toAddress":{"properties":{"address":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.usVATConfig.toAddress.address","typeLabel":"string\u003cstring>"},"city":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.usVATConfig.toAddress.city","typeLabel":"string\u003cstring>"},"countryCode":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.usVATConfig.toAddress.countryCode","typeLabel":"string\u003cstring>"},"state":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.usVATConfig.toAddress.state","typeLabel":"string\u003cstring>"},"verified":{"format":"bool","properties":{},"type":"boolean","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.usVATConfig.toAddress.verified","typeLabel":"boolean\u003cbool>"},"zipCode":{"format":"string","properties":{},"type":"string","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.usVATConfig.toAddress.zipCode","typeLabel":"string\u003cstring>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.usVATConfig.toAddress","typeLabel":"object"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.updatePlan.usVATConfig","typeLabel":"object"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate.updatePlan","typeLabel":"object"},"updatePlanId":{"description":"UpdatePlanId","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updatePlanId","typeLabel":"integer\u003cint64>"},"updateQuantity":{"description":"UpdateQuantity","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.updateQuantity","typeLabel":"integer\u003cint64>"},"userId":{"description":"UserId","format":"int64","properties":{},"type":"integer","uniqueKey":"data.subscriptionPendingUpdate.userId","typeLabel":"integer\u003cint64>"}},"type":"object","uniqueKey":"data.subscriptionPendingUpdate","typeLabel":"object"}},"type":"object","uniqueKey":"data","typeLabel":"object"},"merchantId":{"format":"int64","properties":{},"type":"integer","uniqueKey":"merchantId","typeLabel":"integer\u003cint64>"},"message":{"format":"string","properties":{},"type":"string","uniqueKey":"message","typeLabel":"string\u003cstring>"},"redirect":{"format":"string","properties":{},"type":"string","uniqueKey":"redirect","typeLabel":"string\u003cstring>"},"requestId":{"format":"string","properties":{},"type":"string","uniqueKey":"requestId","typeLabel":"string\u003cstring>"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":123,"data":{"action":{},"invoiceId":"\u003cstring>","link":"\u003cstring>","note":"\u003cstring>","paid":true,"paymentId":"\u003cstring>","subscriptionPendingUpdate":{"addonData":"\u003cstring>","addons":[{"addonPlan":{"amount":123,"autoChargeConfig":{"autoChargeLeadTime":123,"autoChargeMaxRetryCount":123,"autoChargeRetryInterval":123,"incompleteExpireTime":123},"autoUpgradePlanId":123,"bindingAddonIds":"\u003cstring>","bindingOnetimeAddonIds":"\u003cstring>","cancelAtTrialEnd":123,"checkoutTemplateId":123,"checkoutUrl":"\u003cstring>","compareAtAmount":123,"createTime":123,"currency":"\u003cstring>","description":"\u003cstring>","disableAutoCharge":123,"externalPlanId":"\u003cstring>","extraMetricData":"\u003cstring>","gasPayer":"\u003cstring>","homeUrl":"\u003cstring>","id":123,"imageUrl":"\u003cstring>","internalName":"\u003cstring>","intervalCount":123,"intervalUnit":"\u003cstring>","merchantId":123,"metadata":{},"metricLimits":[{"metricId":123,"metricLimit":123}],"metricMeteredCharge":[{"chargeType":123,"graduatedAmounts":[{"endValue":123,"flatAmount":123,"perAmount":123,"startValue":123}],"metricId":123,"standardAmount":123,"standardStartValue":123}],"metricRecurringCharge":[{"chargeType":123,"graduatedAmounts":[{"endValue":123,"flatAmount":123,"perAmount":123,"startValue":123}],"metricId":123,"standardAmount":123,"standardStartValue":123}],"multiCurrencies":[{"amount":123,"autoExchange":true,"currency":"\u003cstring>","disable":true,"exchangeRate":123,"fixedAmount":123}],"multiTrials":[{"intervalCount":123,"intervalUnit":"\u003cstring>","metadata":{},"name":"\u003cstring>","trialCompareAtPrice":123,"trialDuration":123,"trialPrice":123}],"planName":"\u003cstring>","productId":123,"publishStatus":123,"status":123,"taxPercentage":123,"trialAmount":123,"trialDemand":"\u003cstring>","trialDurationTime":123,"type":123,"usVATConfig":{"active":true,"fromAddress":{"address":"\u003cstring>","city":"\u003cstring>","countryCode":"\u003cstring>","state":"\u003cstring>","verified":true,"zipCode":"\u003cstring>"},"nexusAddresses":[{"address":"\u003cstring>","city":"\u003cstring>","countryCode":"\u003cstring>","state":"\u003cstring>","verified":true,"zipCode":"\u003cstring>"}],"sellOnUSOnly":true,"taxCode":"\u003cstring>","toAddress":{"address":"\u003cstring>","city":"\u003cstring>","countryCode":"\u003cstring>","state":"\u003cstring>","verified":true,"zipCode":"\u003cstring>"}}},"quantity":123}],"amount":123,"currency":"\u003cstring>","effectImmediate":123,"effectTime":123,"gatewayId":123,"gmtCreate":"\u003cstring>","gmtModify":"\u003cstring>","invoiceId":"\u003cstring>","link":"\u003cstring>","merchantId":123,"merchantMember":{"createTime":123,"email":"\u003cstring>","firstName":"\u003cstring>","id":123,"isOwner":true,"lastName":"\u003cstring>","merchantId":123},"metadata":{},"name":"\u003cstring>","note":"\u003cstring>","paid":123,"pendingUpdateId":"\u003cstring>","plan":{"amount":123,"autoChargeConfig":{"autoChargeLeadTime":123,"autoChargeMaxRetryCount":123,"autoChargeRetryInterval":123,"incompleteExpireTime":123},"autoUpgradePlanId":123,"bindingAddonIds":"\u003cstring>","bindingOnetimeAddonIds":"\u003cstring>","cancelAtTrialEnd":123,"checkoutTemplateId":123,"checkoutUrl":"\u003cstring>","compareAtAmount":123,"createTime":123,"currency":"\u003cstring>","description":"\u003cstring>","disableAutoCharge":123,"externalPlanId":"\u003cstring>","extraMetricData":"\u003cstring>","gasPayer":"\u003cstring>","homeUrl":"\u003cstring>","id":123,"imageUrl":"\u003cstring>","internalName":"\u003cstring>","intervalCount":123,"intervalUnit":"\u003cstring>","merchantId":123,"metadata":{},"metricLimits":[{"metricId":123,"metricLimit":123}],"metricMeteredCharge":[{"chargeType":123,"graduatedAmounts":[{"endValue":123,"flatAmount":123,"perAmount":123,"startValue":123}],"metricId":123,"standardAmount":123,"standardStartValue":123}],"metricRecurringCharge":[{"chargeType":123,"graduatedAmounts":[{"endValue":123,"flatAmount":123,"perAmount":123,"startValue":123}],"metricId":123,"standardAmount":123,"standardStartValue":123}],"multiCurrencies":[{"amount":123,"autoExchange":true,"currency":"\u003cstring>","disable":true,"exchangeRate":123,"fixedAmount":123}],"multiTrials":[{"intervalCount":123,"intervalUnit":"\u003cstring>","metadata":{},"name":"\u003cstring>","trialCompareAtPrice":123,"trialDuration":123,"trialPrice":123}],"planName":"\u003cstring>","productId":123,"publishStatus":123,"status":123,"taxPercentage":123,"trialAmount":123,"trialDemand":"\u003cstring>","trialDurationTime":123,"type":123,"usVATConfig":{"active":true,"fromAddress":{"address":"\u003cstring>","city":"\u003cstring>","countryCode":"\u003cstring>","state":"\u003cstring>","verified":true,"zipCode":"\u003cstring>"},"nexusAddresses":[{"address":"\u003cstring>","city":"\u003cstring>","countryCode":"\u003cstring>","state":"\u003cstring>","verified":true,"zipCode":"\u003cstring>"}],"sellOnUSOnly":true,"taxCode":"\u003cstring>","toAddress":{"address":"\u003cstring>","city":"\u003cstring>","countryCode":"\u003cstring>","state":"\u003cstring>","verified":true,"zipCode":"\u003cstring>"}}},"planId":123,"prorationAmount":123,"quantity":123,"status":123,"subscriptionId":"\u003cstring>","updateAddonData":"\u003cstring>","updateAddons":[{"addonPlan":{"amount":123,"autoChargeConfig":{"autoChargeLeadTime":123,"autoChargeMaxRetryCount":123,"autoChargeRetryInterval":123,"incompleteExpireTime":123},"autoUpgradePlanId":123,"bindingAddonIds":"\u003cstring>","bindingOnetimeAddonIds":"\u003cstring>","cancelAtTrialEnd":123,"checkoutTemplateId":123,"checkoutUrl":"\u003cstring>","compareAtAmount":123,"createTime":123,"currency":"\u003cstring>","description":"\u003cstring>","disableAutoCharge":123,"externalPlanId":"\u003cstring>","extraMetricData":"\u003cstring>","gasPayer":"\u003cstring>","homeUrl":"\u003cstring>","id":123,"imageUrl":"\u003cstring>","internalName":"\u003cstring>","intervalCount":123,"intervalUnit":"\u003cstring>","merchantId":123,"metadata":{},"metricLimits":[{"metricId":123,"metricLimit":123}],"metricMeteredCharge":[{"chargeType":123,"graduatedAmounts":[{"endValue":123,"flatAmount":123,"perAmount":123,"startValue":123}],"metricId":123,"standardAmount":123,"standardStartValue":123}],"metricRecurringCharge":[{"chargeType":123,"graduatedAmounts":[{"endValue":123,"flatAmount":123,"perAmount":123,"startValue":123}],"metricId":123,"standardAmount":123,"standardStartValue":123}],"multiCurrencies":[{"amount":123,"autoExchange":true,"currency":"\u003cstring>","disable":true,"exchangeRate":123,"fixedAmount":123}],"multiTrials":[{"intervalCount":123,"intervalUnit":"\u003cstring>","metadata":{},"name":"\u003cstring>","trialCompareAtPrice":123,"trialDuration":123,"trialPrice":123}],"planName":"\u003cstring>","productId":123,"publishStatus":123,"status":123,"taxPercentage":123,"trialAmount":123,"trialDemand":"\u003cstring>","trialDurationTime":123,"type":123,"usVATConfig":{"active":true,"fromAddress":{"address":"\u003cstring>","city":"\u003cstring>","countryCode":"\u003cstring>","state":"\u003cstring>","verified":true,"zipCode":"\u003cstring>"},"nexusAddresses":[{"address":"\u003cstring>","city":"\u003cstring>","countryCode":"\u003cstring>","state":"\u003cstring>","verified":true,"zipCode":"\u003cstring>"}],"sellOnUSOnly":true,"taxCode":"\u003cstring>","toAddress":{"address":"\u003cstring>","city":"\u003cstring>","countryCode":"\u003cstring>","state":"\u003cstring>","verified":true,"zipCode":"\u003cstring>"}}},"quantity":123}],"updateAmount":123,"updateCurrency":"\u003cstring>","updatePlan":{"amount":123,"autoChargeConfig":{"autoChargeLeadTime":123,"autoChargeMaxRetryCount":123,"autoChargeRetryInterval":123,"incompleteExpireTime":123},"autoUpgradePlanId":123,"bindingAddonIds":"\u003cstring>","bindingOnetimeAddonIds":"\u003cstring>","cancelAtTrialEnd":123,"checkoutTemplateId":123,"checkoutUrl":"\u003cstring>","compareAtAmount":123,"createTime":123,"currency":"\u003cstring>","description":"\u003cstring>","disableAutoCharge":123,"externalPlanId":"\u003cstring>","extraMetricData":"\u003cstring>","gasPayer":"\u003cstring>","homeUrl":"\u003cstring>","id":123,"imageUrl":"\u003cstring>","internalName":"\u003cstring>","intervalCount":123,"intervalUnit":"\u003cstring>","merchantId":123,"metadata":{},"metricLimits":[{"metricId":123,"metricLimit":123}],"metricMeteredCharge":[{"chargeType":123,"graduatedAmounts":[{"endValue":123,"flatAmount":123,"perAmount":123,"startValue":123}],"metricId":123,"standardAmount":123,"standardStartValue":123}],"metricRecurringCharge":[{"chargeType":123,"graduatedAmounts":[{"endValue":123,"flatAmount":123,"perAmount":123,"startValue":123}],"metricId":123,"standardAmount":123,"standardStartValue":123}],"multiCurrencies":[{"amount":123,"autoExchange":true,"currency":"\u003cstring>","disable":true,"exchangeRate":123,"fixedAmount":123}],"multiTrials":[{"intervalCount":123,"intervalUnit":"\u003cstring>","metadata":{},"name":"\u003cstring>","trialCompareAtPrice":123,"trialDuration":123,"trialPrice":123}],"planName":"\u003cstring>","productId":123,"publishStatus":123,"status":123,"taxPercentage":123,"trialAmount":123,"trialDemand":"\u003cstring>","trialDurationTime":123,"type":123,"usVATConfig":{"active":true,"fromAddress":{"address":"\u003cstring>","city":"\u003cstring>","countryCode":"\u003cstring>","state":"\u003cstring>","verified":true,"zipCode":"\u003cstring>"},"nexusAddresses":[{"address":"\u003cstring>","city":"\u003cstring>","countryCode":"\u003cstring>","state":"\u003cstring>","verified":true,"zipCode":"\u003cstring>"}],"sellOnUSOnly":true,"taxCode":"\u003cstring>","toAddress":{"address":"\u003cstring>","city":"\u003cstring>","countryCode":"\u003cstring>","state":"\u003cstring>","verified":true,"zipCode":"\u003cstring>"}}},"updatePlanId":123,"updateQuantity":123,"userId":123}},"merchantId":123,"message":"\u003cstring>","redirect":"\u003cstring>","requestId":"\u003cstring>"}}},"exampleType":"generated"}},"description":"","exampleType":"generated"}},"security":{"9d6da29d-526a-407f-a8a5-71b401f04868":{"Authorization":{"bearerFormat":"JWT","scheme":"bearer","type":"http","scopes":[]}}},"servers":{"75789b68-5973-4ba3-92da-0924615d428f":{"url":"https://api.unibee.dev"},"5637436d-a7fe-4176-b59d-c0d00970ec4f":{"url":"https://api-sandbox.unibee.top"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"bearerFormat":"JWT","scheme":"bearer","type":"http","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"Authorization","name":"Authorization"}],"title":"Authorization"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"aaaabmero","siteName":"UniBee Documentation","title":"Update Subscription - UniBee Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-25T16:02:59.814Z","originalFileLocation":"api-reference/subscription-update/update-subscription.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=\"application-name\" content=\"UniBee Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/aaaabmero/AVvA7WC5Y2C-QM12/_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/aaaabmero/AVvA7WC5Y2C-QM12/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/aaaabmero/AVvA7WC5Y2C-QM12/_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/aaaabmero/AVvA7WC5Y2C-QM12/_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/aaaabmero/AVvA7WC5Y2C-QM12/_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/aaaabmero/AVvA7WC5Y2C-QM12/_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/aaaabmero/AVvA7WC5Y2C-QM12/_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/aaaabmero/AVvA7WC5Y2C-QM12/_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/aaaabmero/AVvA7WC5Y2C-QM12/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update Subscription - UniBee Documentation\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"UniBee Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.unibee.dev/api-reference/subscription-update/update-subscription\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://aaaabmero.mintlify.app/_mintlify/api/og/v2?division=Subscription+Update\u0026amp;title=Update+Subscription\u0026amp;theme=3a23fbc2bb7200e98b3b8c0e\u0026amp;signature=bfb76c1110ba8219aecc46a044f5092d80e7bc1165d9b855d7d08e54fcd806ac\">\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=\"Update Subscription - UniBee Documentation\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://aaaabmero.mintlify.app/_mintlify/api/og/v2?division=Subscription+Update\u0026amp;title=Update+Subscription\u0026amp;theme=3a23fbc2bb7200e98b3b8c0e\u0026amp;signature=bfb76c1110ba8219aecc46a044f5092d80e7bc1165d9b855d7d08e54fcd806ac\">\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/aaaabmero/AVvA7WC5Y2C-QM12/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"UniBee Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#EBC414\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.unibee.dev/api-reference/subscription-update/update-subscription\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/subscription-update/update-subscription.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.unibee.dev/#organization\",\"name\":\"UniBee Documentation\",\"url\":\"https://docs.unibee.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/aaaabmero/PAQKVjj86U1Qa7E1/logo/light.png?fit=max\u0026auto=format\u0026n=PAQKVjj86U1Qa7E1\u0026q=85\u0026s=e36e2bf3ee7aa0192915208acf4cb2f6\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.unibee.dev#website\",\"name\":\"UniBee Documentation\",\"url\":\"https://docs.unibee.dev\",\"publisher\":{\"@id\":\"https://docs.unibee.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.unibee.dev/api-reference/subscription-update/update-subscription#webpage\",\"url\":\"https://docs.unibee.dev/api-reference/subscription-update/update-subscription\",\"name\":\"Update Subscription\",\"dateModified\":\"2026-08-25T16:02:59.814Z\",\"isPartOf\":{\"@id\":\"https://docs.unibee.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.unibee.dev/api-reference/subscription-update/update-subscription#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.unibee.dev/api-reference/subscription-update/update-subscription#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Reference\",\"item\":\"https://docs.unibee.dev/api-reference/merchant/amount-multi-currencies-exchange\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Subscription Update\",\"item\":\"https://docs.unibee.dev/api-reference/subscription-update/subscription-active-temporarily\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Update Subscription\",\"item\":\"https://docs.unibee.dev/api-reference/subscription-update/update-subscription\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.unibee.dev/api-reference/subscription-update/update-subscription#apireference\",\"headline\":\"Update Subscription\",\"name\":\"Update Subscription\",\"url\":\"https://docs.unibee.dev/api-reference/subscription-update/update-subscription\",\"mainEntityOfPage\":{\"@id\":\"https://docs.unibee.dev/api-reference/subscription-update/update-subscription#webpage\"},\"dateModified\":\"2026-08-25T16:02:59.814Z\",\"publisher\":{\"@id\":\"https://docs.unibee.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.unibee.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"UniBee Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"UniBee Documentation","nav":{"global":{"anchors":[{"anchor":"GitHub","href":"https://github.com/unibee-billing","icon":"github"},{"anchor":"Community","href":"https://github.com/unibee-billing","icon":"discord"},{"anchor":"Official website","href":"https://unibee.dev/","icon":"earth-americas"}]},"anchors":[{"anchor":"Documentation","icon":"book-open","groups":[{"group":"Start Here","pages":[{"title":null,"href":"/documentation/overview/introduction"},{"title":"Integration Workflow Guide","href":"/documentation/business-integration/integration-workflow"},{"title":"Checkout Purchases (Hosted Mode)","href":"/documentation/business-integration/checkout-purchases"},{"title":"Supported Payment Gateways and Payment Types","href":"/documentation/business-integration/supported-payment-gateways"},{"title":"Testing Cards (Sandbox)","href":"/documentation/business-integration/testing-cards"},{"title":"Simulate Subscriptions (Sandbox)","href":"/documentation/business-integration/simulate-subscriptions"}]},{"group":"Core Concepts","pages":[{"group":"Products and Plans","pages":[{"title":null,"href":"/documentation/product-and-plan/what-is-product-and-plan"},{"title":null,"href":"/documentation/product-and-plan/subscription-plan"},{"title":null,"href":"/documentation/product-and-plan/recurring-addon"},{"title":null,"href":"/documentation/product-and-plan/onetime-payment"},{"title":null,"href":"/documentation/product-and-plan/trial-plan"}]},{"group":"Subscriptions","pages":[{"title":"Subscription auto-charge workflow","href":"/documentation/subscription/subscription-auto-charge-workflow"},{"title":"The subscription billing renewal date","href":"/documentation/subscription/billing-cycle-anchor"},{"title":null,"href":"/documentation/subscription/status"},{"title":"Understanding Subscription Incomplete Status","href":"/documentation/subscription/incomplete-status"}]},{"group":"Invoices","pages":[{"title":null,"href":"/documentation/invoices/status-and-workflow"},{"title":null,"href":"/documentation/invoices/invoice-computation"}]},{"group":"Transactions","pages":[{"title":"Transaction type and status","href":"/documentation/transaction/transaction-type-and-status"}]},{"group":"Metrics","pages":[{"title":"What is billable metric","href":"/documentation/billable-metric/what-is-billable-metric"},{"title":"Work with Limited-Type Metric (Limit Metered)","href":"/documentation/billable-metric/limited-metric"},{"title":"Work with Limit Recurring Metric","href":"/documentation/billable-metric/limit-recurring-metric"},{"title":"Work with charged-type metric","href":"/documentation/billable-metric/charged-metric"}]},{"group":"Promotions","pages":[{"title":"Discount Codes","href":"/documentation/discount-code/discount-code-introduction"},{"title":"Promo Credit","href":"/documentation/promo-credits/promo-credits"},{"title":"Introduction","href":"/documentation/promo-credits/Introduction"}]},{"group":"Webhooks","pages":[{"title":"UniBee webhooks","href":"/documentation/webhooks/webhooks"},{"title":"UniBee webhook events","href":"/documentation/webhooks/webhook-events"}]}]},{"group":"Guides","pages":[{"group":"Checkout and Hosted Pages","pages":[{"title":"Custom Checkout Page","href":"/documentation/business-integration/custom-checkout-page"},{"title":null,"href":"/documentation/business-integration/hosted-page-custom-domain"},{"title":"Custom Domain (CNAME) Configuration","href":"/documentation/business-integration/custom-domain-CNAME-configuration"},{"title":"Change Subscription After Purchases (Hosted Mode)","href":"/documentation/business-integration/change-subscription-hosted-page-after-purchases"},{"title":"Customer Portal After Purchases (Hosted Mode)","href":"/documentation/business-integration/customer-portal-after-purchases"},{"title":null,"href":"/documentation/business-integration/portal-settings"},{"title":"Payment iframe integration (Embedded)","href":"/documentation/business-integration/payment-iframe-integration"}]},{"group":"Payments and API","pages":[{"title":"External Gateway Integration Guide","href":"/documentation/business-integration/external-gateway-integration"},{"title":"Make Billing API calls","href":"/documentation/business-integration/billing-api-call"},{"title":"Export data with an API key","href":"/documentation/business-integration/api-key-export-tasks"},{"title":"OpenAPI MCP Server","href":"/documentation/business-integration/openapi-mcp"}]},{"group":"Taxes and Currencies","pages":[{"title":"Collect taxes","href":"/documentation/business-integration/collect-tax"},{"title":"US VAT \u0026 TaxJar Setup","href":"/documentation/business-integration/us-vat-and-taxjar"},{"title":"UniBee Multi-Currencies Module","href":"/documentation/business-integration/multi-currencies-module"}]},{"group":"Third-party Integrations","pages":[{"title":"Zapier Integration Guide","href":"/documentation/business-integration/zapier-integration"}]},{"group":"Billable Metric","pages":[{"title":"How To Create A UniBee Billable Metric","href":"/documentation/billable-metric/how-to-create-billable-metric"},{"title":"Setting Billable Metric Pricing","href":"/documentation/billable-metric/setting-billable-metric-pricing"},{"title":"Viewing User Usage Billing","href":"/documentation/billable-metric/viewing-user-usage-billing"}]},{"group":"Products and Plans","pages":[{"title":null,"href":"/documentation/product-and-plan/how-to-add-a-new-product"},{"title":null,"href":"/documentation/product-and-plan/add-a-plan-and-archive-a-plan-in-product-tab"},{"title":"How to Sync UniBee Plans to an External Pricing Catalog","href":"/documentation/product-and-plan/sync-plans-to-external-pricing-catalog"}]},{"group":"Multi-Phase Subscriptions","pages":[{"title":null,"href":"/documentation/multi-phase/understanding-multi-phase-subscriptions"},{"title":null,"href":"/documentation/multi-phase/creating-multi-phase-plans"},{"title":null,"href":"/documentation/multi-phase/customer-experience"}]},{"group":"Discount Codes","pages":[{"title":"Set Up a Discount Code","href":"/documentation/discount-code/setup-discount-code"},{"title":"Create, edit, copy and archive","href":"/documentation/discount-code/create-edit-copy-and-archive"},{"title":"Batch Discount Codes","href":"/documentation/discount-code/batch-discount-codes"},{"title":"External Discount Codes","href":"/documentation/discount-code/external-discount-codes"},{"title":"View the usage of a discount code","href":"/documentation/discount-code/view-the-usage-of-a-discount-code"},{"title":"Inquiry and Export","href":"/documentation/discount-code/inquiry-and-export"}]},{"group":"Subscriptions","pages":[{"title":null,"href":"/documentation/subscription/change-subscription-plan"},{"title":"Assign Subscription to user","href":"/documentation/subscription/assign-plan-to-user"},{"title":"Subscription Configuration Guide","href":"/documentation/subscription/subscription_configs"}]},{"group":"Invoices","pages":[{"title":null,"href":"/documentation/invoices/advanced-invoice-management"},{"title":"Offline Refund Process","href":"/documentation/invoices/offline-refund-process"},{"title":"Customized Invoice PDF Issued by","href":"/documentation/invoices/customize-invoice-pdf-issued-by"},{"title":"Configure invoice entities for payment gateways","href":"/documentation/invoices/payment-gateway-invoice-entity-configuration"},{"title":"Split Payment on Invoice Hosted Page","href":"/documentation/invoices/split-payment"},{"title":"External Gateway Invoices","href":"/documentation/invoices/external-gateway-invoices"}]},{"group":"Transactions","pages":[{"title":"Transaction list download","href":"/documentation/transaction/transaction-list-download"}]},{"group":"User Management","pages":[{"title":"View, edit user information","href":"/documentation/user-management/view-edit-user-info"},{"title":"Assign a subscription plan to a user","href":"/documentation/user-management/assign-sub-to-user"},{"title":"Export and import user data","href":"/documentation/user-management/export-import-user-data"}]},{"group":"Admin Management","pages":[{"title":null,"href":"/documentation/admin-management/activity-logs"},{"title":"Invite more billing admins","href":"/documentation/admin-management/invite-more-billing-admins"},{"title":" Define roles and permissions for billing admins","href":"/documentation/admin-management/define-roles-permissions"}]},{"group":"Email","pages":[{"title":"Email Settings Configuration","href":"/documentation/email-settings/email-settings-configuration"}]},{"group":"Promo Credits","pages":[{"title":"Enabling the Promo Credit System","href":"/documentation/promo-credits/Enabling-the-Promo-Credit-System"},{"title":"Adding or Modifying a User's Promo Credit","href":"/documentation/promo-credits/Adding-or-Modifying-a-User's-Promo-Credit"},{"title":"Viewing and Exporting the Promo Credit List","href":"/documentation/promo-credits/Viewing-and-Exporting-the-Promo-Credit-List"},{"title":"How to Integrate Promo Credit for Customers via OpenAPI","href":"/documentation/promo-credits/promo_credit_integration"}]},{"group":"Analytics","pages":[{"title":"Analytics Overview","href":"/documentation/analytics/analytics-overview"},{"title":"Configurable Settings","href":"/documentation/analytics/configurable-settings"},{"title":"Customer Metrics","href":"/documentation/analytics/customer-metrics"},{"title":"Revenue Metrics","href":"/documentation/analytics/revenue-metrics"}]},{"group":"Reports","pages":[{"title":"Define and export customizable reports","href":"/documentation/reports-and-export-reports/reports-and-export-reports"}]}]},{"group":"Reference","pages":[{"group":"Merchant","pages":[{"openapi":"post /merchant/amount_multi_currencies_exchange","title":"Amount Multi Currencies Exchange","href":"/api-reference/merchant/amount-multi-currencies-exchange"},{"openapi":"post /merchant/country_config_list","title":"Edit Country Config","href":"/api-reference/merchant/edit-country-config"},{"openapi":"post /merchant/edit_country_config","title":"Get Country Config List","href":"/api-reference/merchant/get-country-config-list"},{"openapi":"post /merchant/edit_totp_config","title":"Admin Edit 2FA Config","href":"/api-reference/merchant/admin-edit-2fa-config"},{"openapi":"get /merchant/get","title":"Get Profile","href":"/api-reference/merchant/get-profile"},{"openapi":"get /merchant/get_license","title":"Get License","href":"/api-reference/merchant/get-license"},{"openapi":"get /merchant/get_license_update_url","title":"Get License Update Url","href":"/api-reference/merchant/get-license-update-url"},{"openapi":"post /merchant/get_license_update_url","title":"Get License Update Url","href":"/api-reference/merchant/get-license-update-url-1"},{"openapi":"post /merchant/new_apikey","title":"Generate New APIKey","href":"/api-reference/merchant/generate-new-apikey"},{"openapi":"get /merchant/overview_statistics","title":"Get Merchant Overview Statistics","href":"/api-reference/merchant/get-merchant-overview-statistics"},{"openapi":"post /merchant/setup_multi_currencies","title":"Multi Currencies Setup","href":"/api-reference/merchant/multi-currencies-setup"},{"openapi":"post /merchant/update","title":"Update Profile","href":"/api-reference/merchant/update-profile"},{"openapi":"post /merchant/update_cname_domain","title":"Update Merchant CNAME Domain","href":"/api-reference/merchant/update-merchant-cname-domain"},{"openapi":"post /merchant/update_portal_host_domain","title":"Update Profile Portal Host Domain","href":"/api-reference/merchant/update-profile-portal-host-domain"}]},{"group":"Member Authentication","pages":[{"openapi":"post /merchant/auth/session_login","title":"Session Login","href":"/api-reference/member-authentication/session-login"},{"openapi":"post /merchant/auth/sso/clear_totp","title":"Admin Member Clear Member 2FA Key With ResumeCode","href":"/api-reference/member-authentication/admin-member-clear-member-2fa-key-with-resumecode"},{"openapi":"post /merchant/auth/sso/login","title":"Merchant Password Login","href":"/api-reference/member-authentication/merchant-password-login"},{"openapi":"post /merchant/auth/sso/loginOTP","title":"OTP Login","href":"/api-reference/member-authentication/otp-login"},{"openapi":"post /merchant/auth/sso/loginOTPVerify","title":"OTP Login Code Verification","href":"/api-reference/member-authentication/otp-login-code-verification"},{"openapi":"get /merchant/auth/sso/oauth/github","title":"Get Oauth Github","href":"/api-reference/member-authentication/get-oauth-github"},{"openapi":"get /merchant/auth/sso/oauth/google","title":"Get Oauth Google","href":"/api-reference/member-authentication/get-oauth-google"},{"openapi":"post /merchant/auth/sso/oauth/login","title":"OAuth Login","href":"/api-reference/member-authentication/oauth-login"},{"openapi":"get /merchant/auth/sso/oauth/members","title":"Get Oauth Members","href":"/api-reference/member-authentication/get-oauth-members"},{"openapi":"post /merchant/auth/sso/oauth/register","title":"Register OAuth","href":"/api-reference/member-authentication/register-oauth"},{"openapi":"post /merchant/auth/sso/oauth/setup","title":"OAuth Setup","href":"/api-reference/member-authentication/oauth-setup"},{"openapi":"post /merchant/auth/sso/passwordForgetOTP","title":"OTP Password Forget","href":"/api-reference/member-authentication/otp-password-forget"},{"openapi":"post /merchant/auth/sso/passwordForgetOTPVerify","title":"OTP Password Forget Code Verification","href":"/api-reference/member-authentication/otp-password-forget-code-verification"},{"openapi":"post /merchant/auth/sso/passwordForgetTotpVerify","title":"2FA Password Forget Code Verification","href":"/api-reference/member-authentication/2fa-password-forget-code-verification"},{"openapi":"post /merchant/auth/sso/passwordSetup","title":"Password Setup","href":"/api-reference/member-authentication/password-setup"},{"openapi":"post /merchant/auth/sso/register","title":"Register","href":"/api-reference/member-authentication/register"},{"openapi":"post /merchant/auth/sso/register_email_check","title":"Register Email Check","href":"/api-reference/member-authentication/register-email-check"},{"openapi":"post /merchant/auth/sso/register_without_verification","title":"RegisterWithoutCode","href":"/api-reference/member-authentication/registerwithoutcode"},{"openapi":"post /merchant/auth/sso/registerVerify","title":"Register Verify","href":"/api-reference/member-authentication/register-verify"}]},{"group":"Checkout Setup","pages":[{"openapi":"post /merchant/checkout/archive","title":"Archive Merchant Checkout","href":"/api-reference/checkout-setup/archive-merchant-checkout"},{"openapi":"get /merchant/checkout/detail","title":"Get Merchant Checkout Detail","href":"/api-reference/checkout-setup/get-merchant-checkout-detail"},{"openapi":"post /merchant/checkout/detail","title":"Get Merchant Checkout Detail","href":"/api-reference/checkout-setup/get-merchant-checkout-detail-1"},{"openapi":"post /merchant/checkout/edit_checkout","title":"Edit Merchant Checkout","href":"/api-reference/checkout-setup/edit-merchant-checkout"},{"openapi":"get /merchant/checkout/get_link","title":"Get Merchant Checkout Link","href":"/api-reference/checkout-setup/get-merchant-checkout-link"},{"openapi":"post /merchant/checkout/get_link","title":"Get Merchant Checkout Link","href":"/api-reference/checkout-setup/get-merchant-checkout-link-1"},{"openapi":"get /merchant/checkout/list","title":"Get Merchant Checkout list","href":"/api-reference/checkout-setup/get-merchant-checkout-list"},{"openapi":"post /merchant/checkout/list","title":"Get Merchant Checkout list","href":"/api-reference/checkout-setup/get-merchant-checkout-list-1"},{"openapi":"post /merchant/checkout/new_checkout","title":"New Merchant Checkout","href":"/api-reference/checkout-setup/new-merchant-checkout"}]},{"group":"Credit","pages":[{"openapi":"get /merchant/credit/config_list","title":"Get Credit Config list","href":"/api-reference/credit/get-credit-config-list"},{"openapi":"post /merchant/credit/config_list","title":"Get Credit Config list","href":"/api-reference/credit/get-credit-config-list-1"},{"openapi":"get /merchant/credit/credit_account_list","title":"Get Credit Account List","href":"/api-reference/credit/get-credit-account-list"},{"openapi":"get /merchant/credit/credit_transaction_list","title":"Get Credit Transaction List","href":"/api-reference/credit/get-credit-transaction-list"},{"openapi":"post /merchant/credit/credit_transaction_list","title":"Get Credit Transaction List","href":"/api-reference/credit/get-credit-transaction-list-1"},{"openapi":"get /merchant/credit/detail","title":"Credit Account Detail","href":"/api-reference/credit/credit-account-detail"},{"openapi":"post /merchant/credit/detail","title":"Credit Account Detail","href":"/api-reference/credit/credit-account-detail-1"},{"openapi":"post /merchant/credit/edit_config","title":"Edit Credit Config","href":"/api-reference/credit/edit-credit-config"},{"openapi":"post /merchant/credit/edit_credit_account","title":"Edit User Credit Account Config","href":"/api-reference/credit/edit-user-credit-account-config"},{"openapi":"post /merchant/credit/new_config","title":"Setup Credit Config","href":"/api-reference/credit/setup-credit-config"},{"openapi":"post /merchant/credit/new_credit_recharge","title":"New Credit Recharge","href":"/api-reference/credit/new-credit-recharge"}]},{"group":"Promo Credit","pages":[{"openapi":"post /merchant/credit/edit_promo_config","title":"Edit Promo Credit Config","href":"/api-reference/promo-credit/edit-promo-credit-config"},{"openapi":"get /merchant/credit/get_promo_config","title":"Get Promo Credit Config","href":"/api-reference/promo-credit/get-promo-credit-config"},{"openapi":"post /merchant/credit/get_promo_config","title":"Get Promo Credit Config","href":"/api-reference/promo-credit/get-promo-credit-config-1"},{"openapi":"get /merchant/credit/get_promo_config_statistics","title":"Get Promo Credit Config Statistics","href":"/api-reference/promo-credit/get-promo-credit-config-statistics"},{"openapi":"post /merchant/credit/get_promo_config_statistics","title":"Get Promo Credit Config Statistics","href":"/api-reference/promo-credit/get-promo-credit-config-statistics-1"},{"openapi":"post /merchant/credit/promo_credit_decrement","title":"Promo Credit Decrement","href":"/api-reference/promo-credit/promo-credit-decrement"},{"openapi":"post /merchant/credit/promo_credit_increment","title":"Promo Credit Increment","href":"/api-reference/promo-credit/promo-credit-increment"},{"openapi":"post /merchant/credit/promo_credit_refund_from_invoice","title":"Promo Credit Refund","href":"/api-reference/promo-credit/promo-credit-refund"}]},{"group":"Discount","pages":[{"openapi":"post /merchant/discount/activate","title":"Activate Discount Code","href":"/api-reference/discount/activate-discount-code"},{"openapi":"post /merchant/discount/deactivate","title":"Deactivate Discount Code","href":"/api-reference/discount/deactivate-discount-code"},{"openapi":"post /merchant/discount/decrease_quantity","title":"Quantity Decrement","href":"/api-reference/discount/quantity-decrement"},{"openapi":"post /merchant/discount/delete","title":"Delete Discount Code","href":"/api-reference/discount/delete-discount-code"},{"openapi":"get /merchant/discount/detail","title":"Get Merchant Discount Detail","href":"/api-reference/discount/get-merchant-discount-detail"},{"openapi":"post /merchant/discount/detail","title":"Get Merchant Discount Detail","href":"/api-reference/discount/get-merchant-discount-detail-1"},{"openapi":"post /merchant/discount/edit","title":"Edit Discount Code","href":"/api-reference/discount/edit-discount-code"},{"openapi":"get /merchant/discount/list","title":"Get Discount Code List","href":"/api-reference/discount/get-discount-code-list"},{"openapi":"post /merchant/discount/new","title":"New Discount Code","href":"/api-reference/discount/new-discount-code"},{"openapi":"post /merchant/discount/quantity_increment","title":"Quantity Increment","href":"/api-reference/discount/quantity-increment"}]},{"group":"Batch Discount","pages":[{"openapi":"get /merchant/discount/batch/children/detail","title":"Get Batch Child Code Detail","href":"/api-reference/batch-discount/get-batch-child-code-detail"},{"openapi":"post /merchant/discount/batch/children/detail","title":"Get Batch Child Code Detail","href":"/api-reference/batch-discount/get-batch-child-code-detail-1"},{"openapi":"post /merchant/discount/batch/children/generate","title":"Generate Batch Child Codes","href":"/api-reference/batch-discount/generate-batch-child-codes"},{"openapi":"get /merchant/discount/batch/children/list","title":"Get Batch Child Codes List","href":"/api-reference/batch-discount/get-batch-child-codes-list"},{"openapi":"get /merchant/discount/batch/template/detail","title":"Get Batch Template Detail","href":"/api-reference/batch-discount/get-batch-template-detail"},{"openapi":"post /merchant/discount/batch/template/detail","title":"Get Batch Template Detail","href":"/api-reference/batch-discount/get-batch-template-detail-1"},{"openapi":"post /merchant/discount/batch/template/edit","title":"Edit Batch Discount Template","href":"/api-reference/batch-discount/edit-batch-discount-template"},{"openapi":"get /merchant/discount/batch/template/list","title":"Get Batch Template List","href":"/api-reference/batch-discount/get-batch-template-list"},{"openapi":"post /merchant/discount/batch/template/new","title":"Create Batch Discount Template","href":"/api-reference/batch-discount/create-batch-discount-template"},{"openapi":"post /merchant/discount/batch/template/quantity_increment","title":"Increment Template Quantity","href":"/api-reference/batch-discount/increment-template-quantity"}]},{"group":"User Discount","pages":[{"openapi":"post /merchant/discount/plan_apply_preview","title":"Plan Apply Preview","href":"/api-reference/user-discount/plan-apply-preview"},{"openapi":"get /merchant/discount/user_discount_list","title":"Get User Discount Code List","href":"/api-reference/user-discount/get-user-discount-code-list"}]},{"group":"Email Template","pages":[{"openapi":"post /merchant/email/custom_localization_template_sync","title":"Customize Localization Template Sync","href":"/api-reference/email-template/customize-localization-template-sync"},{"openapi":"post /merchant/email/template_activate_localization_version","title":"Activate Email Template Localization Version","href":"/api-reference/email-template/activate-email-template-localization-version"},{"openapi":"post /merchant/email/template_add_localization_version","title":"Add Email Template Localization Version","href":"/api-reference/email-template/add-email-template-localization-version"},{"openapi":"post /merchant/email/template_delete_localization_version","title":"Delete Email Template Localization Version","href":"/api-reference/email-template/delete-email-template-localization-version"},{"openapi":"post /merchant/email/template_edit_localization_version","title":"Edit Email Template Localization Version","href":"/api-reference/email-template/edit-email-template-localization-version"},{"openapi":"get /merchant/email/template_list","title":"Get Email Template List","href":"/api-reference/email-template/get-email-template-list"},{"openapi":"post /merchant/email/template_test_localization_version","title":"Test Email Template Localization Version","href":"/api-reference/email-template/test-email-template-localization-version"}]},{"group":"Email","pages":[{"openapi":"post /merchant/email/email_sender_setup","title":"Email Sender Setup","href":"/api-reference/email/email-sender-setup"},{"openapi":"post /merchant/email/gateway_set_default","title":"Email Gateway Set Default","href":"/api-reference/email/email-gateway-set-default"},{"openapi":"post /merchant/email/gateway_setup","title":"Email Gateway Setup(Sendgrid)","href":"/api-reference/email/email-gateway-setupsendgrid"},{"openapi":"post /merchant/email/gateway_setup_v2","title":"Email Gateway Setup V2(Sendgrid|smtp)","href":"/api-reference/email/email-gateway-setup-v2sendgrid|smtp"},{"openapi":"get /merchant/email/history_list","title":"Get Email History List","href":"/api-reference/email/get-email-history-list"},{"openapi":"post /merchant/email/send_email_to_user","title":"Send Email To User","href":"/api-reference/email/send-email-to-user"},{"openapi":"post /merchant/email/send_email_via_api_credential","title":"Send Email Via API Credential","href":"/api-reference/email/send-email-via-api-credential"},{"openapi":"post /merchant/email/send_template_email_to_user","title":"Send Template Email To User","href":"/api-reference/email/send-template-email-to-user"}]},{"group":"Gateway","pages":[{"openapi":"post /merchant/gateway/archive","title":"Payment Gateway Archive","href":"/api-reference/gateway/payment-gateway-archive"},{"openapi":"get /merchant/gateway/detail","title":"Payment Gateway","href":"/api-reference/gateway/payment-gateway"},{"openapi":"post /merchant/gateway/detail","title":"Payment Gateway","href":"/api-reference/gateway/payment-gateway-1"},{"openapi":"post /merchant/gateway/edit","title":"Payment Gateway Edit","href":"/api-reference/gateway/payment-gateway-edit"},{"openapi":"post /merchant/gateway/edit_country_config","title":"Payment Gateway Country Config Edit","href":"/api-reference/gateway/payment-gateway-country-config-edit"},{"openapi":"post /merchant/gateway/edit_sort","title":"Edit Payment Gateway Sort","href":"/api-reference/gateway/edit-payment-gateway-sort"},{"openapi":"get /merchant/gateway/list","title":"Get Payment Gateway List","href":"/api-reference/gateway/get-payment-gateway-list"},{"openapi":"post /merchant/gateway/restore","title":"Payment Gateway Restore","href":"/api-reference/gateway/payment-gateway-restore"},{"openapi":"post /merchant/gateway/set_default","title":"Payment Gateway Set Default","href":"/api-reference/gateway/payment-gateway-set-default"},{"openapi":"post /merchant/gateway/setup","title":"Payment Gateway Setup","href":"/api-reference/gateway/payment-gateway-setup"},{"openapi":"post /merchant/gateway/setup_exchange_rate_api","title":"Exchange Rate Api Setup","href":"/api-reference/gateway/exchange-rate-api-setup"},{"openapi":"get /merchant/gateway/setup_list","title":"Get Payment Gateway Setup List","href":"/api-reference/gateway/get-payment-gateway-setup-list"},{"openapi":"post /merchant/gateway/setup_webhook","title":"Payment Gateway Webhook Setup","href":"/api-reference/gateway/payment-gateway-webhook-setup"},{"openapi":"post /merchant/gateway/wire_transfer_edit","title":"Wire Transfer Edit","href":"/api-reference/gateway/wire-transfer-edit"},{"openapi":"post /merchant/gateway/wire_transfer_setup","title":"Wire Transfer Setup","href":"/api-reference/gateway/wire-transfer-setup"},{"openapi":"post /merchant/track/setup_segment","title":"Segment Setup","href":"/api-reference/gateway/segment-setup"}]},{"group":"Integrations","pages":[{"openapi":"get /merchant/integration/quickbooks/disconnection","title":"Disconnection Quickbooks","href":"/api-reference/integrations/disconnection-quickbooks"},{"openapi":"get /merchant/integration/quickbooks/get_authorization_url","title":"Get Quickbooks Authorization Connection URL","href":"/api-reference/integrations/get-quickbooks-authorization-connection-url"}]},{"group":"Invoice","pages":[{"openapi":"post /merchant/invoice/cancel","title":"Admin Cancel Invoice","href":"/api-reference/invoice/admin-cancel-invoice"},{"openapi":"post /merchant/invoice/clearPayment","title":"Admin Clear Invoice Current Pending Payment","href":"/api-reference/invoice/admin-clear-invoice-current-pending-payment"},{"openapi":"post /merchant/invoice/create_mark_refund","title":"Create And Mark Manual Refund (Crypto/WireTransfer/External)","href":"/api-reference/invoice/create-and-mark-manual-refund-cryptowiretransferexternal"},{"openapi":"post /merchant/invoice/credit_note/list","title":"Bulk CreditNote(Refund Invoice) Invoice List","href":"/api-reference/invoice/bulk-creditnoterefund-invoice-invoice-list"},{"openapi":"post /merchant/invoice/delete","title":"Delete Pending Invoice","href":"/api-reference/invoice/delete-pending-invoice"},{"openapi":"get /merchant/invoice/detail","title":"Invoice Detail","href":"/api-reference/invoice/invoice-detail"},{"openapi":"post /merchant/invoice/detail","title":"Invoice Detail","href":"/api-reference/invoice/invoice-detail-1"},{"openapi":"post /merchant/invoice/edit","title":"Invoice Edit","href":"/api-reference/invoice/invoice-edit"},{"openapi":"post /merchant/invoice/external_gateway_invoice/mark_paid","title":"[Deprecated] Mark External Gateway Invoice As Paid","href":"/api-reference/invoice/[deprecated]-mark-external-gateway-invoice-as-paid"},{"openapi":"post /merchant/invoice/external_gateway_invoice/mark_refunded","title":"[Deprecated] Mark External Gateway Invoice As Refunded","href":"/api-reference/invoice/[deprecated]-mark-external-gateway-invoice-as-refunded"},{"openapi":"post /merchant/invoice/external_gateway_invoice/update_payment_link","title":"[Deprecated] Update External Gateway Invoice Payment Link","href":"/api-reference/invoice/[deprecated]-update-external-gateway-invoice-payment-link"},{"openapi":"post /merchant/invoice/finish","title":"Finish Invoice","href":"/api-reference/invoice/finish-invoice"},{"openapi":"get /merchant/invoice/list","title":"Get Invoice List","href":"/api-reference/invoice/get-invoice-list"},{"openapi":"post /merchant/invoice/list","title":"Get Invoice List","href":"/api-reference/invoice/get-invoice-list-1"},{"openapi":"post /merchant/invoice/mark_refund_success","title":"Mark Manual Invoice Refund As Success","href":"/api-reference/invoice/mark-manual-invoice-refund-as-success"},{"openapi":"post /merchant/invoice/mark_wire_transfer_success","title":"Mark Wire Transfer Invoice As Paid (Manual)","href":"/api-reference/invoice/mark-wire-transfer-invoice-as-paid-manual"},{"openapi":"post /merchant/invoice/new","title":"New Invoice","href":"/api-reference/invoice/new-invoice"},{"openapi":"post /merchant/invoice/pdf_generate","title":"Generate Invoice PDF","href":"/api-reference/invoice/generate-invoice-pdf"},{"openapi":"post /merchant/invoice/pdf_update","title":"Update Invoice PDF","href":"/api-reference/invoice/update-invoice-pdf"},{"openapi":"post /merchant/invoice/reconvert_crypto_and_send_email","title":"Admin Reconvert Crypto Data and Send Invoice Email","href":"/api-reference/invoice/admin-reconvert-crypto-data-and-send-invoice-email"},{"openapi":"post /merchant/invoice/refund","title":"Create InvoiceRefund","href":"/api-reference/invoice/create-invoicerefund"},{"openapi":"post /merchant/invoice/send_email","title":"Send Invoice Email","href":"/api-reference/invoice/send-invoice-email"},{"openapi":"get /merchant/invoice/split_payments","title":"Get Split Payments","href":"/api-reference/invoice/get-split-payments"},{"openapi":"post /merchant/invoice/split_payments","title":"Get Split Payments","href":"/api-reference/invoice/get-split-payments-1"},{"openapi":"post /merchant/invoice/sync_user_snapshot","title":"Sync Invoice User Snapshot With Latest User Info","href":"/api-reference/invoice/sync-invoice-user-snapshot-with-latest-user-info"}]},{"group":"Admin Member","pages":[{"openapi":"post /merchant/member/clear_member_totp","title":"Admin Owner Clear Member 2FA Key","href":"/api-reference/admin-member/admin-owner-clear-member-2fa-key"},{"openapi":"post /merchant/member/clear_oauth","title":"Clear Member OAuth Account","href":"/api-reference/admin-member/clear-member-oauth-account"},{"openapi":"post /merchant/member/confirm_totp_key","title":"Admin Member Confirm 2FA Key","href":"/api-reference/admin-member/admin-member-confirm-2fa-key"},{"openapi":"post /merchant/member/delete_totp_device","title":"Admin Owner Or Admin Delete Own's' 2FA Device","href":"/api-reference/admin-member/admin-owner-or-admin-delete-owns-2fa-device"},{"openapi":"post /merchant/member/get_totp_key","title":"Admin Member Get 2FA Key","href":"/api-reference/admin-member/admin-member-get-2fa-key"},{"openapi":"get /merchant/member/list","title":"Get Member List","href":"/api-reference/admin-member/get-member-list"},{"openapi":"post /merchant/member/list","title":"Get Member List","href":"/api-reference/admin-member/get-member-list-1"},{"openapi":"post /merchant/member/logout","title":"Logout","href":"/api-reference/admin-member/logout"},{"openapi":"post /merchant/member/new_member","title":"Invite member","href":"/api-reference/admin-member/invite-member"},{"openapi":"get /merchant/member/operation_log_list","title":"Get Member Operation Log List","href":"/api-reference/admin-member/get-member-operation-log-list"},{"openapi":"post /merchant/member/passwordReset","title":"Member Reset Password","href":"/api-reference/admin-member/member-reset-password"},{"openapi":"get /merchant/member/profile","title":"Get Member Profile","href":"/api-reference/admin-member/get-member-profile"},{"openapi":"post /merchant/member/reset_totp","title":"Admin Member Reset Member 2FA Key","href":"/api-reference/admin-member/admin-member-reset-member-2fa-key"},{"openapi":"post /merchant/member/resume_member","title":"Resume Member","href":"/api-reference/admin-member/resume-member"},{"openapi":"post /merchant/member/suspend_member","title":"Suspend Member","href":"/api-reference/admin-member/suspend-member"},{"openapi":"post /merchant/member/update","title":"Update Member Profile","href":"/api-reference/admin-member/update-member-profile"},{"openapi":"post /merchant/member/update_member_role","title":"Update Member Role","href":"/api-reference/admin-member/update-member-role"},{"openapi":"post /merchant/member/update_oauth","title":"Update Member OAuth Account","href":"/api-reference/admin-member/update-member-oauth-account"}]},{"group":"Metric Limit Quota","pages":[{"openapi":"post /merchant/metric/carryover/reprocess","title":"Reprocess Metric Carry Over (Admin Tool)","href":"/api-reference/metric-limit-quota/reprocess-metric-carry-over-admin-tool"},{"openapi":"post /merchant/metric/limit_adjust","title":"Manual Adjust Metric Limit","href":"/api-reference/metric-limit-quota/manual-adjust-metric-limit"}]},{"group":"Metric","pages":[{"openapi":"post /merchant/metric/delete","title":"Delete Merchant Metric","href":"/api-reference/metric/delete-merchant-metric"},{"openapi":"post /merchant/metric/detail","title":"Merchant Metric Detail","href":"/api-reference/metric/merchant-metric-detail"},{"openapi":"post /merchant/metric/edit","title":"Edit Merchant Metric","href":"/api-reference/metric/edit-merchant-metric"},{"openapi":"get /merchant/metric/list","title":"Get Merchant Metric list","href":"/api-reference/metric/get-merchant-metric-list"},{"openapi":"post /merchant/metric/list","title":"Get Merchant Metric list","href":"/api-reference/metric/get-merchant-metric-list-1"},{"openapi":"post /merchant/metric/new","title":"New Merchant Metric","href":"/api-reference/metric/new-merchant-metric"},{"openapi":"post /merchant/metric/plan/limit/delete","title":"Delete Merchant Metric Plan TotalLimit","href":"/api-reference/metric/delete-merchant-metric-plan-totallimit"},{"openapi":"post /merchant/metric/plan/limit/edit","title":"Edit Merchant Metric Plan TotalLimit","href":"/api-reference/metric/edit-merchant-metric-plan-totallimit"},{"openapi":"post /merchant/metric/plan/limit/new","title":"New Merchant Metric Plan TotalLimit","href":"/api-reference/metric/new-merchant-metric-plan-totallimit"}]},{"group":"Metric Event","pages":[{"openapi":"post /merchant/metric/event/current_value","title":"Get Merchant Metric Event Current Value","href":"/api-reference/metric-event/get-merchant-metric-event-current-value"},{"openapi":"post /merchant/metric/event/delete","title":"Del Merchant Metric Event","href":"/api-reference/metric-event/del-merchant-metric-event"},{"openapi":"post /merchant/metric/event/new","title":"New Merchant Metric Event","href":"/api-reference/metric-event/new-merchant-metric-event"},{"openapi":"get /merchant/metric/event_list","title":"Metric Event List","href":"/api-reference/metric-event/metric-event-list"},{"openapi":"post /merchant/metric/event_list","title":"Metric Event List","href":"/api-reference/metric-event/metric-event-list-1"}]},{"group":"User Metric","pages":[{"openapi":"get /merchant/metric/user/history/invoices_metric_queryable","title":"List invoices that can be used for metric_by_invoice (paid, subscription cycle only)","href":"/api-reference/user-metric/list-invoices-that-can-be-used-for-metric_by_invoice-paid-subscription-cycle-only"},{"openapi":"get /merchant/metric/user/history/metric_by_invoice","title":"Query User History Limit Metric By Invoice (History Query Mode, limit_metered and limit_recurring only)","href":"/api-reference/user-metric/query-user-history-limit-metric-by-invoice-history-query-mode-limit_metered-and-limit_recurring-only"},{"openapi":"get /merchant/metric/user/history/metric_by_subscription","title":"Query User History Limit Metric By Subscription (History Query Mode, limit_metered and limit_recurring only, non-active subscription only)","href":"/api-reference/user-metric/query-user-history-limit-metric-by-subscription-history-query-mode-limit_metered-and-limit_recurring-only-non-active-subscription-only"},{"openapi":"get /merchant/metric/user/metric","title":"Query User Metric","href":"/api-reference/user-metric/query-user-metric"},{"openapi":"get /merchant/metric/user/sub/metric","title":"Query User Metric By Subscription","href":"/api-reference/user-metric/query-user-metric-by-subscription"}]},{"group":"Payment","pages":[{"openapi":"post /merchant/payment/cancel","title":"Cancel Payment","href":"/api-reference/payment/cancel-payment"},{"openapi":"post /merchant/payment/capture","title":"Capture Payment","href":"/api-reference/payment/capture-payment"},{"openapi":"get /merchant/payment/detail","title":"Payment Detail","href":"/api-reference/payment/payment-detail"},{"openapi":"post /merchant/payment/external_gateway_payment/mark_failed","title":"Mark External Gateway Payment As Failed","href":"/api-reference/payment/mark-external-gateway-payment-as-failed"},{"openapi":"post /merchant/payment/external_gateway_payment/mark_paid","title":"Mark External Gateway Payment As Paid","href":"/api-reference/payment/mark-external-gateway-payment-as-paid"},{"openapi":"post /merchant/payment/external_gateway_payment/update_link","title":"Update External Gateway Payment Link","href":"/api-reference/payment/update-external-gateway-payment-link"},{"openapi":"post /merchant/payment/external_gateway_refund/mark_failed","title":"Mark External Gateway Refund As Failed","href":"/api-reference/payment/mark-external-gateway-refund-as-failed"},{"openapi":"post /merchant/payment/external_gateway_refund/mark_success","title":"Mark External Gateway Refund As Success","href":"/api-reference/payment/mark-external-gateway-refund-as-success"},{"openapi":"get /merchant/payment/item/list","title":"Get OneTime Payment Item List","href":"/api-reference/payment/get-onetime-payment-item-list"},{"openapi":"get /merchant/payment/list","title":"Get Payment List","href":"/api-reference/payment/get-payment-list"},{"openapi":"post /merchant/payment/method_delete","title":"Delete Payment Method","href":"/api-reference/payment/delete-payment-method"},{"openapi":"get /merchant/payment/method_get","title":"Payment Method","href":"/api-reference/payment/payment-method"},{"openapi":"get /merchant/payment/method_list","title":"Payment Method List","href":"/api-reference/payment/payment-method-list"},{"openapi":"post /merchant/payment/method_new","title":"Create New Payment Method","href":"/api-reference/payment/create-new-payment-method"},{"openapi":"post /merchant/payment/new","title":"New Payment","href":"/api-reference/payment/new-payment"},{"openapi":"post /merchant/payment/refund/cancel","title":"Cancel Payment Refund","href":"/api-reference/payment/cancel-payment-refund"},{"openapi":"get /merchant/payment/refund/detail","title":"Payment Refund Detail","href":"/api-reference/payment/payment-refund-detail"},{"openapi":"get /merchant/payment/refund/list","title":"Get Payment Refund List","href":"/api-reference/payment/get-payment-refund-list"},{"openapi":"post /merchant/payment/refund/new","title":"New Payment Refund","href":"/api-reference/payment/new-payment-refund"},{"openapi":"get /merchant/payment/timeline/list","title":"Get Payment TimeLine List","href":"/api-reference/payment/get-payment-timeline-list"},{"openapi":"post /merchant/payment/timeline/list","title":"Get Payment TimeLine List","href":"/api-reference/payment/get-payment-timeline-list-1"}]},{"group":"Plan","pages":[{"openapi":"post /merchant/plan/activate","title":"Activate Plan","href":"/api-reference/plan/activate-plan"},{"openapi":"post /merchant/plan/active_price_change/confirm","title":"Confirm Active Plan Price Change","href":"/api-reference/plan/confirm-active-plan-price-change"},{"openapi":"post /merchant/plan/active_price_change/preview","title":"Preview Active Plan Price Change","href":"/api-reference/plan/preview-active-plan-price-change"},{"openapi":"post /merchant/plan/addons_binding","title":"Addon Binding","href":"/api-reference/plan/addon-binding"},{"openapi":"post /merchant/plan/archive","title":"Archive Plan","href":"/api-reference/plan/archive-plan"},{"openapi":"post /merchant/plan/copy","title":"Copy Plan","href":"/api-reference/plan/copy-plan"},{"openapi":"post /merchant/plan/delete","title":"Delete Plan","href":"/api-reference/plan/delete-plan"},{"openapi":"get /merchant/plan/detail","title":"Plan Detail","href":"/api-reference/plan/plan-detail"},{"openapi":"post /merchant/plan/detail","title":"Plan Detail","href":"/api-reference/plan/plan-detail-1"},{"openapi":"post /merchant/plan/edit","title":"Edit Plan","href":"/api-reference/plan/edit-plan"},{"openapi":"get /merchant/plan/list","title":"Get Plan List","href":"/api-reference/plan/get-plan-list"},{"openapi":"post /merchant/plan/list","title":"Get Plan List","href":"/api-reference/plan/get-plan-list-1"},{"openapi":"post /merchant/plan/metric_limit_override","title":"Override Metric Limits Of Plan","href":"/api-reference/plan/override-metric-limits-of-plan"},{"openapi":"post /merchant/plan/new","title":"Create Plan","href":"/api-reference/plan/create-plan"},{"openapi":"post /merchant/plan/publish","title":"Publish Plan","href":"/api-reference/plan/publish-plan"},{"openapi":"post /merchant/plan/unpublished","title":"UnPublish Plan","href":"/api-reference/plan/unpublish-plan"}]},{"group":"Product","pages":[{"openapi":"post /merchant/product/activate","title":"Activate Product","href":"/api-reference/product/activate-product"},{"openapi":"post /merchant/product/copy","title":"Copy Product","href":"/api-reference/product/copy-product"},{"openapi":"post /merchant/product/delete","title":"Delete Product","href":"/api-reference/product/delete-product"},{"openapi":"get /merchant/product/detail","title":"Product Detail","href":"/api-reference/product/product-detail"},{"openapi":"post /merchant/product/detail","title":"Product Detail","href":"/api-reference/product/product-detail-1"},{"openapi":"post /merchant/product/edit","title":"Edit Product","href":"/api-reference/product/edit-product"},{"openapi":"post /merchant/product/inactivate","title":"Inactivate Product","href":"/api-reference/product/inactivate-product"},{"openapi":"get /merchant/product/list","title":"Get Product List","href":"/api-reference/product/get-product-list"},{"openapi":"post /merchant/product/list","title":"Get Product List","href":"/api-reference/product/get-product-list-1"},{"openapi":"post /merchant/product/new","title":"Create Product","href":"/api-reference/product/create-product"}]},{"group":"Admin Role","pages":[{"openapi":"post /merchant/role/delete","title":"Delete Role","href":"/api-reference/admin-role/delete-role"},{"openapi":"post /merchant/role/edit","title":"Edit Role","href":"/api-reference/admin-role/edit-role"},{"openapi":"get /merchant/role/list","title":"Get Role List","href":"/api-reference/admin-role/get-role-list"},{"openapi":"post /merchant/role/new","title":"New Role","href":"/api-reference/admin-role/new-role"}]},{"group":"Search","pages":[{"openapi":"get /merchant/search/key_search","title":"Search","href":"/api-reference/search/search"},{"openapi":"post /merchant/search/key_search","title":"Search","href":"/api-reference/search/search-1"}]},{"group":"Session","pages":[{"openapi":"get /merchant/session/customer_portal_url","title":"Get Customer Portal Url","href":"/api-reference/session/get-customer-portal-url"},{"openapi":"post /merchant/session/customer_portal_url","title":"Get Customer Portal Url","href":"/api-reference/session/get-customer-portal-url-1"},{"openapi":"post /merchant/session/new_session","title":"New Checkout Session","href":"/api-reference/session/new-checkout-session"},{"openapi":"get /merchant/session/user_sub_update_url","title":"Get User Subscription Update Page Url","href":"/api-reference/session/get-user-subscription-update-page-url"},{"openapi":"post /merchant/session/user_sub_update_url","title":"Get User Subscription Update Page Url","href":"/api-reference/session/get-user-subscription-update-page-url-1"}]},{"group":"Subscription Update","pages":[{"openapi":"post /merchant/subscription/active_temporarily","title":"Subscription Active Temporarily","href":"/api-reference/subscription-update/subscription-active-temporarily"},{"openapi":"post /merchant/subscription/metadata_update","title":"Update Subscription Metadata","href":"/api-reference/subscription-update/update-subscription-metadata"},{"openapi":"get /merchant/subscription/pending_update_detail","title":"Subscription Pending Update Detail","href":"/api-reference/subscription-update/subscription-pending-update-detail"},{"openapi":"get /merchant/subscription/pending_update_list","title":"Get Subscription Pending Update List","href":"/api-reference/subscription-update/get-subscription-pending-update-list"},{"openapi":"post /merchant/subscription/pending_update_list","title":"Get Subscription Pending Update List","href":"/api-reference/subscription-update/get-subscription-pending-update-list-1"},{"openapi":"post /merchant/subscription/renew","title":"Renew Subscription","href":"/api-reference/subscription-update/renew-subscription"},{"openapi":"post /merchant/subscription/renew_preview","title":"Renew Subscription Preview","href":"/api-reference/subscription-update/renew-subscription-preview"},{"openapi":"post /merchant/subscription/update_preview","title":"Update Subscription Preview","description":null,"href":"/api-reference/subscription-update/update-subscription-preview"},{"openapi":"post /merchant/subscription/update_submit","title":"Update Subscription","href":"/api-reference/subscription-update/update-subscription"}]},{"group":"Subscription","pages":[{"openapi":"post /merchant/subscription/add_new_trial_start","title":"Append Subscription TrialEnd","description":null,"href":"/api-reference/subscription/append-subscription-trialend"},{"openapi":"post /merchant/subscription/apply_subscription_next_invoice","title":"Apply Discount Or Premo Credit To Next Invoice","href":"/api-reference/subscription/apply-discount-or-premo-credit-to-next-invoice"},{"openapi":"post /merchant/subscription/cancel","title":"Cancel Subscription Immediately","href":"/api-reference/subscription/cancel-subscription-immediately"},{"openapi":"post /merchant/subscription/cancel_at_period_end","title":"Cancel Subscription At Period End","href":"/api-reference/subscription/cancel-subscription-at-period-end"},{"openapi":"post /merchant/subscription/cancel_last_cancel_at_period_end","title":"Cancel Last Cancel Subscription At Period End","href":"/api-reference/subscription/cancel-last-cancel-subscription-at-period-end"},{"openapi":"post /merchant/subscription/change_currency","title":"Change Subscription Currency","href":"/api-reference/subscription/change-subscription-currency"},{"openapi":"post /merchant/subscription/change_due_day","title":"Change Subscription Due Day","href":"/api-reference/subscription/change-subscription-due-day"},{"openapi":"post /merchant/subscription/change_gateway","title":"Change Subscription Gateway","href":"/api-reference/subscription/change-subscription-gateway"},{"openapi":"post /merchant/subscription/create_preview","title":"Create Subscription Preview","href":"/api-reference/subscription/create-subscription-preview"},{"openapi":"post /merchant/subscription/create_submit","title":"Create Subscription","href":"/api-reference/subscription/create-subscription"},{"openapi":"get /merchant/subscription/detail","title":"Subscription Detail","href":"/api-reference/subscription/subscription-detail"},{"openapi":"post /merchant/subscription/detail","title":"Subscription Detail","href":"/api-reference/subscription/subscription-detail-1"},{"openapi":"get /merchant/subscription/list","title":"Get Subscription List","href":"/api-reference/subscription/get-subscription-list"},{"openapi":"post /merchant/subscription/list","title":"Get Subscription List","href":"/api-reference/subscription/get-subscription-list-1"},{"openapi":"get /merchant/subscription/preview_subscription_next_invoice","title":"Subscription Next Invoice Preview","href":"/api-reference/subscription/subscription-next-invoice-preview"},{"openapi":"get /merchant/subscription/user_pending_crypto_subscription_detail","title":"User Pending Crypto Subscription Detail","href":"/api-reference/subscription/user-pending-crypto-subscription-detail"},{"openapi":"post /merchant/subscription/user_pending_crypto_subscription_detail","title":"User Pending Crypto Subscription Detail","href":"/api-reference/subscription/user-pending-crypto-subscription-detail-1"},{"openapi":"get /merchant/subscription/user_subscription_detail","title":"User Subscription Detail","href":"/api-reference/subscription/user-subscription-detail"},{"openapi":"post /merchant/subscription/user_subscription_detail","title":"User Subscription Detail","href":"/api-reference/subscription/user-subscription-detail-1"}]},{"group":"Subscription Note","pages":[{"openapi":"get /merchant/subscription/admin_note_list","title":"Get Subscription Note List","href":"/api-reference/subscription-note/get-subscription-note-list"},{"openapi":"post /merchant/subscription/admin_note_list","title":"Get Subscription Note List","href":"/api-reference/subscription-note/get-subscription-note-list-1"},{"openapi":"post /merchant/subscription/new_admin_note","title":"New Subscription Note","href":"/api-reference/subscription-note/new-subscription-note"}]},{"group":"Subscription Config","pages":[{"openapi":"get /merchant/subscription/config","title":"Subscription Config","href":"/api-reference/subscription-config/subscription-config"},{"openapi":"post /merchant/subscription/config/update","title":"Update Merchant Subscription Config","href":"/api-reference/subscription-config/update-merchant-subscription-config"}]},{"group":"Subscription Payment","pages":[{"openapi":"post /merchant/subscription/new_onetime_addon_payment","title":"New Subscription Onetime Addon Payment","href":"/api-reference/subscription-payment/new-subscription-onetime-addon-payment"},{"openapi":"post /merchant/subscription/new_onetime_addon_preview","title":"New Subscription Onetime Addon Preview","href":"/api-reference/subscription-payment/new-subscription-onetime-addon-preview"},{"openapi":"get /merchant/subscription/onetime_addon_purchase_list","title":"Get Subscription Onetime Addon Purchase History List","href":"/api-reference/subscription-payment/get-subscription-onetime-addon-purchase-history-list"},{"openapi":"post /merchant/subscription/payment/new","title":"New Subscription Payment","href":"/api-reference/subscription-payment/new-subscription-payment"}]},{"group":"Subscription Timeline","pages":[{"openapi":"get /merchant/subscription/timeline_list","title":"Get Subscription TimeLine List","href":"/api-reference/subscription-timeline/get-subscription-timeline-list"},{"openapi":"post /merchant/subscription/timeline_list","title":"Get Subscription TimeLine List","href":"/api-reference/subscription-timeline/get-subscription-timeline-list-1"}]},{"group":"User","pages":[{"openapi":"get /merchant/user/admin_note_list","title":"Get User Admin Note List","href":"/api-reference/user/get-user-admin-note-list"},{"openapi":"post /merchant/user/admin_note_list","title":"Get User Admin Note List","href":"/api-reference/user/get-user-admin-note-list-1"},{"openapi":"post /merchant/user/change_email","title":"Change User Email","href":"/api-reference/user/change-user-email"},{"openapi":"post /merchant/user/change_gateway","title":"Change User Default Gateway","href":"/api-reference/user/change-user-default-gateway"},{"openapi":"post /merchant/user/clear_auto_charge_method","title":"Clear AutoCharge Method","href":"/api-reference/user/clear-autocharge-method"},{"openapi":"get /merchant/user/count","title":"User Count","href":"/api-reference/user/user-count"},{"openapi":"post /merchant/user/delete","title":"Delete User","href":"/api-reference/user/delete-user"},{"openapi":"get /merchant/user/get","title":"Get User Profile","href":"/api-reference/user/get-user-profile"},{"openapi":"get /merchant/user/list","title":"User List","href":"/api-reference/user/user-list"},{"openapi":"post /merchant/user/list","title":"User List","href":"/api-reference/user/user-list-1"},{"openapi":"post /merchant/user/new","title":"New User","href":"/api-reference/user/new-user"},{"openapi":"post /merchant/user/new_admin_note","title":"New Admin Note","href":"/api-reference/user/new-admin-note"},{"openapi":"post /merchant/user/resume_user","title":"Resume User","href":"/api-reference/user/resume-user"},{"openapi":"get /merchant/user/search","title":"User Search","href":"/api-reference/user/user-search"},{"openapi":"post /merchant/user/search","title":"User Search","href":"/api-reference/user/user-search-1"},{"openapi":"post /merchant/user/suspend_user","title":"Suspend User","href":"/api-reference/user/suspend-user"},{"openapi":"post /merchant/user/update","title":"Update User Profile","href":"/api-reference/user/update-user-profile"}]},{"group":"Vat Gateway","pages":[{"openapi":"get /merchant/vat/country_list","title":"Get Vat Country List","href":"/api-reference/vat-gateway/get-vat-country-list"},{"openapi":"post /merchant/vat/country_list","title":"Get Vat Country List","href":"/api-reference/vat-gateway/get-vat-country-list-1"},{"openapi":"post /merchant/vat/init_default_gateway","title":"Init Default Vat Gateway","href":"/api-reference/vat-gateway/init-default-vat-gateway"},{"openapi":"post /merchant/vat/setup_gateway","title":"Vat Gateway Setup","href":"/api-reference/vat-gateway/vat-gateway-setup"},{"openapi":"post /merchant/vat/setup_global_us_vat_config","title":"US Vat Config Setup","href":"/api-reference/vat-gateway/us-vat-config-setup"},{"openapi":"post /merchant/vat/setup_us_vat_gateway","title":"US Vat Gateway Setup","href":"/api-reference/vat-gateway/us-vat-gateway-setup"},{"openapi":"get /merchant/vat/us_vat_category_list","title":"Get US Vat Category List","href":"/api-reference/vat-gateway/get-us-vat-category-list"},{"openapi":"post /merchant/vat/us_vat_validate_address","title":"Validate US Vat Address","href":"/api-reference/vat-gateway/validate-us-vat-address"},{"openapi":"post /merchant/vat/vat_number_validate","title":"Vat Number Validation","href":"/api-reference/vat-gateway/vat-number-validation"},{"openapi":"post /merchant/vat/vat_number_validate_history","title":"Vat Number Validation History","href":"/api-reference/vat-gateway/vat-number-validation-history"},{"openapi":"post /merchant/vat/vat_number_validate_history_activate","title":"Vat Number Validation History Activate","href":"/api-reference/vat-gateway/vat-number-validation-history-activate"},{"openapi":"post /merchant/vat/vat_number_validate_history_deactivate","title":"Vat Number Validation History Deactivate","href":"/api-reference/vat-gateway/vat-number-validation-history-deactivate"}]},{"group":"Webhook","pages":[{"openapi":"get /merchant/vat/us_vat_upload_history_list","title":"Get US VAT Upload History List","href":"/api-reference/webhook/get-us-vat-upload-history-list"},{"openapi":"post /merchant/webhook/delete_endpoint","title":"Delete Webhook Endpoint","href":"/api-reference/webhook/delete-webhook-endpoint"},{"openapi":"get /merchant/webhook/endpoint_list","title":"Get Webhook Endpoint list","href":"/api-reference/webhook/get-webhook-endpoint-list"},{"openapi":"get /merchant/webhook/endpoint_log_list","title":"Get Webhook Endpoint Log List","href":"/api-reference/webhook/get-webhook-endpoint-log-list"},{"openapi":"get /merchant/webhook/event_list","title":"Webhook Event List","href":"/api-reference/webhook/webhook-event-list"},{"openapi":"get /merchant/webhook/get_webhook_secret","title":"Get Webhook Secret","href":"/api-reference/webhook/get-webhook-secret"},{"openapi":"post /merchant/webhook/new_endpoint","title":"New Webhook Endpoint","href":"/api-reference/webhook/new-webhook-endpoint"},{"openapi":"post /merchant/webhook/remove_webhook_zapier_connect","title":"Remove Webhook Zapier Connnect","href":"/api-reference/webhook/remove-webhook-zapier-connnect"},{"openapi":"post /merchant/webhook/resend","title":"Resent Webhook","href":"/api-reference/webhook/resent-webhook"},{"openapi":"post /merchant/webhook/update_endpoint","title":"Update Webhook Endpoint","href":"/api-reference/webhook/update-webhook-endpoint"},{"openapi":"post /merchant/webhook/webhook_zapier_connect_url","title":"Get Webhook Zapier Connect Url","href":"/api-reference/webhook/get-webhook-zapier-connect-url"}]}]},{"group":"Migration and Deployment","pages":[{"title":"Transaction Data Storage","href":"/documentation/business-integration/data-storage"},{"title":"Data migration guide","href":"/documentation/business-integration/data-migration-guide"},{"group":"Invoice Import","pages":[{"openapi":"post /merchant/invoice/history_invoice_import","title":"History Invoice Import (supports override)","href":"/api-reference/invoice-import/history-invoice-import-supports-override"},{"openapi":"post /merchant/invoice/history_invoice_import/delete","title":"Delete imported history invoice","href":"/api-reference/invoice-import/delete-imported-history-invoice"}]},{"group":"Subscription Import","pages":[{"openapi":"post /merchant/subscription/active_subscription_import","title":"Active Subscription Import(allows repetition imports)","href":"/api-reference/subscription-import/active-subscription-importallows-repetition-imports"},{"openapi":"post /merchant/subscription/history_subscription_import","title":"History Subscription Import(Allows repetition imports)","href":"/api-reference/subscription-import/history-subscription-importallows-repetition-imports"}]}]}]}]},"basePath":"","title":"Update Subscription - UniBee Documentation","buildId":"dpl_G9nrg4qeJSZtah1Ziwbc2n6WkLch","deploymentId":"dpl_G9nrg4qeJSZtah1Ziwbc2n6WkLch","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-B7XKH4J3.js","utils-lOYzL7z-.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DF6jUUIM.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Dpsj5f7C.js","snippetPresets-CYeiDe8v.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CUFz1YZ_.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-D8H_iLS4.js","shallow-DdluZBHX.js","getApiPlaygroundDisplay-B9922vev.js","CodeSnippet-CMoRNGYs.js","CodeSnippets-DwyrPHuw.js","Page-DSVu9Ucl.js","getPastedJson-G-zIvlHh.js","icon-B03fnEy0.js","MethodPill-CW7teklc.js","DuplicateIcon-CtO8eekd.js","createIcon-DZTKdM_A.js","DynamicMarkdown-D5M2At0B.js","SectionHeading-C_2NaA2U.js","axios-vUo_bRtp.js","Markdown-D7QRHV3m.js","clsx-D1Z-ELXV.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-lvhuD9Du.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-CKfC4ywL.js"]}