Unique identifier of the tenant in the system (usually a store identifier)
Path Parameters
subscriptionId
string<uuid>
required
The subscription identifier
Body
application/json
paymentMethod
object
Show child attributes
backupPaymentMethod
null | object
The customer's payment method to charge after a renewal payment with the primary payment method is declined; null removes the backup. It must be one of the customer's own payment methods, must not be revoked, must be chargeable automatically and must differ from the primary payment method; otherwise the request fails with 400 and a BACKUP_PAYMENT_METHOD_* code.
Show child attributes
deliveryAddress
Address · object
Show child attributes
nextBillingDate
string<date-time>string<date>
customAttributes
object
The complete set of customer-editable custom attributes. REPLACES the current customer-visible attributes: keys present are set, customer-visible keys omitted are removed. Internal (_-prefixed) and reserved keys are always preserved and cannot be written (returns 400); an internal key the shop exposes may be sent back unchanged, as a read returned it. Send {} to clear all customer-visible attributes.
Show child attributes
Response
200 - application/json
Default Response
id
string<uuid>
required
Unique subscription identifier (UUID).
Example:
"550e8400-e29b-41d4-a716-446655440000"
resource
enum<string>
required
Available options:
subscription
serial
string
required
Unique serial number that increments sequentially with each new subscription within a store.
Minimum string length: 1
Example:
"1042"
status
enum<string>
required
Subscription lifecycle status. active: billing runs on schedule; paused: billing suspended until resumed; canceled: permanently stopped (can be reactivated); failed: latest billing attempt failed; expired: reached configured end date; merged: consolidated into another subscription.
Available options:
active,
paused,
canceled,
failed,
expired,
merged
Example:
"active"
createdAt
string<date-time>
required
Purchase date of the subscription.
updatedAt
string<date-time>
required
Last update date of the subscription.
canceledAt
null | string<date-time>
required
Cancellation date of the subscription.
nextBillingDate
null | string<date-time>
required
The next billing date determines when the renewal process begins its billing phase. When billing succeeds, it creates one order—or multiple orders for prepaid subscriptions.
Example:
"2024-02-15T10:00:00.000Z"
currentCycle
integer
required
The subscription's billing cycle count. Starts at 0 before the first billing completes, increments by 1 with each successful billing.
Required range: x >= 0
Example:
1
currencyCode
string
required
ISO 4217 currency code that applies to both item prices and delivery price.
Required string length: 3
Example:
"USD"
billingPolicy
object
required
How often and when the subscription is billed.
Show child attributes
deliveryPolicy
object
required
How often shipments are dispatched. Usually matches the billing policy.
Show child attributes
deliveryMethod
null | object
required
Show child attributes
customAttributes
object[]
required
Arbitrary key-value pairs attached to this subscription. In the Customer API, attributes whose key starts with _ are hidden and excluded.
Show child attributes
items
SubscriptionItem · object[]
required
Minimum array length: 1
Show child attributes
discounts
SubscriptionDiscount · object[]
required
Show child attributes
paymentMethod
string<uuid>CustomerPaymentMethod · object
required
CustomerPaymentMethod id when not expanded, or the full CustomerPaymentMethod object when the field name is included in the expand query parameter. Can be null.
backupPaymentMethod
string<uuid>CustomerPaymentMethod · object
required
The subscription's backup payment method: after a renewal payment with the primary paymentMethod is declined, the next attempt charges this one. null when the subscription has no backup. CustomerPaymentMethod id when not expanded, or the full CustomerPaymentMethod object when the field name is included in the expand query parameter. Can be null.
deliveryAddress
null | object
required
Show child attributes
deliveryPrice
number
required
The base delivery price associated with the selected delivery method.
Required range: x >= 0
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Developer documentation","colors":{"primary":"#0D9373","light":"#07C983","dark":"#0D9373"},"logo":{"light":"https://mintcdn.com/juo/cWBbLfFsu7G7x1mQ/logo/light.svg?fit=max\u0026auto=format\u0026n=cWBbLfFsu7G7x1mQ\u0026q=85\u0026s=f13f7b33b950522934898d18eb965a2e","dark":"https://mintcdn.com/juo/cWBbLfFsu7G7x1mQ/logo/dark.svg?fit=max\u0026auto=format\u0026n=cWBbLfFsu7G7x1mQ\u0026q=85\u0026s=cafe884c4acd726c219658d0c7cc8fd0"},"favicon":"https://mintcdn.com/juo/cWBbLfFsu7G7x1mQ/favicon.svg?fit=max\u0026auto=format\u0026n=cWBbLfFsu7G7x1mQ\u0026q=85\u0026s=a89152a6353d4e977e31bdbd37ec640d","background":{"decoration":"gradient"},"icons":{"library":"lucide"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Community","icon":"slack","href":"https://juo.community"},{"anchor":"Changelog","icon":"newspaper","href":"https://juo.com/changelog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"juo","hasAudioNarration":false,"actualSubdomain":"juo","customDomains":["juo.dev"],"gitSource":{"type":"github","owner":"juo","repo":"subscriptions-dev-docs","deployBranch":"master","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af5b9d53a147584b5c988d8","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"default","tag":"API Reference","count":112},{"language":"default","tag":"Admin API","count":77},{"language":"default","tag":"Core Resources","count":77},{"language":"default","tag":"Docs","count":44},{"language":"default","tag":"Customer API","count":35},{"language":"default","tag":"Webhooks","count":28},{"language":"default","tag":"Topics","count":26},{"language":"default","tag":"Blocks","count":21},{"language":"default","tag":"Subscriptions","count":17},{"language":"default","tag":"Platform","count":14}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"docs/api-reference/customer/subscriptions/update","slug":"/docs/api-reference/customer/subscriptions/update","pageMetadata":{"title":"Update subscription","description":"Used to update a subscription.","openapi":"openapi-customer.json PATCH /subscriptions/{subscriptionId}","href":"/docs/api-reference/customer/subscriptions/update"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Used to update a subscription.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Update subscription","description":"Used to update a subscription.","openapi":"openapi-customer.json PATCH /subscriptions/{subscriptionId}","href":"/docs/api-reference/customer/subscriptions/update"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["api.customer.v1"],"description":"Used to update a subscription.","requestBody":"3bb48670-e18e-4759-988d-73c4c0aa1dc5","parameters":["3c31d094-d589-432a-a97a-2d68e0c40813","6169da53-dd18-4395-90fe-b9432b56bdc0"],"x-speakeasy-group":"subscriptions","responses":{"200":"80bf96fc-2f18-43eb-bd08-c7d33be058b6"},"method":"patch","type":"path","servers":["390b734f-d5fc-4c2d-b3d0-58e54ed7db97"],"security":["8f47126c-9629-433d-9ea8-d8c0949fcf5c","975699be-e714-430a-8c1a-97a41f0dc49b"],"path":"/subscriptions/{subscriptionId}","baseUrlOptions":["https://api.juo.io/customer/v1"],"title":"","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"3c31d094-d589-432a-a97a-2d68e0c40813":{"schema":{"format":"uuid","type":"string","isRequired":true,"description":"The subscription identifier","uniqueKey":"","typeLabel":"string\u003cuuid>"},"in":"path","name":"subscriptionId","required":true,"description":"The subscription identifier"},"6169da53-dd18-4395-90fe-b9432b56bdc0":{"name":"X-Tenant-ID","x-speakeasy-name-override":"tenant","x-speakeasy-globals-hidden":true,"in":"header","schema":{"type":"string","isRequired":true,"description":"Unique identifier of the tenant in the system (usually a store identifier)","uniqueKey":"","typeLabel":"string"},"required":true,"description":"Unique identifier of the tenant in the system (usually a store identifier)"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"paymentMethod":{"type":"object","properties":{"id":{"format":"uuid","type":"string","uniqueKey":"paymentMethod.id","typeLabel":"string\u003cuuid>"}},"required":[],"uniqueKey":"paymentMethod","typeLabel":"object"},"backupPaymentMethod":{"oneOf":[{"type":"null","uniqueKey":"backupPaymentMethod.oneOf.0","typeLabel":"null"},{"type":"object","description":"The customer's payment method to charge after a renewal payment with the primary payment method is declined; `null` removes the backup. It must be one of the customer's own payment methods, must not be revoked, must be chargeable automatically and must differ from the primary payment method; otherwise the request fails with 400 and a `BACKUP_PAYMENT_METHOD_*` code.","required":["id"],"properties":{"id":{"format":"uuid","type":"string","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"backupPaymentMethod.oneOf.1","typeLabel":"object"}],"uniqueKey":"backupPaymentMethod","typeLabel":"null | object"},"deliveryAddress":{"type":"object","properties":{"firstName":{"oneOf":[{"minLength":1,"description":"Customer's first name.","type":"null","isRequired":true,"uniqueKey":"deliveryAddress.firstName.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Customer's first name.","type":"string","isRequired":true,"uniqueKey":"deliveryAddress.firstName.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"deliveryAddress.firstName","typeLabel":"null | string"},"lastName":{"oneOf":[{"minLength":1,"description":"Customer's last name.","type":"null","isRequired":true,"uniqueKey":"deliveryAddress.lastName.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Customer's last name.","type":"string","isRequired":true,"uniqueKey":"deliveryAddress.lastName.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"deliveryAddress.lastName","typeLabel":"null | string"},"address1":{"oneOf":[{"minLength":1,"description":"Primary street address.","type":"null","isRequired":true,"uniqueKey":"deliveryAddress.address1.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Primary street address.","type":"string","isRequired":true,"uniqueKey":"deliveryAddress.address1.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"deliveryAddress.address1","typeLabel":"null | string"},"address2":{"oneOf":[{"minLength":1,"description":"Additional address information (apartment, suite, etc.)","type":"null","isRequired":true,"uniqueKey":"deliveryAddress.address2.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Additional address information (apartment, suite, etc.)","type":"string","isRequired":true,"uniqueKey":"deliveryAddress.address2.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"deliveryAddress.address2","typeLabel":"null | string"},"zip":{"oneOf":[{"minLength":1,"description":"Postal/ZIP code.","type":"null","isRequired":true,"uniqueKey":"deliveryAddress.zip.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Postal/ZIP code.","type":"string","isRequired":true,"uniqueKey":"deliveryAddress.zip.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"deliveryAddress.zip","typeLabel":"null | string"},"city":{"oneOf":[{"minLength":1,"description":"City name.","type":"null","isRequired":true,"uniqueKey":"deliveryAddress.city.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"City name.","type":"string","isRequired":true,"uniqueKey":"deliveryAddress.city.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"deliveryAddress.city","typeLabel":"null | string"},"country":{"oneOf":[{"minLength":1,"description":"Full country name.","type":"null","isRequired":true,"uniqueKey":"deliveryAddress.country.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Full country name.","type":"string","isRequired":true,"uniqueKey":"deliveryAddress.country.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"deliveryAddress.country","typeLabel":"null | string"},"countryCode":{"oneOf":[{"minLength":2,"maxLength":2,"description":"Two-letter country code (ISO 3166-1).","type":"null","isRequired":true,"uniqueKey":"deliveryAddress.countryCode.oneOf.0","typeLabel":"null"},{"minLength":2,"maxLength":2,"description":"Two-letter country code (ISO 3166-1).","type":"string","isRequired":true,"uniqueKey":"deliveryAddress.countryCode.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"deliveryAddress.countryCode","typeLabel":"null | string"},"provinceCode":{"oneOf":[{"minLength":1,"description":"Province/state code.","type":"null","isRequired":true,"uniqueKey":"deliveryAddress.provinceCode.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Province/state code.","type":"string","isRequired":true,"uniqueKey":"deliveryAddress.provinceCode.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"deliveryAddress.provinceCode","typeLabel":"null | string"},"province":{"oneOf":[{"minLength":1,"description":"Full province/state name.","type":"null","isRequired":true,"uniqueKey":"deliveryAddress.province.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Full province/state name.","type":"string","isRequired":true,"uniqueKey":"deliveryAddress.province.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"deliveryAddress.province","typeLabel":"null | string"},"phone":{"oneOf":[{"minLength":1,"description":"Contact phone number.","type":"null","isRequired":true,"uniqueKey":"deliveryAddress.phone.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Contact phone number.","type":"string","isRequired":true,"uniqueKey":"deliveryAddress.phone.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"deliveryAddress.phone","typeLabel":"null | string"},"company":{"oneOf":[{"minLength":1,"description":"Company name.","type":"null","isRequired":true,"uniqueKey":"deliveryAddress.company.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Company name.","type":"string","isRequired":true,"uniqueKey":"deliveryAddress.company.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"deliveryAddress.company","typeLabel":"null | string"}},"required":["firstName","lastName","address1","address2","zip","city","country","countryCode","provinceCode","province","phone","company"],"title":"Address","uniqueKey":"deliveryAddress","typeLabel":"Address · object"},"nextBillingDate":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"nextBillingDate.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"string","format":"date","uniqueKey":"nextBillingDate.oneOf.1","typeLabel":"string\u003cdate>"}],"uniqueKey":"nextBillingDate","typeLabel":"string\u003cdate-time> | string\u003cdate>"},"customAttributes":{"description":"The complete set of customer-editable custom attributes. REPLACES the current customer-visible attributes: keys present are set, customer-visible keys omitted are removed. Internal (`_`-prefixed) and reserved keys are always preserved and cannot be written (returns 400); an internal key the shop exposes may be sent back unchanged, as a read returned it. Send `{}` to clear all customer-visible attributes.","type":"object","additionalProperties":{"type":"string","uniqueKey":"customAttributes.additionalProperties","typeLabel":"string"},"uniqueKey":"customAttributes","typeLabel":"object"}},"required":[],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"paymentMethod":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"backupPaymentMethod":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"nextBillingDate":"2023-11-07T05:31:56Z","customAttributes":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"80bf96fc-2f18-43eb-bd08-c7d33be058b6":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"format":"uuid","description":"Unique subscription identifier (UUID).","type":"string","example":"550e8400-e29b-41d4-a716-446655440000","isRequired":true,"uniqueKey":"id","typeLabel":"string\u003cuuid>"},"resource":{"type":"string","enum":["subscription"],"isRequired":true,"uniqueKey":"resource","typeLabel":"enum\u003cstring>"},"serial":{"minLength":1,"description":"Unique serial number that increments sequentially with each new subscription within a store.","type":"string","example":"1042","isRequired":true,"uniqueKey":"serial","typeLabel":"string"},"status":{"type":"string","enum":["active","paused","canceled","failed","expired","merged"],"description":"Subscription lifecycle status. `active`: billing runs on schedule; `paused`: billing suspended until resumed; `canceled`: permanently stopped (can be reactivated); `failed`: latest billing attempt failed; `expired`: reached configured end date; `merged`: consolidated into another subscription.","example":"active","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"createdAt":{"format":"date-time","description":"Purchase date of the subscription.","type":"string","isRequired":true,"uniqueKey":"createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"format":"date-time","description":"Last update date of the subscription.","type":"string","isRequired":true,"uniqueKey":"updatedAt","typeLabel":"string\u003cdate-time>"},"canceledAt":{"oneOf":[{"format":"date-time","description":"Cancellation date of the subscription.","type":"null","isRequired":true,"uniqueKey":"canceledAt.oneOf.0","typeLabel":"null"},{"format":"date-time","description":"Cancellation date of the subscription.","type":"string","isRequired":true,"uniqueKey":"canceledAt.oneOf.1","typeLabel":"string\u003cdate-time>"}],"isRequired":true,"uniqueKey":"canceledAt","typeLabel":"null | string\u003cdate-time>"},"nextBillingDate":{"oneOf":[{"format":"date-time","description":"The next billing date determines when the renewal process begins its billing phase. When billing succeeds, it creates one order—or multiple orders for prepaid subscriptions.","type":"null","example":"2024-02-15T10:00:00.000Z","isRequired":true,"uniqueKey":"nextBillingDate.oneOf.0","typeLabel":"null"},{"format":"date-time","description":"The next billing date determines when the renewal process begins its billing phase. When billing succeeds, it creates one order—or multiple orders for prepaid subscriptions.","type":"string","example":"2024-02-15T10:00:00.000Z","isRequired":true,"uniqueKey":"nextBillingDate.oneOf.1","typeLabel":"string\u003cdate-time>"}],"isRequired":true,"uniqueKey":"nextBillingDate","typeLabel":"null | string\u003cdate-time>"},"currentCycle":{"minimum":0,"description":"The subscription's billing cycle count. Starts at 0 before the first billing completes, increments by 1 with each successful billing.","type":"integer","example":1,"isRequired":true,"uniqueKey":"currentCycle","typeLabel":"integer"},"currencyCode":{"minLength":3,"maxLength":3,"description":"ISO 4217 currency code that applies to both item prices and delivery price.","type":"string","example":"USD","isRequired":true,"uniqueKey":"currencyCode","typeLabel":"string"},"billingPolicy":{"description":"How often and when the subscription is billed.","type":"object","properties":{"interval":{"type":"string","enum":["DAY","MONTH","WEEK","YEAR"],"description":"Billing frequency unit. One of: `WEEK`, `MONTH`, `YEAR`, `DAY`.","example":"MONTH","isRequired":true,"uniqueKey":"billingPolicy.interval","typeLabel":"enum\u003cstring>"},"intervalCount":{"minimum":1,"description":"Number of interval units between billing cycles.","type":"integer","example":1,"isRequired":true,"uniqueKey":"billingPolicy.intervalCount","typeLabel":"integer"}},"required":["interval","intervalCount"],"isRequired":true,"uniqueKey":"billingPolicy","typeLabel":"object"},"deliveryPolicy":{"description":"How often shipments are dispatched. Usually matches the billing policy.","type":"object","properties":{"interval":{"type":"string","enum":["DAY","MONTH","WEEK","YEAR"],"description":"Delivery frequency unit. One of: `WEEK`, `MONTH`, `YEAR`, `DAY`.","example":"MONTH","isRequired":true,"uniqueKey":"deliveryPolicy.interval","typeLabel":"enum\u003cstring>"},"intervalCount":{"minimum":1,"description":"Number of interval units between deliveries.","type":"integer","example":1,"isRequired":true,"uniqueKey":"deliveryPolicy.intervalCount","typeLabel":"integer"}},"required":["interval","intervalCount"],"isRequired":true,"uniqueKey":"deliveryPolicy","typeLabel":"object"},"deliveryMethod":{"oneOf":[{"type":"null","isRequired":true,"uniqueKey":"deliveryMethod.oneOf.0","typeLabel":"null"},{"type":"object","required":["type","title","description"],"properties":{"type":{"type":"string","enum":["shipping","local-delivery","pickup"],"description":"Delivery method type. One of: `shipping`, `local-delivery`, `pickup`.","examples":["shipping"],"isRequired":true,"uniqueKey":"deliveryMethod.oneOf.1.type","typeLabel":"enum\u003cstring>"},"title":{"oneOf":[{"type":"null","isRequired":true,"uniqueKey":"deliveryMethod.oneOf.1.title.oneOf.0","typeLabel":"null"},{"type":"string","isRequired":true,"uniqueKey":"deliveryMethod.oneOf.1.title.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"deliveryMethod.oneOf.1.title","typeLabel":"null | string"},"description":{"oneOf":[{"type":"null","isRequired":true,"uniqueKey":"deliveryMethod.oneOf.1.description.oneOf.0","typeLabel":"null"},{"type":"string","isRequired":true,"uniqueKey":"deliveryMethod.oneOf.1.description.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"deliveryMethod.oneOf.1.description","typeLabel":"null | string"}},"isRequired":true,"uniqueKey":"deliveryMethod.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"deliveryMethod","typeLabel":"null | object"},"customAttributes":{"description":"Arbitrary key-value pairs attached to this subscription. In the Customer API, attributes whose key starts with `_` are hidden and excluded.","type":"array","items":{"type":"object","properties":{"key":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"customAttributes.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","isRequired":true,"uniqueKey":"customAttributes.items.[INDEX].value","typeLabel":"string"}},"required":["key","value"],"uniqueKey":"customAttributes.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"customAttributes","typeLabel":"object[]"},"items":{"minItems":1,"type":"array","items":{"type":"object","properties":{"id":{"format":"uuid","description":"Unique subscription item identifier (UUID).","type":"string","example":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","isRequired":true,"uniqueKey":"\\items.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"resource":{"type":"string","enum":["subscription-item"],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].resource","typeLabel":"enum\u003cstring>"},"title":{"minLength":1,"description":"Product title.","type":"string","example":"Monthly Coffee Blend","isRequired":true,"uniqueKey":"\\items.items.[INDEX].title","typeLabel":"string"},"subtitle":{"oneOf":[{"minLength":1,"description":"Variant title. Matches the variant title in most cases.","type":"null","example":"250g / Ground","isRequired":true,"uniqueKey":"\\items.items.[INDEX].subtitle.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Variant title. Matches the variant title in most cases.","type":"string","example":"250g / Ground","isRequired":true,"uniqueKey":"\\items.items.[INDEX].subtitle.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].subtitle","typeLabel":"null | string"},"quantity":{"minimum":1,"description":"Number of units ordered per billing cycle.","type":"integer","example":1,"isRequired":true,"uniqueKey":"\\items.items.[INDEX].quantity","typeLabel":"integer"},"totalPrice":{"minimum":0,"description":"Final item price per billing cycle including all applicable discounts.","type":"number","example":24.99,"isRequired":true,"uniqueKey":"\\items.items.[INDEX].totalPrice","typeLabel":"number"},"recurringCycleLimit":{"oneOf":[{"minimum":1,"description":"Maximum number of billing cycles this item remains on the subscription. The item is automatically removed once this limit is reached. Null means no limit.","type":"null","example":3,"isRequired":true,"uniqueKey":"\\items.items.[INDEX].recurringCycleLimit.oneOf.0","typeLabel":"null"},{"minimum":1,"description":"Maximum number of billing cycles this item remains on the subscription. The item is automatically removed once this limit is reached. Null means no limit.","type":"integer","example":3,"isRequired":true,"uniqueKey":"\\items.items.[INDEX].recurringCycleLimit.oneOf.1","typeLabel":"integer"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].recurringCycleLimit","typeLabel":"null | integer"},"canceledAt":{"oneOf":[{"format":"date-time","description":"Cancellation date of the item.","type":"null","isRequired":true,"uniqueKey":"\\items.items.[INDEX].canceledAt.oneOf.0","typeLabel":"null"},{"format":"date-time","description":"Cancellation date of the item.","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].canceledAt.oneOf.1","typeLabel":"string\u003cdate-time>"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].canceledAt","typeLabel":"null | string\u003cdate-time>"},"billingPolicy":{"oneOf":[{"type":"null","isRequired":true,"uniqueKey":"\\items.items.[INDEX].billingPolicy.oneOf.0","typeLabel":"null"},{"type":"object","title":"BillingPolicy","required":["interval","intervalCount","anchors","minCycles","maxCycles"],"properties":{"interval":{"type":"string","enum":["DAY","WEEK","MONTH","YEAR"],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].billingPolicy.oneOf.1.interval","typeLabel":"enum\u003cstring>"},"intervalCount":{"minimum":1,"description":"Number of interval units between billing cycles.","type":"integer","isRequired":true,"uniqueKey":"\\items.items.[INDEX].billingPolicy.oneOf.1.intervalCount","typeLabel":"integer"},"anchors":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["WEEKDAY","MONTHDAY","YEARDAY"],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].billingPolicy.oneOf.1.anchors.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"day":{"minimum":1,"maximum":31,"type":"integer","isRequired":true,"uniqueKey":"\\items.items.[INDEX].billingPolicy.oneOf.1.anchors.items.[INDEX].day","typeLabel":"integer"},"month":{"oneOf":[{"minimum":1,"maximum":12,"type":"null","isRequired":true,"uniqueKey":"\\items.items.[INDEX].billingPolicy.oneOf.1.anchors.items.[INDEX].month.oneOf.0","typeLabel":"null"},{"minimum":1,"maximum":12,"type":"integer","isRequired":true,"uniqueKey":"\\items.items.[INDEX].billingPolicy.oneOf.1.anchors.items.[INDEX].month.oneOf.1","typeLabel":"integer"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].billingPolicy.oneOf.1.anchors.items.[INDEX].month","typeLabel":"null | integer"},"cutoffDay":{"oneOf":[{"minimum":1,"maximum":31,"type":"null","isRequired":true,"uniqueKey":"\\items.items.[INDEX].billingPolicy.oneOf.1.anchors.items.[INDEX].cutoffDay.oneOf.0","typeLabel":"null"},{"minimum":1,"maximum":31,"type":"integer","isRequired":true,"uniqueKey":"\\items.items.[INDEX].billingPolicy.oneOf.1.anchors.items.[INDEX].cutoffDay.oneOf.1","typeLabel":"integer"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].billingPolicy.oneOf.1.anchors.items.[INDEX].cutoffDay","typeLabel":"null | integer"}},"required":["type","day","month","cutoffDay"],"uniqueKey":"\\items.items.[INDEX].billingPolicy.oneOf.1.anchors.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"\\items.items.[INDEX].billingPolicy.oneOf.1.anchors","typeLabel":"object[]"},"minCycles":{"oneOf":[{"minimum":1,"type":"null","isRequired":true,"uniqueKey":"\\items.items.[INDEX].billingPolicy.oneOf.1.minCycles.oneOf.0","typeLabel":"null"},{"minimum":1,"type":"integer","isRequired":true,"uniqueKey":"\\items.items.[INDEX].billingPolicy.oneOf.1.minCycles.oneOf.1","typeLabel":"integer"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].billingPolicy.oneOf.1.minCycles","typeLabel":"null | integer"},"maxCycles":{"oneOf":[{"minimum":1,"type":"null","isRequired":true,"uniqueKey":"\\items.items.[INDEX].billingPolicy.oneOf.1.maxCycles.oneOf.0","typeLabel":"null"},{"minimum":1,"type":"integer","isRequired":true,"uniqueKey":"\\items.items.[INDEX].billingPolicy.oneOf.1.maxCycles.oneOf.1","typeLabel":"integer"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].billingPolicy.oneOf.1.maxCycles","typeLabel":"null | integer"}},"isRequired":true,"uniqueKey":"\\items.items.[INDEX].billingPolicy.oneOf.1","typeLabel":"BillingPolicy · object"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].billingPolicy","typeLabel":"null | BillingPolicy · object"},"deliveryPolicy":{"oneOf":[{"type":"null","isRequired":true,"uniqueKey":"\\items.items.[INDEX].deliveryPolicy.oneOf.0","typeLabel":"null"},{"type":"object","title":"DeliveryPolicy","required":["interval","intervalCount","anchors"],"properties":{"interval":{"type":"string","enum":["DAY","WEEK","MONTH","YEAR"],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].deliveryPolicy.oneOf.1.interval","typeLabel":"enum\u003cstring>"},"intervalCount":{"minimum":1,"description":"Number of interval units between deliveries.","type":"integer","isRequired":true,"uniqueKey":"\\items.items.[INDEX].deliveryPolicy.oneOf.1.intervalCount","typeLabel":"integer"},"anchors":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["WEEKDAY","MONTHDAY","YEARDAY"],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].deliveryPolicy.oneOf.1.anchors.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"day":{"minimum":1,"maximum":31,"type":"integer","isRequired":true,"uniqueKey":"\\items.items.[INDEX].deliveryPolicy.oneOf.1.anchors.items.[INDEX].day","typeLabel":"integer"},"month":{"oneOf":[{"minimum":1,"maximum":12,"type":"null","isRequired":true,"uniqueKey":"\\items.items.[INDEX].deliveryPolicy.oneOf.1.anchors.items.[INDEX].month.oneOf.0","typeLabel":"null"},{"minimum":1,"maximum":12,"type":"integer","isRequired":true,"uniqueKey":"\\items.items.[INDEX].deliveryPolicy.oneOf.1.anchors.items.[INDEX].month.oneOf.1","typeLabel":"integer"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].deliveryPolicy.oneOf.1.anchors.items.[INDEX].month","typeLabel":"null | integer"},"cutoffDay":{"oneOf":[{"minimum":1,"maximum":31,"type":"null","isRequired":true,"uniqueKey":"\\items.items.[INDEX].deliveryPolicy.oneOf.1.anchors.items.[INDEX].cutoffDay.oneOf.0","typeLabel":"null"},{"minimum":1,"maximum":31,"type":"integer","isRequired":true,"uniqueKey":"\\items.items.[INDEX].deliveryPolicy.oneOf.1.anchors.items.[INDEX].cutoffDay.oneOf.1","typeLabel":"integer"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].deliveryPolicy.oneOf.1.anchors.items.[INDEX].cutoffDay","typeLabel":"null | integer"}},"required":["type","day","month","cutoffDay"],"uniqueKey":"\\items.items.[INDEX].deliveryPolicy.oneOf.1.anchors.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"\\items.items.[INDEX].deliveryPolicy.oneOf.1.anchors","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"\\items.items.[INDEX].deliveryPolicy.oneOf.1","typeLabel":"DeliveryPolicy · object"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].deliveryPolicy","typeLabel":"null | DeliveryPolicy · object"},"customAttributes":{"description":"Arbitrary key-value pairs attached to this subscription item. In the Customer API, attributes whose key starts with `_` are hidden and excluded.","type":"array","items":{"type":"object","properties":{"key":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].customAttributes.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].customAttributes.items.[INDEX].value","typeLabel":"string"}},"required":["key","value"],"uniqueKey":"\\items.items.[INDEX].customAttributes.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"\\items.items.[INDEX].customAttributes","typeLabel":"object[]"},"variant":{"oneOf":[{"type":"string","description":"ProductVariant `id` when not expanded, or the full `ProductVariant` object when the field name is included in the `expand` query parameter. Can be null.","minLength":1,"isRequired":true,"uniqueKey":"\\items.items.[INDEX].variant.oneOf.0","typeLabel":"string"},{"type":"object","title":"ProductVariant","description":"ProductVariant `id` when not expanded, or the full `ProductVariant` object when the field name is included in the `expand` query parameter. Can be null.","required":["id","title","image","price","availability","purchaseOptions"],"properties":{"id":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].variant.oneOf.1.id","typeLabel":"string"},"title":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].variant.oneOf.1.title","typeLabel":"string"},"image":{"oneOf":[{"type":"null","isRequired":true,"uniqueKey":"\\items.items.[INDEX].variant.oneOf.1.image.oneOf.0","typeLabel":"null"},{"type":"object","required":["id","url","altText"],"properties":{"id":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].variant.oneOf.1.image.oneOf.1.id","typeLabel":"string"},"url":{"format":"uri","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].variant.oneOf.1.image.oneOf.1.url","typeLabel":"string\u003curi>"},"altText":{"oneOf":[{"minLength":1,"type":"null","isRequired":true,"uniqueKey":"\\items.items.[INDEX].variant.oneOf.1.image.oneOf.1.altText.oneOf.0","typeLabel":"null"},{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].variant.oneOf.1.image.oneOf.1.altText.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].variant.oneOf.1.image.oneOf.1.altText","typeLabel":"null | string"}},"isRequired":true,"uniqueKey":"\\items.items.[INDEX].variant.oneOf.1.image.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].variant.oneOf.1.image","typeLabel":"null | object"},"price":{"type":"number","isRequired":true,"uniqueKey":"\\items.items.[INDEX].variant.oneOf.1.price","typeLabel":"number"},"availability":{"description":"Whether the variant can be bought now: `out-of-stock` when it is sold out, `subscription-only` or `onetime-only` when only one way of buying it is offered.","type":"string","enum":["not-for-sale","out-of-stock","subscription-only","onetime-only","available"],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].variant.oneOf.1.availability","typeLabel":"enum\u003cstring>"},"purchaseOptions":{"type":"array","items":{"type":"object","properties":{"name":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].variant.oneOf.1.purchaseOptions.items.[INDEX].name","typeLabel":"string"},"price":{"type":"number","isRequired":true,"uniqueKey":"\\items.items.[INDEX].variant.oneOf.1.purchaseOptions.items.[INDEX].price","typeLabel":"number"},"interval":{"type":"object","properties":{"intervalCount":{"type":"number","isRequired":true,"uniqueKey":"\\items.items.[INDEX].variant.oneOf.1.purchaseOptions.items.[INDEX].interval.intervalCount","typeLabel":"number"},"interval":{"type":"string","enum":["DAY","MONTH","WEEK","YEAR"],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].variant.oneOf.1.purchaseOptions.items.[INDEX].interval.interval","typeLabel":"enum\u003cstring>"}},"required":["intervalCount","interval"],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].variant.oneOf.1.purchaseOptions.items.[INDEX].interval","typeLabel":"object"}},"required":["name","price","interval"],"uniqueKey":"\\items.items.[INDEX].variant.oneOf.1.purchaseOptions.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"\\items.items.[INDEX].variant.oneOf.1.purchaseOptions","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"\\items.items.[INDEX].variant.oneOf.1","typeLabel":"ProductVariant · object"},{"type":"null","description":"ProductVariant `id` when not expanded, or the full `ProductVariant` object when the field name is included in the `expand` query parameter. Can be null.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].variant.oneOf.2","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].variant","typeLabel":"string | ProductVariant · object | null"},"product":{"oneOf":[{"type":"string","description":"Product `id` when not expanded, or the full `Product` object when the field name is included in the `expand` query parameter. Can be null.","minLength":1,"isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.0","typeLabel":"string"},{"type":"object","title":"Product","description":"Product `id` when not expanded, or the full `Product` object when the field name is included in the `expand` query parameter. Can be null.","required":["id","title","image","variants","collections"],"properties":{"id":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.1.id","typeLabel":"string"},"title":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.1.title","typeLabel":"string"},"image":{"oneOf":[{"type":"null","isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.1.image.oneOf.0","typeLabel":"null"},{"type":"object","required":["id","url","altText"],"properties":{"id":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.1.image.oneOf.1.id","typeLabel":"string"},"url":{"format":"uri","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.1.image.oneOf.1.url","typeLabel":"string\u003curi>"},"altText":{"oneOf":[{"minLength":1,"type":"null","isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.1.image.oneOf.1.altText.oneOf.0","typeLabel":"null"},{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.1.image.oneOf.1.altText.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.1.image.oneOf.1.altText","typeLabel":"null | string"}},"isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.1.image.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.1.image","typeLabel":"null | object"},"variants":{"type":"array","items":{"type":"object","properties":{"id":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.1.variants.items.[INDEX].id","typeLabel":"string"},"title":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.1.variants.items.[INDEX].title","typeLabel":"string"},"image":{"oneOf":[{"type":"null","isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.1.variants.items.[INDEX].image.oneOf.0","typeLabel":"null"},{"type":"object","required":["id","url","altText"],"properties":{"id":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.1.variants.items.[INDEX].image.oneOf.1.id","typeLabel":"string"},"url":{"format":"uri","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.1.variants.items.[INDEX].image.oneOf.1.url","typeLabel":"string\u003curi>"},"altText":{"oneOf":[{"minLength":1,"type":"null","isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.1.variants.items.[INDEX].image.oneOf.1.altText.oneOf.0","typeLabel":"null"},{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.1.variants.items.[INDEX].image.oneOf.1.altText.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.1.variants.items.[INDEX].image.oneOf.1.altText","typeLabel":"null | string"}},"isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.1.variants.items.[INDEX].image.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.1.variants.items.[INDEX].image","typeLabel":"null | object"},"price":{"type":"number","isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.1.variants.items.[INDEX].price","typeLabel":"number"},"availability":{"description":"Whether the variant can be bought now: `out-of-stock` when it is sold out, `subscription-only` or `onetime-only` when only one way of buying it is offered.","type":"string","enum":["not-for-sale","out-of-stock","subscription-only","onetime-only","available"],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.1.variants.items.[INDEX].availability","typeLabel":"enum\u003cstring>"},"purchaseOptions":{"type":"array","items":{"type":"object","properties":{"name":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.1.variants.items.[INDEX].purchaseOptions.items.[INDEX].name","typeLabel":"string"},"price":{"type":"number","isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.1.variants.items.[INDEX].purchaseOptions.items.[INDEX].price","typeLabel":"number"},"interval":{"type":"object","properties":{"intervalCount":{"type":"number","isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.1.variants.items.[INDEX].purchaseOptions.items.[INDEX].interval.intervalCount","typeLabel":"number"},"interval":{"type":"string","enum":["DAY","MONTH","WEEK","YEAR"],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.1.variants.items.[INDEX].purchaseOptions.items.[INDEX].interval.interval","typeLabel":"enum\u003cstring>"}},"required":["intervalCount","interval"],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.1.variants.items.[INDEX].purchaseOptions.items.[INDEX].interval","typeLabel":"object"}},"required":["name","price","interval"],"uniqueKey":"\\items.items.[INDEX].product.oneOf.1.variants.items.[INDEX].purchaseOptions.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.1.variants.items.[INDEX].purchaseOptions","typeLabel":"object[]"}},"required":["id","title","image","price","availability","purchaseOptions"],"title":"ProductVariant","uniqueKey":"\\items.items.[INDEX].product.oneOf.1.variants.items.[INDEX]","typeLabel":"ProductVariant · object"},"isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.1.variants","typeLabel":"ProductVariant · object[]"},"collections":{"type":"array","items":{"type":"object","properties":{"handle":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.1.collections.items.[INDEX].handle","typeLabel":"string"}},"required":["handle"],"uniqueKey":"\\items.items.[INDEX].product.oneOf.1.collections.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.1.collections","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.1","typeLabel":"Product · object"},{"type":"null","description":"Product `id` when not expanded, or the full `Product` object when the field name is included in the `expand` query parameter. Can be null.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].product.oneOf.2","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].product","typeLabel":"string | Product · object | null"}},"required":["id","resource","title","subtitle","quantity","totalPrice","recurringCycleLimit","canceledAt","billingPolicy","deliveryPolicy","customAttributes","variant","product"],"title":"SubscriptionItem","uniqueKey":"\\items.items.[INDEX]","typeLabel":"SubscriptionItem · object"},"isRequired":true,"uniqueKey":"\\items","typeLabel":"SubscriptionItem · object[]"},"discounts":{"type":"array","items":{"type":"object","properties":{"id":{"format":"uuid","type":"string","isRequired":true,"uniqueKey":"discounts.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"resource":{"type":"string","enum":["subscription-discount"],"isRequired":true,"uniqueKey":"discounts.items.[INDEX].resource","typeLabel":"enum\u003cstring>"},"title":{"oneOf":[{"minLength":1,"description":"The title of the discount shown to customers, typically displayed as a discount code.","type":"null","isRequired":true,"uniqueKey":"discounts.items.[INDEX].title.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"The title of the discount shown to customers, typically displayed as a discount code.","type":"string","isRequired":true,"uniqueKey":"discounts.items.[INDEX].title.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"discounts.items.[INDEX].title","typeLabel":"null | string"},"target":{"oneOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["shipping"],"isRequired":true,"uniqueKey":"discounts.items.[INDEX].target.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"discounts.items.[INDEX].target.oneOf.0","typeLabel":"object"},{"type":"object","required":["type","selector"],"properties":{"type":{"type":"string","enum":["line"],"isRequired":true,"uniqueKey":"discounts.items.[INDEX].target.oneOf.1.type","typeLabel":"enum\u003cstring>"},"selector":{"oneOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["all"],"isRequired":true,"uniqueKey":"discounts.items.[INDEX].target.oneOf.1.selector.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"discounts.items.[INDEX].target.oneOf.1.selector.oneOf.0","typeLabel":"object"},{"type":"object","required":["type","lines"],"properties":{"type":{"type":"string","enum":["some"],"isRequired":true,"uniqueKey":"discounts.items.[INDEX].target.oneOf.1.selector.oneOf.1.type","typeLabel":"enum\u003cstring>"},"lines":{"type":"array","items":{"format":"uuid","type":"string","uniqueKey":"discounts.items.[INDEX].target.oneOf.1.selector.oneOf.1.lines.items.[INDEX]","typeLabel":"string\u003cuuid>"},"isRequired":true,"uniqueKey":"discounts.items.[INDEX].target.oneOf.1.selector.oneOf.1.lines","typeLabel":"string\u003cuuid>[]"}},"isRequired":true,"uniqueKey":"discounts.items.[INDEX].target.oneOf.1.selector.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"discounts.items.[INDEX].target.oneOf.1.selector","typeLabel":"object"}},"isRequired":true,"uniqueKey":"discounts.items.[INDEX].target.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"discounts.items.[INDEX].target","typeLabel":"object"},"value":{"oneOf":[{"type":"object","required":["amount","type","appliesOnEachItem"],"properties":{"amount":{"type":"number","isRequired":true,"uniqueKey":"discounts.items.[INDEX].value.oneOf.0.amount","typeLabel":"number"},"type":{"type":"string","enum":["fixed-amount"],"isRequired":true,"uniqueKey":"discounts.items.[INDEX].value.oneOf.0.type","typeLabel":"enum\u003cstring>"},"appliesOnEachItem":{"description":"When true, the amount will be proportionally split among all the items.","type":"boolean","isRequired":true,"uniqueKey":"discounts.items.[INDEX].value.oneOf.0.appliesOnEachItem","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"discounts.items.[INDEX].value.oneOf.0","typeLabel":"object"},{"type":"object","required":["percentage","type"],"properties":{"percentage":{"type":"number","isRequired":true,"uniqueKey":"discounts.items.[INDEX].value.oneOf.1.percentage","typeLabel":"number"},"type":{"type":"string","enum":["percentage"],"isRequired":true,"uniqueKey":"discounts.items.[INDEX].value.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"discounts.items.[INDEX].value.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"discounts.items.[INDEX].value","typeLabel":"object"},"recurringCycleLimit":{"oneOf":[{"minimum":1,"description":"The number of billing cycles for which this discount will be applied. After the recurring cycle limit is met the discount will be removed from the subscription.","type":"null","isRequired":true,"uniqueKey":"discounts.items.[INDEX].recurringCycleLimit.oneOf.0","typeLabel":"null"},{"minimum":1,"description":"The number of billing cycles for which this discount will be applied. After the recurring cycle limit is met the discount will be removed from the subscription.","type":"integer","isRequired":true,"uniqueKey":"discounts.items.[INDEX].recurringCycleLimit.oneOf.1","typeLabel":"integer"}],"isRequired":true,"uniqueKey":"discounts.items.[INDEX].recurringCycleLimit","typeLabel":"null | integer"}},"required":["id","resource","title","target","value","recurringCycleLimit"],"title":"SubscriptionDiscount","uniqueKey":"discounts.items.[INDEX]","typeLabel":"SubscriptionDiscount · object"},"isRequired":true,"uniqueKey":"discounts","typeLabel":"SubscriptionDiscount · object[]"},"paymentMethod":{"oneOf":[{"type":"string","description":"CustomerPaymentMethod `id` when not expanded, or the full `CustomerPaymentMethod` object when the field name is included in the `expand` query parameter. Can be null.","format":"uuid","isRequired":true,"uniqueKey":"paymentMethod.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"object","title":"CustomerPaymentMethod","description":"CustomerPaymentMethod `id` when not expanded, or the full `CustomerPaymentMethod` object when the field name is included in the `expand` query parameter. Can be null.","required":["id","customer","revokedAt","supportsAutomaticCharges"],"properties":{"id":{"format":"uuid","type":"string","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.id","typeLabel":"string\u003cuuid>"},"customer":{"oneOf":[{"type":"string","description":"Customer `id` when not expanded, or the full `Customer` object when the field name is included in the `expand` query parameter.","minLength":1,"example":"7654321","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.customer.oneOf.0","typeLabel":"string"},{"type":"object","title":"Customer","description":"Customer `id` when not expanded, or the full `Customer` object when the field name is included in the `expand` query parameter.","required":["id","resource","displayName","email","phone","customAttributes"],"properties":{"id":{"minLength":1,"description":"Customer ID (numeric string).","type":"string","example":"7654321","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.customer.oneOf.1.id","typeLabel":"string"},"resource":{"type":"string","enum":["customer"],"isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.customer.oneOf.1.resource","typeLabel":"enum\u003cstring>"},"displayName":{"minLength":1,"description":"Customer's full name.","type":"string","example":"Jane Smith","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.customer.oneOf.1.displayName","typeLabel":"string"},"email":{"oneOf":[{"format":"email","description":"Customer's contact email.","type":"null","example":"[email protected]","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.customer.oneOf.1.email.oneOf.0","typeLabel":"null"},{"format":"email","description":"Customer's contact email.","type":"string","example":"[email protected]","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.customer.oneOf.1.email.oneOf.1","typeLabel":"string\u003cemail>"}],"isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.customer.oneOf.1.email","typeLabel":"null | string\u003cemail>"},"phone":{"oneOf":[{"minLength":1,"description":"Customer's contact phone number in E.164 format.","type":"null","example":"+15550100","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.customer.oneOf.1.phone.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Customer's contact phone number in E.164 format.","type":"string","example":"+15550100","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.customer.oneOf.1.phone.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.customer.oneOf.1.phone","typeLabel":"null | string"},"customAttributes":{"description":"Arbitrary key-value pairs attached to this customer. Attributes whose key starts with `_` are internal and excluded.","type":"array","items":{"type":"object","properties":{"key":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.customer.oneOf.1.customAttributes.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.customer.oneOf.1.customAttributes.items.[INDEX].value","typeLabel":"string"}},"required":["key","value"],"uniqueKey":"paymentMethod.oneOf.1.customer.oneOf.1.customAttributes.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.customer.oneOf.1.customAttributes","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.customer.oneOf.1","typeLabel":"Customer · object"}],"isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.customer","typeLabel":"string | Customer · object"},"revokedAt":{"oneOf":[{"format":"date-time","description":"When the payment method was revoked, `null` while it is usable. A revoked payment method is never charged and cannot be a subscription's backup payment method.","type":"null","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.revokedAt.oneOf.0","typeLabel":"null"},{"format":"date-time","description":"When the payment method was revoked, `null` while it is usable. A revoked payment method is never charged and cannot be a subscription's backup payment method.","type":"string","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.revokedAt.oneOf.1","typeLabel":"string\u003cdate-time>"}],"isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.revokedAt","typeLabel":"null | string\u003cdate-time>"},"supportsAutomaticCharges":{"description":"Whether the payment method can be charged without the customer present, as subscription renewals require. Does not account for revocation: check `revokedAt` as well.","type":"boolean","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.supportsAutomaticCharges","typeLabel":"boolean"},"instrument":{"oneOf":[{"type":"object","required":["type","brand","maskedNumber","lastDigits"],"properties":{"type":{"type":"string","enum":["credit-card"],"isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.instrument.oneOf.0.type","typeLabel":"enum\u003cstring>"},"brand":{"description":"Credit card network name.","type":"string","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.instrument.oneOf.0.brand","typeLabel":"string"},"maskedNumber":{"description":"Masked card number.","type":"string","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.instrument.oneOf.0.maskedNumber","typeLabel":"string"},"lastDigits":{"description":"Last digits of the card number.","type":"string","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.instrument.oneOf.0.lastDigits","typeLabel":"string"},"expiryMonth":{"type":"integer","uniqueKey":"paymentMethod.oneOf.1.instrument.oneOf.0.expiryMonth","typeLabel":"integer"},"expiryYear":{"type":"integer","uniqueKey":"paymentMethod.oneOf.1.instrument.oneOf.0.expiryYear","typeLabel":"integer"},"cardholderName":{"type":"string","uniqueKey":"paymentMethod.oneOf.1.instrument.oneOf.0.cardholderName","typeLabel":"string"}},"uniqueKey":"paymentMethod.oneOf.1.instrument.oneOf.0","typeLabel":"object"},{"type":"object","required":["type","paypalAccountEmail"],"properties":{"type":{"type":"string","enum":["paypal"],"isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.instrument.oneOf.1.type","typeLabel":"enum\u003cstring>"},"paypalAccountEmail":{"oneOf":[{"format":"email","description":"Email of the associated PayPal account.","type":"null","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.instrument.oneOf.1.paypalAccountEmail.oneOf.0","typeLabel":"null"},{"format":"email","description":"Email of the associated PayPal account.","type":"string","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.instrument.oneOf.1.paypalAccountEmail.oneOf.1","typeLabel":"string\u003cemail>"}],"isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.instrument.oneOf.1.paypalAccountEmail","typeLabel":"null | string\u003cemail>"}},"uniqueKey":"paymentMethod.oneOf.1.instrument.oneOf.1","typeLabel":"object"},{"type":"object","required":["type","maskedNumber"],"properties":{"type":{"type":"string","enum":["shop-pay"],"isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.instrument.oneOf.2.type","typeLabel":"enum\u003cstring>"},"maskedNumber":{"description":"Masked card number.","type":"string","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.instrument.oneOf.2.maskedNumber","typeLabel":"string"},"expiryMonth":{"type":"integer","uniqueKey":"paymentMethod.oneOf.1.instrument.oneOf.2.expiryMonth","typeLabel":"integer"},"expiryYear":{"type":"integer","uniqueKey":"paymentMethod.oneOf.1.instrument.oneOf.2.expiryYear","typeLabel":"integer"},"cardholderName":{"type":"string","uniqueKey":"paymentMethod.oneOf.1.instrument.oneOf.2.cardholderName","typeLabel":"string"}},"uniqueKey":"paymentMethod.oneOf.1.instrument.oneOf.2","typeLabel":"object"},{"type":"object","required":["type","consumerName","consumerBic","maskedConsumerAccount"],"properties":{"type":{"type":"string","enum":["sepa-direct-debit"],"isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.instrument.oneOf.3.type","typeLabel":"enum\u003cstring>"},"consumerName":{"description":"Full name of the account holder.","type":"string","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.instrument.oneOf.3.consumerName","typeLabel":"string"},"consumerBic":{"oneOf":[{"description":"BIC code.","type":"null","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.instrument.oneOf.3.consumerBic.oneOf.0","typeLabel":"null"},{"description":"BIC code.","type":"string","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.instrument.oneOf.3.consumerBic.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.instrument.oneOf.3.consumerBic","typeLabel":"null | string"},"maskedConsumerAccount":{"description":"Masked IBAN.","type":"string","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.instrument.oneOf.3.maskedConsumerAccount","typeLabel":"string"}},"uniqueKey":"paymentMethod.oneOf.1.instrument.oneOf.3","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["blik"],"isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.instrument.oneOf.4.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"paymentMethod.oneOf.1.instrument.oneOf.4","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["mbway"],"isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.instrument.oneOf.5.type","typeLabel":"enum\u003cstring>"},"phone":{"type":"string","uniqueKey":"paymentMethod.oneOf.1.instrument.oneOf.5.phone","typeLabel":"string"}},"uniqueKey":"paymentMethod.oneOf.1.instrument.oneOf.5","typeLabel":"object"},{"type":"object","required":["type","maskedNumber"],"properties":{"type":{"type":"string","enum":["bacs"],"isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.instrument.oneOf.6.type","typeLabel":"enum\u003cstring>"},"maskedNumber":{"description":"Masked number.","type":"string","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.instrument.oneOf.6.maskedNumber","typeLabel":"string"}},"uniqueKey":"paymentMethod.oneOf.1.instrument.oneOf.6","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["manual"],"isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.instrument.oneOf.7.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"paymentMethod.oneOf.1.instrument.oneOf.7","typeLabel":"object"}],"uniqueKey":"paymentMethod.oneOf.1.instrument","typeLabel":"object"},"billingAddress":{"oneOf":[{"type":"null","uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.0","typeLabel":"null"},{"type":"object","required":["firstName","lastName","address1","address2","zip","city","country","countryCode","provinceCode","province","phone","company"],"properties":{"firstName":{"oneOf":[{"minLength":1,"description":"Customer's first name.","type":"null","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1.firstName.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Customer's first name.","type":"string","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1.firstName.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1.firstName","typeLabel":"null | string"},"lastName":{"oneOf":[{"minLength":1,"description":"Customer's last name.","type":"null","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1.lastName.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Customer's last name.","type":"string","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1.lastName.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1.lastName","typeLabel":"null | string"},"address1":{"oneOf":[{"minLength":1,"description":"Primary street address.","type":"null","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1.address1.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Primary street address.","type":"string","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1.address1.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1.address1","typeLabel":"null | string"},"address2":{"oneOf":[{"minLength":1,"description":"Additional address information (apartment, suite, etc.)","type":"null","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1.address2.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Additional address information (apartment, suite, etc.)","type":"string","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1.address2.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1.address2","typeLabel":"null | string"},"zip":{"oneOf":[{"minLength":1,"description":"Postal/ZIP code.","type":"null","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1.zip.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Postal/ZIP code.","type":"string","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1.zip.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1.zip","typeLabel":"null | string"},"city":{"oneOf":[{"minLength":1,"description":"City name.","type":"null","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1.city.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"City name.","type":"string","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1.city.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1.city","typeLabel":"null | string"},"country":{"oneOf":[{"minLength":1,"description":"Full country name.","type":"null","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1.country.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Full country name.","type":"string","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1.country.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1.country","typeLabel":"null | string"},"countryCode":{"oneOf":[{"minLength":2,"maxLength":2,"description":"Two-letter country code (ISO 3166-1).","type":"null","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1.countryCode.oneOf.0","typeLabel":"null"},{"minLength":2,"maxLength":2,"description":"Two-letter country code (ISO 3166-1).","type":"string","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1.countryCode.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1.countryCode","typeLabel":"null | string"},"provinceCode":{"oneOf":[{"minLength":1,"description":"Province/state code.","type":"null","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1.provinceCode.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Province/state code.","type":"string","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1.provinceCode.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1.provinceCode","typeLabel":"null | string"},"province":{"oneOf":[{"minLength":1,"description":"Full province/state name.","type":"null","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1.province.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Full province/state name.","type":"string","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1.province.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1.province","typeLabel":"null | string"},"phone":{"oneOf":[{"minLength":1,"description":"Contact phone number.","type":"null","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1.phone.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Contact phone number.","type":"string","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1.phone.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1.phone","typeLabel":"null | string"},"company":{"oneOf":[{"minLength":1,"description":"Company name.","type":"null","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1.company.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Company name.","type":"string","isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1.company.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1.company","typeLabel":"null | string"}},"uniqueKey":"paymentMethod.oneOf.1.billingAddress.oneOf.1","typeLabel":"object"}],"uniqueKey":"paymentMethod.oneOf.1.billingAddress","typeLabel":"null | object"}},"isRequired":true,"uniqueKey":"paymentMethod.oneOf.1","typeLabel":"CustomerPaymentMethod · object"},{"type":"null","description":"CustomerPaymentMethod `id` when not expanded, or the full `CustomerPaymentMethod` object when the field name is included in the `expand` query parameter. Can be null.","isRequired":true,"uniqueKey":"paymentMethod.oneOf.2","typeLabel":"null"}],"isRequired":true,"uniqueKey":"paymentMethod","typeLabel":"string\u003cuuid> | CustomerPaymentMethod · object | null"},"backupPaymentMethod":{"oneOf":[{"type":"string","description":"The subscription's backup payment method: after a renewal payment with the primary `paymentMethod` is declined, the next attempt charges this one. `null` when the subscription has no backup. CustomerPaymentMethod `id` when not expanded, or the full `CustomerPaymentMethod` object when the field name is included in the `expand` query parameter. Can be null.","format":"uuid","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"object","title":"CustomerPaymentMethod","description":"The subscription's backup payment method: after a renewal payment with the primary `paymentMethod` is declined, the next attempt charges this one. `null` when the subscription has no backup. CustomerPaymentMethod `id` when not expanded, or the full `CustomerPaymentMethod` object when the field name is included in the `expand` query parameter. Can be null.","required":["id","customer","revokedAt","supportsAutomaticCharges"],"properties":{"id":{"format":"uuid","type":"string","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.id","typeLabel":"string\u003cuuid>"},"customer":{"oneOf":[{"type":"string","description":"Customer `id` when not expanded, or the full `Customer` object when the field name is included in the `expand` query parameter.","minLength":1,"example":"7654321","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.customer.oneOf.0","typeLabel":"string"},{"type":"object","title":"Customer","description":"Customer `id` when not expanded, or the full `Customer` object when the field name is included in the `expand` query parameter.","required":["id","resource","displayName","email","phone","customAttributes"],"properties":{"id":{"minLength":1,"description":"Customer ID (numeric string).","type":"string","example":"7654321","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.customer.oneOf.1.id","typeLabel":"string"},"resource":{"type":"string","enum":["customer"],"isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.customer.oneOf.1.resource","typeLabel":"enum\u003cstring>"},"displayName":{"minLength":1,"description":"Customer's full name.","type":"string","example":"Jane Smith","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.customer.oneOf.1.displayName","typeLabel":"string"},"email":{"oneOf":[{"format":"email","description":"Customer's contact email.","type":"null","example":"[email protected]","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.customer.oneOf.1.email.oneOf.0","typeLabel":"null"},{"format":"email","description":"Customer's contact email.","type":"string","example":"[email protected]","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.customer.oneOf.1.email.oneOf.1","typeLabel":"string\u003cemail>"}],"isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.customer.oneOf.1.email","typeLabel":"null | string\u003cemail>"},"phone":{"oneOf":[{"minLength":1,"description":"Customer's contact phone number in E.164 format.","type":"null","example":"+15550100","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.customer.oneOf.1.phone.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Customer's contact phone number in E.164 format.","type":"string","example":"+15550100","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.customer.oneOf.1.phone.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.customer.oneOf.1.phone","typeLabel":"null | string"},"customAttributes":{"description":"Arbitrary key-value pairs attached to this customer. Attributes whose key starts with `_` are internal and excluded.","type":"array","items":{"type":"object","properties":{"key":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.customer.oneOf.1.customAttributes.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.customer.oneOf.1.customAttributes.items.[INDEX].value","typeLabel":"string"}},"required":["key","value"],"uniqueKey":"backupPaymentMethod.oneOf.1.customer.oneOf.1.customAttributes.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.customer.oneOf.1.customAttributes","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.customer.oneOf.1","typeLabel":"Customer · object"}],"isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.customer","typeLabel":"string | Customer · object"},"revokedAt":{"oneOf":[{"format":"date-time","description":"When the payment method was revoked, `null` while it is usable. A revoked payment method is never charged and cannot be a subscription's backup payment method.","type":"null","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.revokedAt.oneOf.0","typeLabel":"null"},{"format":"date-time","description":"When the payment method was revoked, `null` while it is usable. A revoked payment method is never charged and cannot be a subscription's backup payment method.","type":"string","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.revokedAt.oneOf.1","typeLabel":"string\u003cdate-time>"}],"isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.revokedAt","typeLabel":"null | string\u003cdate-time>"},"supportsAutomaticCharges":{"description":"Whether the payment method can be charged without the customer present, as subscription renewals require. Does not account for revocation: check `revokedAt` as well.","type":"boolean","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.supportsAutomaticCharges","typeLabel":"boolean"},"instrument":{"oneOf":[{"type":"object","required":["type","brand","maskedNumber","lastDigits"],"properties":{"type":{"type":"string","enum":["credit-card"],"isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.instrument.oneOf.0.type","typeLabel":"enum\u003cstring>"},"brand":{"description":"Credit card network name.","type":"string","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.instrument.oneOf.0.brand","typeLabel":"string"},"maskedNumber":{"description":"Masked card number.","type":"string","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.instrument.oneOf.0.maskedNumber","typeLabel":"string"},"lastDigits":{"description":"Last digits of the card number.","type":"string","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.instrument.oneOf.0.lastDigits","typeLabel":"string"},"expiryMonth":{"type":"integer","uniqueKey":"backupPaymentMethod.oneOf.1.instrument.oneOf.0.expiryMonth","typeLabel":"integer"},"expiryYear":{"type":"integer","uniqueKey":"backupPaymentMethod.oneOf.1.instrument.oneOf.0.expiryYear","typeLabel":"integer"},"cardholderName":{"type":"string","uniqueKey":"backupPaymentMethod.oneOf.1.instrument.oneOf.0.cardholderName","typeLabel":"string"}},"uniqueKey":"backupPaymentMethod.oneOf.1.instrument.oneOf.0","typeLabel":"object"},{"type":"object","required":["type","paypalAccountEmail"],"properties":{"type":{"type":"string","enum":["paypal"],"isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.instrument.oneOf.1.type","typeLabel":"enum\u003cstring>"},"paypalAccountEmail":{"oneOf":[{"format":"email","description":"Email of the associated PayPal account.","type":"null","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.instrument.oneOf.1.paypalAccountEmail.oneOf.0","typeLabel":"null"},{"format":"email","description":"Email of the associated PayPal account.","type":"string","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.instrument.oneOf.1.paypalAccountEmail.oneOf.1","typeLabel":"string\u003cemail>"}],"isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.instrument.oneOf.1.paypalAccountEmail","typeLabel":"null | string\u003cemail>"}},"uniqueKey":"backupPaymentMethod.oneOf.1.instrument.oneOf.1","typeLabel":"object"},{"type":"object","required":["type","maskedNumber"],"properties":{"type":{"type":"string","enum":["shop-pay"],"isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.instrument.oneOf.2.type","typeLabel":"enum\u003cstring>"},"maskedNumber":{"description":"Masked card number.","type":"string","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.instrument.oneOf.2.maskedNumber","typeLabel":"string"},"expiryMonth":{"type":"integer","uniqueKey":"backupPaymentMethod.oneOf.1.instrument.oneOf.2.expiryMonth","typeLabel":"integer"},"expiryYear":{"type":"integer","uniqueKey":"backupPaymentMethod.oneOf.1.instrument.oneOf.2.expiryYear","typeLabel":"integer"},"cardholderName":{"type":"string","uniqueKey":"backupPaymentMethod.oneOf.1.instrument.oneOf.2.cardholderName","typeLabel":"string"}},"uniqueKey":"backupPaymentMethod.oneOf.1.instrument.oneOf.2","typeLabel":"object"},{"type":"object","required":["type","consumerName","consumerBic","maskedConsumerAccount"],"properties":{"type":{"type":"string","enum":["sepa-direct-debit"],"isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.instrument.oneOf.3.type","typeLabel":"enum\u003cstring>"},"consumerName":{"description":"Full name of the account holder.","type":"string","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.instrument.oneOf.3.consumerName","typeLabel":"string"},"consumerBic":{"oneOf":[{"description":"BIC code.","type":"null","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.instrument.oneOf.3.consumerBic.oneOf.0","typeLabel":"null"},{"description":"BIC code.","type":"string","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.instrument.oneOf.3.consumerBic.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.instrument.oneOf.3.consumerBic","typeLabel":"null | string"},"maskedConsumerAccount":{"description":"Masked IBAN.","type":"string","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.instrument.oneOf.3.maskedConsumerAccount","typeLabel":"string"}},"uniqueKey":"backupPaymentMethod.oneOf.1.instrument.oneOf.3","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["blik"],"isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.instrument.oneOf.4.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"backupPaymentMethod.oneOf.1.instrument.oneOf.4","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["mbway"],"isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.instrument.oneOf.5.type","typeLabel":"enum\u003cstring>"},"phone":{"type":"string","uniqueKey":"backupPaymentMethod.oneOf.1.instrument.oneOf.5.phone","typeLabel":"string"}},"uniqueKey":"backupPaymentMethod.oneOf.1.instrument.oneOf.5","typeLabel":"object"},{"type":"object","required":["type","maskedNumber"],"properties":{"type":{"type":"string","enum":["bacs"],"isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.instrument.oneOf.6.type","typeLabel":"enum\u003cstring>"},"maskedNumber":{"description":"Masked number.","type":"string","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.instrument.oneOf.6.maskedNumber","typeLabel":"string"}},"uniqueKey":"backupPaymentMethod.oneOf.1.instrument.oneOf.6","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["manual"],"isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.instrument.oneOf.7.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"backupPaymentMethod.oneOf.1.instrument.oneOf.7","typeLabel":"object"}],"uniqueKey":"backupPaymentMethod.oneOf.1.instrument","typeLabel":"object"},"billingAddress":{"oneOf":[{"type":"null","uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.0","typeLabel":"null"},{"type":"object","required":["firstName","lastName","address1","address2","zip","city","country","countryCode","provinceCode","province","phone","company"],"properties":{"firstName":{"oneOf":[{"minLength":1,"description":"Customer's first name.","type":"null","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1.firstName.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Customer's first name.","type":"string","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1.firstName.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1.firstName","typeLabel":"null | string"},"lastName":{"oneOf":[{"minLength":1,"description":"Customer's last name.","type":"null","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1.lastName.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Customer's last name.","type":"string","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1.lastName.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1.lastName","typeLabel":"null | string"},"address1":{"oneOf":[{"minLength":1,"description":"Primary street address.","type":"null","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1.address1.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Primary street address.","type":"string","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1.address1.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1.address1","typeLabel":"null | string"},"address2":{"oneOf":[{"minLength":1,"description":"Additional address information (apartment, suite, etc.)","type":"null","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1.address2.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Additional address information (apartment, suite, etc.)","type":"string","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1.address2.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1.address2","typeLabel":"null | string"},"zip":{"oneOf":[{"minLength":1,"description":"Postal/ZIP code.","type":"null","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1.zip.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Postal/ZIP code.","type":"string","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1.zip.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1.zip","typeLabel":"null | string"},"city":{"oneOf":[{"minLength":1,"description":"City name.","type":"null","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1.city.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"City name.","type":"string","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1.city.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1.city","typeLabel":"null | string"},"country":{"oneOf":[{"minLength":1,"description":"Full country name.","type":"null","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1.country.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Full country name.","type":"string","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1.country.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1.country","typeLabel":"null | string"},"countryCode":{"oneOf":[{"minLength":2,"maxLength":2,"description":"Two-letter country code (ISO 3166-1).","type":"null","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1.countryCode.oneOf.0","typeLabel":"null"},{"minLength":2,"maxLength":2,"description":"Two-letter country code (ISO 3166-1).","type":"string","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1.countryCode.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1.countryCode","typeLabel":"null | string"},"provinceCode":{"oneOf":[{"minLength":1,"description":"Province/state code.","type":"null","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1.provinceCode.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Province/state code.","type":"string","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1.provinceCode.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1.provinceCode","typeLabel":"null | string"},"province":{"oneOf":[{"minLength":1,"description":"Full province/state name.","type":"null","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1.province.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Full province/state name.","type":"string","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1.province.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1.province","typeLabel":"null | string"},"phone":{"oneOf":[{"minLength":1,"description":"Contact phone number.","type":"null","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1.phone.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Contact phone number.","type":"string","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1.phone.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1.phone","typeLabel":"null | string"},"company":{"oneOf":[{"minLength":1,"description":"Company name.","type":"null","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1.company.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Company name.","type":"string","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1.company.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1.company","typeLabel":"null | string"}},"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress.oneOf.1","typeLabel":"object"}],"uniqueKey":"backupPaymentMethod.oneOf.1.billingAddress","typeLabel":"null | object"}},"isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.1","typeLabel":"CustomerPaymentMethod · object"},{"type":"null","description":"The subscription's backup payment method: after a renewal payment with the primary `paymentMethod` is declined, the next attempt charges this one. `null` when the subscription has no backup. CustomerPaymentMethod `id` when not expanded, or the full `CustomerPaymentMethod` object when the field name is included in the `expand` query parameter. Can be null.","isRequired":true,"uniqueKey":"backupPaymentMethod.oneOf.2","typeLabel":"null"}],"isRequired":true,"uniqueKey":"backupPaymentMethod","typeLabel":"string\u003cuuid> | CustomerPaymentMethod · object | null"},"deliveryAddress":{"oneOf":[{"type":"null","isRequired":true,"uniqueKey":"deliveryAddress.oneOf.0","typeLabel":"null"},{"type":"object","required":["firstName","lastName","address1","address2","zip","city","country","countryCode","provinceCode","province","phone","company"],"properties":{"firstName":{"oneOf":[{"minLength":1,"description":"Customer's first name.","type":"null","isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1.firstName.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Customer's first name.","type":"string","isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1.firstName.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1.firstName","typeLabel":"null | string"},"lastName":{"oneOf":[{"minLength":1,"description":"Customer's last name.","type":"null","isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1.lastName.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Customer's last name.","type":"string","isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1.lastName.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1.lastName","typeLabel":"null | string"},"address1":{"oneOf":[{"minLength":1,"description":"Primary street address.","type":"null","isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1.address1.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Primary street address.","type":"string","isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1.address1.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1.address1","typeLabel":"null | string"},"address2":{"oneOf":[{"minLength":1,"description":"Additional address information (apartment, suite, etc.)","type":"null","isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1.address2.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Additional address information (apartment, suite, etc.)","type":"string","isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1.address2.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1.address2","typeLabel":"null | string"},"zip":{"oneOf":[{"minLength":1,"description":"Postal/ZIP code.","type":"null","isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1.zip.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Postal/ZIP code.","type":"string","isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1.zip.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1.zip","typeLabel":"null | string"},"city":{"oneOf":[{"minLength":1,"description":"City name.","type":"null","isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1.city.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"City name.","type":"string","isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1.city.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1.city","typeLabel":"null | string"},"country":{"oneOf":[{"minLength":1,"description":"Full country name.","type":"null","isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1.country.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Full country name.","type":"string","isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1.country.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1.country","typeLabel":"null | string"},"countryCode":{"oneOf":[{"minLength":2,"maxLength":2,"description":"Two-letter country code (ISO 3166-1).","type":"null","isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1.countryCode.oneOf.0","typeLabel":"null"},{"minLength":2,"maxLength":2,"description":"Two-letter country code (ISO 3166-1).","type":"string","isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1.countryCode.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1.countryCode","typeLabel":"null | string"},"provinceCode":{"oneOf":[{"minLength":1,"description":"Province/state code.","type":"null","isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1.provinceCode.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Province/state code.","type":"string","isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1.provinceCode.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1.provinceCode","typeLabel":"null | string"},"province":{"oneOf":[{"minLength":1,"description":"Full province/state name.","type":"null","isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1.province.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Full province/state name.","type":"string","isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1.province.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1.province","typeLabel":"null | string"},"phone":{"oneOf":[{"minLength":1,"description":"Contact phone number.","type":"null","isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1.phone.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Contact phone number.","type":"string","isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1.phone.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1.phone","typeLabel":"null | string"},"company":{"oneOf":[{"minLength":1,"description":"Company name.","type":"null","isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1.company.oneOf.0","typeLabel":"null"},{"minLength":1,"description":"Company name.","type":"string","isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1.company.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1.company","typeLabel":"null | string"}},"isRequired":true,"uniqueKey":"deliveryAddress.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"deliveryAddress","typeLabel":"null | object"},"deliveryPrice":{"minimum":0,"description":"The base delivery price associated with the selected delivery method.","type":"number","isRequired":true,"uniqueKey":"deliveryPrice","typeLabel":"number"}},"required":["id","resource","serial","status","createdAt","updatedAt","canceledAt","nextBillingDate","currentCycle","currencyCode","billingPolicy","deliveryPolicy","deliveryMethod","customAttributes","items","discounts","paymentMethod","backupPaymentMethod","deliveryAddress","deliveryPrice"],"title":"Subscription","uniqueKey":"","typeLabel":"Subscription · object"},"examples":{"Example":{"title":"Example","value":{"id":"550e8400-e29b-41d4-a716-446655440000","resource":"subscription","serial":"1042","status":"active","createdAt":"2023-11-07T05:31:56Z","updatedAt":"2023-11-07T05:31:56Z","canceledAt":"2023-11-07T05:31:56Z","nextBillingDate":"2024-02-15T10:00:00.000Z","currentCycle":1,"currencyCode":"USD","billingPolicy":{"interval":"MONTH","intervalCount":1},"deliveryPolicy":{"interval":"MONTH","intervalCount":1},"deliveryMethod":{"type":"shipping","title":"\u003cstring>","description":"\u003cstring>"},"customAttributes":[{"key":"\u003cstring>","value":"\u003cstring>"}],"items":[{"id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","resource":"subscription-item","title":"Monthly Coffee Blend","subtitle":"250g / Ground","quantity":1,"totalPrice":24.99,"recurringCycleLimit":3,"canceledAt":"2023-11-07T05:31:56Z","billingPolicy":{"interval":"DAY","intervalCount":2,"anchors":[{"type":"WEEKDAY","day":16,"month":6,"cutoffDay":16}],"minCycles":2,"maxCycles":2},"deliveryPolicy":{"interval":"DAY","intervalCount":2,"anchors":[{"type":"WEEKDAY","day":16,"month":6,"cutoffDay":16}]},"customAttributes":[{"key":"\u003cstring>","value":"\u003cstring>"}],"variant":"\u003cstring>","product":"\u003cstring>"}],"discounts":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","resource":"subscription-discount","title":"\u003cstring>","target":{"type":"shipping"},"value":{"amount":123,"type":"fixed-amount","appliesOnEachItem":true},"recurringCycleLimit":2}],"paymentMethod":"3c90c3cc-0d44-4b50-8888-8dd25736052a","backupPaymentMethod":"3c90c3cc-0d44-4b50-8888-8dd25736052a","deliveryAddress":{"firstName":"\u003cstring>","lastName":"\u003cstring>","address1":"\u003cstring>","address2":"\u003cstring>","zip":"\u003cstring>","city":"\u003cstring>","country":"\u003cstring>","countryCode":"\u003cstring>","provinceCode":"\u003cstring>","province":"\u003cstring>","phone":"\u003cstring>","company":"\u003cstring>"},"deliveryPrice":1}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"8f47126c-9629-433d-9ea8-d8c0949fcf5c":{"DelegatedToken":{"type":"apiKey","name":"X-Delegated-Token","in":"header","scopes":[],"schemeName":"DelegatedToken"}},"975699be-e714-430a-8c1a-97a41f0dc49b":{"AccessToken":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"AccessToken"}}},"servers":{"390b734f-d5fc-4c2d-b3d0-58e54ed7db97":{"url":"https://api.juo.io/customer/v1"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","name":"X-Delegated-Token","in":"header","scopes":[],"schemeName":"DelegatedToken"},"schema":{"title":"X-Delegated-Token","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"DelegatedToken","name":"X-Delegated-Token"}],"title":"DelegatedToken"},{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"AccessToken"},"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":"AccessToken","name":"Authorization"}],"title":"AccessToken"}]},"originalFileLocation":"openapi-customer.json"},"subdomain":"juo","siteName":"Developer documentation","title":"Update subscription - Developer documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-26T16:20:56.559Z","originalFileLocation":"docs/api-reference/customer/subscriptions/update.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Used to update a subscription.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Developer 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/juo/HRxdlVE07BysfB5B/_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/juo/HRxdlVE07BysfB5B/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/juo/HRxdlVE07BysfB5B/_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/juo/HRxdlVE07BysfB5B/_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/juo/HRxdlVE07BysfB5B/_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/juo/HRxdlVE07BysfB5B/_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/juo/HRxdlVE07BysfB5B/_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/juo/HRxdlVE07BysfB5B/_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/juo/HRxdlVE07BysfB5B/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update subscription - Developer documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Used to update a subscription.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Developer documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://juo.dev/docs/api-reference/customer/subscriptions/update\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://juo.mintlify.site/_mintlify/api/og/v2?division=Subscriptions\u0026amp;title=Update+subscription\u0026amp;description=Used+to+update+a+subscription.\u0026amp;theme=414294311ffbf65bc209ab6e\u0026amp;signature=c63b551b2920a24894a3cab3203014ad0708d9582d0e84483f82f81c3ba4e60f\">\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 - Developer documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Used to update a subscription.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://juo.mintlify.site/_mintlify/api/og/v2?division=Subscriptions\u0026amp;title=Update+subscription\u0026amp;description=Used+to+update+a+subscription.\u0026amp;theme=414294311ffbf65bc209ab6e\u0026amp;signature=c63b551b2920a24894a3cab3203014ad0708d9582d0e84483f82f81c3ba4e60f\">\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/juo/HRxdlVE07BysfB5B/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Developer documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0D9373\">\u003clink data-mint-head rel=\"canonical\" href=\"https://juo.dev/docs/api-reference/customer/subscriptions/update\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/customer/subscriptions/update.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://juo.dev/#organization\",\"name\":\"Developer documentation\",\"url\":\"https://juo.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/juo/cWBbLfFsu7G7x1mQ/logo/light.svg?fit=max\u0026auto=format\u0026n=cWBbLfFsu7G7x1mQ\u0026q=85\u0026s=f13f7b33b950522934898d18eb965a2e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://juo.dev#website\",\"name\":\"Developer documentation\",\"url\":\"https://juo.dev\",\"publisher\":{\"@id\":\"https://juo.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://juo.dev/docs/api-reference/customer/subscriptions/update#webpage\",\"url\":\"https://juo.dev/docs/api-reference/customer/subscriptions/update\",\"name\":\"Update subscription\",\"description\":\"Used to update a subscription.\",\"dateModified\":\"2026-01-26T16:20:56.559Z\",\"isPartOf\":{\"@id\":\"https://juo.dev#website\"},\"breadcrumb\":{\"@id\":\"https://juo.dev/docs/api-reference/customer/subscriptions/update#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://juo.dev/docs/api-reference/customer/subscriptions/update#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Core Resources\",\"item\":\"https://juo.dev/docs/api-reference/customer/products/resource\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Subscriptions\",\"item\":\"https://juo.dev/docs/api-reference/customer/subscriptions/resource\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Update subscription\",\"item\":\"https://juo.dev/docs/api-reference/customer/subscriptions/update\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://juo.dev/docs/api-reference/customer/subscriptions/update#apireference\",\"headline\":\"Update subscription\",\"name\":\"Update subscription\",\"description\":\"Used to update a subscription.\",\"url\":\"https://juo.dev/docs/api-reference/customer/subscriptions/update\",\"mainEntityOfPage\":{\"@id\":\"https://juo.dev/docs/api-reference/customer/subscriptions/update#webpage\"},\"dateModified\":\"2026-01-26T16:20:56.559Z\",\"publisher\":{\"@id\":\"https://juo.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://juo.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Developer documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Developer documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/api-reference/customer/subscriptions/update.md","siteName":"Developer documentation","nav":{"global":{"anchors":[{"anchor":"Community","icon":"slack","href":"https://juo.community"},{"anchor":"Changelog","icon":"newspaper","href":"https://juo.com/changelog"}]},"tabs":[{"tab":"Platform","icon":"layers","pages":[{"title":"Platform","href":"/docs/introduction"}]},{"tab":"API Reference","icon":"square-terminal","dropdowns":[{"dropdown":"Admin API","icon":"wrench","groups":[{"group":" ","pages":[{"title":"Introduction","href":"/docs/api-reference/admin/introduction"}]},{"group":"Core Resources","pages":[{"group":"Customers","pages":[{"title":"Customer resource","href":"/docs/api-reference/admin/customers/resource"},{"title":"List customers","openapi":"openapi-admin.json GET /customers","href":"/docs/api-reference/admin/customers/list"},{"title":"Create a customer","openapi":"openapi-admin.json POST /customers","href":"/docs/api-reference/admin/customers/create"},{"title":"Update a customer","openapi":"openapi-admin.json PATCH /customers/{customerId}","href":"/docs/api-reference/admin/customers/update"},{"title":"Delete a customer","openapi":"openapi-admin.json DELETE /customers/{customerId}","href":"/docs/api-reference/admin/customers/delete"},{"title":"Add a payment method","openapi":"openapi-admin.json POST /customers/{customerId}/payment-methods","href":"/docs/api-reference/admin/customers/add-payment-method"}]},{"group":"Products","pages":[{"title":"Product resource","href":"/docs/api-reference/admin/products/resource"},{"title":"List products","openapi":"openapi-admin.json GET /products","href":"/docs/api-reference/admin/products/list"},{"title":"Create a product","openapi":"openapi-admin.json POST /products","href":"/docs/api-reference/admin/products/create"},{"title":"Update a product","openapi":"openapi-admin.json PATCH /products/{productId}","href":"/docs/api-reference/admin/products/update"},{"title":"Delete a product","openapi":"openapi-admin.json DELETE /products/{productId}","href":"/docs/api-reference/admin/products/delete"},{"title":"Assign product to plan","openapi":"openapi-admin.json POST /products/{productId}/plans","href":"/docs/api-reference/admin/products/assign-plan"},{"title":"Remove product from plan","openapi":"openapi-admin.json DELETE /products/{productId}/plans","href":"/docs/api-reference/admin/products/remove-plan"},{"title":"Add a variant","openapi":"openapi-admin.json POST /products/{productId}/variants","href":"/docs/api-reference/admin/products/add-variant"},{"title":"Remove a variant","openapi":"openapi-admin.json DELETE /products/{productId}/variants/{variantId}","href":"/docs/api-reference/admin/products/remove-variant"},{"title":"Assign variant to plan","openapi":"openapi-admin.json POST /products/{productId}/variants/{variantId}/plans","href":"/docs/api-reference/admin/products/assign-variant-plan"},{"title":"Remove variant from plan","openapi":"openapi-admin.json DELETE /products/{productId}/variants/{variantId}/plans","href":"/docs/api-reference/admin/products/remove-variant-plan"}]},{"group":"Subscriptions","pages":[{"title":"Subscription resource","href":"/docs/api-reference/admin/subscriptions/resource"},{"title":"List subscriptions","openapi":"openapi-admin.json GET /subscriptions","href":"/docs/api-reference/admin/subscriptions/list"},{"title":"Create a subscription","openapi":"openapi-admin.json POST /subscriptions","href":"/docs/api-reference/admin/subscriptions/create"},{"title":"Update subscription","openapi":"openapi-admin.json PATCH /subscriptions/{subscriptionId}","href":"/docs/api-reference/admin/subscriptions/update"},{"title":"Cancel subscription","openapi":"openapi-admin.json POST /subscriptions/{subscriptionId}/cancel","href":"/docs/api-reference/admin/subscriptions/cancel"},{"title":"Resume subscription","openapi":"openapi-admin.json POST /subscriptions/{subscriptionId}/resume","href":"/docs/api-reference/admin/subscriptions/resume"},{"title":"Pause subscription","openapi":"openapi-admin.json POST /subscriptions/{subscriptionId}/pause","href":"/docs/api-reference/admin/subscriptions/pause"},{"title":"Reactivate subscription","openapi":"openapi-admin.json POST /subscriptions/{subscriptionId}/reactivate","href":"/docs/api-reference/admin/subscriptions/reactivate"},{"title":"Add custom attributes to a subscription","openapi":"openapi-admin.json POST /subscriptions/{subscriptionId}/custom-attributes","href":"/docs/api-reference/admin/subscriptions/add-custom-attributes"},{"title":"Set custom attributes on a subscription","openapi":"openapi-admin.json PATCH /subscriptions/{subscriptionId}/custom-attributes","href":"/docs/api-reference/admin/subscriptions/set-custom-attributes"}]},{"group":"Subscription items","pages":[{"title":"Subscription item resource","href":"/docs/api-reference/admin/subscription-items/resource"},{"title":"Create a subscription item","openapi":"openapi-admin.json POST /subscriptions/{subscriptionId}/items","href":"/docs/api-reference/admin/subscription-items/create"},{"title":"Update subscription item","openapi":"openapi-admin.json PATCH /subscriptions/{subscriptionId}/items/{itemId}","href":"/docs/api-reference/admin/subscription-items/update"},{"title":"Delete subscription item","openapi":"openapi-admin.json DELETE /subscriptions/{subscriptionId}/items/{itemId}","href":"/docs/api-reference/admin/subscription-items/delete"}]},{"group":"Subscription discounts","pages":[{"title":"Subscription discount resource","href":"/docs/api-reference/admin/subscription-discounts/resource"},{"title":"Create a subscription discount","openapi":"openapi-admin.json POST /subscriptions/{subscriptionId}/discounts","href":"/docs/api-reference/admin/subscription-discounts/create"},{"title":"Update a subscription discount","openapi":"openapi-admin.json PATCH /subscriptions/{subscriptionId}/discounts/{discountId}","href":"/docs/api-reference/admin/subscription-discounts/update"},{"title":"Delete a subscription discount","openapi":"openapi-admin.json DELETE /subscriptions/{subscriptionId}/discounts/{discountId}","href":"/docs/api-reference/admin/subscription-discounts/delete"}]},{"group":"Schedules","pages":[{"title":"Schedule order resource","href":"/docs/api-reference/admin/schedules/resource"},{"title":"Get schedule","openapi":"openapi-admin.json GET /schedules/","href":"/docs/api-reference/admin/schedules/get"}]},{"group":"Schedule adjustments","pages":[{"title":"Schedule adjustment resource","href":"/docs/api-reference/admin/schedule-adjustments/resource"},{"title":"Actions","href":"/docs/api-reference/admin/schedule-adjustments/actions"},{"title":"Matchers","href":"/docs/api-reference/admin/schedule-adjustments/matchers"},{"title":"List schedule adjustments","openapi":"openapi-admin.json GET /schedules/adjustments","href":"/docs/api-reference/admin/schedule-adjustments/list"},{"title":"Create a schedule adjustment","openapi":"openapi-admin.json POST /schedules/adjustments","href":"/docs/api-reference/admin/schedule-adjustments/create"},{"title":"Delete a schedule adjustment","openapi":"openapi-admin.json DELETE /schedules/adjustments/{adjustmentId}","href":"/docs/api-reference/admin/schedule-adjustments/delete"}]}]},{"group":"Analytics","pages":[{"title":"List analytics metrics","openapi":"openapi-admin.json GET /analytics/metrics","href":"/docs/api-reference/admin/analytics/list-metrics"},{"title":"Query analytics","openapi":"openapi-admin.json POST /analytics/query","href":"/docs/api-reference/admin/analytics/query"}]},{"group":"Events","pages":[{"title":"Event resource","href":"/docs/api-reference/admin/events/resource"},{"title":"List events","openapi":"openapi-admin.json GET /events","href":"/docs/api-reference/admin/events/list"},{"title":"List event types","openapi":"openapi-admin.json GET /events/types","href":"/docs/api-reference/admin/events/list-types"}]},{"group":"Webhooks","pages":[{"title":"Overview","href":"/docs/api-reference/admin/webhooks/overview"},{"title":"Signature verification","href":"/docs/api-reference/admin/webhooks/signature-verification"},{"group":"Topics","pages":[{"title":"Customer created","version":null,"deprecated":null,"openapi":"/openapi-admin.json webhook customer.created","href":"/api-reference/customer-created"},{"title":"Customer updated","version":null,"deprecated":null,"openapi":"/openapi-admin.json webhook customer.updated","href":"/api-reference/customer-updated"},{"title":"Customer payment method created","version":null,"deprecated":null,"openapi":"/openapi-admin.json webhook customer-payment-method.created","href":"/api-reference/customer-payment-method-created"},{"title":"Customer payment method updated","version":null,"deprecated":null,"openapi":"/openapi-admin.json webhook customer-payment-method.updated","href":"/api-reference/customer-payment-method-updated"},{"title":"Customer payment method revoked","version":null,"deprecated":null,"openapi":"/openapi-admin.json webhook customer-payment-method.revoked","href":"/api-reference/customer-payment-method-revoked"},{"title":"Subscription created","version":null,"deprecated":null,"openapi":"/openapi-admin.json webhook subscription.created","href":"/api-reference/subscription-created"},{"title":"Subscription updated","version":null,"deprecated":null,"openapi":"/openapi-admin.json webhook subscription.updated","href":"/api-reference/subscription-updated"},{"title":"Subscription renewed","version":null,"deprecated":null,"openapi":"/openapi-admin.json webhook subscription.renewed","href":"/api-reference/subscription-renewed"},{"title":"Subscription item created","version":null,"deprecated":null,"openapi":"/openapi-admin.json webhook subscription-item.created","href":"/api-reference/subscription-item-created"},{"title":"Subscription item updated","version":null,"deprecated":null,"openapi":"/openapi-admin.json webhook subscription-item.updated","href":"/api-reference/subscription-item-updated"},{"title":"Subscription item deleted","version":null,"deprecated":null,"openapi":"/openapi-admin.json webhook subscription-item.deleted","href":"/api-reference/subscription-item-deleted"},{"title":"Subscription discount created","version":null,"deprecated":null,"openapi":"/openapi-admin.json webhook subscription-discount.created","href":"/api-reference/subscription-discount-created"},{"title":"Subscription discount updated","version":null,"deprecated":null,"openapi":"/openapi-admin.json webhook subscription-discount.updated","href":"/api-reference/subscription-discount-updated"},{"title":"Subscription discount deleted","version":null,"deprecated":null,"openapi":"/openapi-admin.json webhook subscription-discount.deleted","href":"/api-reference/subscription-discount-deleted"},{"title":"Schedule adjustment created","version":null,"deprecated":null,"openapi":"/openapi-admin.json webhook schedule-adjustment.created","href":"/api-reference/schedule-adjustment-created"},{"title":"Schedule adjustment updated","version":null,"deprecated":null,"openapi":"/openapi-admin.json webhook schedule-adjustment.updated","href":"/api-reference/schedule-adjustment-updated"},{"title":"Schedule adjustment deleted","version":null,"deprecated":null,"openapi":"/openapi-admin.json webhook schedule-adjustment.deleted","href":"/api-reference/schedule-adjustment-deleted"},{"title":"Product created","version":null,"deprecated":null,"openapi":"/openapi-admin.json webhook product.created","href":"/api-reference/product-created"},{"title":"Product updated","version":null,"deprecated":null,"openapi":"/openapi-admin.json webhook product.updated","href":"/api-reference/product-updated"},{"title":"Product deleted","version":null,"deprecated":null,"openapi":"/openapi-admin.json webhook product.deleted","href":"/api-reference/product-deleted"},{"title":"Product variant created","version":null,"deprecated":null,"openapi":"/openapi-admin.json webhook product-variant.created","href":"/api-reference/product-variant-created"},{"title":"Product variant updated","version":null,"deprecated":null,"openapi":"/openapi-admin.json webhook product-variant.updated","href":"/api-reference/product-variant-updated"},{"title":"Product variant deleted","version":null,"deprecated":null,"openapi":"/openapi-admin.json webhook product-variant.deleted","href":"/api-reference/product-variant-deleted"},{"title":"Order created","version":null,"deprecated":null,"openapi":"/openapi-admin.json webhook order.created","href":"/api-reference/order-created"},{"title":"Order updated","version":null,"deprecated":null,"openapi":"/openapi-admin.json webhook order.updated","href":"/api-reference/order-updated"},{"title":"Order deleted","version":null,"deprecated":null,"openapi":"/openapi-admin.json webhook order.deleted","href":"/api-reference/order-deleted"}]}]}]},{"dropdown":"Customer API","icon":"user","groups":[{"group":" ","pages":[{"title":"Introduction","href":"/docs/api-reference/customer/introduction"}]},{"group":"Core Resources","pages":[{"group":"Products","pages":[{"title":"Product resource","href":"/docs/api-reference/customer/products/resource"},{"title":"List products","openapi":"openapi-customer.json GET /products","href":"/docs/api-reference/customer/products/list"}]},{"group":"Subscriptions","pages":[{"title":"Subscription resource","href":"/docs/api-reference/customer/subscriptions/resource"},{"title":"List subscriptions","description":"Returns a list of subscriptions.","openapi":"openapi-customer.json GET /subscriptions","href":"/docs/api-reference/customer/subscriptions/list"},{"title":"Update subscription","openapi":"openapi-customer.json PATCH /subscriptions/{subscriptionId}","href":"/docs/api-reference/customer/subscriptions/update"},{"title":"Cancel subscription","description":"Used to cancel a subscription.","openapi":"openapi-customer.json POST /subscriptions/{subscriptionId}/cancel","href":"/docs/api-reference/customer/subscriptions/cancel"},{"title":"Resume subscription","openapi":"openapi-customer.json POST /subscriptions/{subscriptionId}/resume","href":"/docs/api-reference/customer/subscriptions/resume"},{"title":"Pause subscription","openapi":"openapi-customer.json POST /subscriptions/{subscriptionId}/pause","href":"/docs/api-reference/customer/subscriptions/pause"},{"title":"Reactivate subscription","openapi":"openapi-customer.json POST /subscriptions/{subscriptionId}/reactivate","href":"/docs/api-reference/customer/subscriptions/reactivate"}]},{"group":"Subscription items","pages":[{"title":"Subscription item resource","href":"/docs/api-reference/customer/subscription-items/resource"},{"title":"Create a subscription item","openapi":"openapi-customer.json POST /subscriptions/{subscriptionId}/items","href":"/docs/api-reference/customer/subscription-items/create"},{"title":"Update subscription item","openapi":"openapi-customer.json PATCH /subscriptions/{subscriptionId}/items/{itemId}","href":"/docs/api-reference/customer/subscription-items/update"},{"title":"Delete subscription item","openapi":"openapi-customer.json DELETE /subscriptions/{subscriptionId}/items/{itemId}","href":"/docs/api-reference/customer/subscription-items/delete"}]},{"group":"Subscription discounts","pages":[{"title":"Subscription discount resource","href":"/docs/api-reference/customer/subscription-discounts/resource"},{"title":"Create a subscription discount","openapi":"openapi-customer.json POST /subscriptions/{subscriptionId}/discounts","href":"/docs/api-reference/customer/subscription-discounts/create"},{"title":"Delete a subscription discount","openapi":"openapi-customer.json DELETE /subscriptions/{subscriptionId}/discounts/{discountId}","href":"/docs/api-reference/customer/subscription-discounts/delete"}]},{"group":"Orders","pages":[{"title":"Order resource","href":"/docs/api-reference/customer/orders/resource"},{"title":"List orders","openapi":"openapi-customer.json GET /orders","href":"/docs/api-reference/customer/orders/list"},{"title":"Pay an order","openapi":"openapi-customer.json POST /orders/{orderId}/pay","href":"/docs/api-reference/customer/orders/pay"}]},{"group":"Payment methods","pages":[{"title":"Payment method resource","href":"/docs/api-reference/customer/payment-methods/resource"},{"title":"List payment methods","openapi":"openapi-customer.json GET /payment-methods","href":"/docs/api-reference/customer/payment-methods/list"},{"title":"Create a payment method","openapi":"openapi-customer.json POST /payment-methods","href":"/docs/api-reference/customer/payment-methods/create"}]},{"group":"Schedules","pages":[{"title":"Schedule order resource","href":"/docs/api-reference/customer/schedules/resource"},{"title":"Get schedule","openapi":"openapi-customer.json GET /schedules/","href":"/docs/api-reference/customer/schedules/get"}]},{"group":"Schedule adjustments","pages":[{"title":"Schedule adjustment resource","href":"/docs/api-reference/customer/schedule-adjustments/resource"},{"title":"List schedule adjustments","openapi":"openapi-customer.json GET /schedules/adjustments","href":"/docs/api-reference/customer/schedule-adjustments/list"},{"title":"Create a schedule adjustment","openapi":"openapi-customer.json POST /schedules/adjustments","href":"/docs/api-reference/customer/schedule-adjustments/create"},{"title":"Delete a schedule adjustment","openapi":"openapi-customer.json DELETE /schedules/adjustments/{adjustmentId}","href":"/docs/api-reference/customer/schedule-adjustments/delete"}]},{"group":"Authentication","pages":[{"title":"Get Shopify auth token","openapi":"openapi-customer.json GET /auth/shopify/token","href":"/docs/api-reference/customer/auth/shopify-token"}]},{"group":"Workflows","pages":[{"title":"Workflow run resource","href":"/docs/api-reference/customer/workflows/resource"},{"title":"Start a workflow","openapi":"openapi-customer.json POST /workflows/start","href":"/docs/api-reference/customer/workflows/start"},{"title":"Get workflow run","openapi":"openapi-customer.json GET /workflows/{runId}","href":"/docs/api-reference/customer/workflows/get"},{"title":"Respond to a workflow run","openapi":"openapi-customer.json POST /workflows/{runId}/respond","href":"/docs/api-reference/customer/workflows/respond"},{"title":"Cancel workflow run","openapi":"openapi-customer.json POST /workflows/{runId}/cancel","href":"/docs/api-reference/customer/workflows/cancel"}]}]}]}]},{"tab":"Blocks","icon":"blocks","pages":[{"title":"Blocks","href":"/docs/blocks/overview"}]},{"tab":"Customer UI","icon":"palette","pages":[{"title":"Customer UI","href":"/docs/customer-ui/getting-started"}]}]},"basePath":"","title":"Update subscription - Developer documentation","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DdEMm2kG.js","utils-BMo572L7.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C-4m9KAx.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DPLK2Oq9.js","snippetPresets-BKjfJMC9.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-DTsgtCEj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C8vmhyQM.js","shallow-r9w8LQGS.js","getApiPlaygroundDisplay-DjPI64HQ.js","CodeSnippet-C8Bvhl16.js","CodeSnippets-BtWUwcMy.js","Page-BIYvYBgk.js","getPastedJson-Dcm_3Pgl.js","icon-BXwrTpjc.js","MethodPill-CcjfVmmy.js","DuplicateIcon-BuKIbXAQ.js","createIcon-DaL9yXsO.js","DynamicMarkdown-Co5nikxh.js","SectionHeading-P4UNTsMZ.js","axios-vUo_bRtp.js","Markdown-CEfymfIH.js","clsx-Dq9TQuNi.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-D2J8knkn.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BgZ2ThuU.js"]}