Starts a subscription for the specified ID. This endpoint is used to initiate a subscription and trigger the subscription lifecycle. It returns the subscription details after the start process.
POST
/
subscriptions
/
{subscription_id}
/
start
Start a subscription
curl --request POST \ --url https://api.salesbricks.com/api/v2/subscriptions/{subscription_id}/start \ --header 'X-SALESBRICKS-KEY: <api-key>'
Whether to charge the first invoice to the customer's saved payment method during this request. Defaults to yes. With no, the order starts without a charge and the invoice is paid like any other: automatically on its charge date if the customer has auto-pay on (starting a card order turns it on), otherwise by the customer.
Deprecated: use state and renewal_status. Combines whether the subscription is being served with its renewal situation, and can lag behind a date-driven change such as a pause starting.
Whether the customer is being served today, in the subscription's time zone. A termination or pause that hasn't started yet doesn't change it; see terminates_at and pauses.
What has to happen for the next contract, read from the subscription's orders and auto_renews whatever its state. OPEN_ORDER means an order is being built or awaits your signature. INACTIVE with AUTO_RENEWING is a lapsed auto-renewal. A subscription needs a renewal order now when state is ACTIVE, terminates_at is empty and this is ORDER_NEEDED or OPEN_ORDER, or when it is a lapsed auto-renewal.
The grand total, in cents of currency, the subscription is estimated to renew at, for the same order and term as renewal_contract_period. Null while a renewal, upgrade or recast is open.
The length, in months, of the term the subscription renews for. When no renewal term was set, the term the renewal inherits: the current term, or for an upgrade, the term of the agreement it upgrades.
Every pause of the subscription, past, current and upcoming, oldest first. A pause is current when paused_at is in the past and resume_at is null or in the future. Empty when the subscription has never been paused.
Order phases with per-phase dates, billing config, and bricks. Omitted — not empty — unless you have multi-phase orders enabled and the order has phase rows, so treat its absence as 'single phase, read the order-level fields' rather than 'no phases'.
Purchase order for the subscription. Reported on every invoice generated for it, unless an invoice carries its own override. Null when the subscription has no purchase order.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Salesbricks","colors":{"primary":"#197F78","light":"#26BFB4","dark":"#197F78"},"logo":{"light":"https://mintcdn.com/salesbricks/3GVA0K12Q7dXW89y/logo/light.svg?fit=max\u0026auto=format\u0026n=3GVA0K12Q7dXW89y\u0026q=85\u0026s=ead3e65ff72970d53a9cd22de50bd8fc","dark":"https://mintcdn.com/salesbricks/3GVA0K12Q7dXW89y/logo/dark.svg?fit=max\u0026auto=format\u0026n=3GVA0K12Q7dXW89y\u0026q=85\u0026s=786876a66955115a9896bb4ce9e0f779","href":"https://www.salesbricks.com"},"favicon":"https://mintcdn.com/salesbricks/3GVA0K12Q7dXW89y/favicon.svg?fit=max\u0026auto=format\u0026n=3GVA0K12Q7dXW89y\u0026q=85\u0026s=149c42d5e530bbd556361118b756ccb8","api":{"playground":{"display":"interactive"},"mdx":{"auth":{"method":"key"},"server":["https://api.salesbricks.com"]}},"background":{"color":{"light":"#FFFFFF","dark":"#0A0A0A"}},"navbar":{"primary":{"type":"button","label":"Log in","href":"https://app.salesbricks.com/login"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/salesbricks","x":"https://twitter.com/getsalesbricks","instagram":"https://www.instagram.com/salesbricks"}},"search":{"prompt":"Search Salesbricks docs..."},"seo":{"indexing":"navigable"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"salesbricks","hasAudioNarration":false,"actualSubdomain":"salesbricks","customDomains":["docs.salesbricks.com"],"gitSource":{"type":"github","owner":"goderecho","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae4d297f0f0e506e23495aa","collectionId":"e22ee52d-f716-4e2e-b522-09bd305a1646","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae4d297f0f0e506e23495aa"},"feedback":{"thumbs":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aed16ea8eec1bf8be06828a","clientVersion":"0.0.4076","searchFilterCounts":[{"language":"default","tag":"APIs \u0026 Webhooks","count":127},{"language":"default","tag":"REST API Endpoints","count":83},{"language":"default","tag":"Documentation","count":40},{"language":"default","tag":"Webhooks","count":34},{"language":"default","tag":"Integrations","count":19},{"language":"default","tag":"Invoices","count":13},{"language":"default","tag":"Subscriptions","count":12},{"language":"default","tag":"Usage","count":11},{"language":"default","tag":"Payment Methods","count":11},{"language":"default","tag":"Order Webhooks","count":10}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"table.two-column td,table.two-column th{width:50%}"}],"page":{"pagePath":"api-reference/subscriptions/start-a-subscription","slug":"/api-reference/subscriptions/start-a-subscription","pageMetadata":{"title":"Start a subscription","description":"Starts a subscription for the specified ID. This endpoint is used to initiate a subscription and trigger the subscription lifecycle. It returns the subscription details after the start process.","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /subscriptions/{subscription_id}/start","href":"/api-reference/subscriptions/start-a-subscription","autogeneratedByOpenApi":true},"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: \"Starts a subscription for the specified ID. This endpoint is used to initiate a subscription and trigger the subscription lifecycle. It returns the subscription details after the start process.\"\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":"Start a subscription","description":"Starts a subscription for the specified ID. This endpoint is used to initiate a subscription and trigger the subscription lifecycle. It returns the subscription details after the start process.","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /subscriptions/{subscription_id}/start","href":"/api-reference/subscriptions/start-a-subscription","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"startSubscription","description":"Starts a subscription for the specified ID. This endpoint is used to initiate a subscription and trigger the subscription lifecycle. It returns the subscription details after the start process.","summary":"Start a subscription","parameters":["3955fe10-ff9a-4c9a-8f79-ff4867aa8472","33358596-1ba5-42bc-985b-d7523930d56c"],"tags":["Subscriptions"],"responses":{"200":"a058d7e5-029a-4e30-8901-4fe91e57427c","404":"307aab7f-4897-4d70-ad6c-156cfdc08dc9"},"method":"post","type":"path","servers":["473a595f-0b07-4538-b033-faf5582d0b46"],"security":["96e2b814-4b2f-4ec1-a062-fb177ecfca77"],"path":"/subscriptions/{subscription_id}/start","baseUrlOptions":["https://api.salesbricks.com/api/v2"],"title":"Start a subscription","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"3955fe10-ff9a-4c9a-8f79-ff4867aa8472":{"in":"query","name":"charge_immediately","schema":{"type":"string","enum":["no","yes"],"description":"Whether to charge the first invoice to the customer's saved payment method during this request. Defaults to yes. With no, the order starts without a charge and the invoice is paid like any other: automatically on its charge date if the customer has auto-pay on (starting a card order turns it on), otherwise by the customer.","uniqueKey":"","typeLabel":"enum\u003cstring>"},"description":"Whether to charge the first invoice to the customer's saved payment method during this request. Defaults to yes. With no, the order starts without a charge and the invoice is paid like any other: automatically on its charge date if the customer has auto-pay on (starting a card order turns it on), otherwise by the customer."},"33358596-1ba5-42bc-985b-d7523930d56c":{"in":"path","name":"subscription_id","schema":{"type":"string","pattern":"^([a-zA-Z\\d\\-]+)$","isRequired":true,"uniqueKey":"","typeLabel":"string"},"required":true}},"responses":{"a058d7e5-029a-4e30-8901-4fe91e57427c":{"content":{"application/json":{"schema":{"type":"object","description":"Subscription detail serializer.","properties":{"ends_at":{"type":"string","format":"date","description":"End date of subscription","isRequired":true,"uniqueKey":"ends_at","typeLabel":"string\u003cdate>"},"sub_total":{"type":"integer","description":"Subtotal before taxes and discounts","isRequired":true,"uniqueKey":"sub_total","typeLabel":"integer"},"grand_total":{"type":"integer","description":"Final total after taxes and discounts","isRequired":true,"uniqueKey":"grand_total","typeLabel":"integer"},"line_items":{"type":"array","items":{"type":"object","description":"Line item serializer for a subscription estimate","properties":{"quantity":{"oneOf":[{"type":"integer","description":"The quantity of the brick","isRequired":true,"uniqueKey":"line_items.items.[INDEX].quantity.oneOf.0","typeLabel":"integer"},{"type":"number","description":"The quantity of the brick","format":"double","isRequired":true,"uniqueKey":"line_items.items.[INDEX].quantity.oneOf.1","typeLabel":"number\u003cdouble>"}],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].quantity","typeLabel":"integer | number\u003cdouble>"},"brick_id":{"type":"string","format":"uuid","description":"The brick id","isRequired":true,"uniqueKey":"line_items.items.[INDEX].brick_id","typeLabel":"string\u003cuuid>"},"is_unlimited":{"type":"boolean","readOnly":true,"default":false,"description":"Whether this line was sold with an uncapped entitlement. When true, `quantity` is the pricing basis the line's price was calculated from, not a limit on what the buyer may use — a provisioning system should grant unlimited access rather than `quantity` units.","isRequired":true,"uniqueKey":"line_items.items.[INDEX].is_unlimited","typeLabel":"boolean"},"brick_name":{"type":"string","description":"The name of the brick","isRequired":true,"uniqueKey":"line_items.items.[INDEX].brick_name","typeLabel":"string"},"brick_code":{"oneOf":[{"type":"string","readOnly":true,"description":"The internal SKU code you set on the brick. Unlike `brick_id` it stays the same across environments and when a brick is recreated, so use it to map bricks to your own features. Null when the brick has no code.","isRequired":true,"uniqueKey":"line_items.items.[INDEX].brick_code.oneOf.0","typeLabel":"string"},{"type":"null","readOnly":true,"description":"The internal SKU code you set on the brick. Unlike `brick_id` it stays the same across environments and when a brick is recreated, so use it to map bricks to your own features. Null when the brick has no code.","isRequired":true,"uniqueKey":"line_items.items.[INDEX].brick_code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].brick_code","typeLabel":"string | null"},"sub_total":{"type":"integer","description":"Subtotal for the line item before taxes and discounts","isRequired":true,"uniqueKey":"line_items.items.[INDEX].sub_total","typeLabel":"integer"},"plan_id":{"type":"string","readOnly":true,"description":"ID of the plan this line item belongs to","isRequired":true,"uniqueKey":"line_items.items.[INDEX].plan_id","typeLabel":"string"},"plan_name":{"type":"string","description":"Name of the plan this line item belongs to","isRequired":true,"uniqueKey":"line_items.items.[INDEX].plan_name","typeLabel":"string"},"grand_total":{"type":"string","readOnly":true,"description":"Final total for the line item after taxes and discounts","isRequired":true,"uniqueKey":"line_items.items.[INDEX].grand_total","typeLabel":"string"},"grand_total_details":{"type":"string","readOnly":true,"description":"Breakdown containing total discount amounts for the line item","isRequired":true,"uniqueKey":"line_items.items.[INDEX].grand_total_details","typeLabel":"string"},"tiers_breakdown":{"type":"array","items":{"type":"object","description":"Tier breakdown serializer for line item tiers","properties":{"quantity":{"type":"number","format":"double","maximum":100000000000000,"minimum":-100000000000000,"exclusiveMaximum":true,"exclusiveMinimum":true,"description":"Number of units in this tier","isRequired":true,"uniqueKey":"line_items.items.[INDEX].tiers_breakdown.items.[INDEX].quantity","typeLabel":"number\u003cdouble>"},"unit_price":{"type":"string","format":"decimal","pattern":"^-?\\d{0,14}(?:\\.\\d{0,6})?$","description":"Unit price for this tier","isRequired":true,"uniqueKey":"line_items.items.[INDEX].tiers_breakdown.items.[INDEX].unit_price","typeLabel":"string\u003cdecimal>"},"sub_total":{"type":"string","format":"decimal","pattern":"^-?\\d{0,18}(?:\\.\\d{0,2})?$","description":"Subtotal for this tier","isRequired":true,"uniqueKey":"line_items.items.[INDEX].tiers_breakdown.items.[INDEX].sub_total","typeLabel":"string\u003cdecimal>"},"duration_text":{"type":"string","description":"Duration text for frontend display","isRequired":true,"uniqueKey":"line_items.items.[INDEX].tiers_breakdown.items.[INDEX].duration_text","typeLabel":"string"}},"required":["duration_text","quantity","sub_total","unit_price"],"uniqueKey":"line_items.items.[INDEX].tiers_breakdown.items.[INDEX]","typeLabel":"object"},"readOnly":true,"description":"Tiers breakdown for the line item","isRequired":true,"uniqueKey":"line_items.items.[INDEX].tiers_breakdown","typeLabel":"object[]"},"pre_commitment_schedule":{"oneOf":[{"type":"string","readOnly":true,"description":"The pre-commitment schedule for usage-based line items","isRequired":true,"uniqueKey":"line_items.items.[INDEX].pre_commitment_schedule.oneOf.0","typeLabel":"string"},{"type":"null","readOnly":true,"description":"The pre-commitment schedule for usage-based line items","isRequired":true,"uniqueKey":"line_items.items.[INDEX].pre_commitment_schedule.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].pre_commitment_schedule","typeLabel":"string | null"},"discount":{"type":"array","items":{"type":"object","description":"Discount serializer for a subscription estimate line item","properties":{"rate":{"type":"string","format":"decimal","pattern":"^-?\\d{0,14}(?:\\.\\d{0,6})?$","description":"The discount rate as a percentage with up to six decimal places (e.g. 10 = 10%, 62.6758 = 62.6758%). Mutually exclusive with `amount`.","uniqueKey":"line_items.items.[INDEX].discount.items.[INDEX].rate","typeLabel":"string\u003cdecimal>"},"amount":{"type":"integer","description":"A fixed discount amount in cents (e.g. 1000 = $10.00). One-time only — `renews` must be false when `amount` is set. Mutually exclusive with `rate`. The amount is applied as-is and is not clamped to the line item total, so it should not exceed the brick's price.","uniqueKey":"line_items.items.[INDEX].discount.items.[INDEX].amount","typeLabel":"integer"},"renews":{"type":"boolean","default":false,"description":"If the discount is carried over at renewal. Must be false when `amount` is set, as fixed discounts are one-time only.","uniqueKey":"line_items.items.[INDEX].discount.items.[INDEX].renews","typeLabel":"boolean"}},"uniqueKey":"line_items.items.[INDEX].discount.items.[INDEX]","typeLabel":"object"},"readOnly":true,"description":"Per-brick discount(s) in the same shape accepted on input, so they can be read off a subscription and carried forward explicitly on upgrade, recast, or renewal. Empty when the line item has no discount.","isRequired":true,"uniqueKey":"line_items.items.[INDEX].discount","typeLabel":"object[]"}},"required":["brick_code","brick_id","brick_name","discount","grand_total","grand_total_details","is_unlimited","plan_id","plan_name","pre_commitment_schedule","quantity","sub_total","tiers_breakdown"],"uniqueKey":"line_items.items.[INDEX]","typeLabel":"object"},"description":"The line items of the subscription","isRequired":true,"uniqueKey":"line_items","typeLabel":"object[]"},"billing_schedule":{"type":"array","items":{"type":"object","description":"Billing schedule for a subscription","properties":{"starts_at":{"type":"string","readOnly":true,"description":"Start date of the billing period","isRequired":true,"uniqueKey":"billing_schedule.items.[INDEX].starts_at","typeLabel":"string"},"ends_at":{"type":"string","readOnly":true,"description":"End date of the billing period","isRequired":true,"uniqueKey":"billing_schedule.items.[INDEX].ends_at","typeLabel":"string"},"sub_total":{"type":"integer","description":"Subtotal for the billing period before taxes and discounts","isRequired":true,"uniqueKey":"billing_schedule.items.[INDEX].sub_total","typeLabel":"integer"},"grand_total":{"type":"string","readOnly":true,"description":"Final total for the billing period after taxes and discounts","isRequired":true,"uniqueKey":"billing_schedule.items.[INDEX].grand_total","typeLabel":"string"},"grand_total_details":{"type":"string","readOnly":true,"description":"Breakdown containing total discount for the billing period","isRequired":true,"uniqueKey":"billing_schedule.items.[INDEX].grand_total_details","typeLabel":"string"}},"required":["ends_at","grand_total","grand_total_details","starts_at","sub_total"],"uniqueKey":"billing_schedule.items.[INDEX]","typeLabel":"object"},"description":"The billing schedule of the subscription","isRequired":true,"uniqueKey":"billing_schedule","typeLabel":"object[]"},"grand_total_details":{"description":"Breakdown containing total discount and tax amounts","isRequired":true,"uniqueKey":"grand_total_details","typeLabel":"any"},"subscription_id":{"type":"string","format":"uuid","description":"Unique identifier for the subscription","isRequired":true,"uniqueKey":"subscription_id","typeLabel":"string\u003cuuid>"},"customer":{"type":"object","description":"Customer details","required":["customer_id","legal_name","name","subscriptions"],"properties":{"customer_id":{"type":"string","format":"uuid","description":"The ID of the customer","isRequired":true,"uniqueKey":"customer.customer_id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","description":"The name of the customer","isRequired":true,"uniqueKey":"customer.name","typeLabel":"string"},"legal_name":{"type":"string","readOnly":true,"description":"The legal name of the customer, used as the buyer name on invoices. Falls back to `name` when no legal name is set.","isRequired":true,"uniqueKey":"customer.legal_name","typeLabel":"string"},"subscriptions":{"type":"array","items":{"type":"object","description":"Lightweight subscription serializer for embedding in customer responses.\nContains only the essential subscription fields.","properties":{"subscription_id":{"type":"string","format":"uuid","description":"Unique identifier for the subscription","isRequired":true,"uniqueKey":"customer.subscriptions.items.[INDEX].subscription_id","typeLabel":"string\u003cuuid>"},"status":{"enum":["ACTIVE","ORDER_NEEDED","OPEN_ORDER","SCHEDULED","TERMINATED","TERMINATING","INACTIVE","PAUSED","SUPERSEDED"],"type":"string","x-spec-enum-id":"f557ac38d7b2529c","description":"Deprecated: use `state` and `renewal_status`. Combines whether the subscription is being served with its renewal situation, and can lag behind a date-driven change such as a pause starting.\n\n* `ACTIVE` - Active\n* `ORDER_NEEDED` - Order needed\n* `OPEN_ORDER` - Open order\n* `SCHEDULED` - Scheduled\n* `TERMINATED` - Terminated\n* `TERMINATING` - Terminating\n* `INACTIVE` - Inactive\n* `PAUSED` - Paused\n* `SUPERSEDED` - Superseded","deprecated":true,"isRequired":true,"uniqueKey":"customer.subscriptions.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"state":{"oneOf":[{"enum":["ACTIVE","PAUSED","TERMINATED","INACTIVE"],"type":"string","x-spec-enum-id":"a47d894bd8d95ff0","description":"Whether the customer is being served today, in the subscription's time zone. A termination or pause that hasn't started yet doesn't change it; see `terminates_at` and `pauses`.\n\n* `ACTIVE` - Active\n* `PAUSED` - Paused\n* `TERMINATED` - Terminated\n* `INACTIVE` - Inactive","isRequired":true,"uniqueKey":"customer.subscriptions.items.[INDEX].state.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":["ACTIVE","PAUSED","TERMINATED","INACTIVE"],"type":"null","x-spec-enum-id":"a47d894bd8d95ff0","description":"Whether the customer is being served today, in the subscription's time zone. A termination or pause that hasn't started yet doesn't change it; see `terminates_at` and `pauses`.\n\n* `ACTIVE` - Active\n* `PAUSED` - Paused\n* `TERMINATED` - Terminated\n* `INACTIVE` - Inactive","isRequired":true,"uniqueKey":"customer.subscriptions.items.[INDEX].state.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"customer.subscriptions.items.[INDEX].state","typeLabel":"enum\u003cstring> | null"},"renewal_status":{"oneOf":[{"enum":["AUTO_RENEWING","ORDER_NEEDED","OPEN_ORDER","WILL_NOT_RENEW"],"type":"string","x-spec-enum-id":"d70b485bc98e6d61","description":"What has to happen for the next contract, read from the subscription's orders and `auto_renews` whatever its `state`. `OPEN_ORDER` means an order is being built or awaits your signature. `INACTIVE` with `AUTO_RENEWING` is a lapsed auto-renewal. A subscription needs a renewal order now when `state` is `ACTIVE`, `terminates_at` is empty and this is `ORDER_NEEDED` or `OPEN_ORDER`, or when it is a lapsed auto-renewal.\n\n* `AUTO_RENEWING` - Auto-renewing\n* `ORDER_NEEDED` - Order needed\n* `OPEN_ORDER` - Open order\n* `WILL_NOT_RENEW` - Won't renew","isRequired":true,"uniqueKey":"customer.subscriptions.items.[INDEX].renewal_status.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":["AUTO_RENEWING","ORDER_NEEDED","OPEN_ORDER","WILL_NOT_RENEW"],"type":"null","x-spec-enum-id":"d70b485bc98e6d61","description":"What has to happen for the next contract, read from the subscription's orders and `auto_renews` whatever its `state`. `OPEN_ORDER` means an order is being built or awaits your signature. `INACTIVE` with `AUTO_RENEWING` is a lapsed auto-renewal. A subscription needs a renewal order now when `state` is `ACTIVE`, `terminates_at` is empty and this is `ORDER_NEEDED` or `OPEN_ORDER`, or when it is a lapsed auto-renewal.\n\n* `AUTO_RENEWING` - Auto-renewing\n* `ORDER_NEEDED` - Order needed\n* `OPEN_ORDER` - Open order\n* `WILL_NOT_RENEW` - Won't renew","isRequired":true,"uniqueKey":"customer.subscriptions.items.[INDEX].renewal_status.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"customer.subscriptions.items.[INDEX].renewal_status","typeLabel":"enum\u003cstring> | null"},"name":{"oneOf":[{"type":"string","description":"Name of the subscription","isRequired":true,"uniqueKey":"customer.subscriptions.items.[INDEX].name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Name of the subscription","isRequired":true,"uniqueKey":"customer.subscriptions.items.[INDEX].name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"customer.subscriptions.items.[INDEX].name","typeLabel":"string | null"},"starts_at":{"oneOf":[{"type":"string","format":"date","description":"Start date of the subscription","isRequired":true,"uniqueKey":"customer.subscriptions.items.[INDEX].starts_at.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","format":"date","description":"Start date of the subscription","isRequired":true,"uniqueKey":"customer.subscriptions.items.[INDEX].starts_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"customer.subscriptions.items.[INDEX].starts_at","typeLabel":"string\u003cdate> | null"},"ends_at":{"oneOf":[{"type":"string","format":"date","description":"End date of the subscription","isRequired":true,"uniqueKey":"customer.subscriptions.items.[INDEX].ends_at.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","format":"date","description":"End date of the subscription","isRequired":true,"uniqueKey":"customer.subscriptions.items.[INDEX].ends_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"customer.subscriptions.items.[INDEX].ends_at","typeLabel":"string\u003cdate> | null"}},"required":["ends_at","name","renewal_status","starts_at","state","status","subscription_id"],"uniqueKey":"customer.subscriptions.items.[INDEX]","typeLabel":"object"},"readOnly":true,"description":"List of subscriptions associated with this customer","isRequired":true,"uniqueKey":"customer.subscriptions","typeLabel":"object[]"},"external_id":{"oneOf":[{"type":"string","description":"The external id of the customer","maxLength":255,"uniqueKey":"customer.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The external id of the customer","maxLength":255,"uniqueKey":"customer.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"customer.external_id","typeLabel":"string | null"},"address":{"type":"object","description":"The address of the customer","required":["city","country","line_1","zip"],"properties":{"line_1":{"type":"string","description":"The first line of the address input","isRequired":true,"uniqueKey":"customer.address.line_1","typeLabel":"string"},"city":{"type":"string","description":"The city of the address input","isRequired":true,"uniqueKey":"customer.address.city","typeLabel":"string"},"zip":{"type":"string","description":"The zip code of the address input","isRequired":true,"uniqueKey":"customer.address.zip","typeLabel":"string"},"country":{"type":"string","description":"The country (ISO 3166: 2 character code) of the address input","isRequired":true,"uniqueKey":"customer.address.country","typeLabel":"string"},"line_2":{"oneOf":[{"type":"string","description":"The second line of the address input","uniqueKey":"customer.address.line_2.oneOf.0","typeLabel":"string"},{"type":"null","description":"The second line of the address input","uniqueKey":"customer.address.line_2.oneOf.1","typeLabel":"null"}],"uniqueKey":"customer.address.line_2","typeLabel":"string | null"},"region":{"type":"string","description":"The region (ISO 3166: 2 character code) of the address input","uniqueKey":"customer.address.region","typeLabel":"string"}},"uniqueKey":"customer.address","typeLabel":"object"},"stripe_customer_id":{"oneOf":[{"type":"string","description":"The companies stripe customer_id","maxLength":255,"uniqueKey":"customer.stripe_customer_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The companies stripe customer_id","maxLength":255,"uniqueKey":"customer.stripe_customer_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"customer.stripe_customer_id","typeLabel":"string | null"},"tax_id":{"oneOf":[{"type":"string","description":"Tax identification number (e.g., EIN, VAT number)","uniqueKey":"customer.tax_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Tax identification number (e.g., EIN, VAT number)","uniqueKey":"customer.tax_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"customer.tax_id","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"customer","typeLabel":"object"},"crm_account_id":{"oneOf":[{"type":"string","description":"ID of the account linked in your connected CRM, if any.","isRequired":true,"uniqueKey":"crm_account_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"ID of the account linked in your connected CRM, if any.","isRequired":true,"uniqueKey":"crm_account_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"crm_account_id","typeLabel":"string | null"},"crm_opportunity_id":{"oneOf":[{"type":"string","description":"ID of the opportunity linked in your connected CRM, if any.","isRequired":true,"uniqueKey":"crm_opportunity_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"ID of the opportunity linked in your connected CRM, if any.","isRequired":true,"uniqueKey":"crm_opportunity_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"crm_opportunity_id","typeLabel":"string | null"},"renews_at":{"type":"string","format":"date","description":"Date of renewal","isRequired":true,"uniqueKey":"renews_at","typeLabel":"string\u003cdate>"},"status":{"enum":["ACTIVE","ORDER_NEEDED","OPEN_ORDER","SCHEDULED","TERMINATED","TERMINATING","INACTIVE","PAUSED","SUPERSEDED"],"type":"string","x-spec-enum-id":"f557ac38d7b2529c","description":"Deprecated: use `state` and `renewal_status`. Combines whether the subscription is being served with its renewal situation, and can lag behind a date-driven change such as a pause starting.\n\n* `ACTIVE` - Active\n* `ORDER_NEEDED` - Order needed\n* `OPEN_ORDER` - Open order\n* `SCHEDULED` - Scheduled\n* `TERMINATED` - Terminated\n* `TERMINATING` - Terminating\n* `INACTIVE` - Inactive\n* `PAUSED` - Paused\n* `SUPERSEDED` - Superseded","deprecated":true,"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"state":{"oneOf":[{"enum":["ACTIVE","PAUSED","TERMINATED","INACTIVE"],"type":"string","x-spec-enum-id":"a47d894bd8d95ff0","description":"Whether the customer is being served today, in the subscription's time zone. A termination or pause that hasn't started yet doesn't change it; see `terminates_at` and `pauses`.\n\n* `ACTIVE` - Active\n* `PAUSED` - Paused\n* `TERMINATED` - Terminated\n* `INACTIVE` - Inactive","isRequired":true,"uniqueKey":"state.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":["ACTIVE","PAUSED","TERMINATED","INACTIVE"],"type":"null","x-spec-enum-id":"a47d894bd8d95ff0","description":"Whether the customer is being served today, in the subscription's time zone. A termination or pause that hasn't started yet doesn't change it; see `terminates_at` and `pauses`.\n\n* `ACTIVE` - Active\n* `PAUSED` - Paused\n* `TERMINATED` - Terminated\n* `INACTIVE` - Inactive","isRequired":true,"uniqueKey":"state.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"state","typeLabel":"enum\u003cstring> | null"},"renewal_status":{"oneOf":[{"enum":["AUTO_RENEWING","ORDER_NEEDED","OPEN_ORDER","WILL_NOT_RENEW"],"type":"string","x-spec-enum-id":"d70b485bc98e6d61","description":"What has to happen for the next contract, read from the subscription's orders and `auto_renews` whatever its `state`. `OPEN_ORDER` means an order is being built or awaits your signature. `INACTIVE` with `AUTO_RENEWING` is a lapsed auto-renewal. A subscription needs a renewal order now when `state` is `ACTIVE`, `terminates_at` is empty and this is `ORDER_NEEDED` or `OPEN_ORDER`, or when it is a lapsed auto-renewal.\n\n* `AUTO_RENEWING` - Auto-renewing\n* `ORDER_NEEDED` - Order needed\n* `OPEN_ORDER` - Open order\n* `WILL_NOT_RENEW` - Won't renew","isRequired":true,"uniqueKey":"renewal_status.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":["AUTO_RENEWING","ORDER_NEEDED","OPEN_ORDER","WILL_NOT_RENEW"],"type":"null","x-spec-enum-id":"d70b485bc98e6d61","description":"What has to happen for the next contract, read from the subscription's orders and `auto_renews` whatever its `state`. `OPEN_ORDER` means an order is being built or awaits your signature. `INACTIVE` with `AUTO_RENEWING` is a lapsed auto-renewal. A subscription needs a renewal order now when `state` is `ACTIVE`, `terminates_at` is empty and this is `ORDER_NEEDED` or `OPEN_ORDER`, or when it is a lapsed auto-renewal.\n\n* `AUTO_RENEWING` - Auto-renewing\n* `ORDER_NEEDED` - Order needed\n* `OPEN_ORDER` - Open order\n* `WILL_NOT_RENEW` - Won't renew","isRequired":true,"uniqueKey":"renewal_status.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"renewal_status","typeLabel":"enum\u003cstring> | null"},"stage":{"enum":["BUILDING","CLOSED","CLOSED_LOST","CLOSED_DELETE","SELLER_SIGNING","MIGRATING"],"type":"string","x-spec-enum-id":"e1125ad9e735326c","description":"Current stage of the subscription\n\n* `BUILDING` - Open\n* `CLOSED` - Closed Won\n* `CLOSED_LOST` - Closed Lost\n* `CLOSED_DELETE` - Closed Delete\n* `SELLER_SIGNING` - Signing\n* `MIGRATING` - Migrating","isRequired":true,"uniqueKey":"stage","typeLabel":"enum\u003cstring>"},"transaction_method":{"enum":["ORDER_FORM","STRIPE"],"type":"string","x-spec-enum-id":"c68094511bb51423","description":"The medium by which the order is agreed.\n\n* `ORDER_FORM` - Order form\n* `STRIPE` - Stripe","isRequired":true,"uniqueKey":"transaction_method","typeLabel":"enum\u003cstring>"},"terminates_at":{"type":"string","format":"date","description":"Date of termination","isRequired":true,"uniqueKey":"terminates_at","typeLabel":"string\u003cdate>"},"termination_reason":{"oneOf":[{"enum":["POOR_PRODUCT_MARKET_FIT","INSUFFICIENT_VALUE","POOR_ONBOARDING","LOW_UTILIZATION","POOR_SUPPORT","PRICING_AND_CONTRACT","PRODUCT_RELIABILITY","COMPETITIVE_DISPLACEMENT","ORGANIZATIONAL_CHANGES","LACK_OF_INNOVATION","WENT_BANKRUPT","LOST_CHAMPION","OTHER"],"type":"string","x-spec-enum-id":"ebd0da988414d390","description":"Reason code given when the subscription was terminated, if any\n\n* `POOR_PRODUCT_MARKET_FIT` - Poor Product-Market Fit\n* `INSUFFICIENT_VALUE` - Insufficient Perceived Value / ROI\n* `POOR_ONBOARDING` - Poor Onboarding Experience\n* `LOW_UTILIZATION` - Low Utilization\n* `POOR_SUPPORT` - Poor Customer Support and Service\n* `PRICING_AND_CONTRACT` - Pricing and Contract Issues\n* `PRODUCT_RELIABILITY` - Product Reliability, Performance, or Security Problems\n* `COMPETITIVE_DISPLACEMENT` - Competitive Displacement\n* `ORGANIZATIONAL_CHANGES` - Customer Business or Organizational Changes\n* `LACK_OF_INNOVATION` - Lack of Product Innovation and Evolution\n* `WENT_BANKRUPT` - Went Bankrupt\n* `LOST_CHAMPION` - Lost Champion\n* `OTHER` - Other","isRequired":true,"uniqueKey":"termination_reason.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":["POOR_PRODUCT_MARKET_FIT","INSUFFICIENT_VALUE","POOR_ONBOARDING","LOW_UTILIZATION","POOR_SUPPORT","PRICING_AND_CONTRACT","PRODUCT_RELIABILITY","COMPETITIVE_DISPLACEMENT","ORGANIZATIONAL_CHANGES","LACK_OF_INNOVATION","WENT_BANKRUPT","LOST_CHAMPION","OTHER"],"type":"null","x-spec-enum-id":"ebd0da988414d390","description":"Reason code given when the subscription was terminated, if any\n\n* `POOR_PRODUCT_MARKET_FIT` - Poor Product-Market Fit\n* `INSUFFICIENT_VALUE` - Insufficient Perceived Value / ROI\n* `POOR_ONBOARDING` - Poor Onboarding Experience\n* `LOW_UTILIZATION` - Low Utilization\n* `POOR_SUPPORT` - Poor Customer Support and Service\n* `PRICING_AND_CONTRACT` - Pricing and Contract Issues\n* `PRODUCT_RELIABILITY` - Product Reliability, Performance, or Security Problems\n* `COMPETITIVE_DISPLACEMENT` - Competitive Displacement\n* `ORGANIZATIONAL_CHANGES` - Customer Business or Organizational Changes\n* `LACK_OF_INNOVATION` - Lack of Product Innovation and Evolution\n* `WENT_BANKRUPT` - Went Bankrupt\n* `LOST_CHAMPION` - Lost Champion\n* `OTHER` - Other","isRequired":true,"uniqueKey":"termination_reason.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"termination_reason","typeLabel":"enum\u003cstring> | null"},"time_zone":{"type":"string","description":"Subscription time zone","isRequired":true,"uniqueKey":"time_zone","typeLabel":"string"},"starts_at":{"type":"string","format":"date","description":"Start date of subscription","isRequired":true,"uniqueKey":"starts_at","typeLabel":"string\u003cdate>"},"billing_frequency":{"enum":["MONTHLY","QUARTERLY","SEMI_ANNUALLY","ANNUALLY","ALL_UPFRONT","CUSTOM"],"type":"string","x-spec-enum-id":"5f29351b16a5547f","description":"Billing frequency of the subscription\n\n* `MONTHLY` - Monthly\n* `QUARTERLY` - Quarterly\n* `SEMI_ANNUALLY` - Semi-annually\n* `ANNUALLY` - Annually\n* `ALL_UPFRONT` - All upfront\n* `CUSTOM` - Custom","isRequired":true,"uniqueKey":"billing_frequency","typeLabel":"enum\u003cstring>"},"point_of_contact":{"type":"object","description":"Primary contact person for the subscription","required":["email","first_name","last_name","person_id","role"],"properties":{"person_id":{"type":"string","format":"uuid","description":"The ID of the person","isRequired":true,"uniqueKey":"point_of_contact.person_id","typeLabel":"string\u003cuuid>"},"first_name":{"type":"string","description":"The first name of the person","isRequired":true,"uniqueKey":"point_of_contact.first_name","typeLabel":"string"},"last_name":{"type":"string","description":"The last name of the person","isRequired":true,"uniqueKey":"point_of_contact.last_name","typeLabel":"string"},"email":{"type":"string","format":"email","description":"The email of the person","isRequired":true,"uniqueKey":"point_of_contact.email","typeLabel":"string\u003cemail>"},"role":{"type":"string","readOnly":true,"description":"The role of the person","isRequired":true,"uniqueKey":"point_of_contact.role","typeLabel":"string"},"preferred_name":{"oneOf":[{"type":"string","description":"The preferred name of the person","maxLength":255,"uniqueKey":"point_of_contact.preferred_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"The preferred name of the person","maxLength":255,"uniqueKey":"point_of_contact.preferred_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"point_of_contact.preferred_name","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"point_of_contact","typeLabel":"object"},"products":{"type":"array","items":{"type":"object","description":"Product detail serializer.","properties":{"name":{"type":"string","description":"Name of the product","isRequired":true,"uniqueKey":"products.items.[INDEX].name","typeLabel":"string"},"logo_image":{"type":"string","readOnly":true,"description":"URL to the product logo image, falls back to your logo if not set","isRequired":true,"uniqueKey":"products.items.[INDEX].logo_image","typeLabel":"string"}},"required":["logo_image","name"],"uniqueKey":"products.items.[INDEX]","typeLabel":"object"},"readOnly":true,"description":"Product details","isRequired":true,"uniqueKey":"products","typeLabel":"object[]"},"signatory_user":{"type":"object","description":"User who signed the subscription agreement","required":["email","first_name","last_name","person_id","role"],"properties":{"person_id":{"type":"string","format":"uuid","description":"The ID of the person","isRequired":true,"uniqueKey":"signatory_user.person_id","typeLabel":"string\u003cuuid>"},"first_name":{"type":"string","description":"The first name of the person","isRequired":true,"uniqueKey":"signatory_user.first_name","typeLabel":"string"},"last_name":{"type":"string","description":"The last name of the person","isRequired":true,"uniqueKey":"signatory_user.last_name","typeLabel":"string"},"email":{"type":"string","format":"email","description":"The email of the person","isRequired":true,"uniqueKey":"signatory_user.email","typeLabel":"string\u003cemail>"},"role":{"type":"string","readOnly":true,"description":"The role of the person","isRequired":true,"uniqueKey":"signatory_user.role","typeLabel":"string"},"preferred_name":{"oneOf":[{"type":"string","description":"The preferred name of the person","maxLength":255,"uniqueKey":"signatory_user.preferred_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"The preferred name of the person","maxLength":255,"uniqueKey":"signatory_user.preferred_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"signatory_user.preferred_name","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"signatory_user","typeLabel":"object"},"accounts_payable_emails":{"type":"array","items":{"type":"string","format":"email","uniqueKey":"accounts_payable_emails.items.[INDEX]","typeLabel":"string\u003cemail>"},"description":"List of email addresses for accounts payable contacts","isRequired":true,"uniqueKey":"accounts_payable_emails","typeLabel":"string\u003cemail>[]"},"currency":{"enum":["USD","EUR","GBP","AUD","CAD","INR"],"type":"string","x-spec-enum-id":"fde863feba7c4cf4","description":"The currency used\n\n* `USD` - United States Dollar\n* `EUR` - Euros\n* `GBP` - Great British Pound\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `INR` - Indian Rupee","isRequired":true,"uniqueKey":"currency","typeLabel":"enum\u003cstring>"},"payment_terms":{"type":"integer","description":"The payment terms for this susbcription","isRequired":true,"uniqueKey":"payment_terms","typeLabel":"integer"},"auto_renews":{"type":"boolean","description":"If the subscription will auto renew at the end of the current contract period","isRequired":true,"uniqueKey":"auto_renews","typeLabel":"boolean"},"renewal_total":{"oneOf":[{"type":"integer","description":"The grand total, in cents of `currency`, the subscription is estimated to renew at, for the same order and term as `renewal_contract_period`. Null while a renewal, upgrade or recast is open.","isRequired":true,"uniqueKey":"renewal_total.oneOf.0","typeLabel":"integer"},{"type":"null","description":"The grand total, in cents of `currency`, the subscription is estimated to renew at, for the same order and term as `renewal_contract_period`. Null while a renewal, upgrade or recast is open.","isRequired":true,"uniqueKey":"renewal_total.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"renewal_total","typeLabel":"integer | null"},"renewal_contract_period":{"type":"integer","description":"The length, in months, of the term the subscription renews for. When no renewal term was set, the term the renewal inherits: the current term, or for an upgrade, the term of the agreement it upgrades.","isRequired":true,"uniqueKey":"renewal_contract_period","typeLabel":"integer"},"pauses":{"type":"array","items":{"type":"object","description":"One pause of a subscription, past, current or upcoming.","properties":{"paused_at":{"type":"string","format":"date-time","description":"When the pause starts or started.","isRequired":true,"uniqueKey":"pauses.items.[INDEX].paused_at","typeLabel":"string\u003cdate-time>"},"resume_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the subscription resumes or resumed: the actual resume time once it has resumed, otherwise the scheduled one. Null for an open-ended pause that has not resumed.","isRequired":true,"uniqueKey":"pauses.items.[INDEX].resume_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the subscription resumes or resumed: the actual resume time once it has resumed, otherwise the scheduled one. Null for an open-ended pause that has not resumed.","isRequired":true,"uniqueKey":"pauses.items.[INDEX].resume_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"pauses.items.[INDEX].resume_at","typeLabel":"string\u003cdate-time> | null"}},"required":["paused_at","resume_at"],"uniqueKey":"pauses.items.[INDEX]","typeLabel":"object"},"description":"Every pause of the subscription, past, current and upcoming, oldest first. A pause is current when `paused_at` is in the past and `resume_at` is null or in the future. Empty when the subscription has never been paused.","isRequired":true,"uniqueKey":"pauses","typeLabel":"object[]"},"phases":{"type":"array","items":{"type":"object","description":"Output serializer for a single order phase.\n\nDiscounts are exposed per-brick via each brick's discount fields,\nconsistent with how the rest of the API surfaces discounts.","properties":{"phase_position":{"type":"integer","description":"Phase position (0-based).","isRequired":true,"uniqueKey":"phases.items.[INDEX].phase_position","typeLabel":"integer"},"starts_at":{"type":"string","format":"date","description":"Start date of this phase.","isRequired":true,"uniqueKey":"phases.items.[INDEX].starts_at","typeLabel":"string\u003cdate>"},"ends_at":{"type":"string","format":"date","description":"End date of this phase.","isRequired":true,"uniqueKey":"phases.items.[INDEX].ends_at","typeLabel":"string\u003cdate>"},"billing_frequency":{"oneOf":[{"enum":["MONTHLY","QUARTERLY","SEMI_ANNUALLY","ANNUALLY","ALL_UPFRONT","CUSTOM"],"type":"string","x-spec-enum-id":"5f29351b16a5547f","description":"Billing frequency for this phase.\n\n* `MONTHLY` - Monthly\n* `QUARTERLY` - Quarterly\n* `SEMI_ANNUALLY` - Semi-annually\n* `ANNUALLY` - Annually\n* `ALL_UPFRONT` - All upfront\n* `CUSTOM` - Custom","isRequired":true,"uniqueKey":"phases.items.[INDEX].billing_frequency.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":["MONTHLY","QUARTERLY","SEMI_ANNUALLY","ANNUALLY","ALL_UPFRONT","CUSTOM"],"type":"null","x-spec-enum-id":"5f29351b16a5547f","description":"Billing frequency for this phase.\n\n* `MONTHLY` - Monthly\n* `QUARTERLY` - Quarterly\n* `SEMI_ANNUALLY` - Semi-annually\n* `ANNUALLY` - Annually\n* `ALL_UPFRONT` - All upfront\n* `CUSTOM` - Custom","isRequired":true,"uniqueKey":"phases.items.[INDEX].billing_frequency.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"phases.items.[INDEX].billing_frequency","typeLabel":"enum\u003cstring> | null"},"payment_terms":{"oneOf":[{"type":"integer","description":"Payment terms in days for this phase.","isRequired":true,"uniqueKey":"phases.items.[INDEX].payment_terms.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Payment terms in days for this phase.","isRequired":true,"uniqueKey":"phases.items.[INDEX].payment_terms.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"phases.items.[INDEX].payment_terms","typeLabel":"integer | null"},"sub_total":{"oneOf":[{"type":"integer","description":"Subtotal before taxes and discounts for this phase.","isRequired":true,"uniqueKey":"phases.items.[INDEX].sub_total.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Subtotal before taxes and discounts for this phase.","isRequired":true,"uniqueKey":"phases.items.[INDEX].sub_total.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"phases.items.[INDEX].sub_total","typeLabel":"integer | null"},"grand_total":{"oneOf":[{"type":"integer","description":"Final total after taxes and discounts for this phase.","isRequired":true,"uniqueKey":"phases.items.[INDEX].grand_total.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Final total after taxes and discounts for this phase.","isRequired":true,"uniqueKey":"phases.items.[INDEX].grand_total.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"phases.items.[INDEX].grand_total","typeLabel":"integer | null"},"line_items":{"type":"array","items":{"type":"object","description":"Line item serializer for a subscription estimate","properties":{"quantity":{"oneOf":[{"type":"integer","description":"The quantity of the brick","isRequired":true,"uniqueKey":"phases.items.[INDEX].line_items.items.[INDEX].quantity.oneOf.0","typeLabel":"integer"},{"type":"number","description":"The quantity of the brick","format":"double","isRequired":true,"uniqueKey":"phases.items.[INDEX].line_items.items.[INDEX].quantity.oneOf.1","typeLabel":"number\u003cdouble>"}],"isRequired":true,"uniqueKey":"phases.items.[INDEX].line_items.items.[INDEX].quantity","typeLabel":"integer | number\u003cdouble>"},"brick_id":{"type":"string","format":"uuid","description":"The brick id","isRequired":true,"uniqueKey":"phases.items.[INDEX].line_items.items.[INDEX].brick_id","typeLabel":"string\u003cuuid>"},"is_unlimited":{"type":"boolean","readOnly":true,"default":false,"description":"Whether this line was sold with an uncapped entitlement. When true, `quantity` is the pricing basis the line's price was calculated from, not a limit on what the buyer may use — a provisioning system should grant unlimited access rather than `quantity` units.","isRequired":true,"uniqueKey":"phases.items.[INDEX].line_items.items.[INDEX].is_unlimited","typeLabel":"boolean"},"brick_name":{"type":"string","description":"The name of the brick","isRequired":true,"uniqueKey":"phases.items.[INDEX].line_items.items.[INDEX].brick_name","typeLabel":"string"},"brick_code":{"oneOf":[{"type":"string","readOnly":true,"description":"The internal SKU code you set on the brick. Unlike `brick_id` it stays the same across environments and when a brick is recreated, so use it to map bricks to your own features. Null when the brick has no code.","isRequired":true,"uniqueKey":"phases.items.[INDEX].line_items.items.[INDEX].brick_code.oneOf.0","typeLabel":"string"},{"type":"null","readOnly":true,"description":"The internal SKU code you set on the brick. Unlike `brick_id` it stays the same across environments and when a brick is recreated, so use it to map bricks to your own features. Null when the brick has no code.","isRequired":true,"uniqueKey":"phases.items.[INDEX].line_items.items.[INDEX].brick_code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"phases.items.[INDEX].line_items.items.[INDEX].brick_code","typeLabel":"string | null"},"sub_total":{"type":"integer","description":"Subtotal for the line item before taxes and discounts","isRequired":true,"uniqueKey":"phases.items.[INDEX].line_items.items.[INDEX].sub_total","typeLabel":"integer"},"plan_id":{"type":"string","readOnly":true,"description":"ID of the plan this line item belongs to","isRequired":true,"uniqueKey":"phases.items.[INDEX].line_items.items.[INDEX].plan_id","typeLabel":"string"},"plan_name":{"type":"string","description":"Name of the plan this line item belongs to","isRequired":true,"uniqueKey":"phases.items.[INDEX].line_items.items.[INDEX].plan_name","typeLabel":"string"},"grand_total":{"type":"string","readOnly":true,"description":"Final total for the line item after taxes and discounts","isRequired":true,"uniqueKey":"phases.items.[INDEX].line_items.items.[INDEX].grand_total","typeLabel":"string"},"grand_total_details":{"type":"string","readOnly":true,"description":"Breakdown containing total discount amounts for the line item","isRequired":true,"uniqueKey":"phases.items.[INDEX].line_items.items.[INDEX].grand_total_details","typeLabel":"string"},"tiers_breakdown":{"type":"array","items":{"type":"object","description":"Tier breakdown serializer for line item tiers","properties":{"quantity":{"type":"number","format":"double","maximum":100000000000000,"minimum":-100000000000000,"exclusiveMaximum":true,"exclusiveMinimum":true,"description":"Number of units in this tier","isRequired":true,"uniqueKey":"phases.items.[INDEX].line_items.items.[INDEX].tiers_breakdown.items.[INDEX].quantity","typeLabel":"number\u003cdouble>"},"unit_price":{"type":"string","format":"decimal","pattern":"^-?\\d{0,14}(?:\\.\\d{0,6})?$","description":"Unit price for this tier","isRequired":true,"uniqueKey":"phases.items.[INDEX].line_items.items.[INDEX].tiers_breakdown.items.[INDEX].unit_price","typeLabel":"string\u003cdecimal>"},"sub_total":{"type":"string","format":"decimal","pattern":"^-?\\d{0,18}(?:\\.\\d{0,2})?$","description":"Subtotal for this tier","isRequired":true,"uniqueKey":"phases.items.[INDEX].line_items.items.[INDEX].tiers_breakdown.items.[INDEX].sub_total","typeLabel":"string\u003cdecimal>"},"duration_text":{"type":"string","description":"Duration text for frontend display","isRequired":true,"uniqueKey":"phases.items.[INDEX].line_items.items.[INDEX].tiers_breakdown.items.[INDEX].duration_text","typeLabel":"string"}},"required":["duration_text","quantity","sub_total","unit_price"],"uniqueKey":"phases.items.[INDEX].line_items.items.[INDEX].tiers_breakdown.items.[INDEX]","typeLabel":"object"},"readOnly":true,"description":"Tiers breakdown for the line item","isRequired":true,"uniqueKey":"phases.items.[INDEX].line_items.items.[INDEX].tiers_breakdown","typeLabel":"object[]"},"pre_commitment_schedule":{"oneOf":[{"type":"string","readOnly":true,"description":"The pre-commitment schedule for usage-based line items","isRequired":true,"uniqueKey":"phases.items.[INDEX].line_items.items.[INDEX].pre_commitment_schedule.oneOf.0","typeLabel":"string"},{"type":"null","readOnly":true,"description":"The pre-commitment schedule for usage-based line items","isRequired":true,"uniqueKey":"phases.items.[INDEX].line_items.items.[INDEX].pre_commitment_schedule.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"phases.items.[INDEX].line_items.items.[INDEX].pre_commitment_schedule","typeLabel":"string | null"},"discount":{"type":"array","items":{"type":"object","description":"Discount serializer for a subscription estimate line item","properties":{"rate":{"type":"string","format":"decimal","pattern":"^-?\\d{0,14}(?:\\.\\d{0,6})?$","description":"The discount rate as a percentage with up to six decimal places (e.g. 10 = 10%, 62.6758 = 62.6758%). Mutually exclusive with `amount`.","uniqueKey":"phases.items.[INDEX].line_items.items.[INDEX].discount.items.[INDEX].rate","typeLabel":"string\u003cdecimal>"},"amount":{"type":"integer","description":"A fixed discount amount in cents (e.g. 1000 = $10.00). One-time only — `renews` must be false when `amount` is set. Mutually exclusive with `rate`. The amount is applied as-is and is not clamped to the line item total, so it should not exceed the brick's price.","uniqueKey":"phases.items.[INDEX].line_items.items.[INDEX].discount.items.[INDEX].amount","typeLabel":"integer"},"renews":{"type":"boolean","default":false,"description":"If the discount is carried over at renewal. Must be false when `amount` is set, as fixed discounts are one-time only.","uniqueKey":"phases.items.[INDEX].line_items.items.[INDEX].discount.items.[INDEX].renews","typeLabel":"boolean"}},"uniqueKey":"phases.items.[INDEX].line_items.items.[INDEX].discount.items.[INDEX]","typeLabel":"object"},"readOnly":true,"description":"Per-brick discount(s) in the same shape accepted on input, so they can be read off a subscription and carried forward explicitly on upgrade, recast, or renewal. Empty when the line item has no discount.","isRequired":true,"uniqueKey":"phases.items.[INDEX].line_items.items.[INDEX].discount","typeLabel":"object[]"}},"required":["brick_code","brick_id","brick_name","discount","grand_total","grand_total_details","is_unlimited","plan_id","plan_name","pre_commitment_schedule","quantity","sub_total","tiers_breakdown"],"uniqueKey":"phases.items.[INDEX].line_items.items.[INDEX]","typeLabel":"object"},"readOnly":true,"description":"The line items in this phase.","isRequired":true,"uniqueKey":"phases.items.[INDEX].line_items","typeLabel":"object[]"},"is_annual":{"type":"boolean","description":"Whether this phase reads the annual or the monthly unit price. Resolved from your annual rate basis, so a caller renders the rate the phase is charged rather than deriving it from the term length.","uniqueKey":"phases.items.[INDEX].is_annual","typeLabel":"boolean"},"billing_schedule":{"type":"array","items":{"type":"object","description":"Billing schedule for a subscription","properties":{"starts_at":{"type":"string","readOnly":true,"description":"Start date of the billing period","isRequired":true,"uniqueKey":"phases.items.[INDEX].billing_schedule.items.[INDEX].starts_at","typeLabel":"string"},"ends_at":{"type":"string","readOnly":true,"description":"End date of the billing period","isRequired":true,"uniqueKey":"phases.items.[INDEX].billing_schedule.items.[INDEX].ends_at","typeLabel":"string"},"sub_total":{"type":"integer","description":"Subtotal for the billing period before taxes and discounts","isRequired":true,"uniqueKey":"phases.items.[INDEX].billing_schedule.items.[INDEX].sub_total","typeLabel":"integer"},"grand_total":{"type":"string","readOnly":true,"description":"Final total for the billing period after taxes and discounts","isRequired":true,"uniqueKey":"phases.items.[INDEX].billing_schedule.items.[INDEX].grand_total","typeLabel":"string"},"grand_total_details":{"type":"string","readOnly":true,"description":"Breakdown containing total discount for the billing period","isRequired":true,"uniqueKey":"phases.items.[INDEX].billing_schedule.items.[INDEX].grand_total_details","typeLabel":"string"}},"required":["ends_at","grand_total","grand_total_details","starts_at","sub_total"],"uniqueKey":"phases.items.[INDEX].billing_schedule.items.[INDEX]","typeLabel":"object"},"description":"The billing periods falling in this phase. Phases own the billing timeline on a multi-phase order, where the order-level `billing_schedule` is omitted.","uniqueKey":"phases.items.[INDEX].billing_schedule","typeLabel":"object[]"}},"required":["billing_frequency","ends_at","grand_total","line_items","payment_terms","phase_position","starts_at","sub_total"],"uniqueKey":"phases.items.[INDEX]","typeLabel":"object"},"description":"Order phases with per-phase dates, billing config, and bricks. Omitted — not empty — unless you have multi-phase orders enabled and the order has phase rows, so treat its absence as 'single phase, read the order-level fields' rather than 'no phases'.","uniqueKey":"phases","typeLabel":"object[]"},"metadata":{"description":"Optional metadata to add to the subscription.","uniqueKey":"metadata","typeLabel":"any"},"attributed_to":{"oneOf":[{"type":"object","description":"The user that owns the subscription (account representative)","required":["email","first_name","last_name","user_id"],"properties":{"user_id":{"type":"string","format":"uuid","readOnly":true,"description":"The ID of the user","isRequired":true,"uniqueKey":"attributed_to.oneOf.0.user_id","typeLabel":"string\u003cuuid>"},"first_name":{"type":"string","description":"The first name of the user","isRequired":true,"uniqueKey":"attributed_to.oneOf.0.first_name","typeLabel":"string"},"last_name":{"type":"string","description":"The last name of the user","isRequired":true,"uniqueKey":"attributed_to.oneOf.0.last_name","typeLabel":"string"},"email":{"type":"string","format":"email","description":"The email of the user","isRequired":true,"uniqueKey":"attributed_to.oneOf.0.email","typeLabel":"string\u003cemail>"}},"uniqueKey":"attributed_to.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"attributed_to.oneOf.1","typeLabel":"null"}],"uniqueKey":"attributed_to","typeLabel":"object | null"},"purchase_order":{"oneOf":[{"type":"object","description":"Purchase order for the subscription. Reported on every invoice generated for it, unless an invoice carries its own override. Null when the subscription has no purchase order.","required":["code"],"properties":{"code":{"oneOf":[{"type":"string","description":"Internal identifier of the Purchase Order provided by Buyer","isRequired":true,"uniqueKey":"purchase_order.oneOf.0.code.oneOf.0","typeLabel":"string"},{"type":"null","description":"Internal identifier of the Purchase Order provided by Buyer","isRequired":true,"uniqueKey":"purchase_order.oneOf.0.code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"purchase_order.oneOf.0.code","typeLabel":"string | null"}},"uniqueKey":"purchase_order.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"purchase_order.oneOf.1","typeLabel":"null"}],"uniqueKey":"purchase_order","typeLabel":"object | null"}},"required":["accounts_payable_emails","auto_renews","billing_frequency","billing_schedule","crm_account_id","crm_opportunity_id","currency","customer","ends_at","grand_total","grand_total_details","line_items","pauses","payment_terms","point_of_contact","products","renewal_contract_period","renewal_status","renewal_total","renews_at","signatory_user","stage","starts_at","state","status","sub_total","subscription_id","terminates_at","termination_reason","time_zone","transaction_method"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"ends_at":"2023-12-25","sub_total":123,"grand_total":123,"line_items":[{"quantity":123,"brick_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","is_unlimited":false,"brick_name":"\u003cstring>","brick_code":"\u003cstring>","sub_total":123,"plan_id":"\u003cstring>","plan_name":"\u003cstring>","grand_total":"\u003cstring>","grand_total_details":"\u003cstring>","tiers_breakdown":[{"quantity":0,"unit_price":"\u003cstring>","sub_total":"\u003cstring>","duration_text":"\u003cstring>"}],"pre_commitment_schedule":"\u003cstring>","discount":[{"rate":"\u003cstring>","amount":123,"renews":false}]}],"billing_schedule":[{"starts_at":"\u003cstring>","ends_at":"\u003cstring>","sub_total":123,"grand_total":"\u003cstring>","grand_total_details":"\u003cstring>"}],"grand_total_details":"\u003cunknown>","subscription_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","customer":{"customer_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","name":"\u003cstring>","legal_name":"\u003cstring>","subscriptions":[{"subscription_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","status":"ACTIVE","state":"ACTIVE","renewal_status":"AUTO_RENEWING","name":"\u003cstring>","starts_at":"2023-12-25","ends_at":"2023-12-25"}],"external_id":"\u003cstring>","address":{"line_1":"\u003cstring>","city":"\u003cstring>","zip":"\u003cstring>","country":"\u003cstring>","line_2":"\u003cstring>","region":"\u003cstring>"},"stripe_customer_id":"\u003cstring>","tax_id":"\u003cstring>"},"crm_account_id":"\u003cstring>","crm_opportunity_id":"\u003cstring>","renews_at":"2023-12-25","status":"ACTIVE","state":"ACTIVE","renewal_status":"AUTO_RENEWING","stage":"BUILDING","transaction_method":"ORDER_FORM","terminates_at":"2023-12-25","termination_reason":"POOR_PRODUCT_MARKET_FIT","time_zone":"\u003cstring>","starts_at":"2023-12-25","billing_frequency":"MONTHLY","point_of_contact":{"person_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","first_name":"\u003cstring>","last_name":"\u003cstring>","email":"jsmith@example.com","role":"\u003cstring>","preferred_name":"\u003cstring>"},"products":[{"name":"\u003cstring>","logo_image":"\u003cstring>"}],"signatory_user":{"person_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","first_name":"\u003cstring>","last_name":"\u003cstring>","email":"jsmith@example.com","role":"\u003cstring>","preferred_name":"\u003cstring>"},"accounts_payable_emails":["jsmith@example.com"],"currency":"USD","payment_terms":123,"auto_renews":true,"renewal_total":123,"renewal_contract_period":123,"pauses":[{"paused_at":"2023-11-07T05:31:56Z","resume_at":"2023-11-07T05:31:56Z"}],"phases":[{"phase_position":123,"starts_at":"2023-12-25","ends_at":"2023-12-25","billing_frequency":"MONTHLY","payment_terms":123,"sub_total":123,"grand_total":123,"line_items":[{"quantity":123,"brick_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","is_unlimited":false,"brick_name":"\u003cstring>","brick_code":"\u003cstring>","sub_total":123,"plan_id":"\u003cstring>","plan_name":"\u003cstring>","grand_total":"\u003cstring>","grand_total_details":"\u003cstring>","tiers_breakdown":[{"quantity":0,"unit_price":"\u003cstring>","sub_total":"\u003cstring>","duration_text":"\u003cstring>"}],"pre_commitment_schedule":"\u003cstring>","discount":[{"rate":"\u003cstring>","amount":123,"renews":false}]}],"is_annual":true,"billing_schedule":[{"starts_at":"\u003cstring>","ends_at":"\u003cstring>","sub_total":123,"grand_total":"\u003cstring>","grand_total_details":"\u003cstring>"}]}],"metadata":"\u003cunknown>","attributed_to":{"user_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","first_name":"\u003cstring>","last_name":"\u003cstring>","email":"jsmith@example.com"},"purchase_order":{"code":"\u003cstring>"}}}},"exampleType":"generated"}},"description":"","exampleType":"generated"},"307aab7f-4897-4d70-ad6c-156cfdc08dc9":{"content":{"application/json":{"schema":{"type":"object","description":"Standardizes API error responses with a consistent structure containing error code and message.","properties":{"error":{"type":"object","description":"The error that caused the request to fail","required":["code","message"],"properties":{"code":{"enum":["ERR_NOT_FOUND","ERR_BAD_REQUEST","ERR_SERVER_ERROR"],"type":"string","x-spec-enum-id":"dc5a5d6feae1b697","description":"Error code indicating the type of error: NOT_FOUND for missing resources, BAD_REQUEST for invalid input, SERVER_ERROR for internal server issues\n\n* `ERR_NOT_FOUND` - ERR_NOT_FOUND\n* `ERR_BAD_REQUEST` - ERR_BAD_REQUEST\n* `ERR_SERVER_ERROR` - ERR_SERVER_ERROR","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable explanation of the error","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"error_id":{"type":"string","format":"uuid","description":"Correlation handle for SERVER_ERROR responses — quote this when contacting support; it joins to the structured server log line for the failure. Not present on 4xx responses.","uniqueKey":"error.error_id","typeLabel":"string\u003cuuid>"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"ERR_NOT_FOUND","message":"\u003cstring>","error_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"}}}},"exampleType":"generated"}},"description":"","exampleType":"generated"}},"security":{"96e2b814-4b2f-4ec1-a062-fb177ecfca77":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-SALESBRICKS-KEY","description":"API key for authentication","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"473a595f-0b07-4538-b033-faf5582d0b46":{"url":"https://api.salesbricks.com/api/v2","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-SALESBRICKS-KEY","description":"API key for authentication","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"X-SALESBRICKS-KEY","type":"string","description":"API key for authentication","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"X-SALESBRICKS-KEY"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"https://api.salesbricks.com/api/v2/openapi.yaml"},"subdomain":"salesbricks","siteName":"Salesbricks","title":"Start a subscription - Salesbricks","relatedPagesConfig":{"enabled":true,"limit":3,"mode":"automatic"},"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-05T23:31:30.912Z","originalFileLocation":"api-reference/subscriptions/start-a-subscription.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Starts a subscription for the specified ID. This endpoint is used to initiate a subscription and trigger the subscription lifecycle. It returns the subscription details after the start process.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Salesbricks\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/salesbricks/Q_HZP6fZfruEcDCT/_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/salesbricks/Q_HZP6fZfruEcDCT/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/salesbricks/Q_HZP6fZfruEcDCT/_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/salesbricks/Q_HZP6fZfruEcDCT/_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/salesbricks/Q_HZP6fZfruEcDCT/_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/salesbricks/Q_HZP6fZfruEcDCT/_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/salesbricks/Q_HZP6fZfruEcDCT/_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/salesbricks/Q_HZP6fZfruEcDCT/_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/salesbricks/Q_HZP6fZfruEcDCT/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Start a subscription - Salesbricks\">\u003cmeta data-mint-head property=\"og:description\" content=\"Starts a subscription for the specified ID. This endpoint is used to initiate a subscription and trigger the subscription lifecycle. It returns the subscription details after the start process.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Salesbricks\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.salesbricks.com/api-reference/subscriptions/start-a-subscription\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://salesbricks.mintlify.site/_mintlify/api/og/v2?division=Subscriptions\u0026amp;title=Start+a+subscription\u0026amp;description=Starts+a+subscription+for+the+specified+ID.+This+endpoint+is+used+to+initiate+a+subscription+and+trigger+the+subscription+lifecycle.+It+returns+the+subscription\u0026amp;theme=c38cf69ba54d28d8add3f8a9\u0026amp;signature=da60ef6cfcc771ad4618149275718321aad99533679b6d0c84bb7e9bbe02214d\">\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=\"Start a subscription - Salesbricks\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Starts a subscription for the specified ID. This endpoint is used to initiate a subscription and trigger the subscription lifecycle. It returns the subscription details after the start process.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://salesbricks.mintlify.site/_mintlify/api/og/v2?division=Subscriptions\u0026amp;title=Start+a+subscription\u0026amp;description=Starts+a+subscription+for+the+specified+ID.+This+endpoint+is+used+to+initiate+a+subscription+and+trigger+the+subscription+lifecycle.+It+returns+the+subscription\u0026amp;theme=c38cf69ba54d28d8add3f8a9\u0026amp;signature=da60ef6cfcc771ad4618149275718321aad99533679b6d0c84bb7e9bbe02214d\">\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/salesbricks/Q_HZP6fZfruEcDCT/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Salesbricks\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#197F78\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.salesbricks.com/api-reference/subscriptions/start-a-subscription\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/subscriptions/start-a-subscription.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.salesbricks.com/#organization\",\"name\":\"Salesbricks\",\"url\":\"https://docs.salesbricks.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/salesbricks/3GVA0K12Q7dXW89y/logo/light.svg?fit=max\u0026auto=format\u0026n=3GVA0K12Q7dXW89y\u0026q=85\u0026s=ead3e65ff72970d53a9cd22de50bd8fc\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.salesbricks.com#website\",\"name\":\"Salesbricks\",\"url\":\"https://docs.salesbricks.com\",\"publisher\":{\"@id\":\"https://docs.salesbricks.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.salesbricks.com/api-reference/subscriptions/start-a-subscription#webpage\",\"url\":\"https://docs.salesbricks.com/api-reference/subscriptions/start-a-subscription\",\"name\":\"Start a subscription\",\"description\":\"Starts a subscription for the specified ID. This endpoint is used to initiate a subscription and trigger the subscription lifecycle. It returns the subscription details after the start process.\",\"dateModified\":\"2026-11-05T23:31:30.912Z\",\"isPartOf\":{\"@id\":\"https://docs.salesbricks.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.salesbricks.com/api-reference/subscriptions/start-a-subscription#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.salesbricks.com/api-reference/subscriptions/start-a-subscription#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"REST API Endpoints\",\"item\":\"https://docs.salesbricks.com/api-reference/customers/list-all-customers\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Subscriptions\",\"item\":\"https://docs.salesbricks.com/api-reference/subscriptions/create-a-subscription\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Start a subscription\",\"item\":\"https://docs.salesbricks.com/api-reference/subscriptions/start-a-subscription\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.salesbricks.com/api-reference/subscriptions/start-a-subscription#apireference\",\"headline\":\"Start a subscription\",\"name\":\"Start a subscription\",\"description\":\"Starts a subscription for the specified ID. This endpoint is used to initiate a subscription and trigger the subscription lifecycle. It returns the subscription details after the start process.\",\"url\":\"https://docs.salesbricks.com/api-reference/subscriptions/start-a-subscription\",\"mainEntityOfPage\":{\"@id\":\"https://docs.salesbricks.com/api-reference/subscriptions/start-a-subscription#webpage\"},\"dateModified\":\"2026-11-05T23:31:30.912Z\",\"publisher\":{\"@id\":\"https://docs.salesbricks.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.salesbricks.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Salesbricks\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Salesbricks","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/quickstart-guide/introduction"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/salesforce/overview"}]},{"tab":"APIs \u0026 Webhooks","groups":[{"group":"APIs","icon":"code","pages":[{"title":"REST API Overview","href":"/api-reference/getting-started/overview"},{"title":"Authentication","href":"/api-reference/getting-started/authentication"},{"title":"Starting a Subscription","href":"/api-reference/getting-started/starting-a-subscription"},{"title":"Idempotent Requests","href":"/api-reference/getting-started/idempotent-requests"},{"title":"GraphQL API (Legacy)","href":"/api-reference/getting-started/graphql"},{"title":"Manage My Subscription","href":"/api-reference/manage-my-subscription"}]},{"group":"REST API Endpoints","icon":"server","pages":[{"group":"Customers","pages":[{"title":"List all customers","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /customers","href":"/api-reference/customers/list-all-customers"},{"title":"Create a customer","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /customers","href":"/api-reference/customers/create-a-customer"},{"title":"Retrieve a customer","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /customers/{customer_id}","href":"/api-reference/customers/retrieve-a-customer"},{"title":"Update a customer","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml patch /customers/{customer_id}","href":"/api-reference/customers/update-a-customer"},{"title":"Search customers","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /customers/search","href":"/api-reference/customers/search-customers"}]},{"group":"Invoices","pages":[{"title":"List all customer invoices","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /customers/{customer_id}/invoices","href":"/api-reference/invoices/list-all-customer-invoices"},{"title":"Create standalone invoice","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /invoices","href":"/api-reference/invoices/create-standalone-invoice"},{"title":"Retrieve an invoice","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /invoices/{invoice_id}","href":"/api-reference/invoices/retrieve-an-invoice"},{"title":"Update an invoice","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml patch /invoices/{invoice_id}","href":"/api-reference/invoices/update-an-invoice"},{"title":"Finalize an invoice","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /invoices/{invoice_id}/finalize","href":"/api-reference/invoices/finalize-an-invoice"},{"title":"Pay an invoice","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /invoices/{invoice_id}/pay","href":"/api-reference/invoices/pay-an-invoice"},{"title":"Create a payment","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /invoices/{invoice_id}/payments","href":"/api-reference/invoices/create-a-payment"},{"title":"Retrieve an invoice PDF","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /invoices/{invoice_id}/pdf","href":"/api-reference/invoices/retrieve-an-invoice-pdf"},{"title":"Regenerate an invoice","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /invoices/{invoice_id}/regenerate","href":"/api-reference/invoices/regenerate-an-invoice"},{"title":"Void an invoice","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /invoices/{invoice_id}/void","href":"/api-reference/invoices/void-an-invoice"},{"title":"Search invoices","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /invoices/search","href":"/api-reference/invoices/search-invoices"},{"title":"List all subscription invoices","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/invoices","href":"/api-reference/invoices/list-all-subscription-invoices"},{"title":"Retrieve next subscription invoice","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/invoices/next","href":"/api-reference/invoices/retrieve-next-subscription-invoice"}]},{"group":"Payment Methods","pages":[{"title":"List all payment methods","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /customers/{customer_id}/payment-methods","href":"/api-reference/payment-methods/list-all-payment-methods"},{"title":"Setup a payment method","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /customers/{customer_id}/payment-methods","href":"/api-reference/payment-methods/setup-a-payment-method"},{"title":"Retrieve default payment method","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /customers/{customer_id}/payment-methods/default","href":"/api-reference/payment-methods/retrieve-default-payment-method"},{"title":"Set default payment method","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml put /customers/{customer_id}/payment-methods/default","href":"/api-reference/payment-methods/set-default-payment-method"},{"title":"Delete a payment method","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml delete /customers/{customer_id}/payment-methods/detail","href":"/api-reference/payment-methods/delete-a-payment-method"},{"title":"List the payment methods for an invoice","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /invoices/{invoice_id}/payment-methods","href":"/api-reference/payment-methods/list-the-payment-methods-for-an-invoice"},{"title":"List all payment methods","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/payment-methods","href":"/api-reference/payment-methods/list-all-payment-methods-1"},{"title":"Setup a payment method","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /subscriptions/{subscription_id}/payment-methods","href":"/api-reference/payment-methods/setup-a-payment-method-1"},{"title":"Retrieve default payment method","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/payment-methods/default","href":"/api-reference/payment-methods/retrieve-default-payment-method-1"},{"title":"Set default payment method","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml put /subscriptions/{subscription_id}/payment-methods/default","href":"/api-reference/payment-methods/set-default-payment-method-1"},{"title":"Delete a payment method","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml delete /subscriptions/{subscription_id}/payment-methods/detail","href":"/api-reference/payment-methods/delete-a-payment-method-1"}]},{"group":"Customer Contacts","pages":[{"title":"Create a customer contact","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /customers/{customer_id}/persons","href":"/api-reference/customer-contacts/create-a-customer-contact"},{"title":"Update a customer contact","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml patch /customers/{customer_id}/persons/{person_id}","href":"/api-reference/customer-contacts/update-a-customer-contact"},{"title":"Search customer contacts","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /persons/search","href":"/api-reference/customer-contacts/search-customer-contacts"}]},{"group":"Discount Coupons","pages":[{"title":"List all discount coupons","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /discount-coupons","href":"/api-reference/discount-coupons/list-all-discount-coupons"},{"title":"Retrieve a discount coupon","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /discount-coupons/{code}","href":"/api-reference/discount-coupons/retrieve-a-discount-coupon"}]},{"group":"Invoice Versions","pages":[{"title":"List all invoice versions","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /invoices/{invoice_id}/versions","href":"/api-reference/invoice-versions/list-all-invoice-versions"}]},{"group":"Legal Entities","pages":[{"title":"List all legal entities","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /legal-entities","href":"/api-reference/legal-entities/list-all-legal-entities"}]},{"group":"Plans","pages":[{"title":"List all plans","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /plans","href":"/api-reference/plans/list-all-plans"},{"title":"Retrieve a plan","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /plans/{plan_id}","href":"/api-reference/plans/retrieve-a-plan"}]},{"group":"Revenue","pages":[{"title":"Get per-subscription revenue by month","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /revenue/subscriptions","href":"/api-reference/revenue/get-per-subscription-revenue-by-month"}]},{"group":"Subscriptions","pages":[{"title":"Create a subscription","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /subscriptions","href":"/api-reference/subscriptions/create-a-subscription"},{"title":"Retrieve a subscription","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}","href":"/api-reference/subscriptions/retrieve-a-subscription"},{"title":"Update a subscription","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml patch /subscriptions/{subscription_id}","href":"/api-reference/subscriptions/update-a-subscription"},{"title":"Retrieve subscription checkout URL","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/checkout","href":"/api-reference/subscriptions/retrieve-subscription-checkout-url"},{"title":"Update a subscription pause","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml put /subscriptions/{subscription_id}/pause","href":"/api-reference/subscriptions/update-a-subscription-pause"},{"title":"Pause a subscription","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /subscriptions/{subscription_id}/pause","href":"/api-reference/subscriptions/pause-a-subscription"},{"title":"Cancel an upcoming subscription pause","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml delete /subscriptions/{subscription_id}/pause","href":"/api-reference/subscriptions/cancel-an-upcoming-subscription-pause"},{"title":"Resume a paused subscription","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /subscriptions/{subscription_id}/resume","href":"/api-reference/subscriptions/resume-a-paused-subscription"},{"title":"Retrieve subscription sign URL","description":"Retrieves a URL for signing a subscription's open order.","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /subscriptions/{subscription_id}/sign","href":"/api-reference/subscriptions/retrieve-subscription-sign-url"},{"title":"Start a subscription","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /subscriptions/{subscription_id}/start","href":"/api-reference/subscriptions/start-a-subscription"},{"title":"Terminate a subscription","description":"Terminates a subscription either immediately or at a specified future date. This endpoint allows for scheduling termination, adding termination notes and an optional reason code, and specifying notification emails for termination alerts.","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /subscriptions/{subscription_id}/terminate","href":"/api-reference/subscriptions/terminate-a-subscription"},{"title":"Estimate a subscription","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /subscriptions/estimate","href":"/api-reference/subscriptions/estimate-a-subscription"}]},{"group":"Subscription Management","pages":[{"title":"Retrieve subscription management URL","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/billing-portal","href":"/api-reference/subscription-management/retrieve-subscription-management-url"}]},{"group":"Subscription State","pages":[{"title":"List all subscription bricks","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/bricks","href":"/api-reference/subscription-state/list-all-subscription-bricks"},{"title":"Retrieve current subscription state","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/current","href":"/api-reference/subscription-state/retrieve-current-subscription-state"},{"title":"Update details for a closed subscription","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml patch /subscriptions/{subscription_id}/current","href":"/api-reference/subscription-state/update-details-for-a-closed-subscription"},{"title":"Retrieve current subscription order form PDF","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/current/pdf","href":"/api-reference/subscription-state/retrieve-current-subscription-order-form-pdf"},{"title":"Retrieve a subscription order form PDF","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/pdf","href":"/api-reference/subscription-state/retrieve-a-subscription-order-form-pdf"}]},{"group":"Usage","pages":[{"title":"Retrieve brick usage","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/bricks/{brick_id}/usage","href":"/api-reference/usage/retrieve-brick-usage"},{"title":"List individual usage entries","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/bricks/{brick_id}/usage/entries","href":"/api-reference/usage/list-individual-usage-entries"},{"title":"Retrieve brick usage time series","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/bricks/{brick_id}/usage/series","href":"/api-reference/usage/retrieve-brick-usage-time-series"},{"title":"Create a usage entry","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /usage/","href":"/api-reference/usage/create-a-usage-entry"},{"title":"Delete a usage entry","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml delete /usage/","href":"/api-reference/usage/delete-a-usage-entry"},{"title":"Update a usage entry","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml patch /usage/","href":"/api-reference/usage/update-a-usage-entry"},{"title":"Get usage transaction details","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /usage/transactions/{transaction_id}/","href":"/api-reference/usage/get-usage-transaction-details"}]},{"group":"Subscription Milestones","pages":[{"title":"List all subscription milestones","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/milestones","href":"/api-reference/subscription-milestones/list-all-subscription-milestones"},{"title":"Complete a subscription milestone","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /subscriptions/{subscription_id}/milestones/{milestone_id}/complete","href":"/api-reference/subscription-milestones/complete-a-subscription-milestone"}]},{"group":"Subscription History","pages":[{"title":"List all subscription orders","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/orders","href":"/api-reference/subscription-history/list-all-subscription-orders"}]},{"group":"Subscription Recasts","pages":[{"title":"List all subscription recast open orders","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/recast","href":"/api-reference/subscription-recasts/list-all-subscription-recast-open-orders"},{"title":"Create a subscription recast","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /subscriptions/{subscription_id}/recast","href":"/api-reference/subscription-recasts/create-a-subscription-recast"},{"title":"Delete a subscription recast","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml delete /subscriptions/{subscription_id}/recast/{order_id}","href":"/api-reference/subscription-recasts/delete-a-subscription-recast"},{"title":"Update a subscription recast","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml patch /subscriptions/{subscription_id}/recast/{order_id}","href":"/api-reference/subscription-recasts/update-a-subscription-recast"},{"title":"Retrieve subscription recast checkout URL","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/recast/{order_id}/checkout","href":"/api-reference/subscription-recasts/retrieve-subscription-recast-checkout-url"},{"title":"Retrieve subscription recast sign URL","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /subscriptions/{subscription_id}/recast/{order_id}/sign","href":"/api-reference/subscription-recasts/retrieve-subscription-recast-sign-url"},{"title":"Start a subscription recast","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /subscriptions/{subscription_id}/recast/{order_id}/start","href":"/api-reference/subscription-recasts/start-a-subscription-recast"},{"title":"Estimate a subscription recast","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /subscriptions/{subscription_id}/recast/estimate","href":"/api-reference/subscription-recasts/estimate-a-subscription-recast"}]},{"group":"Subscription Upgrades","pages":[{"title":"List all subscription upgrade open orders","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/upgrade","href":"/api-reference/subscription-upgrades/list-all-subscription-upgrade-open-orders"},{"title":"Create a subscription upgrade","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /subscriptions/{subscription_id}/upgrade","href":"/api-reference/subscription-upgrades/create-a-subscription-upgrade"},{"title":"Delete a subscription upgrade","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml delete /subscriptions/{subscription_id}/upgrade/{order_id}","href":"/api-reference/subscription-upgrades/delete-a-subscription-upgrade"},{"title":"Update a subscription upgrade","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml patch /subscriptions/{subscription_id}/upgrade/{order_id}","href":"/api-reference/subscription-upgrades/update-a-subscription-upgrade"},{"title":"Retrieve subscription upgrade checkout URL","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml get /subscriptions/{subscription_id}/upgrade/{order_id}/checkout","href":"/api-reference/subscription-upgrades/retrieve-subscription-upgrade-checkout-url"},{"title":"Retrieve subscription upgrade sign URL","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /subscriptions/{subscription_id}/upgrade/{order_id}/sign","href":"/api-reference/subscription-upgrades/retrieve-subscription-upgrade-sign-url"},{"title":"Start a subscription upgrade","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /subscriptions/{subscription_id}/upgrade/{order_id}/start","href":"/api-reference/subscription-upgrades/start-a-subscription-upgrade"},{"title":"Estimate a subscription upgrade","deprecated":null,"version":null,"openapi":"https://api.salesbricks.com/api/v2/openapi.yaml post /subscriptions/{subscription_id}/upgrade/estimate","href":"/api-reference/subscription-upgrades/estimate-a-subscription-upgrade"}]}]},{"group":"Usage","icon":"gauge-high","pages":[{"title":"Overview","href":"/api-reference/usage/overview"},{"title":"Submit a usage entry","openapi":"POST /usage","href":"/api-reference/usage/post"},{"title":"Update a usage entry","openapi":"PATCH /usage","href":"/api-reference/usage/patch"},{"title":"Delete a usage entry","openapi":"DELETE /usage","href":"/api-reference/usage/delete"}]},{"group":"Webhooks","icon":"webhook","pages":[{"title":"Overview","href":"/api-reference/webhooks/overview"},{"title":"Schemas","href":"/api-reference/webhooks/schemas"},{"group":"Order Webhooks","pages":[{"title":"Order Webhook Payload","mode":"wide","href":"/api-reference/webhooks/order/payload"},{"title":"order.stage.change","href":"/api-reference/webhooks/order/stage-change"},{"title":"order.approval.status.changed","href":"/api-reference/webhooks/order/approval-status-changed"},{"title":"order.complete","href":"/api-reference/webhooks/order/complete"},{"title":"order.closed.lost","href":"/api-reference/webhooks/order/closed-lost"},{"title":"order.closed.delete","href":"/api-reference/webhooks/order/closed-delete"},{"title":"order.end","href":"/api-reference/webhooks/order/end"},{"title":"order.new-ramping-period","href":"/api-reference/webhooks/order/new-ramping-period"},{"title":"order.terminated","href":"/api-reference/webhooks/order/terminated"},{"title":"order.reinstated","href":"/api-reference/webhooks/order/reinstated"}]},{"group":"Subscription Webhooks","pages":[{"title":"Subscription Inactive Payload","mode":"wide","href":"/api-reference/webhooks/subscription/payload"},{"title":"subscription.inactive","href":"/api-reference/webhooks/subscription/inactive"}]},{"group":"Invoice Webhooks","pages":[{"title":"Invoice Webhook Payload","mode":"wide","href":"/api-reference/webhooks/invoice/payload"},{"title":"invoice.start","href":"/api-reference/webhooks/invoice/start"},{"title":"invoice.upcoming.due","href":"/api-reference/webhooks/invoice/upcoming-due"},{"title":"invoice.past.due","href":"/api-reference/webhooks/invoice/past-due"},{"title":"invoice.payment.succeeded","href":"/api-reference/webhooks/invoice/payment/succeeded"},{"title":"invoice.payment.failed","href":"/api-reference/webhooks/invoice/payment/failed"},{"title":"invoice.refunded","href":"/api-reference/webhooks/invoice/refunded"},{"title":"invoice.voided","href":"/api-reference/webhooks/invoice/voided"}]},{"group":"Payment Webhooks","pages":[{"title":"Payment Webhook Payload","mode":"wide","href":"/api-reference/webhooks/payment/payload"}]},{"group":"Usage Webhooks","pages":[{"title":"Usage Threshold Payload","mode":"wide","href":"/api-reference/webhooks/usage/payload"},{"title":"usage.threshold.exceeded.precommitment","href":"/api-reference/webhooks/usage/threshold-exceeded-precommitment"},{"title":"usage.threshold.exceeded.units","href":"/api-reference/webhooks/usage/threshold-exceeded-units"},{"title":"usage.threshold.exceeded.money","href":"/api-reference/webhooks/usage/threshold-exceeded-money"}]},{"group":"Plan Webhooks","pages":[{"title":"plan.published","href":"/api-reference/webhooks/plan/published"}]},{"group":"Company Webhooks","pages":[{"title":"Company Webhook Payload","mode":"wide","href":"/api-reference/webhooks/company/payload"},{"title":"company.created","href":"/api-reference/webhooks/company/created"},{"title":"company.updated","href":"/api-reference/webhooks/company/updated"}]},{"group":"Person Webhooks","pages":[{"title":"Person Webhook Payload","mode":"wide","href":"/api-reference/webhooks/person/payload"},{"title":"person.created","href":"/api-reference/webhooks/person/created"},{"title":"person.updated","href":"/api-reference/webhooks/person/updated"}]}]}]},{"tab":"What's new","pages":[{"title":"What's new","href":"/whats-new"}]},{"tab":"Knowledge Base","href":"https://support.salesbricks.com"}]},"basePath":"","title":"Start a subscription - Salesbricks","buildId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","deploymentId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-i2a3QZ8E.js","utils-ChLwp8m0.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DRktVTDc.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-CA2pEs4T.js","snippetPresets-ClQ6XrKD.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-Ct_Lv36y.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-Cn2PYw9e.js","shallow-rkyymjXQ.js","getApiPlaygroundDisplay-BB9vkXtE.js","CodeSnippet-Bm5RU7m1.js","CodeSnippets-BgU9Deuz.js","Page-BUDYNlhG.js","getPastedJson-BD-6NNum.js","icon-8Z6tud2e.js","MethodPill-Tuzr4g3V.js","DuplicateIcon-0ceWFYhN.js","createIcon-FBXow_ST.js","DynamicMarkdown-CD8713Yy.js","SectionHeading-7zgzQbH-.js","axios-vUo_bRtp.js","Markdown-D7Ofw1oz.js","clsx-eKJ4rcii.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CwjSCXIK.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-9EK5IAXV.js"]}