Override the unit price of the product for this checkout session, in cents (e.g. 1500 = $15.00). The product currency is used, and the amount is per unit: with units: 3 and custom_price: 1500 the customer pays 4500. Must be between 100 (one whole unit of the currency) and 99999999. Only supported for one-time payment products. Use this for dynamic pricing models such as pay-what-you-want, donations, or amounts calculated by your application.
Attribute this checkout to an affiliate using the affiliate's referral code (the unique code from their referral link). Use this to manually credit a sale to a specific affiliate when you already hold their code on your backend, instead of relying on referral-link clicks/cookies. The code must belong to an active affiliate of this store; an invalid, inactive, or foreign-store code is rejected.
The per-unit price override (in cents, product currency) this checkout was created with. Only present when the checkout was created with a custom_price. One-time payment products only.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Creem","colors":{"primary":"#FFBE98","light":"#FFBE98","dark":"#B09CFB"},"logo":{"light":"https://mintcdn.com/creem/-AIVGXbrCJu_8i70/logo/light.svg?fit=max\u0026auto=format\u0026n=-AIVGXbrCJu_8i70\u0026q=85\u0026s=686f06f43a3d7e4c0456e22de64c8bae","dark":"https://mintcdn.com/creem/-AIVGXbrCJu_8i70/logo/dark.svg?fit=max\u0026auto=format\u0026n=-AIVGXbrCJu_8i70\u0026q=85\u0026s=7c9135ca8b2365d6ec3728dc087f694d"},"favicon":"https://mintcdn.com/creem/-AIVGXbrCJu_8i70/favicon.svg?fit=max\u0026auto=format\u0026n=-AIVGXbrCJu_8i70\u0026q=85\u0026s=92df9cacbac6c8f17dbeb2d8b6befb93","navbar":{"links":[{"href":"https://creem.io/contact","label":"Support"},{"href":"https://docs.creem.io/llms.txt","label":"llms.txt"},{"href":"https://docs.creem.io/llms-full.txt","label":"llms-full.txt"}],"primary":{"type":"button","label":"Creem","href":"https://creem.io"}},"footer":{"socials":{"x":"https://x.com/creem_io","linkedin":"https://www.linkedin.com/company/creemio"}},"seo":{"metatags":{"twitter:site":"@creem_io","og:site_name":"Creem Documentation","keywords":"merchant of record, payment api, saas billing, subscription management, global payments, MoR, affiliate program, affiliate marketing, referral program"},"indexing":"all"},"integrations":{"posthog":{"apiKey":"phc_placeholder_gabriel_will_provide","apiHost":"https://us.posthog.com"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Community","icon":"discord","href":"https://discord.gg/q3GKZs92Av"},{"anchor":"Blog","icon":"newspaper","href":"https://creem.io/blog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"creem","hasAudioNarration":false,"actualSubdomain":"creem","customDomains":["docs.creem.io"],"gitSource":{"type":"github","owner":"armitage-labs","repo":"creem","deployBranch":"main","contentDirectory":"packages/docs","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ad87d13ace1a45c00d94c14","collectionId":"15af9680-55f9-4b2b-bb57-9dcd35e1de19","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ad87d13ace1a45c00d94c14"},"entitlements":{},"buildId":"6ad87d13ace1a45c00d94c14","clientVersion":"0.0.3966","searchFilterCounts":[{"language":"default","tag":"Documentation","count":99},{"language":"default","tag":"API Reference","count":65},{"language":"default","tag":"Features","count":44},{"language":"default","tag":"Code","count":21},{"language":"default","tag":"Customer Credits","count":19},{"language":"default","tag":"SDKs","count":19},{"language":"default","tag":"Guides","count":18},{"language":"default","tag":"Meters","count":9},{"language":"default","tag":"Get Started","count":9},{"language":"default","tag":"Webhooks","count":8}]},"assistantConfig":{},"hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"editor-nav-generations","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":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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}],"isAtlas":false,"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":"#topbar-cta-button{color:#000}"}],"page":{"pagePath":"api-reference/endpoint/create-checkout","slug":"/api-reference/endpoint/create-checkout","pageMetadata":{"title":"Creates a new checkout session","description":"Create a new checkout session to accept one-time payments or start subscriptions. Returns a checkout URL to redirect customers.","openapi":"post /v1/checkouts","href":"/api-reference/endpoint/create-checkout"},"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: \"Create a new checkout session to accept one-time payments or start subscriptions. Returns a checkout URL to redirect customers.\"\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":"Creates a new checkout session","description":"Create a new checkout session to accept one-time payments or start subscriptions. Returns a checkout URL to redirect customers.","openapi":"post /v1/checkouts","href":"/api-reference/endpoint/create-checkout"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/creem/c0258fabb625b4ba/scripts/generate-api-docs.js"],"openApiReferenceData":{"operation":{"operationId":"createCheckout","x-speakeasy-name-override":"create","summary":"Creates a new checkout session.","description":"Create a new checkout session to accept one-time payments or start subscriptions. Returns a checkout URL to redirect customers.","parameters":[],"requestBody":"40b50a02-e7c7-4081-8a81-dd17b1319dff","responses":{"200":"a5719fb8-a924-499a-b0b3-b3177e74077b","400":"5b3435f1-47f1-4e03-93eb-eddab539bdec","401":"0d35d5ff-155a-49ea-9ff1-71f726f056d6","404":"edc4a772-e9b6-4151-bd6d-5a91ae5c674d"},"tags":["Checkouts"],"security":["e927ab18-d666-4b94-8e26-9d3f20c29042"],"method":"post","type":"path","servers":["ce73d8da-bcf3-4183-ac11-826f6188634a","a3b3db05-e3f5-4845-baed-eca093fbbcd7"],"path":"/v1/checkouts","baseUrlOptions":["https://api.creem.io","https://test-api.creem.io"],"title":"Creates a new checkout session.","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"description":"Create checkout request payload","content":{"application/json":{"schema":{"type":"object","properties":{"product_id":{"type":"string","description":"The ID of the product associated with the checkout session.","example":"prod_1234567890","isRequired":true,"uniqueKey":"product_id","typeLabel":"string"},"request_id":{"type":"string","description":"Identify and track each checkout request.","uniqueKey":"request_id","typeLabel":"string"},"units":{"type":"number","description":"The number of units for the order.","example":1,"uniqueKey":"units","typeLabel":"number"},"custom_price":{"type":"integer","description":"Override the unit price of the product for this checkout session, in cents (e.g. 1500 = $15.00). The product currency is used, and the amount is per unit: with `units: 3` and `custom_price: 1500` the customer pays 4500. Must be between 100 (one whole unit of the currency) and 99999999. Only supported for one-time payment products. Use this for dynamic pricing models such as pay-what-you-want, donations, or amounts calculated by your application.","example":1500,"uniqueKey":"custom_price","typeLabel":"integer"},"discount_code":{"type":"string","description":"Prefill the checkout session with a discount code.","example":"SUMMER2024","uniqueKey":"discount_code","typeLabel":"string"},"affiliate_code":{"type":"string","description":"Attribute this checkout to an affiliate using the affiliate's referral code (the unique code from their referral link). Use this to manually credit a sale to a specific affiliate when you already hold their code on your backend, instead of relying on referral-link clicks/cookies. The code must belong to an active affiliate of this store; an invalid, inactive, or foreign-store code is rejected.","example":"aff_abc123","uniqueKey":"affiliate_code","typeLabel":"string"},"customer":{"type":"object","description":"Customer data for checkout session. This will prefill the customer info on the checkout page.","properties":{"id":{"type":"string","description":"Unique identifier of the customer. You may specify only one of these parameters: id or email.","example":"cust_1234567890","uniqueKey":"customer.id","typeLabel":"string"},"email":{"type":"string","description":"Customer email address. You may only specify one of these parameters: id, email.","example":"user@example.com","uniqueKey":"customer.email","typeLabel":"string"},"name":{"type":"string","description":"Customer full name. Used to prefill the name field on the checkout page.","example":"John Doe","uniqueKey":"customer.name","typeLabel":"string"}},"uniqueKey":"customer","typeLabel":"object"},"custom_fields":{"description":"Collect additional information from your customer using custom fields. Up to 3 fields are supported.","type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"The type of the field.","enum":["text","checkbox"],"example":"text","isRequired":true,"uniqueKey":"custom_fields.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"key":{"type":"string","description":"Unique key for custom field. Must be unique to this field, alphanumeric, and up to 200 characters.","example":"companyName","maxLength":200,"isRequired":true,"uniqueKey":"custom_fields.items.[INDEX].key","typeLabel":"string"},"label":{"type":"string","description":"The label for the field, displayed to the customer, up to 50 characters.","example":"Company Name","maxLength":50,"isRequired":true,"uniqueKey":"custom_fields.items.[INDEX].label","typeLabel":"string"},"optional":{"type":"boolean","description":"Whether the customer is required to complete the field. Defaults to `false`","uniqueKey":"custom_fields.items.[INDEX].optional","typeLabel":"boolean"},"text":{"type":"object","description":"Configuration for text field type.","properties":{"max_length":{"type":"number","description":"Maximum character length constraint for the input.","example":200,"uniqueKey":"custom_fields.items.[INDEX].text.max_length","typeLabel":"number"},"min_length":{"type":"number","description":"Minimum character length requirement for the input.","example":1,"uniqueKey":"custom_fields.items.[INDEX].text.min_length","typeLabel":"number"}},"uniqueKey":"custom_fields.items.[INDEX].text","typeLabel":"object"},"checkbox":{"type":"object","description":"Configuration for checkbox field type.","properties":{"label":{"type":"string","description":"The markdown text to display for the checkbox.","example":"I agree to the [terms and conditions](https://example.com/terms)","uniqueKey":"custom_fields.items.[INDEX].checkbox.label","typeLabel":"string"}},"uniqueKey":"custom_fields.items.[INDEX].checkbox","typeLabel":"object"}},"required":["type","key","label"],"uniqueKey":"custom_fields.items.[INDEX]","typeLabel":"object"},"uniqueKey":"custom_fields","typeLabel":"object[]"},"custom_field":{"description":"DEPRECATED: Use `custom_fields` instead. Collect additional information from your customer using custom fields. Up to 3 fields are supported.","deprecated":true,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"The type of the field.","enum":["text","checkbox"],"example":"text","isRequired":true,"uniqueKey":"custom_field.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"key":{"type":"string","description":"Unique key for custom field. Must be unique to this field, alphanumeric, and up to 200 characters.","example":"companyName","maxLength":200,"isRequired":true,"uniqueKey":"custom_field.items.[INDEX].key","typeLabel":"string"},"label":{"type":"string","description":"The label for the field, displayed to the customer, up to 50 characters.","example":"Company Name","maxLength":50,"isRequired":true,"uniqueKey":"custom_field.items.[INDEX].label","typeLabel":"string"},"optional":{"type":"boolean","description":"Whether the customer is required to complete the field. Defaults to `false`","uniqueKey":"custom_field.items.[INDEX].optional","typeLabel":"boolean"},"text":{"type":"object","description":"Configuration for text field type.","properties":{"max_length":{"type":"number","description":"Maximum character length constraint for the input.","example":200,"uniqueKey":"custom_field.items.[INDEX].text.max_length","typeLabel":"number"},"min_length":{"type":"number","description":"Minimum character length requirement for the input.","example":1,"uniqueKey":"custom_field.items.[INDEX].text.min_length","typeLabel":"number"}},"uniqueKey":"custom_field.items.[INDEX].text","typeLabel":"object"},"checkbox":{"type":"object","description":"Configuration for checkbox field type.","properties":{"label":{"type":"string","description":"The markdown text to display for the checkbox.","example":"I agree to the [terms and conditions](https://example.com/terms)","uniqueKey":"custom_field.items.[INDEX].checkbox.label","typeLabel":"string"}},"uniqueKey":"custom_field.items.[INDEX].checkbox","typeLabel":"object"}},"required":["type","key","label"],"uniqueKey":"custom_field.items.[INDEX]","typeLabel":"object"},"uniqueKey":"custom_field","typeLabel":"object[]"},"success_url":{"type":"string","description":"The URL to which the user will be redirected after the checkout process is completed.","uniqueKey":"success_url","typeLabel":"string"},"metadata":{"type":"object","description":"Metadata for the checkout in the form of key-value pairs","example":{"userId":"user_123","visitCount":42,"lastVisit":"2023-04-01"},"additionalProperties":true,"uniqueKey":"metadata","typeLabel":"object"}},"required":["product_id"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"product_id":"prod_1234567890","request_id":"\u003cstring>","units":1,"custom_price":1500,"discount_code":"SUMMER2024","affiliate_code":"aff_abc123","customer":{"id":"cust_1234567890","email":"user@example.com","name":"John Doe"},"custom_fields":[{"type":"text","key":"companyName","label":"Company Name","optional":true,"text":{"max_length":200,"min_length":1},"checkbox":{"label":"I agree to the [terms and conditions](https://example.com/terms)"}}],"custom_field":[{"type":"text","key":"companyName","label":"Company Name","optional":true,"text":{"max_length":200,"min_length":1},"checkbox":{"label":"I agree to the [terms and conditions](https://example.com/terms)"}}],"success_url":"\u003cstring>","metadata":{"userId":"user_123","visitCount":42,"lastVisit":"2023-04-01"}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"a5719fb8-a924-499a-b0b3-b3177e74077b":{"description":"Successfully created a checkout session","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the object.","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"mode":{"type":"string","description":"String representing the environment.","enum":["test","prod","sandbox"],"isRequired":true,"uniqueKey":"mode","typeLabel":"enum\u003cstring>"},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value.","isRequired":true,"uniqueKey":"object","typeLabel":"string"},"status":{"type":"string","description":"Status of the checkout.","enum":["pending","processing","completed","expired"],"example":"completed","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"product":{"oneOf":[{"type":"string","description":"The product associated with the checkout session.","isRequired":true,"uniqueKey":"product.oneOf.0","typeLabel":"string"},{"type":"object","description":"The product associated with the checkout session.","required":["id","mode","object","name","description","price","currency","billing_type","billing_period","status","tax_mode","tax_category","created_at","updated_at"],"properties":{"id":{"type":"string","description":"Unique identifier for the object.","isRequired":true,"uniqueKey":"product.oneOf.1.id","typeLabel":"string"},"mode":{"type":"string","description":"String representing the environment.","enum":["test","prod","sandbox"],"isRequired":true,"uniqueKey":"product.oneOf.1.mode","typeLabel":"enum\u003cstring>"},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value.","isRequired":true,"uniqueKey":"product.oneOf.1.object","typeLabel":"string"},"name":{"type":"string","description":"The name of the product","isRequired":true,"uniqueKey":"product.oneOf.1.name","typeLabel":"string"},"description":{"type":"string","description":"A brief description of the product","example":"This is a sample product description.","isRequired":true,"uniqueKey":"product.oneOf.1.description","typeLabel":"string"},"price":{"type":"number","description":"The price of the product in cents. 1000 = $10.00","example":400,"isRequired":true,"uniqueKey":"product.oneOf.1.price","typeLabel":"number"},"currency":{"type":"string","description":"Three-letter ISO currency code, in uppercase. Must be a supported currency.","example":"USD","isRequired":true,"uniqueKey":"product.oneOf.1.currency","typeLabel":"string"},"billing_type":{"type":"string","description":"Indicates the billing method for the customer. It can either be a `recurring` billing cycle or a `onetime` payment.","enum":["recurring","onetime"],"example":"recurring","isRequired":true,"uniqueKey":"product.oneOf.1.billing_type","typeLabel":"enum\u003cstring>"},"billing_period":{"type":"string","description":"Billing period","enum":["every-month","every-three-months","every-six-months","every-year","every-day","once","custom"],"example":"every-month","isRequired":true,"uniqueKey":"product.oneOf.1.billing_period","typeLabel":"enum\u003cstring>"},"status":{"type":"string","description":"Lifecycle status of the product: `active` or `archived`.","enum":["active","archived"],"example":"active","isRequired":true,"uniqueKey":"product.oneOf.1.status","typeLabel":"enum\u003cstring>"},"tax_mode":{"type":"string","description":"Specifies the tax calculation mode for the transaction. If set to \"inclusive,\" the tax is included in the price. If set to \"exclusive,\" the tax is added on top of the price.","enum":["inclusive","exclusive"],"example":"inclusive","isRequired":true,"uniqueKey":"product.oneOf.1.tax_mode","typeLabel":"enum\u003cstring>"},"tax_category":{"type":"string","description":"Categorizes the type of product or service for tax purposes. This helps determine the applicable tax rules based on the nature of the item or service.","enum":["saas","digital-goods-service","ebooks"],"example":"saas","isRequired":true,"uniqueKey":"product.oneOf.1.tax_category","typeLabel":"enum\u003cstring>"},"created_at":{"format":"date-time","type":"string","description":"Creation date of the product","example":"2023-01-01T00:00:00Z","isRequired":true,"uniqueKey":"product.oneOf.1.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"format":"date-time","type":"string","description":"Last updated date of the product","example":"2023-01-01T00:00:00Z","isRequired":true,"uniqueKey":"product.oneOf.1.updated_at","typeLabel":"string\u003cdate-time>"},"image_url":{"type":"string","description":"URL of the product image. Only png as jpg are supported","example":"https://example.com/image.jpg","uniqueKey":"product.oneOf.1.image_url","typeLabel":"string"},"image_urls":{"description":"Ordered list of product image URLs. The first entry is the cover image (mirrored in image_url).","example":["https://example.com/image.jpg"],"type":"array","items":{"type":"string","uniqueKey":"product.oneOf.1.image_urls.items.[INDEX]","typeLabel":"string"},"uniqueKey":"product.oneOf.1.image_urls","typeLabel":"string[]"},"features":{"description":"Features of the product.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the feature.","example":"feat_abc123","isRequired":true,"uniqueKey":"product.oneOf.1.features.items.[INDEX].id","typeLabel":"string"},"type":{"type":"string","description":"The type of the feature: `custom` (private note), `file` (downloadable files), `licenseKey` (license key), or `customerCredits` (customer credit grant).","enum":["custom","file","licenseKey","customerCredits"],"example":"licenseKey","isRequired":true,"uniqueKey":"product.oneOf.1.features.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"A brief description of the feature.","example":"Access to premium course materials.","isRequired":true,"uniqueKey":"product.oneOf.1.features.items.[INDEX].description","typeLabel":"string"},"customer_credits":{"oneOf":[{"type":"object","description":"The credit grant behind a `customerCredits` feature. Absent for other feature types.","required":["amount"],"properties":{"amount":{"type":"string","description":"The number of credits to grant. String to preserve BigInt precision.","example":"100","isRequired":true,"uniqueKey":"product.oneOf.1.features.items.[INDEX].customer_credits.oneOf.0.amount","typeLabel":"string"},"unit_label":{"oneOf":[{"type":"string","description":"Optional label for the credit unit (e.g. \"tokens\", \"credits\").","example":"tokens","uniqueKey":"product.oneOf.1.features.items.[INDEX].customer_credits.oneOf.0.unit_label.oneOf.0","typeLabel":"string"},{"type":"null","description":"Optional label for the credit unit (e.g. \"tokens\", \"credits\").","example":"tokens","uniqueKey":"product.oneOf.1.features.items.[INDEX].customer_credits.oneOf.0.unit_label.oneOf.1","typeLabel":"null"}],"uniqueKey":"product.oneOf.1.features.items.[INDEX].customer_credits.oneOf.0.unit_label","typeLabel":"string | null"},"bucket_name":{"oneOf":[{"type":"string","description":"The customer-credit bucket this grant funds — the `name` of the customer's credit account. Set it to a meter bucket (e.g. \"images\") so the credits fund a per-unit metered price; otherwise they land in `default` and metered usage cannot spend them. Distinct from `unit_label`, which is only a display label. On UPDATE the field is tri-state: OMIT it to leave the stored bucket unchanged, send `null` to clear it to the shared `default` wallet, or send a name to set it. On CREATE, omitted or null both mean `default`. A present-but-blank value is rejected.","example":"images","uniqueKey":"product.oneOf.1.features.items.[INDEX].customer_credits.oneOf.0.bucket_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"The customer-credit bucket this grant funds — the `name` of the customer's credit account. Set it to a meter bucket (e.g. \"images\") so the credits fund a per-unit metered price; otherwise they land in `default` and metered usage cannot spend them. Distinct from `unit_label`, which is only a display label. On UPDATE the field is tri-state: OMIT it to leave the stored bucket unchanged, send `null` to clear it to the shared `default` wallet, or send a name to set it. On CREATE, omitted or null both mean `default`. A present-but-blank value is rejected.","example":"images","uniqueKey":"product.oneOf.1.features.items.[INDEX].customer_credits.oneOf.0.bucket_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"product.oneOf.1.features.items.[INDEX].customer_credits.oneOf.0.bucket_name","typeLabel":"string | null"}},"uniqueKey":"product.oneOf.1.features.items.[INDEX].customer_credits.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"product.oneOf.1.features.items.[INDEX].customer_credits.oneOf.1","typeLabel":"null"}],"uniqueKey":"product.oneOf.1.features.items.[INDEX].customer_credits","typeLabel":"object | null"}},"required":["id","type","description"],"uniqueKey":"product.oneOf.1.features.items.[INDEX]","typeLabel":"object"},"uniqueKey":"product.oneOf.1.features","typeLabel":"object[]"},"usage_prices":{"description":"Metered charges billed on top of the base price, one per meter. Present on recurring products that meter usage.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the usage price.","example":"price_abc123","isRequired":true,"uniqueKey":"product.oneOf.1.usage_prices.items.[INDEX].id","typeLabel":"string"},"meter_id":{"type":"string","description":"The meter this charge bills.","example":"mtr_abc123","isRequired":true,"uniqueKey":"product.oneOf.1.usage_prices.items.[INDEX].meter_id","typeLabel":"string"},"unit_price":{"type":"number","description":"Tax-exclusive price per SINGLE meter unit, in minor units of the product currency. \"$20 per 1,000,000 tokens\" is 0.002 (2000 cents / 1,000,000). Fractional values are allowed.","example":0.002,"isRequired":true,"uniqueKey":"product.oneOf.1.usage_prices.items.[INDEX].unit_price","typeLabel":"number"},"free_allowance":{"type":"integer","description":"Meter units free per billing period, per customer, before the charge applies.","example":1000,"isRequired":true,"uniqueKey":"product.oneOf.1.usage_prices.items.[INDEX].free_allowance","typeLabel":"integer"},"settlement_mode":{"type":"string","description":"How the charge settles: `prepaid` debits the customer credit account as usage aggregates; `postpaid` bills at renewal where the store supports it.","enum":["prepaid","postpaid"],"example":"prepaid","isRequired":true,"uniqueKey":"product.oneOf.1.usage_prices.items.[INDEX].settlement_mode","typeLabel":"enum\u003cstring>"},"target_account":{"type":"string","description":"Credit bucket a prepaid charge debits: `shared` (the customer default wallet) or `per_unit` (a bucket named after the meter unit label, or `target_account_name`). Defaults to `shared`.","enum":["shared","per_unit"],"example":"per_unit","isRequired":true,"uniqueKey":"product.oneOf.1.usage_prices.items.[INDEX].target_account","typeLabel":"enum\u003cstring>"},"trial_usage_mode":{"type":"string","description":"Usage metered during a free trial: `free` is not charged, `accrue` is charged when the trial converts. Defaults to `free`.","enum":["free","accrue"],"example":"free","isRequired":true,"uniqueKey":"product.oneOf.1.usage_prices.items.[INDEX].trial_usage_mode","typeLabel":"enum\u003cstring>"},"cap":{"oneOf":[{"type":"integer","description":"Optional ceiling on the charge per billing period, in minor units. Null means uncapped.","example":50000,"uniqueKey":"product.oneOf.1.usage_prices.items.[INDEX].cap.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Optional ceiling on the charge per billing period, in minor units. Null means uncapped.","example":50000,"uniqueKey":"product.oneOf.1.usage_prices.items.[INDEX].cap.oneOf.1","typeLabel":"null"}],"uniqueKey":"product.oneOf.1.usage_prices.items.[INDEX].cap","typeLabel":"integer | null"},"target_account_name":{"oneOf":[{"type":"string","description":"The per-unit bucket this charge debits: the name given on write, or the meter unit label when none was. Null for a `shared` charge.","example":"images","uniqueKey":"product.oneOf.1.usage_prices.items.[INDEX].target_account_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"The per-unit bucket this charge debits: the name given on write, or the meter unit label when none was. Null for a `shared` charge.","example":"images","uniqueKey":"product.oneOf.1.usage_prices.items.[INDEX].target_account_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"product.oneOf.1.usage_prices.items.[INDEX].target_account_name","typeLabel":"string | null"}},"required":["id","meter_id","unit_price","free_allowance","settlement_mode","target_account","trial_usage_mode"],"uniqueKey":"product.oneOf.1.usage_prices.items.[INDEX]","typeLabel":"object"},"uniqueKey":"product.oneOf.1.usage_prices","typeLabel":"object[]"},"recurring_interval":{"oneOf":[{"type":"string","description":"The unit of the recurring billing interval (`day`, `week`, `month`, or `year`). Together with `recurring_interval_count` this is authoritative for renewal timing — a `billing_period` of `custom` cannot be interpreted without it. For presets it is derived from the cadence (e.g. `every-three-months` → `month`). `null` for one-time products.","example":"month","uniqueKey":"product.oneOf.1.recurring_interval.oneOf.0","typeLabel":"string"},{"type":"null","description":"The unit of the recurring billing interval (`day`, `week`, `month`, or `year`). Together with `recurring_interval_count` this is authoritative for renewal timing — a `billing_period` of `custom` cannot be interpreted without it. For presets it is derived from the cadence (e.g. `every-three-months` → `month`). `null` for one-time products.","example":"month","uniqueKey":"product.oneOf.1.recurring_interval.oneOf.1","typeLabel":"null"}],"uniqueKey":"product.oneOf.1.recurring_interval","typeLabel":"string | null"},"recurring_interval_count":{"oneOf":[{"type":"integer","description":"The number of `recurring_interval` units per billing cycle (e.g. `3` with a `month` interval bills every three months). Together with `recurring_interval` this is authoritative for renewal timing. For presets it is derived from the cadence. `null` for one-time products.","example":3,"uniqueKey":"product.oneOf.1.recurring_interval_count.oneOf.0","typeLabel":"integer"},{"type":"null","description":"The number of `recurring_interval` units per billing cycle (e.g. `3` with a `month` interval bills every three months). Together with `recurring_interval` this is authoritative for renewal timing. For presets it is derived from the cadence. `null` for one-time products.","example":3,"uniqueKey":"product.oneOf.1.recurring_interval_count.oneOf.1","typeLabel":"null"}],"uniqueKey":"product.oneOf.1.recurring_interval_count","typeLabel":"integer | null"},"trial_period_days":{"oneOf":[{"type":"integer","description":"Length of the trial period in days. A whole number of days, at least 1. Only supported for recurring products. `null` when the product has no trial.","example":7,"uniqueKey":"product.oneOf.1.trial_period_days.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Length of the trial period in days. A whole number of days, at least 1. Only supported for recurring products. `null` when the product has no trial.","example":7,"uniqueKey":"product.oneOf.1.trial_period_days.oneOf.1","typeLabel":"null"}],"uniqueKey":"product.oneOf.1.trial_period_days","typeLabel":"integer | null"},"trial_price":{"oneOf":[{"type":"integer","description":"Amount charged at checkout to start the trial, instead of a free card verification. In cents (100 = $1.00). Requires a trial period and must be at least 100 and lower than `price`; only supported on standard-priced recurring products without pay-what-you-want. `null` for a free trial and for products without a trial.","example":100,"uniqueKey":"product.oneOf.1.trial_price.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Amount charged at checkout to start the trial, instead of a free card verification. In cents (100 = $1.00). Requires a trial period and must be at least 100 and lower than `price`; only supported on standard-priced recurring products without pay-what-you-want. `null` for a free trial and for products without a trial.","example":100,"uniqueKey":"product.oneOf.1.trial_price.oneOf.1","typeLabel":"null"}],"uniqueKey":"product.oneOf.1.trial_price","typeLabel":"integer | null"},"business_net_pricing":{"type":"boolean","description":"When true, business customers whose valid VAT ID triggers reverse charge pay the price excluding VAT instead of the tax-inclusive price. Only supported for tax-inclusive one-time products; the merchant gives up the VAT portion on those sales. Defaults to false.","example":false,"uniqueKey":"product.oneOf.1.business_net_pricing","typeLabel":"boolean"},"product_url":{"type":"string","description":"The product page you can redirect your customers to for express checkout.","example":"https://creem.io/product/prod_123123123123","uniqueKey":"product.oneOf.1.product_url","typeLabel":"string"},"default_success_url":{"oneOf":[{"type":"string","description":"The URL to which the user will be redirected after successfull payment.","example":"https://example.com/?status=successful","uniqueKey":"product.oneOf.1.default_success_url.oneOf.0","typeLabel":"string"},{"type":"null","description":"The URL to which the user will be redirected after successfull payment.","example":"https://example.com/?status=successful","uniqueKey":"product.oneOf.1.default_success_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"product.oneOf.1.default_success_url","typeLabel":"string | null"},"custom_fields":{"oneOf":[{"description":"Custom fields configured for the product. Collect additional information from your customer during checkout.","type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"The type of the field.","enum":["text","checkbox"],"isRequired":true,"uniqueKey":"product.oneOf.1.custom_fields.oneOf.0.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"key":{"type":"string","description":"Unique key for custom field. Must be unique to this field, alphanumeric, and up to 200 characters.","maxLength":200,"isRequired":true,"uniqueKey":"product.oneOf.1.custom_fields.oneOf.0.items.[INDEX].key","typeLabel":"string"},"label":{"type":"string","description":"The label for the field, displayed to the customer, up to 50 characters","maxLength":200,"isRequired":true,"uniqueKey":"product.oneOf.1.custom_fields.oneOf.0.items.[INDEX].label","typeLabel":"string"},"optional":{"oneOf":[{"type":"boolean","description":"Whether the customer is required to complete the field. Defaults to `false`.","uniqueKey":"product.oneOf.1.custom_fields.oneOf.0.items.[INDEX].optional.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the customer is required to complete the field. Defaults to `false`.","uniqueKey":"product.oneOf.1.custom_fields.oneOf.0.items.[INDEX].optional.oneOf.1","typeLabel":"null"}],"uniqueKey":"product.oneOf.1.custom_fields.oneOf.0.items.[INDEX].optional","typeLabel":"boolean | null"},"text":{"oneOf":[{"type":"object","description":"Configuration for text field type.","properties":{"max_length":{"oneOf":[{"type":"number","description":"Maximum character length constraint for the input.","uniqueKey":"product.oneOf.1.custom_fields.oneOf.0.items.[INDEX].text.oneOf.0.max_length.oneOf.0","typeLabel":"number"},{"type":"null","description":"Maximum character length constraint for the input.","uniqueKey":"product.oneOf.1.custom_fields.oneOf.0.items.[INDEX].text.oneOf.0.max_length.oneOf.1","typeLabel":"null"}],"uniqueKey":"product.oneOf.1.custom_fields.oneOf.0.items.[INDEX].text.oneOf.0.max_length","typeLabel":"number | null"},"minimum_length":{"oneOf":[{"type":"number","description":"Minimum character length requirement for the input.","uniqueKey":"product.oneOf.1.custom_fields.oneOf.0.items.[INDEX].text.oneOf.0.minimum_length.oneOf.0","typeLabel":"number"},{"type":"null","description":"Minimum character length requirement for the input.","uniqueKey":"product.oneOf.1.custom_fields.oneOf.0.items.[INDEX].text.oneOf.0.minimum_length.oneOf.1","typeLabel":"null"}],"uniqueKey":"product.oneOf.1.custom_fields.oneOf.0.items.[INDEX].text.oneOf.0.minimum_length","typeLabel":"number | null"},"value":{"oneOf":[{"type":"string","description":"The value of the input.","uniqueKey":"product.oneOf.1.custom_fields.oneOf.0.items.[INDEX].text.oneOf.0.value.oneOf.0","typeLabel":"string"},{"type":"null","description":"The value of the input.","uniqueKey":"product.oneOf.1.custom_fields.oneOf.0.items.[INDEX].text.oneOf.0.value.oneOf.1","typeLabel":"null"}],"uniqueKey":"product.oneOf.1.custom_fields.oneOf.0.items.[INDEX].text.oneOf.0.value","typeLabel":"string | null"}},"uniqueKey":"product.oneOf.1.custom_fields.oneOf.0.items.[INDEX].text.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"product.oneOf.1.custom_fields.oneOf.0.items.[INDEX].text.oneOf.1","typeLabel":"null"}],"uniqueKey":"product.oneOf.1.custom_fields.oneOf.0.items.[INDEX].text","typeLabel":"object | null"},"checkbox":{"oneOf":[{"type":"object","description":"Configuration for checkbox field type.","properties":{"label":{"oneOf":[{"type":"string","description":"The markdown text to display for the checkbox.","uniqueKey":"product.oneOf.1.custom_fields.oneOf.0.items.[INDEX].checkbox.oneOf.0.label.oneOf.0","typeLabel":"string"},{"type":"null","description":"The markdown text to display for the checkbox.","uniqueKey":"product.oneOf.1.custom_fields.oneOf.0.items.[INDEX].checkbox.oneOf.0.label.oneOf.1","typeLabel":"null"}],"uniqueKey":"product.oneOf.1.custom_fields.oneOf.0.items.[INDEX].checkbox.oneOf.0.label","typeLabel":"string | null"},"value":{"oneOf":[{"type":"boolean","description":"The value of the checkbox (checked or not).","uniqueKey":"product.oneOf.1.custom_fields.oneOf.0.items.[INDEX].checkbox.oneOf.0.value.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"The value of the checkbox (checked or not).","uniqueKey":"product.oneOf.1.custom_fields.oneOf.0.items.[INDEX].checkbox.oneOf.0.value.oneOf.1","typeLabel":"null"}],"uniqueKey":"product.oneOf.1.custom_fields.oneOf.0.items.[INDEX].checkbox.oneOf.0.value","typeLabel":"boolean | null"}},"uniqueKey":"product.oneOf.1.custom_fields.oneOf.0.items.[INDEX].checkbox.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"product.oneOf.1.custom_fields.oneOf.0.items.[INDEX].checkbox.oneOf.1","typeLabel":"null"}],"uniqueKey":"product.oneOf.1.custom_fields.oneOf.0.items.[INDEX].checkbox","typeLabel":"object | null"}},"required":["type","key","label"],"uniqueKey":"product.oneOf.1.custom_fields.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"product.oneOf.1.custom_fields.oneOf.0","typeLabel":"object[]"},{"description":"Custom fields configured for the product. Collect additional information from your customer during checkout.","type":"null","items":{"type":"object","properties":{"type":{"type":"string","description":"The type of the field.","enum":["text","checkbox"]},"key":{"type":"string","description":"Unique key for custom field. Must be unique to this field, alphanumeric, and up to 200 characters.","maxLength":200},"label":{"type":"string","description":"The label for the field, displayed to the customer, up to 50 characters","maxLength":200},"optional":{"oneOf":[{"type":"boolean","description":"Whether the customer is required to complete the field. Defaults to `false`."},{"type":"null","description":"Whether the customer is required to complete the field. Defaults to `false`."}]},"text":{"oneOf":[{"type":"object","description":"Configuration for text field type.","properties":{"max_length":{"oneOf":[{"type":"number","description":"Maximum character length constraint for the input."},{"type":"null","description":"Maximum character length constraint for the input."}]},"minimum_length":{"oneOf":[{"type":"number","description":"Minimum character length requirement for the input."},{"type":"null","description":"Minimum character length requirement for the input."}]},"value":{"oneOf":[{"type":"string","description":"The value of the input."},{"type":"null","description":"The value of the input."}]}}},{"type":"null"}]},"checkbox":{"oneOf":[{"type":"object","description":"Configuration for checkbox field type.","properties":{"label":{"oneOf":[{"type":"string","description":"The markdown text to display for the checkbox."},{"type":"null","description":"The markdown text to display for the checkbox."}]},"value":{"oneOf":[{"type":"boolean","description":"The value of the checkbox (checked or not)."},{"type":"null","description":"The value of the checkbox (checked or not)."}]}}},{"type":"null"}]}},"required":["type","key","label"]},"uniqueKey":"product.oneOf.1.custom_fields.oneOf.1","typeLabel":"null"}],"uniqueKey":"product.oneOf.1.custom_fields","typeLabel":"object[] | null"}},"isRequired":true,"uniqueKey":"product.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"product","typeLabel":"string | object"},"request_id":{"type":"string","description":"Identify and track each checkout request.","uniqueKey":"request_id","typeLabel":"string"},"units":{"type":"number","description":"The number of units for the of the product.","default":1,"uniqueKey":"units","typeLabel":"number"},"custom_price":{"type":"integer","description":"The per-unit price override (in cents, product currency) this checkout was created with. Only present when the checkout was created with a custom_price. One-time payment products only.","example":1500,"uniqueKey":"custom_price","typeLabel":"integer"},"order":{"type":"object","description":"The order associated with the checkout session.","required":["id","mode","object","product","amount","currency","status","type","created_at","updated_at"],"properties":{"id":{"type":"string","description":"Unique identifier for the object.","isRequired":true,"uniqueKey":"order.id","typeLabel":"string"},"mode":{"type":"string","description":"String representing the environment.","enum":["test","prod","sandbox"],"isRequired":true,"uniqueKey":"order.mode","typeLabel":"enum\u003cstring>"},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value.","isRequired":true,"uniqueKey":"order.object","typeLabel":"string"},"product":{"type":"string","description":"The product associated with the order.","isRequired":true,"uniqueKey":"order.product","typeLabel":"string"},"amount":{"type":"number","description":"The total amount of the order in cents. 1000 = $10.00","example":2000,"isRequired":true,"uniqueKey":"order.amount","typeLabel":"number"},"currency":{"type":"string","description":"Three-letter ISO currency code, in uppercase. Must be a supported currency.","example":"USD","isRequired":true,"uniqueKey":"order.currency","typeLabel":"string"},"status":{"type":"string","description":"Current status of the order.","enum":["pending","paid"],"example":"pending","isRequired":true,"uniqueKey":"order.status","typeLabel":"enum\u003cstring>"},"type":{"type":"string","description":"The type of order. This can specify whether it's a regular purchase, subscription, etc.","enum":["recurring","onetime"],"example":"recurring","isRequired":true,"uniqueKey":"order.type","typeLabel":"enum\u003cstring>"},"created_at":{"format":"date-time","type":"string","description":"Creation date of the order","example":"2023-09-13T00:00:00Z","isRequired":true,"uniqueKey":"order.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"format":"date-time","type":"string","description":"Last updated date of the order","example":"2023-09-13T00:00:00Z","isRequired":true,"uniqueKey":"order.updated_at","typeLabel":"string\u003cdate-time>"},"customer":{"oneOf":[{"type":"string","description":"The customer who placed the order.","uniqueKey":"order.customer.oneOf.0","typeLabel":"string"},{"type":"null","description":"The customer who placed the order.","uniqueKey":"order.customer.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.customer","typeLabel":"string | null"},"transaction":{"oneOf":[{"type":"string","description":"The transaction ID of the order","example":"tx_1234567890","uniqueKey":"order.transaction.oneOf.0","typeLabel":"string"},{"type":"null","description":"The transaction ID of the order","example":"tx_1234567890","uniqueKey":"order.transaction.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.transaction","typeLabel":"string | null"},"discount":{"oneOf":[{"type":"string","description":"The discount ID of the order","example":"dis_1234567890","uniqueKey":"order.discount.oneOf.0","typeLabel":"string"},{"type":"null","description":"The discount ID of the order","example":"dis_1234567890","uniqueKey":"order.discount.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.discount","typeLabel":"string | null"},"sub_total":{"type":"number","description":"The subtotal of the order in cents. 1000 = $10.00","example":1800,"uniqueKey":"order.sub_total","typeLabel":"number"},"tax_amount":{"type":"number","description":"The tax amount of the order in cents. 1000 = $10.00","example":200,"uniqueKey":"order.tax_amount","typeLabel":"number"},"discount_amount":{"type":"number","description":"The discount amount of the order in cents. 1000 = $10.00","example":100,"uniqueKey":"order.discount_amount","typeLabel":"number"},"amount_due":{"type":"number","description":"The amount due for the order in cents. 1000 = $10.00","example":1900,"uniqueKey":"order.amount_due","typeLabel":"number"},"amount_paid":{"type":"number","description":"The amount paid for the order in cents. 1000 = $10.00","example":1900,"uniqueKey":"order.amount_paid","typeLabel":"number"},"fx_amount":{"oneOf":[{"type":"number","description":"The amount in the foreign currency, if applicable.","example":15,"uniqueKey":"order.fx_amount.oneOf.0","typeLabel":"number"},{"type":"null","description":"The amount in the foreign currency, if applicable.","example":15,"uniqueKey":"order.fx_amount.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.fx_amount","typeLabel":"number | null"},"fx_currency":{"oneOf":[{"type":"string","description":"Three-letter ISO code of the foreign currency, if applicable.","example":"EUR","uniqueKey":"order.fx_currency.oneOf.0","typeLabel":"string"},{"type":"null","description":"Three-letter ISO code of the foreign currency, if applicable.","example":"EUR","uniqueKey":"order.fx_currency.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.fx_currency","typeLabel":"string | null"},"fx_rate":{"oneOf":[{"type":"number","description":"The exchange rate used for converting between currencies, if applicable.","example":1.2,"uniqueKey":"order.fx_rate.oneOf.0","typeLabel":"number"},{"type":"null","description":"The exchange rate used for converting between currencies, if applicable.","example":1.2,"uniqueKey":"order.fx_rate.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.fx_rate","typeLabel":"number | null"},"affiliate":{"oneOf":[{"type":"string","description":"The affiliate associated with the order, if applicable.","uniqueKey":"order.affiliate.oneOf.0","typeLabel":"string"},{"type":"null","description":"The affiliate associated with the order, if applicable.","uniqueKey":"order.affiliate.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.affiliate","typeLabel":"string | null"}},"uniqueKey":"order","typeLabel":"object"},"subscription":{"oneOf":[{"type":"string","description":"The subscription associated with the checkout session.","uniqueKey":"subscription.oneOf.0","typeLabel":"string"},{"type":"object","description":"The subscription associated with the checkout session.","required":["id","mode","object","product","customer","collection_method","status","created_at","updated_at"],"properties":{"id":{"type":"string","description":"Unique identifier for the object.","isRequired":true,"uniqueKey":"subscription.oneOf.1.id","typeLabel":"string"},"mode":{"type":"string","description":"String representing the environment.","enum":["test","prod","sandbox"],"isRequired":true,"uniqueKey":"subscription.oneOf.1.mode","typeLabel":"enum\u003cstring>"},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value.","example":"subscription","isRequired":true,"uniqueKey":"subscription.oneOf.1.object","typeLabel":"string"},"product":{"oneOf":[{"type":"object","description":"The product associated with the subscription.","required":["id","mode","object","name","description","price","currency","billing_type","billing_period","status","tax_mode","tax_category","created_at","updated_at"],"properties":{"id":{"type":"string","description":"Unique identifier for the object.","isRequired":true,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.id","typeLabel":"string"},"mode":{"type":"string","description":"String representing the environment.","enum":["test","prod","sandbox"],"isRequired":true,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.mode","typeLabel":"enum\u003cstring>"},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value.","isRequired":true,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.object","typeLabel":"string"},"name":{"type":"string","description":"The name of the product","isRequired":true,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.name","typeLabel":"string"},"description":{"type":"string","description":"A brief description of the product","example":"This is a sample product description.","isRequired":true,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.description","typeLabel":"string"},"price":{"type":"number","description":"The price of the product in cents. 1000 = $10.00","example":400,"isRequired":true,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.price","typeLabel":"number"},"currency":{"type":"string","description":"Three-letter ISO currency code, in uppercase. Must be a supported currency.","example":"USD","isRequired":true,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.currency","typeLabel":"string"},"billing_type":{"type":"string","description":"Indicates the billing method for the customer. It can either be a `recurring` billing cycle or a `onetime` payment.","enum":["recurring","onetime"],"example":"recurring","isRequired":true,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.billing_type","typeLabel":"enum\u003cstring>"},"billing_period":{"type":"string","description":"Billing period","enum":["every-month","every-three-months","every-six-months","every-year","every-day","once","custom"],"example":"every-month","isRequired":true,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.billing_period","typeLabel":"enum\u003cstring>"},"status":{"type":"string","description":"Lifecycle status of the product: `active` or `archived`.","enum":["active","archived"],"example":"active","isRequired":true,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.status","typeLabel":"enum\u003cstring>"},"tax_mode":{"type":"string","description":"Specifies the tax calculation mode for the transaction. If set to \"inclusive,\" the tax is included in the price. If set to \"exclusive,\" the tax is added on top of the price.","enum":["inclusive","exclusive"],"example":"inclusive","isRequired":true,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.tax_mode","typeLabel":"enum\u003cstring>"},"tax_category":{"type":"string","description":"Categorizes the type of product or service for tax purposes. This helps determine the applicable tax rules based on the nature of the item or service.","enum":["saas","digital-goods-service","ebooks"],"example":"saas","isRequired":true,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.tax_category","typeLabel":"enum\u003cstring>"},"created_at":{"format":"date-time","type":"string","description":"Creation date of the product","example":"2023-01-01T00:00:00Z","isRequired":true,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"format":"date-time","type":"string","description":"Last updated date of the product","example":"2023-01-01T00:00:00Z","isRequired":true,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.updated_at","typeLabel":"string\u003cdate-time>"},"image_url":{"type":"string","description":"URL of the product image. Only png as jpg are supported","example":"https://example.com/image.jpg","uniqueKey":"subscription.oneOf.1.product.oneOf.0.image_url","typeLabel":"string"},"image_urls":{"description":"Ordered list of product image URLs. The first entry is the cover image (mirrored in image_url).","example":["https://example.com/image.jpg"],"type":"array","items":{"type":"string","uniqueKey":"subscription.oneOf.1.product.oneOf.0.image_urls.items.[INDEX]","typeLabel":"string"},"uniqueKey":"subscription.oneOf.1.product.oneOf.0.image_urls","typeLabel":"string[]"},"features":{"description":"Features of the product.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the feature.","example":"feat_abc123","isRequired":true,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.features.items.[INDEX].id","typeLabel":"string"},"type":{"type":"string","description":"The type of the feature: `custom` (private note), `file` (downloadable files), `licenseKey` (license key), or `customerCredits` (customer credit grant).","enum":["custom","file","licenseKey","customerCredits"],"example":"licenseKey","isRequired":true,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.features.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"A brief description of the feature.","example":"Access to premium course materials.","isRequired":true,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.features.items.[INDEX].description","typeLabel":"string"},"customer_credits":{"oneOf":[{"type":"object","description":"The credit grant behind a `customerCredits` feature. Absent for other feature types.","required":["amount"],"properties":{"amount":{"type":"string","description":"The number of credits to grant. String to preserve BigInt precision.","example":"100","isRequired":true,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.features.items.[INDEX].customer_credits.oneOf.0.amount","typeLabel":"string"},"unit_label":{"oneOf":[{"type":"string","description":"Optional label for the credit unit (e.g. \"tokens\", \"credits\").","example":"tokens","uniqueKey":"subscription.oneOf.1.product.oneOf.0.features.items.[INDEX].customer_credits.oneOf.0.unit_label.oneOf.0","typeLabel":"string"},{"type":"null","description":"Optional label for the credit unit (e.g. \"tokens\", \"credits\").","example":"tokens","uniqueKey":"subscription.oneOf.1.product.oneOf.0.features.items.[INDEX].customer_credits.oneOf.0.unit_label.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.oneOf.1.product.oneOf.0.features.items.[INDEX].customer_credits.oneOf.0.unit_label","typeLabel":"string | null"},"bucket_name":{"oneOf":[{"type":"string","description":"The customer-credit bucket this grant funds — the `name` of the customer's credit account. Set it to a meter bucket (e.g. \"images\") so the credits fund a per-unit metered price; otherwise they land in `default` and metered usage cannot spend them. Distinct from `unit_label`, which is only a display label. On UPDATE the field is tri-state: OMIT it to leave the stored bucket unchanged, send `null` to clear it to the shared `default` wallet, or send a name to set it. On CREATE, omitted or null both mean `default`. A present-but-blank value is rejected.","example":"images","uniqueKey":"subscription.oneOf.1.product.oneOf.0.features.items.[INDEX].customer_credits.oneOf.0.bucket_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"The customer-credit bucket this grant funds — the `name` of the customer's credit account. Set it to a meter bucket (e.g. \"images\") so the credits fund a per-unit metered price; otherwise they land in `default` and metered usage cannot spend them. Distinct from `unit_label`, which is only a display label. On UPDATE the field is tri-state: OMIT it to leave the stored bucket unchanged, send `null` to clear it to the shared `default` wallet, or send a name to set it. On CREATE, omitted or null both mean `default`. A present-but-blank value is rejected.","example":"images","uniqueKey":"subscription.oneOf.1.product.oneOf.0.features.items.[INDEX].customer_credits.oneOf.0.bucket_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.oneOf.1.product.oneOf.0.features.items.[INDEX].customer_credits.oneOf.0.bucket_name","typeLabel":"string | null"}},"uniqueKey":"subscription.oneOf.1.product.oneOf.0.features.items.[INDEX].customer_credits.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"subscription.oneOf.1.product.oneOf.0.features.items.[INDEX].customer_credits.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.oneOf.1.product.oneOf.0.features.items.[INDEX].customer_credits","typeLabel":"object | null"}},"required":["id","type","description"],"uniqueKey":"subscription.oneOf.1.product.oneOf.0.features.items.[INDEX]","typeLabel":"object"},"uniqueKey":"subscription.oneOf.1.product.oneOf.0.features","typeLabel":"object[]"},"usage_prices":{"description":"Metered charges billed on top of the base price, one per meter. Present on recurring products that meter usage.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the usage price.","example":"price_abc123","isRequired":true,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.usage_prices.items.[INDEX].id","typeLabel":"string"},"meter_id":{"type":"string","description":"The meter this charge bills.","example":"mtr_abc123","isRequired":true,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.usage_prices.items.[INDEX].meter_id","typeLabel":"string"},"unit_price":{"type":"number","description":"Tax-exclusive price per SINGLE meter unit, in minor units of the product currency. \"$20 per 1,000,000 tokens\" is 0.002 (2000 cents / 1,000,000). Fractional values are allowed.","example":0.002,"isRequired":true,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.usage_prices.items.[INDEX].unit_price","typeLabel":"number"},"free_allowance":{"type":"integer","description":"Meter units free per billing period, per customer, before the charge applies.","example":1000,"isRequired":true,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.usage_prices.items.[INDEX].free_allowance","typeLabel":"integer"},"settlement_mode":{"type":"string","description":"How the charge settles: `prepaid` debits the customer credit account as usage aggregates; `postpaid` bills at renewal where the store supports it.","enum":["prepaid","postpaid"],"example":"prepaid","isRequired":true,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.usage_prices.items.[INDEX].settlement_mode","typeLabel":"enum\u003cstring>"},"target_account":{"type":"string","description":"Credit bucket a prepaid charge debits: `shared` (the customer default wallet) or `per_unit` (a bucket named after the meter unit label, or `target_account_name`). Defaults to `shared`.","enum":["shared","per_unit"],"example":"per_unit","isRequired":true,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.usage_prices.items.[INDEX].target_account","typeLabel":"enum\u003cstring>"},"trial_usage_mode":{"type":"string","description":"Usage metered during a free trial: `free` is not charged, `accrue` is charged when the trial converts. Defaults to `free`.","enum":["free","accrue"],"example":"free","isRequired":true,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.usage_prices.items.[INDEX].trial_usage_mode","typeLabel":"enum\u003cstring>"},"cap":{"oneOf":[{"type":"integer","description":"Optional ceiling on the charge per billing period, in minor units. Null means uncapped.","example":50000,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.usage_prices.items.[INDEX].cap.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Optional ceiling on the charge per billing period, in minor units. Null means uncapped.","example":50000,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.usage_prices.items.[INDEX].cap.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.oneOf.1.product.oneOf.0.usage_prices.items.[INDEX].cap","typeLabel":"integer | null"},"target_account_name":{"oneOf":[{"type":"string","description":"The per-unit bucket this charge debits: the name given on write, or the meter unit label when none was. Null for a `shared` charge.","example":"images","uniqueKey":"subscription.oneOf.1.product.oneOf.0.usage_prices.items.[INDEX].target_account_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"The per-unit bucket this charge debits: the name given on write, or the meter unit label when none was. Null for a `shared` charge.","example":"images","uniqueKey":"subscription.oneOf.1.product.oneOf.0.usage_prices.items.[INDEX].target_account_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.oneOf.1.product.oneOf.0.usage_prices.items.[INDEX].target_account_name","typeLabel":"string | null"}},"required":["id","meter_id","unit_price","free_allowance","settlement_mode","target_account","trial_usage_mode"],"uniqueKey":"subscription.oneOf.1.product.oneOf.0.usage_prices.items.[INDEX]","typeLabel":"object"},"uniqueKey":"subscription.oneOf.1.product.oneOf.0.usage_prices","typeLabel":"object[]"},"recurring_interval":{"oneOf":[{"type":"string","description":"The unit of the recurring billing interval (`day`, `week`, `month`, or `year`). Together with `recurring_interval_count` this is authoritative for renewal timing — a `billing_period` of `custom` cannot be interpreted without it. For presets it is derived from the cadence (e.g. `every-three-months` → `month`). `null` for one-time products.","example":"month","uniqueKey":"subscription.oneOf.1.product.oneOf.0.recurring_interval.oneOf.0","typeLabel":"string"},{"type":"null","description":"The unit of the recurring billing interval (`day`, `week`, `month`, or `year`). Together with `recurring_interval_count` this is authoritative for renewal timing — a `billing_period` of `custom` cannot be interpreted without it. For presets it is derived from the cadence (e.g. `every-three-months` → `month`). `null` for one-time products.","example":"month","uniqueKey":"subscription.oneOf.1.product.oneOf.0.recurring_interval.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.oneOf.1.product.oneOf.0.recurring_interval","typeLabel":"string | null"},"recurring_interval_count":{"oneOf":[{"type":"integer","description":"The number of `recurring_interval` units per billing cycle (e.g. `3` with a `month` interval bills every three months). Together with `recurring_interval` this is authoritative for renewal timing. For presets it is derived from the cadence. `null` for one-time products.","example":3,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.recurring_interval_count.oneOf.0","typeLabel":"integer"},{"type":"null","description":"The number of `recurring_interval` units per billing cycle (e.g. `3` with a `month` interval bills every three months). Together with `recurring_interval` this is authoritative for renewal timing. For presets it is derived from the cadence. `null` for one-time products.","example":3,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.recurring_interval_count.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.oneOf.1.product.oneOf.0.recurring_interval_count","typeLabel":"integer | null"},"trial_period_days":{"oneOf":[{"type":"integer","description":"Length of the trial period in days. A whole number of days, at least 1. Only supported for recurring products. `null` when the product has no trial.","example":7,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.trial_period_days.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Length of the trial period in days. A whole number of days, at least 1. Only supported for recurring products. `null` when the product has no trial.","example":7,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.trial_period_days.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.oneOf.1.product.oneOf.0.trial_period_days","typeLabel":"integer | null"},"trial_price":{"oneOf":[{"type":"integer","description":"Amount charged at checkout to start the trial, instead of a free card verification. In cents (100 = $1.00). Requires a trial period and must be at least 100 and lower than `price`; only supported on standard-priced recurring products without pay-what-you-want. `null` for a free trial and for products without a trial.","example":100,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.trial_price.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Amount charged at checkout to start the trial, instead of a free card verification. In cents (100 = $1.00). Requires a trial period and must be at least 100 and lower than `price`; only supported on standard-priced recurring products without pay-what-you-want. `null` for a free trial and for products without a trial.","example":100,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.trial_price.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.oneOf.1.product.oneOf.0.trial_price","typeLabel":"integer | null"},"business_net_pricing":{"type":"boolean","description":"When true, business customers whose valid VAT ID triggers reverse charge pay the price excluding VAT instead of the tax-inclusive price. Only supported for tax-inclusive one-time products; the merchant gives up the VAT portion on those sales. Defaults to false.","example":false,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.business_net_pricing","typeLabel":"boolean"},"product_url":{"type":"string","description":"The product page you can redirect your customers to for express checkout.","example":"https://creem.io/product/prod_123123123123","uniqueKey":"subscription.oneOf.1.product.oneOf.0.product_url","typeLabel":"string"},"default_success_url":{"oneOf":[{"type":"string","description":"The URL to which the user will be redirected after successfull payment.","example":"https://example.com/?status=successful","uniqueKey":"subscription.oneOf.1.product.oneOf.0.default_success_url.oneOf.0","typeLabel":"string"},{"type":"null","description":"The URL to which the user will be redirected after successfull payment.","example":"https://example.com/?status=successful","uniqueKey":"subscription.oneOf.1.product.oneOf.0.default_success_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.oneOf.1.product.oneOf.0.default_success_url","typeLabel":"string | null"},"custom_fields":{"oneOf":[{"description":"Custom fields configured for the product. Collect additional information from your customer during checkout.","type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"The type of the field.","enum":["text","checkbox"],"isRequired":true,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.custom_fields.oneOf.0.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"key":{"type":"string","description":"Unique key for custom field. Must be unique to this field, alphanumeric, and up to 200 characters.","maxLength":200,"isRequired":true,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.custom_fields.oneOf.0.items.[INDEX].key","typeLabel":"string"},"label":{"type":"string","description":"The label for the field, displayed to the customer, up to 50 characters","maxLength":200,"isRequired":true,"uniqueKey":"subscription.oneOf.1.product.oneOf.0.custom_fields.oneOf.0.items.[INDEX].label","typeLabel":"string"},"optional":{"oneOf":[{"type":"boolean","description":"Whether the customer is required to complete the field. Defaults to `false`.","uniqueKey":"subscription.oneOf.1.product.oneOf.0.custom_fields.oneOf.0.items.[INDEX].optional.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the customer is required to complete the field. Defaults to `false`.","uniqueKey":"subscription.oneOf.1.product.oneOf.0.custom_fields.oneOf.0.items.[INDEX].optional.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.oneOf.1.product.oneOf.0.custom_fields.oneOf.0.items.[INDEX].optional","typeLabel":"boolean | null"},"text":{"oneOf":[{"type":"object","description":"Configuration for text field type.","properties":{"max_length":{"oneOf":[{"type":"number","description":"Maximum character length constraint for the input.","uniqueKey":"subscription.oneOf.1.product.oneOf.0.custom_fields.oneOf.0.items.[INDEX].text.oneOf.0.max_length.oneOf.0","typeLabel":"number"},{"type":"null","description":"Maximum character length constraint for the input.","uniqueKey":"subscription.oneOf.1.product.oneOf.0.custom_fields.oneOf.0.items.[INDEX].text.oneOf.0.max_length.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.oneOf.1.product.oneOf.0.custom_fields.oneOf.0.items.[INDEX].text.oneOf.0.max_length","typeLabel":"number | null"},"minimum_length":{"oneOf":[{"type":"number","description":"Minimum character length requirement for the input.","uniqueKey":"subscription.oneOf.1.product.oneOf.0.custom_fields.oneOf.0.items.[INDEX].text.oneOf.0.minimum_length.oneOf.0","typeLabel":"number"},{"type":"null","description":"Minimum character length requirement for the input.","uniqueKey":"subscription.oneOf.1.product.oneOf.0.custom_fields.oneOf.0.items.[INDEX].text.oneOf.0.minimum_length.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.oneOf.1.product.oneOf.0.custom_fields.oneOf.0.items.[INDEX].text.oneOf.0.minimum_length","typeLabel":"number | null"},"value":{"oneOf":[{"type":"string","description":"The value of the input.","uniqueKey":"subscription.oneOf.1.product.oneOf.0.custom_fields.oneOf.0.items.[INDEX].text.oneOf.0.value.oneOf.0","typeLabel":"string"},{"type":"null","description":"The value of the input.","uniqueKey":"subscription.oneOf.1.product.oneOf.0.custom_fields.oneOf.0.items.[INDEX].text.oneOf.0.value.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.oneOf.1.product.oneOf.0.custom_fields.oneOf.0.items.[INDEX].text.oneOf.0.value","typeLabel":"string | null"}},"uniqueKey":"subscription.oneOf.1.product.oneOf.0.custom_fields.oneOf.0.items.[INDEX].text.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"subscription.oneOf.1.product.oneOf.0.custom_fields.oneOf.0.items.[INDEX].text.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.oneOf.1.product.oneOf.0.custom_fields.oneOf.0.items.[INDEX].text","typeLabel":"object | null"},"checkbox":{"oneOf":[{"type":"object","description":"Configuration for checkbox field type.","properties":{"label":{"oneOf":[{"type":"string","description":"The markdown text to display for the checkbox.","uniqueKey":"subscription.oneOf.1.product.oneOf.0.custom_fields.oneOf.0.items.[INDEX].checkbox.oneOf.0.label.oneOf.0","typeLabel":"string"},{"type":"null","description":"The markdown text to display for the checkbox.","uniqueKey":"subscription.oneOf.1.product.oneOf.0.custom_fields.oneOf.0.items.[INDEX].checkbox.oneOf.0.label.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.oneOf.1.product.oneOf.0.custom_fields.oneOf.0.items.[INDEX].checkbox.oneOf.0.label","typeLabel":"string | null"},"value":{"oneOf":[{"type":"boolean","description":"The value of the checkbox (checked or not).","uniqueKey":"subscription.oneOf.1.product.oneOf.0.custom_fields.oneOf.0.items.[INDEX].checkbox.oneOf.0.value.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"The value of the checkbox (checked or not).","uniqueKey":"subscription.oneOf.1.product.oneOf.0.custom_fields.oneOf.0.items.[INDEX].checkbox.oneOf.0.value.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.oneOf.1.product.oneOf.0.custom_fields.oneOf.0.items.[INDEX].checkbox.oneOf.0.value","typeLabel":"boolean | null"}},"uniqueKey":"subscription.oneOf.1.product.oneOf.0.custom_fields.oneOf.0.items.[INDEX].checkbox.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"subscription.oneOf.1.product.oneOf.0.custom_fields.oneOf.0.items.[INDEX].checkbox.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.oneOf.1.product.oneOf.0.custom_fields.oneOf.0.items.[INDEX].checkbox","typeLabel":"object | null"}},"required":["type","key","label"],"uniqueKey":"subscription.oneOf.1.product.oneOf.0.custom_fields.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"subscription.oneOf.1.product.oneOf.0.custom_fields.oneOf.0","typeLabel":"object[]"},{"description":"Custom fields configured for the product. Collect additional information from your customer during checkout.","type":"null","items":{"type":"object","properties":{"type":{"type":"string","description":"The type of the field.","enum":["text","checkbox"]},"key":{"type":"string","description":"Unique key for custom field. Must be unique to this field, alphanumeric, and up to 200 characters.","maxLength":200},"label":{"type":"string","description":"The label for the field, displayed to the customer, up to 50 characters","maxLength":200},"optional":{"oneOf":[{"type":"boolean","description":"Whether the customer is required to complete the field. Defaults to `false`."},{"type":"null","description":"Whether the customer is required to complete the field. Defaults to `false`."}]},"text":{"oneOf":[{"type":"object","description":"Configuration for text field type.","properties":{"max_length":{"oneOf":[{"type":"number","description":"Maximum character length constraint for the input."},{"type":"null","description":"Maximum character length constraint for the input."}]},"minimum_length":{"oneOf":[{"type":"number","description":"Minimum character length requirement for the input."},{"type":"null","description":"Minimum character length requirement for the input."}]},"value":{"oneOf":[{"type":"string","description":"The value of the input."},{"type":"null","description":"The value of the input."}]}}},{"type":"null"}]},"checkbox":{"oneOf":[{"type":"object","description":"Configuration for checkbox field type.","properties":{"label":{"oneOf":[{"type":"string","description":"The markdown text to display for the checkbox."},{"type":"null","description":"The markdown text to display for the checkbox."}]},"value":{"oneOf":[{"type":"boolean","description":"The value of the checkbox (checked or not)."},{"type":"null","description":"The value of the checkbox (checked or not)."}]}}},{"type":"null"}]}},"required":["type","key","label"]},"uniqueKey":"subscription.oneOf.1.product.oneOf.0.custom_fields.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.oneOf.1.product.oneOf.0.custom_fields","typeLabel":"object[] | null"}},"isRequired":true,"uniqueKey":"subscription.oneOf.1.product.oneOf.0","typeLabel":"object"},{"type":"string","description":"The product associated with the subscription.","isRequired":true,"uniqueKey":"subscription.oneOf.1.product.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"subscription.oneOf.1.product","typeLabel":"object | string"},"customer":{"oneOf":[{"type":"object","description":"The customer who owns the subscription.","required":["id","mode","object","email","country","created_at","updated_at"],"properties":{"id":{"type":"string","description":"Unique identifier for the object.","isRequired":true,"uniqueKey":"subscription.oneOf.1.customer.oneOf.0.id","typeLabel":"string"},"mode":{"type":"string","description":"String representing the environment.","enum":["test","prod","sandbox"],"isRequired":true,"uniqueKey":"subscription.oneOf.1.customer.oneOf.0.mode","typeLabel":"enum\u003cstring>"},"object":{"type":"string","description":"String representing the object’s type. Objects of the same type share the same value.","isRequired":true,"uniqueKey":"subscription.oneOf.1.customer.oneOf.0.object","typeLabel":"string"},"email":{"type":"string","description":"Customer email address.","example":"user@example.com","isRequired":true,"uniqueKey":"subscription.oneOf.1.customer.oneOf.0.email","typeLabel":"string"},"country":{"oneOf":[{"type":"string","description":"The ISO 3166-1 alpha-2 country code for the customer.","example":"US","pattern":"^[A-Z]{2}$","isRequired":true,"uniqueKey":"subscription.oneOf.1.customer.oneOf.0.country.oneOf.0","typeLabel":"string"},{"type":"null","description":"The ISO 3166-1 alpha-2 country code for the customer.","example":"US","pattern":"^[A-Z]{2}$","isRequired":true,"uniqueKey":"subscription.oneOf.1.customer.oneOf.0.country.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"subscription.oneOf.1.customer.oneOf.0.country","typeLabel":"string | null"},"created_at":{"format":"date-time","type":"string","description":"Creation date of the customer","example":"2023-01-01T00:00:00Z","isRequired":true,"uniqueKey":"subscription.oneOf.1.customer.oneOf.0.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"format":"date-time","type":"string","description":"Last updated date of the customer","example":"2023-01-01T00:00:00Z","isRequired":true,"uniqueKey":"subscription.oneOf.1.customer.oneOf.0.updated_at","typeLabel":"string\u003cdate-time>"},"name":{"oneOf":[{"type":"string","description":"Customer name.","example":"John Doe","uniqueKey":"subscription.oneOf.1.customer.oneOf.0.name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Customer name.","example":"John Doe","uniqueKey":"subscription.oneOf.1.customer.oneOf.0.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.oneOf.1.customer.oneOf.0.name","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"Additional metadata associated with the customer.","example":{"key":"value"},"additionalProperties":true,"uniqueKey":"subscription.oneOf.1.customer.oneOf.0.metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Additional metadata associated with the customer.","example":{"key":"value"},"additionalProperties":true,"uniqueKey":"subscription.oneOf.1.customer.oneOf.0.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.oneOf.1.customer.oneOf.0.metadata","typeLabel":"object | null"},"external_id":{"oneOf":[{"type":"string","description":"Your own id for this customer, when you have set one — usage ingestion resolves `external_customer_id` against it.","example":"user-42","uniqueKey":"subscription.oneOf.1.customer.oneOf.0.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Your own id for this customer, when you have set one — usage ingestion resolves `external_customer_id` against it.","example":"user-42","uniqueKey":"subscription.oneOf.1.customer.oneOf.0.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.oneOf.1.customer.oneOf.0.external_id","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"subscription.oneOf.1.customer.oneOf.0","typeLabel":"object"},{"type":"string","description":"The customer who owns the subscription.","isRequired":true,"uniqueKey":"subscription.oneOf.1.customer.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"subscription.oneOf.1.customer","typeLabel":"object | string"},"collection_method":{"type":"string","description":"The method used for collecting payments for the subscription.","enum":["charge_automatically"],"example":"charge_automatically","isRequired":true,"uniqueKey":"subscription.oneOf.1.collection_method","typeLabel":"enum\u003cstring>"},"status":{"type":"string","description":"The current status of the subscription.","enum":["active","canceled","unpaid","paused","trialing","scheduled_cancel","past_due"],"example":"active","isRequired":true,"uniqueKey":"subscription.oneOf.1.status","typeLabel":"enum\u003cstring>"},"created_at":{"format":"date-time","type":"string","description":"The date and time when the subscription was created.","example":"2024-01-01T00:00:00Z","isRequired":true,"uniqueKey":"subscription.oneOf.1.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","description":"The date and time when the subscription was last updated.","example":"2024-09-12T12:34:56Z","format":"date-time","isRequired":true,"uniqueKey":"subscription.oneOf.1.updated_at","typeLabel":"string\u003cdate-time>"},"items":{"description":"Subscription items.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the object.","isRequired":true,"uniqueKey":"subscription.oneOf.1.\\items.items.[INDEX].id","typeLabel":"string"},"mode":{"type":"string","description":"String representing the environment.","enum":["test","prod","sandbox"],"isRequired":true,"uniqueKey":"subscription.oneOf.1.\\items.items.[INDEX].mode","typeLabel":"enum\u003cstring>"},"object":{"type":"string","description":"String representing the object’s type. Objects of the same type share the same value.","isRequired":true,"uniqueKey":"subscription.oneOf.1.\\items.items.[INDEX].object","typeLabel":"string"},"product_id":{"type":"string","description":"The ID of the product associated with the subscription item.","uniqueKey":"subscription.oneOf.1.\\items.items.[INDEX].product_id","typeLabel":"string"},"price_id":{"type":"string","description":"The ID of the price associated with the subscription item.","uniqueKey":"subscription.oneOf.1.\\items.items.[INDEX].price_id","typeLabel":"string"},"units":{"oneOf":[{"type":"number","description":"The number of units for the subscription item.","uniqueKey":"subscription.oneOf.1.\\items.items.[INDEX].units.oneOf.0","typeLabel":"number"},{"type":"null","description":"The number of units for the subscription item.","uniqueKey":"subscription.oneOf.1.\\items.items.[INDEX].units.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.oneOf.1.\\items.items.[INDEX].units","typeLabel":"number | null"}},"required":["id","mode","object"],"uniqueKey":"subscription.oneOf.1.\\items.items.[INDEX]","typeLabel":"object"},"uniqueKey":"subscription.oneOf.1.\\items","typeLabel":"object[]"},"last_transaction_id":{"type":"string","description":"The ID of the last paid transaction.","example":"tran_3e6Z6TzvHKdsjEgXnGDEp0","uniqueKey":"subscription.oneOf.1.last_transaction_id","typeLabel":"string"},"last_transaction":{"type":"object","description":"The last paid transaction.","required":["id","mode","object","amount","currency","type","status","created_at"],"properties":{"id":{"type":"string","description":"Unique identifier for the object.","isRequired":true,"uniqueKey":"subscription.oneOf.1.last_transaction.id","typeLabel":"string"},"mode":{"type":"string","description":"String representing the environment.","enum":["test","prod","sandbox"],"isRequired":true,"uniqueKey":"subscription.oneOf.1.last_transaction.mode","typeLabel":"enum\u003cstring>"},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value.","example":"transaction","isRequired":true,"uniqueKey":"subscription.oneOf.1.last_transaction.object","typeLabel":"string"},"amount":{"type":"number","description":"The transaction amount in cents. 1000 = $10.00","example":2000,"isRequired":true,"uniqueKey":"subscription.oneOf.1.last_transaction.amount","typeLabel":"number"},"currency":{"type":"string","description":"Three-letter ISO currency code, in uppercase. Must be a supported currency.","example":"USD","isRequired":true,"uniqueKey":"subscription.oneOf.1.last_transaction.currency","typeLabel":"string"},"type":{"type":"string","description":"The type of transaction. payment(one time payments) and invoice(subscription)","enum":["payment","invoice"],"isRequired":true,"uniqueKey":"subscription.oneOf.1.last_transaction.type","typeLabel":"enum\u003cstring>"},"status":{"type":"string","description":"Status of the transaction.","enum":["pending","paid","refunded","partialRefund","chargedBack","uncollectible","declined","canceled","void"],"isRequired":true,"uniqueKey":"subscription.oneOf.1.last_transaction.status","typeLabel":"enum\u003cstring>"},"created_at":{"type":"number","description":"Creation date of the order as timestamp","isRequired":true,"uniqueKey":"subscription.oneOf.1.last_transaction.created_at","typeLabel":"number"},"amount_paid":{"oneOf":[{"type":"number","description":"The amount the customer paid in cents. 1000 = $10.00","example":2000,"uniqueKey":"subscription.oneOf.1.last_transaction.amount_paid.oneOf.0","typeLabel":"number"},{"type":"null","description":"The amount the customer paid in cents. 1000 = $10.00","example":2000,"uniqueKey":"subscription.oneOf.1.last_transaction.amount_paid.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.oneOf.1.last_transaction.amount_paid","typeLabel":"number | null"},"discount_amount":{"oneOf":[{"type":"number","description":"The discount amount in cents. 1000 = $10.00","example":2000,"uniqueKey":"subscription.oneOf.1.last_transaction.discount_amount.oneOf.0","typeLabel":"number"},{"type":"null","description":"The discount amount in cents. 1000 = $10.00","example":2000,"uniqueKey":"subscription.oneOf.1.last_transaction.discount_amount.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.oneOf.1.last_transaction.discount_amount","typeLabel":"number | null"},"tax_country":{"oneOf":[{"type":"string","description":"The ISO alpha-2 country code where tax is collected.","example":"US","pattern":"^[A-Z]{2}$","uniqueKey":"subscription.oneOf.1.last_transaction.tax_country.oneOf.0","typeLabel":"string"},{"type":"null","description":"The ISO alpha-2 country code where tax is collected.","example":"US","pattern":"^[A-Z]{2}$","uniqueKey":"subscription.oneOf.1.last_transaction.tax_country.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.oneOf.1.last_transaction.tax_country","typeLabel":"string | null"},"tax_amount":{"oneOf":[{"type":"number","description":"The sale tax amount in cents. 1000 = $10.00","example":2000,"uniqueKey":"subscription.oneOf.1.last_transaction.tax_amount.oneOf.0","typeLabel":"number"},{"type":"null","description":"The sale tax amount in cents. 1000 = $10.00","example":2000,"uniqueKey":"subscription.oneOf.1.last_transaction.tax_amount.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.oneOf.1.last_transaction.tax_amount","typeLabel":"number | null"},"refunded_amount":{"oneOf":[{"type":"number","description":"The amount that has been refunded in cents. 1000 = $10.00","example":2000,"uniqueKey":"subscription.oneOf.1.last_transaction.refunded_amount.oneOf.0","typeLabel":"number"},{"type":"null","description":"The amount that has been refunded in cents. 1000 = $10.00","example":2000,"uniqueKey":"subscription.oneOf.1.last_transaction.refunded_amount.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.oneOf.1.last_transaction.refunded_amount","typeLabel":"number | null"},"order":{"oneOf":[{"type":"string","description":"The order associated with the transaction.","uniqueKey":"subscription.oneOf.1.last_transaction.order.oneOf.0","typeLabel":"string"},{"type":"null","description":"The order associated with the transaction.","uniqueKey":"subscription.oneOf.1.last_transaction.order.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.oneOf.1.last_transaction.order","typeLabel":"string | null"},"subscription":{"oneOf":[{"type":"string","description":"The subscription associated with the transaction.","uniqueKey":"subscription.oneOf.1.last_transaction.subscription.oneOf.0","typeLabel":"string"},{"type":"null","description":"The subscription associated with the transaction.","uniqueKey":"subscription.oneOf.1.last_transaction.subscription.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.oneOf.1.last_transaction.subscription","typeLabel":"string | null"},"customer":{"oneOf":[{"type":"string","description":"The customer associated with the transaction.","uniqueKey":"subscription.oneOf.1.last_transaction.customer.oneOf.0","typeLabel":"string"},{"type":"null","description":"The customer associated with the transaction.","uniqueKey":"subscription.oneOf.1.last_transaction.customer.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.oneOf.1.last_transaction.customer","typeLabel":"string | null"},"description":{"type":"string","description":"The description of the transaction.","uniqueKey":"subscription.oneOf.1.last_transaction.description","typeLabel":"string"},"period_start":{"type":"number","description":"Start period for the invoice as timestamp","uniqueKey":"subscription.oneOf.1.last_transaction.period_start","typeLabel":"number"},"period_end":{"type":"number","description":"End period for the invoice as timestamp","uniqueKey":"subscription.oneOf.1.last_transaction.period_end","typeLabel":"number"}},"uniqueKey":"subscription.oneOf.1.last_transaction","typeLabel":"object"},"last_transaction_date":{"format":"date-time","type":"string","description":"The date of the last paid transaction.","example":"2024-09-12T12:34:56Z","uniqueKey":"subscription.oneOf.1.last_transaction_date","typeLabel":"string\u003cdate-time>"},"next_transaction_date":{"format":"date-time","type":"string","description":"The date when the next subscription transaction will be charged.","example":"2024-09-12T12:34:56Z","uniqueKey":"subscription.oneOf.1.next_transaction_date","typeLabel":"string\u003cdate-time>"},"current_period_start_date":{"format":"date-time","type":"string","description":"The start date of the current subscription period.","example":"2024-09-12T12:34:56Z","uniqueKey":"subscription.oneOf.1.current_period_start_date","typeLabel":"string\u003cdate-time>"},"current_period_end_date":{"format":"date-time","type":"string","description":"The end date of the current subscription period.","example":"2024-09-12T12:34:56Z","uniqueKey":"subscription.oneOf.1.current_period_end_date","typeLabel":"string\u003cdate-time>"},"canceled_at":{"oneOf":[{"type":"string","description":"The date and time when the subscription was canceled, if applicable.","example":"2024-09-12T12:34:56Z","format":"date-time","uniqueKey":"subscription.oneOf.1.canceled_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"The date and time when the subscription was canceled, if applicable.","example":"2024-09-12T12:34:56Z","format":"date-time","uniqueKey":"subscription.oneOf.1.canceled_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.oneOf.1.canceled_at","typeLabel":"string\u003cdate-time> | null"},"discount":{"type":"object","description":"The discount applied to the subscription, if any.","properties":{"id":{"type":"string","description":"The unique identifier of the discount (e.g. dis_...).","example":"dis_3e6Z6TzvHKdsjEgXnGDEp0","uniqueKey":"subscription.oneOf.1.discount.id","typeLabel":"string"},"discountCode":{"type":"string","description":"The discount code applied to the subscription.","example":"HOLIDAY2024","uniqueKey":"subscription.oneOf.1.discount.discountCode","typeLabel":"string"},"name":{"type":"string","uniqueKey":"subscription.oneOf.1.discount.name","typeLabel":"string"},"type":{"type":"string","enum":["percentage","fixed"],"uniqueKey":"subscription.oneOf.1.discount.type","typeLabel":"enum\u003cstring>"},"amount":{"type":"number","uniqueKey":"subscription.oneOf.1.discount.amount","typeLabel":"number"},"duration":{"type":"string","enum":["forever","once","repeating"],"uniqueKey":"subscription.oneOf.1.discount.duration","typeLabel":"enum\u003cstring>"},"durationInMonths":{"type":"number","uniqueKey":"subscription.oneOf.1.discount.durationInMonths","typeLabel":"number"}},"uniqueKey":"subscription.oneOf.1.discount","typeLabel":"object"},"metadata":{"type":"object","description":"Metadata for the subscription in the form of key-value pairs.","example":{"userId":"user_123","plan":"pro"},"additionalProperties":true,"uniqueKey":"subscription.oneOf.1.metadata","typeLabel":"object"}},"uniqueKey":"subscription.oneOf.1","typeLabel":"object"}],"uniqueKey":"subscription","typeLabel":"string | object"},"customer":{"oneOf":[{"type":"string","description":"The customer associated with the checkout session.","uniqueKey":"customer.oneOf.0","typeLabel":"string"},{"type":"object","description":"The customer associated with the checkout session.","required":["id","mode","object","email","country","created_at","updated_at"],"properties":{"id":{"type":"string","description":"Unique identifier for the object.","isRequired":true,"uniqueKey":"customer.oneOf.1.id","typeLabel":"string"},"mode":{"type":"string","description":"String representing the environment.","enum":["test","prod","sandbox"],"isRequired":true,"uniqueKey":"customer.oneOf.1.mode","typeLabel":"enum\u003cstring>"},"object":{"type":"string","description":"String representing the object’s type. Objects of the same type share the same value.","isRequired":true,"uniqueKey":"customer.oneOf.1.object","typeLabel":"string"},"email":{"type":"string","description":"Customer email address.","example":"user@example.com","isRequired":true,"uniqueKey":"customer.oneOf.1.email","typeLabel":"string"},"country":{"oneOf":[{"type":"string","description":"The ISO 3166-1 alpha-2 country code for the customer.","example":"US","pattern":"^[A-Z]{2}$","isRequired":true,"uniqueKey":"customer.oneOf.1.country.oneOf.0","typeLabel":"string"},{"type":"null","description":"The ISO 3166-1 alpha-2 country code for the customer.","example":"US","pattern":"^[A-Z]{2}$","isRequired":true,"uniqueKey":"customer.oneOf.1.country.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"customer.oneOf.1.country","typeLabel":"string | null"},"created_at":{"format":"date-time","type":"string","description":"Creation date of the customer","example":"2023-01-01T00:00:00Z","isRequired":true,"uniqueKey":"customer.oneOf.1.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"format":"date-time","type":"string","description":"Last updated date of the customer","example":"2023-01-01T00:00:00Z","isRequired":true,"uniqueKey":"customer.oneOf.1.updated_at","typeLabel":"string\u003cdate-time>"},"name":{"oneOf":[{"type":"string","description":"Customer name.","example":"John Doe","uniqueKey":"customer.oneOf.1.name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Customer name.","example":"John Doe","uniqueKey":"customer.oneOf.1.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"customer.oneOf.1.name","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"Additional metadata associated with the customer.","example":{"key":"value"},"additionalProperties":true,"uniqueKey":"customer.oneOf.1.metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Additional metadata associated with the customer.","example":{"key":"value"},"additionalProperties":true,"uniqueKey":"customer.oneOf.1.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"customer.oneOf.1.metadata","typeLabel":"object | null"},"external_id":{"oneOf":[{"type":"string","description":"Your own id for this customer, when you have set one — usage ingestion resolves `external_customer_id` against it.","example":"user-42","uniqueKey":"customer.oneOf.1.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Your own id for this customer, when you have set one — usage ingestion resolves `external_customer_id` against it.","example":"user-42","uniqueKey":"customer.oneOf.1.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"customer.oneOf.1.external_id","typeLabel":"string | null"}},"uniqueKey":"customer.oneOf.1","typeLabel":"object"}],"uniqueKey":"customer","typeLabel":"string | object"},"custom_fields":{"description":"Additional information collected from your customer during the checkout process.","type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"The type of the field.","enum":["text","checkbox"],"isRequired":true,"uniqueKey":"custom_fields.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"key":{"type":"string","description":"Unique key for custom field. Must be unique to this field, alphanumeric, and up to 200 characters.","maxLength":200,"isRequired":true,"uniqueKey":"custom_fields.items.[INDEX].key","typeLabel":"string"},"label":{"type":"string","description":"The label for the field, displayed to the customer, up to 50 characters","maxLength":200,"isRequired":true,"uniqueKey":"custom_fields.items.[INDEX].label","typeLabel":"string"},"optional":{"oneOf":[{"type":"boolean","description":"Whether the customer is required to complete the field. Defaults to `false`.","uniqueKey":"custom_fields.items.[INDEX].optional.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the customer is required to complete the field. Defaults to `false`.","uniqueKey":"custom_fields.items.[INDEX].optional.oneOf.1","typeLabel":"null"}],"uniqueKey":"custom_fields.items.[INDEX].optional","typeLabel":"boolean | null"},"text":{"oneOf":[{"type":"object","description":"Configuration for text field type.","properties":{"max_length":{"oneOf":[{"type":"number","description":"Maximum character length constraint for the input.","uniqueKey":"custom_fields.items.[INDEX].text.oneOf.0.max_length.oneOf.0","typeLabel":"number"},{"type":"null","description":"Maximum character length constraint for the input.","uniqueKey":"custom_fields.items.[INDEX].text.oneOf.0.max_length.oneOf.1","typeLabel":"null"}],"uniqueKey":"custom_fields.items.[INDEX].text.oneOf.0.max_length","typeLabel":"number | null"},"minimum_length":{"oneOf":[{"type":"number","description":"Minimum character length requirement for the input.","uniqueKey":"custom_fields.items.[INDEX].text.oneOf.0.minimum_length.oneOf.0","typeLabel":"number"},{"type":"null","description":"Minimum character length requirement for the input.","uniqueKey":"custom_fields.items.[INDEX].text.oneOf.0.minimum_length.oneOf.1","typeLabel":"null"}],"uniqueKey":"custom_fields.items.[INDEX].text.oneOf.0.minimum_length","typeLabel":"number | null"},"value":{"oneOf":[{"type":"string","description":"The value of the input.","uniqueKey":"custom_fields.items.[INDEX].text.oneOf.0.value.oneOf.0","typeLabel":"string"},{"type":"null","description":"The value of the input.","uniqueKey":"custom_fields.items.[INDEX].text.oneOf.0.value.oneOf.1","typeLabel":"null"}],"uniqueKey":"custom_fields.items.[INDEX].text.oneOf.0.value","typeLabel":"string | null"}},"uniqueKey":"custom_fields.items.[INDEX].text.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"custom_fields.items.[INDEX].text.oneOf.1","typeLabel":"null"}],"uniqueKey":"custom_fields.items.[INDEX].text","typeLabel":"object | null"},"checkbox":{"oneOf":[{"type":"object","description":"Configuration for checkbox field type.","properties":{"label":{"oneOf":[{"type":"string","description":"The markdown text to display for the checkbox.","uniqueKey":"custom_fields.items.[INDEX].checkbox.oneOf.0.label.oneOf.0","typeLabel":"string"},{"type":"null","description":"The markdown text to display for the checkbox.","uniqueKey":"custom_fields.items.[INDEX].checkbox.oneOf.0.label.oneOf.1","typeLabel":"null"}],"uniqueKey":"custom_fields.items.[INDEX].checkbox.oneOf.0.label","typeLabel":"string | null"},"value":{"oneOf":[{"type":"boolean","description":"The value of the checkbox (checked or not).","uniqueKey":"custom_fields.items.[INDEX].checkbox.oneOf.0.value.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"The value of the checkbox (checked or not).","uniqueKey":"custom_fields.items.[INDEX].checkbox.oneOf.0.value.oneOf.1","typeLabel":"null"}],"uniqueKey":"custom_fields.items.[INDEX].checkbox.oneOf.0.value","typeLabel":"boolean | null"}},"uniqueKey":"custom_fields.items.[INDEX].checkbox.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"custom_fields.items.[INDEX].checkbox.oneOf.1","typeLabel":"null"}],"uniqueKey":"custom_fields.items.[INDEX].checkbox","typeLabel":"object | null"}},"required":["type","key","label"],"uniqueKey":"custom_fields.items.[INDEX]","typeLabel":"object"},"uniqueKey":"custom_fields","typeLabel":"object[]"},"checkout_url":{"type":"string","description":"The URL to which the customer will be redirected to complete the payment.","uniqueKey":"checkout_url","typeLabel":"string"},"success_url":{"oneOf":[{"type":"string","description":"The URL to which the user will be redirected after the checkout process is completed.","example":"https://example.com/return","uniqueKey":"success_url.oneOf.0","typeLabel":"string"},{"type":"null","description":"The URL to which the user will be redirected after the checkout process is completed.","example":"https://example.com/return","uniqueKey":"success_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"success_url","typeLabel":"string | null"},"license_keys":{"description":"License keys issued for the order.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the object.","isRequired":true,"uniqueKey":"license_keys.items.[INDEX].id","typeLabel":"string"},"mode":{"type":"string","description":"String representing the environment.","enum":["test","prod","sandbox"],"isRequired":true,"uniqueKey":"license_keys.items.[INDEX].mode","typeLabel":"enum\u003cstring>"},"object":{"type":"string","description":"A string representing the object's type. Objects of the same type share the same value.","isRequired":true,"uniqueKey":"license_keys.items.[INDEX].object","typeLabel":"string"},"product_id":{"type":"string","description":"The ID of the product this license belongs to.","example":"prod_abc123","isRequired":true,"uniqueKey":"license_keys.items.[INDEX].product_id","typeLabel":"string"},"status":{"type":"string","description":"The current status of the license key.","enum":["inactive","active","expired","disabled"],"example":"active","isRequired":true,"uniqueKey":"license_keys.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"key":{"type":"string","description":"The license key.","example":"ABC123-XYZ456-XYZ456-XYZ456","isRequired":true,"uniqueKey":"license_keys.items.[INDEX].key","typeLabel":"string"},"activation":{"type":"number","description":"The number of instances that this license key was activated.","example":5,"isRequired":true,"uniqueKey":"license_keys.items.[INDEX].activation","typeLabel":"number"},"created_at":{"format":"date-time","type":"string","description":"The creation date of the license key.","example":"2023-09-13T00:00:00Z","isRequired":true,"uniqueKey":"license_keys.items.[INDEX].created_at","typeLabel":"string\u003cdate-time>"},"activation_limit":{"oneOf":[{"type":"number","description":"The activation limit. Null if activations are unlimited.","example":1,"uniqueKey":"license_keys.items.[INDEX].activation_limit.oneOf.0","typeLabel":"number"},{"type":"null","description":"The activation limit. Null if activations are unlimited.","example":1,"uniqueKey":"license_keys.items.[INDEX].activation_limit.oneOf.1","typeLabel":"null"}],"uniqueKey":"license_keys.items.[INDEX].activation_limit","typeLabel":"number | null"},"expires_at":{"oneOf":[{"type":"string","description":"The date the license key expires. Null if it does not have an expiration date.","example":"2023-09-13T00:00:00Z","format":"date-time","uniqueKey":"license_keys.items.[INDEX].expires_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"The date the license key expires. Null if it does not have an expiration date.","example":"2023-09-13T00:00:00Z","format":"date-time","uniqueKey":"license_keys.items.[INDEX].expires_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"license_keys.items.[INDEX].expires_at","typeLabel":"string\u003cdate-time> | null"},"instance":{"oneOf":[{"type":"object","description":"Associated license instances.","required":["id","mode","object","name","status","created_at"],"properties":{"id":{"type":"string","description":"Unique identifier for the object.","isRequired":true,"uniqueKey":"license_keys.items.[INDEX].instance.oneOf.0.id","typeLabel":"string"},"mode":{"type":"string","description":"String representing the environment.","enum":["test","prod","sandbox"],"isRequired":true,"uniqueKey":"license_keys.items.[INDEX].instance.oneOf.0.mode","typeLabel":"enum\u003cstring>"},"object":{"type":"string","description":"A string representing the object’s type. Objects of the same type share the same value.","example":"license-instance","isRequired":true,"uniqueKey":"license_keys.items.[INDEX].instance.oneOf.0.object","typeLabel":"string"},"name":{"type":"string","description":"The name of the license instance.","example":"My Customer License Instance","isRequired":true,"uniqueKey":"license_keys.items.[INDEX].instance.oneOf.0.name","typeLabel":"string"},"status":{"type":"string","description":"The status of the license instance.","enum":["active","deactivated"],"example":"active","isRequired":true,"uniqueKey":"license_keys.items.[INDEX].instance.oneOf.0.status","typeLabel":"enum\u003cstring>"},"created_at":{"format":"date-time","type":"string","description":"The creation date of the license instance.","example":"2023-09-13T00:00:00Z","isRequired":true,"uniqueKey":"license_keys.items.[INDEX].instance.oneOf.0.created_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"license_keys.items.[INDEX].instance.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"license_keys.items.[INDEX].instance.oneOf.1","typeLabel":"null"}],"uniqueKey":"license_keys.items.[INDEX].instance","typeLabel":"object | null"}},"required":["id","mode","object","product_id","status","key","activation","created_at"],"uniqueKey":"license_keys.items.[INDEX]","typeLabel":"object"},"uniqueKey":"license_keys","typeLabel":"object[]"},"feature":{"type":"object","description":"DEPRECATED: Use `license_keys` instead. Features issued for the order.","deprecated":true,"properties":{"id":{"oneOf":[{"type":"string","description":"Unique identifier for the feature.","example":"feat_abc123","uniqueKey":"feature.id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique identifier for the feature.","example":"feat_abc123","uniqueKey":"feature.id.oneOf.1","typeLabel":"null"}],"uniqueKey":"feature.id","typeLabel":"string | null"},"description":{"oneOf":[{"type":"string","description":"A brief description of the feature.","example":"Get access to the full course materials.","uniqueKey":"feature.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"A brief description of the feature.","example":"Get access to the full course materials.","uniqueKey":"feature.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"feature.description","typeLabel":"string | null"},"type":{"oneOf":[{"type":"string","description":"The type of the feature: `custom` (private note), `file` (downloadable files), `licenseKey` (license key), or `customerCredits` (customer credit grant).","enum":["custom","file","licenseKey","customerCredits"],"example":"licenseKey","uniqueKey":"feature.type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"The type of the feature: `custom` (private note), `file` (downloadable files), `licenseKey` (license key), or `customerCredits` (customer credit grant).","enum":["custom","file","licenseKey","customerCredits"],"example":"licenseKey","uniqueKey":"feature.type.oneOf.1","typeLabel":"null"}],"uniqueKey":"feature.type","typeLabel":"enum\u003cstring> | null"},"private_note":{"oneOf":[{"type":"string","description":"Private note from the seller. This is only visible to the customer after purchase.","example":"Thank you for your purchase! Here is your access code: XYZ123","uniqueKey":"feature.private_note.oneOf.0","typeLabel":"string"},{"type":"null","description":"Private note from the seller. This is only visible to the customer after purchase.","example":"Thank you for your purchase! Here is your access code: XYZ123","uniqueKey":"feature.private_note.oneOf.1","typeLabel":"null"}],"uniqueKey":"feature.private_note","typeLabel":"string | null"},"file":{"oneOf":[{"type":"object","description":"File feature data containing downloadable files.","required":["files"],"properties":{"files":{"description":"List of downloadable files.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the file.","example":"file_abc123","isRequired":true,"uniqueKey":"feature.file.oneOf.0.files.items.[INDEX].id","typeLabel":"string"},"file_name":{"type":"string","description":"The name of the file.","example":"ebook.pdf","isRequired":true,"uniqueKey":"feature.file.oneOf.0.files.items.[INDEX].file_name","typeLabel":"string"},"url":{"type":"string","description":"The URL to download the file.","example":"https://storage.creem.io/files/ebook.pdf","isRequired":true,"uniqueKey":"feature.file.oneOf.0.files.items.[INDEX].url","typeLabel":"string"},"type":{"type":"string","description":"The MIME type of the file.","example":"application/pdf","isRequired":true,"uniqueKey":"feature.file.oneOf.0.files.items.[INDEX].type","typeLabel":"string"},"size":{"type":"number","description":"The size of the file in bytes.","example":1024000,"isRequired":true,"uniqueKey":"feature.file.oneOf.0.files.items.[INDEX].size","typeLabel":"number"}},"required":["id","file_name","url","type","size"],"uniqueKey":"feature.file.oneOf.0.files.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"feature.file.oneOf.0.files","typeLabel":"object[]"}},"uniqueKey":"feature.file.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"feature.file.oneOf.1","typeLabel":"null"}],"uniqueKey":"feature.file","typeLabel":"object | null"},"license_key":{"oneOf":[{"type":"object","description":"License key issued for the order.","required":["id","mode","object","product_id","status","key","activation","created_at"],"properties":{"id":{"type":"string","description":"Unique identifier for the object.","isRequired":true,"uniqueKey":"feature.license_key.oneOf.0.id","typeLabel":"string"},"mode":{"type":"string","description":"String representing the environment.","enum":["test","prod","sandbox"],"isRequired":true,"uniqueKey":"feature.license_key.oneOf.0.mode","typeLabel":"enum\u003cstring>"},"object":{"type":"string","description":"A string representing the object's type. Objects of the same type share the same value.","isRequired":true,"uniqueKey":"feature.license_key.oneOf.0.object","typeLabel":"string"},"product_id":{"type":"string","description":"The ID of the product this license belongs to.","example":"prod_abc123","isRequired":true,"uniqueKey":"feature.license_key.oneOf.0.product_id","typeLabel":"string"},"status":{"type":"string","description":"The current status of the license key.","enum":["inactive","active","expired","disabled"],"example":"active","isRequired":true,"uniqueKey":"feature.license_key.oneOf.0.status","typeLabel":"enum\u003cstring>"},"key":{"type":"string","description":"The license key.","example":"ABC123-XYZ456-XYZ456-XYZ456","isRequired":true,"uniqueKey":"feature.license_key.oneOf.0.key","typeLabel":"string"},"activation":{"type":"number","description":"The number of instances that this license key was activated.","example":5,"isRequired":true,"uniqueKey":"feature.license_key.oneOf.0.activation","typeLabel":"number"},"created_at":{"format":"date-time","type":"string","description":"The creation date of the license key.","example":"2023-09-13T00:00:00Z","isRequired":true,"uniqueKey":"feature.license_key.oneOf.0.created_at","typeLabel":"string\u003cdate-time>"},"activation_limit":{"oneOf":[{"type":"number","description":"The activation limit. Null if activations are unlimited.","example":1,"uniqueKey":"feature.license_key.oneOf.0.activation_limit.oneOf.0","typeLabel":"number"},{"type":"null","description":"The activation limit. Null if activations are unlimited.","example":1,"uniqueKey":"feature.license_key.oneOf.0.activation_limit.oneOf.1","typeLabel":"null"}],"uniqueKey":"feature.license_key.oneOf.0.activation_limit","typeLabel":"number | null"},"expires_at":{"oneOf":[{"type":"string","description":"The date the license key expires. Null if it does not have an expiration date.","example":"2023-09-13T00:00:00Z","format":"date-time","uniqueKey":"feature.license_key.oneOf.0.expires_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"The date the license key expires. Null if it does not have an expiration date.","example":"2023-09-13T00:00:00Z","format":"date-time","uniqueKey":"feature.license_key.oneOf.0.expires_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"feature.license_key.oneOf.0.expires_at","typeLabel":"string\u003cdate-time> | null"},"instance":{"oneOf":[{"type":"object","description":"Associated license instances.","required":["id","mode","object","name","status","created_at"],"properties":{"id":{"type":"string","description":"Unique identifier for the object.","isRequired":true,"uniqueKey":"feature.license_key.oneOf.0.instance.oneOf.0.id","typeLabel":"string"},"mode":{"type":"string","description":"String representing the environment.","enum":["test","prod","sandbox"],"isRequired":true,"uniqueKey":"feature.license_key.oneOf.0.instance.oneOf.0.mode","typeLabel":"enum\u003cstring>"},"object":{"type":"string","description":"A string representing the object’s type. Objects of the same type share the same value.","example":"license-instance","isRequired":true,"uniqueKey":"feature.license_key.oneOf.0.instance.oneOf.0.object","typeLabel":"string"},"name":{"type":"string","description":"The name of the license instance.","example":"My Customer License Instance","isRequired":true,"uniqueKey":"feature.license_key.oneOf.0.instance.oneOf.0.name","typeLabel":"string"},"status":{"type":"string","description":"The status of the license instance.","enum":["active","deactivated"],"example":"active","isRequired":true,"uniqueKey":"feature.license_key.oneOf.0.instance.oneOf.0.status","typeLabel":"enum\u003cstring>"},"created_at":{"format":"date-time","type":"string","description":"The creation date of the license instance.","example":"2023-09-13T00:00:00Z","isRequired":true,"uniqueKey":"feature.license_key.oneOf.0.instance.oneOf.0.created_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"feature.license_key.oneOf.0.instance.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"feature.license_key.oneOf.0.instance.oneOf.1","typeLabel":"null"}],"uniqueKey":"feature.license_key.oneOf.0.instance","typeLabel":"object | null"}},"uniqueKey":"feature.license_key.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"feature.license_key.oneOf.1","typeLabel":"null"}],"uniqueKey":"feature.license_key","typeLabel":"object | null"},"customer_credits":{"oneOf":[{"type":"object","description":"Customer credits feature data.","required":["amount"],"properties":{"amount":{"type":"string","description":"The number of credits to grant. String to preserve BigInt precision.","example":"100","isRequired":true,"uniqueKey":"feature.customer_credits.oneOf.0.amount","typeLabel":"string"},"unit_label":{"oneOf":[{"type":"string","description":"Optional label for the credit unit (e.g. \"tokens\", \"credits\").","example":"tokens","uniqueKey":"feature.customer_credits.oneOf.0.unit_label.oneOf.0","typeLabel":"string"},{"type":"null","description":"Optional label for the credit unit (e.g. \"tokens\", \"credits\").","example":"tokens","uniqueKey":"feature.customer_credits.oneOf.0.unit_label.oneOf.1","typeLabel":"null"}],"uniqueKey":"feature.customer_credits.oneOf.0.unit_label","typeLabel":"string | null"},"bucket_name":{"oneOf":[{"type":"string","description":"The customer-credit bucket this grant funds — the `name` of the customer's credit account. Set it to a meter bucket (e.g. \"images\") so the credits fund a per-unit metered price; otherwise they land in `default` and metered usage cannot spend them. Distinct from `unit_label`, which is only a display label. On UPDATE the field is tri-state: OMIT it to leave the stored bucket unchanged, send `null` to clear it to the shared `default` wallet, or send a name to set it. On CREATE, omitted or null both mean `default`. A present-but-blank value is rejected.","example":"images","uniqueKey":"feature.customer_credits.oneOf.0.bucket_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"The customer-credit bucket this grant funds — the `name` of the customer's credit account. Set it to a meter bucket (e.g. \"images\") so the credits fund a per-unit metered price; otherwise they land in `default` and metered usage cannot spend them. Distinct from `unit_label`, which is only a display label. On UPDATE the field is tri-state: OMIT it to leave the stored bucket unchanged, send `null` to clear it to the shared `default` wallet, or send a name to set it. On CREATE, omitted or null both mean `default`. A present-but-blank value is rejected.","example":"images","uniqueKey":"feature.customer_credits.oneOf.0.bucket_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"feature.customer_credits.oneOf.0.bucket_name","typeLabel":"string | null"}},"uniqueKey":"feature.customer_credits.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"feature.customer_credits.oneOf.1","typeLabel":"null"}],"uniqueKey":"feature.customer_credits","typeLabel":"object | null"},"license":{"oneOf":[{"type":"object","description":"DEPRECATED: Use `license_key` instead. License key issued for the order.","required":["id","mode","object","product_id","status","key","activation","created_at"],"deprecated":true,"properties":{"id":{"type":"string","description":"Unique identifier for the object.","isRequired":true,"uniqueKey":"feature.license.oneOf.0.id","typeLabel":"string"},"mode":{"type":"string","description":"String representing the environment.","enum":["test","prod","sandbox"],"isRequired":true,"uniqueKey":"feature.license.oneOf.0.mode","typeLabel":"enum\u003cstring>"},"object":{"type":"string","description":"A string representing the object's type. Objects of the same type share the same value.","isRequired":true,"uniqueKey":"feature.license.oneOf.0.object","typeLabel":"string"},"product_id":{"type":"string","description":"The ID of the product this license belongs to.","example":"prod_abc123","isRequired":true,"uniqueKey":"feature.license.oneOf.0.product_id","typeLabel":"string"},"status":{"type":"string","description":"The current status of the license key.","enum":["inactive","active","expired","disabled"],"example":"active","isRequired":true,"uniqueKey":"feature.license.oneOf.0.status","typeLabel":"enum\u003cstring>"},"key":{"type":"string","description":"The license key.","example":"ABC123-XYZ456-XYZ456-XYZ456","isRequired":true,"uniqueKey":"feature.license.oneOf.0.key","typeLabel":"string"},"activation":{"type":"number","description":"The number of instances that this license key was activated.","example":5,"isRequired":true,"uniqueKey":"feature.license.oneOf.0.activation","typeLabel":"number"},"created_at":{"format":"date-time","type":"string","description":"The creation date of the license key.","example":"2023-09-13T00:00:00Z","isRequired":true,"uniqueKey":"feature.license.oneOf.0.created_at","typeLabel":"string\u003cdate-time>"},"activation_limit":{"oneOf":[{"type":"number","description":"The activation limit. Null if activations are unlimited.","example":1,"uniqueKey":"feature.license.oneOf.0.activation_limit.oneOf.0","typeLabel":"number"},{"type":"null","description":"The activation limit. Null if activations are unlimited.","example":1,"uniqueKey":"feature.license.oneOf.0.activation_limit.oneOf.1","typeLabel":"null"}],"uniqueKey":"feature.license.oneOf.0.activation_limit","typeLabel":"number | null"},"expires_at":{"oneOf":[{"type":"string","description":"The date the license key expires. Null if it does not have an expiration date.","example":"2023-09-13T00:00:00Z","format":"date-time","uniqueKey":"feature.license.oneOf.0.expires_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"The date the license key expires. Null if it does not have an expiration date.","example":"2023-09-13T00:00:00Z","format":"date-time","uniqueKey":"feature.license.oneOf.0.expires_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"feature.license.oneOf.0.expires_at","typeLabel":"string\u003cdate-time> | null"},"instance":{"oneOf":[{"type":"object","description":"Associated license instances.","required":["id","mode","object","name","status","created_at"],"properties":{"id":{"type":"string","description":"Unique identifier for the object.","isRequired":true,"uniqueKey":"feature.license.oneOf.0.instance.oneOf.0.id","typeLabel":"string"},"mode":{"type":"string","description":"String representing the environment.","enum":["test","prod","sandbox"],"isRequired":true,"uniqueKey":"feature.license.oneOf.0.instance.oneOf.0.mode","typeLabel":"enum\u003cstring>"},"object":{"type":"string","description":"A string representing the object’s type. Objects of the same type share the same value.","example":"license-instance","isRequired":true,"uniqueKey":"feature.license.oneOf.0.instance.oneOf.0.object","typeLabel":"string"},"name":{"type":"string","description":"The name of the license instance.","example":"My Customer License Instance","isRequired":true,"uniqueKey":"feature.license.oneOf.0.instance.oneOf.0.name","typeLabel":"string"},"status":{"type":"string","description":"The status of the license instance.","enum":["active","deactivated"],"example":"active","isRequired":true,"uniqueKey":"feature.license.oneOf.0.instance.oneOf.0.status","typeLabel":"enum\u003cstring>"},"created_at":{"format":"date-time","type":"string","description":"The creation date of the license instance.","example":"2023-09-13T00:00:00Z","isRequired":true,"uniqueKey":"feature.license.oneOf.0.instance.oneOf.0.created_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"feature.license.oneOf.0.instance.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"feature.license.oneOf.0.instance.oneOf.1","typeLabel":"null"}],"uniqueKey":"feature.license.oneOf.0.instance","typeLabel":"object | null"}},"uniqueKey":"feature.license.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"feature.license.oneOf.1","typeLabel":"null"}],"uniqueKey":"feature.license","typeLabel":"object | null"}},"uniqueKey":"feature","typeLabel":"object"},"metadata":{"type":"object","description":"Metadata for the checkout in the form of key-value pairs","example":{"userId":"user_123","visitCount":42,"lastVisit":"2023-04-01"},"additionalProperties":true,"uniqueKey":"metadata","typeLabel":"object"},"discount":{"type":"object","description":"The discount applied to the checkout, if any.","properties":{"id":{"type":"string","description":"The unique identifier of the discount (e.g. dis_...).","example":"dis_3e6Z6TzvHKdsjEgXnGDEp0","uniqueKey":"discount.id","typeLabel":"string"},"discountCode":{"type":"string","description":"The discount code applied to the checkout.","example":"HOLIDAY2024","uniqueKey":"discount.discountCode","typeLabel":"string"},"name":{"type":"string","uniqueKey":"discount.name","typeLabel":"string"},"type":{"type":"string","enum":["percentage","fixed"],"uniqueKey":"discount.type","typeLabel":"enum\u003cstring>"},"amount":{"type":"number","uniqueKey":"discount.amount","typeLabel":"number"},"duration":{"type":"string","enum":["forever","once","repeating"],"uniqueKey":"discount.duration","typeLabel":"enum\u003cstring>"},"durationInMonths":{"type":"number","uniqueKey":"discount.durationInMonths","typeLabel":"number"}},"uniqueKey":"discount","typeLabel":"object"}},"required":["id","mode","object","status","product"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"\u003cstring>","mode":"test","object":"\u003cstring>","status":"completed","product":"\u003cstring>","request_id":"\u003cstring>","units":1,"custom_price":1500,"order":{"id":"\u003cstring>","mode":"test","object":"\u003cstring>","product":"\u003cstring>","amount":2000,"currency":"USD","status":"pending","type":"recurring","created_at":"2023-09-13T00:00:00Z","updated_at":"2023-09-13T00:00:00Z","customer":"\u003cstring>","transaction":"tx_1234567890","discount":"dis_1234567890","sub_total":1800,"tax_amount":200,"discount_amount":100,"amount_due":1900,"amount_paid":1900,"fx_amount":15,"fx_currency":"EUR","fx_rate":1.2,"affiliate":"\u003cstring>"},"subscription":"\u003cstring>","customer":"\u003cstring>","custom_fields":[{"type":"text","key":"\u003cstring>","label":"\u003cstring>","optional":true,"text":{"max_length":123,"minimum_length":123,"value":"\u003cstring>"},"checkbox":{"label":"\u003cstring>","value":true}}],"checkout_url":"\u003cstring>","success_url":"https://example.com/return","license_keys":[{"id":"\u003cstring>","mode":"test","object":"\u003cstring>","product_id":"prod_abc123","status":"active","key":"ABC123-XYZ456-XYZ456-XYZ456","activation":5,"created_at":"2023-09-13T00:00:00Z","activation_limit":1,"expires_at":"2023-09-13T00:00:00Z","instance":{"id":"\u003cstring>","mode":"test","object":"license-instance","name":"My Customer License Instance","status":"active","created_at":"2023-09-13T00:00:00Z"}}],"feature":{"id":"feat_abc123","description":"Get access to the full course materials.","type":"licenseKey","private_note":"Thank you for your purchase! Here is your access code: XYZ123","file":{"files":[{"id":"file_abc123","file_name":"ebook.pdf","url":"https://storage.creem.io/files/ebook.pdf","type":"application/pdf","size":1024000}]},"license_key":{"id":"\u003cstring>","mode":"test","object":"\u003cstring>","product_id":"prod_abc123","status":"active","key":"ABC123-XYZ456-XYZ456-XYZ456","activation":5,"created_at":"2023-09-13T00:00:00Z","activation_limit":1,"expires_at":"2023-09-13T00:00:00Z","instance":{"id":"\u003cstring>","mode":"test","object":"license-instance","name":"My Customer License Instance","status":"active","created_at":"2023-09-13T00:00:00Z"}},"customer_credits":{"amount":"100","unit_label":"tokens","bucket_name":"images"},"license":{"id":"\u003cstring>","mode":"test","object":"\u003cstring>","product_id":"prod_abc123","status":"active","key":"ABC123-XYZ456-XYZ456-XYZ456","activation":5,"created_at":"2023-09-13T00:00:00Z","activation_limit":1,"expires_at":"2023-09-13T00:00:00Z","instance":{"id":"\u003cstring>","mode":"test","object":"license-instance","name":"My Customer License Instance","status":"active","created_at":"2023-09-13T00:00:00Z"}}},"metadata":{"userId":"user_123","visitCount":42,"lastVisit":"2023-04-01"},"discount":{"id":"dis_3e6Z6TzvHKdsjEgXnGDEp0","discountCode":"HOLIDAY2024","name":"\u003cstring>","type":"percentage","amount":123,"duration":"forever","durationInMonths":123}}}},"exampleType":"generated"}},"exampleType":"generated"},"5b3435f1-47f1-4e03-93eb-eddab539bdec":{"description":"Bad Request - Invalid input parameters","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"0d35d5ff-155a-49ea-9ff1-71f726f056d6":{"description":"Unauthorized - Invalid or missing API key","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"edc4a772-e9b6-4151-bd6d-5a91ae5c674d":{"description":"Not Found - Resource does not exist","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"e927ab18-d666-4b94-8e26-9d3f20c29042":{"ApiKey":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key for authentication. You can find your API key in the Creem dashboard under Settings > API Keys.","scopes":[]}}},"servers":{"ce73d8da-bcf3-4183-ac11-826f6188634a":{"url":"https://api.creem.io","description":"Production — live API for processing real transactions and data.","x-speakeasy-server-id":"prod"},"a3b3db05-e3f5-4845-baed-eca093fbbcd7":{"url":"https://test-api.creem.io","description":"Test — sandbox API for development and testing with no real charges.","x-speakeasy-server-id":"test"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key for authentication. You can find your API key in the Creem dashboard under Settings > API Keys.","scopes":[]},"schema":{"title":"x-api-key","type":"string","description":"API key for authentication. You can find your API key in the Creem dashboard under Settings > API Keys.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKey","name":"x-api-key"}],"title":"ApiKey"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"creem","siteName":"Creem","title":"Creates a new checkout session - Creem","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-23T08:23:03.632Z","originalFileLocation":"api-reference/endpoint/create-checkout.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=\"Create a new checkout session to accept one-time payments or start subscriptions. Returns a checkout URL to redirect customers.\">\u003cmeta data-mint-head name=\"keywords\" content=\"merchant of record, payment api, saas billing, subscription management, global payments, MoR, affiliate program, affiliate marketing, referral program\">\u003cmeta data-mint-head name=\"application-name\" content=\"Creem\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/creem/nizlPYWnvgrMkN5E/_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/creem/nizlPYWnvgrMkN5E/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/creem/nizlPYWnvgrMkN5E/_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/creem/nizlPYWnvgrMkN5E/_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/creem/nizlPYWnvgrMkN5E/_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/creem/nizlPYWnvgrMkN5E/_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/creem/nizlPYWnvgrMkN5E/_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/creem/nizlPYWnvgrMkN5E/_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/creem/nizlPYWnvgrMkN5E/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Creates a new checkout session - Creem\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a new checkout session to accept one-time payments or start subscriptions. Returns a checkout URL to redirect customers.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Creem Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.creem.io/api-reference/endpoint/create-checkout\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://creem.mintlify.app/_mintlify/api/og/v2?division=Checkout\u0026amp;title=Creates+a+new+checkout+session\u0026amp;description=Create+a+new+checkout+session+to+accept+one-time+payments+or+start+subscriptions.+Returns+a+checkout+URL+to+redirect+customers.\u0026amp;theme=cafe6ce3ebe1df8d45ed0a88\u0026amp;signature=aa6dea526b25ff90e32b1a5bd61628b5dcd019e09092a097d27f37350188cda5\">\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=\"Creates a new checkout session - Creem\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a new checkout session to accept one-time payments or start subscriptions. Returns a checkout URL to redirect customers.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://creem.mintlify.app/_mintlify/api/og/v2?division=Checkout\u0026amp;title=Creates+a+new+checkout+session\u0026amp;description=Create+a+new+checkout+session+to+accept+one-time+payments+or+start+subscriptions.+Returns+a+checkout+URL+to+redirect+customers.\u0026amp;theme=cafe6ce3ebe1df8d45ed0a88\u0026amp;signature=aa6dea526b25ff90e32b1a5bd61628b5dcd019e09092a097d27f37350188cda5\">\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/creem/nizlPYWnvgrMkN5E/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Creem\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FFBE98\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.creem.io/api-reference/endpoint/create-checkout\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/create-checkout.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.creem.io/#organization\",\"name\":\"Creem\",\"url\":\"https://docs.creem.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/creem/-AIVGXbrCJu_8i70/logo/light.svg?fit=max\u0026auto=format\u0026n=-AIVGXbrCJu_8i70\u0026q=85\u0026s=686f06f43a3d7e4c0456e22de64c8bae\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.creem.io#website\",\"name\":\"Creem\",\"url\":\"https://docs.creem.io\",\"publisher\":{\"@id\":\"https://docs.creem.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.creem.io/api-reference/endpoint/create-checkout#webpage\",\"url\":\"https://docs.creem.io/api-reference/endpoint/create-checkout\",\"name\":\"Creates a new checkout session\",\"description\":\"Create a new checkout session to accept one-time payments or start subscriptions. Returns a checkout URL to redirect customers.\",\"dateModified\":\"2026-01-23T08:23:03.632Z\",\"isPartOf\":{\"@id\":\"https://docs.creem.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.creem.io/api-reference/endpoint/create-checkout#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.creem.io/api-reference/endpoint/create-checkout#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Creem\",\"item\":\"https://docs.creem.io\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Creates a new checkout session\",\"item\":\"https://docs.creem.io/api-reference/endpoint/create-checkout\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.creem.io/api-reference/endpoint/create-checkout#apireference\",\"headline\":\"Creates a new checkout session\",\"name\":\"Creates a new checkout session\",\"description\":\"Create a new checkout session to accept one-time payments or start subscriptions. Returns a checkout URL to redirect customers.\",\"url\":\"https://docs.creem.io/api-reference/endpoint/create-checkout\",\"mainEntityOfPage\":{\"@id\":\"https://docs.creem.io/api-reference/endpoint/create-checkout#webpage\"},\"dateModified\":\"2026-01-23T08:23:03.632Z\",\"publisher\":{\"@id\":\"https://docs.creem.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.creem.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Creem\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Creem","nav":{"global":{"anchors":[{"anchor":"Community","icon":"discord","href":"https://discord.gg/q3GKZs92Av"},{"anchor":"Blog","icon":"newspaper","href":"https://creem.io/blog"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/getting-started/introduction"}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/guides/introduction"}]},{"tab":"API Reference","groups":[{"group":"API Documentation","icon":"book","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"Error Handling","description":"Understanding API error responses and how to handle them.","href":"/api-reference/error-codes"}]},{"group":"Checkout","icon":"shopping-cart","pages":[{"title":"Creates a new checkout session","openapi":"post /v1/checkouts","href":"/api-reference/endpoint/create-checkout"},{"title":"Retrieve a checkout session","description":"Retrieve details of a checkout session by ID. View status, customer info, and payment details.","openapi":"get /v1/checkouts","href":"/api-reference/endpoint/get-checkout"}]},{"group":"Product","icon":"box","pages":[{"title":"Creates a new product","openapi":"post /v1/products","href":"/api-reference/endpoint/create-product"},{"title":"Get a product by ID","openapi":"get /v1/products/{id}","href":"/api-reference/endpoint/get-product"},{"title":"List all products","openapi":"get /v1/products/search","href":"/api-reference/endpoint/search-products"},{"title":"Update a product","openapi":"patch /v1/products/{id}","href":"/api-reference/endpoint/update-product"},{"title":"Archive a product","openapi":"delete /v1/products/{id}","href":"/api-reference/endpoint/archive-product"}]},{"group":"Customer","icon":"users","pages":[{"title":"Retrieve a customer","openapi":"get /v1/customers","href":"/api-reference/endpoint/get-customer"},{"title":"Update a customer","openapi":"patch /v1/customers","href":"/api-reference/endpoint/update-customer"},{"title":"List all customers","openapi":"get /v1/customers/list","href":"/api-reference/endpoint/list-customers"},{"title":"Generate Customer Links","openapi":"post /v1/customers/billing","href":"/api-reference/endpoint/create-customer-billing"}]},{"group":"Transactions","icon":"receipt","pages":[{"title":"Get a transaction by ID","openapi":"get /v1/transactions","href":"/api-reference/endpoint/get-transaction"},{"title":"List all transactions","openapi":"get /v1/transactions/search","href":"/api-reference/endpoint/get-transactions"},{"title":"Refund a payment","openapi":"post /v1/refunds","href":"/api-reference/endpoint/refund-payment"}]},{"group":"Affiliate","icon":"users","pages":[{"title":"List all affiliates","openapi":"get /v1/affiliates","href":"/api-reference/endpoint/list-affiliates"},{"title":"Retrieve an affiliate","openapi":"get /v1/affiliates/{id}","href":"/api-reference/endpoint/retrieve-affiliate"},{"title":"List affiliate commissions","openapi":"get /v1/affiliates/{id}/commissions","href":"/api-reference/endpoint/list-affiliate-commissions"},{"title":"Create an affiliate invitation","openapi":"post /v1/affiliates/invites","href":"/api-reference/endpoint/create-affiliate-invite"},{"title":"List affiliate invitations","openapi":"get /v1/affiliates/invites","href":"/api-reference/endpoint/list-affiliate-invites"}]},{"group":"License","icon":"key","pages":[{"title":"Validates a license key or instance","openapi":"post /v1/licenses/validate","href":"/api-reference/endpoint/validate-license"},{"title":"Activates a license key","openapi":"post /v1/licenses/activate","href":"/api-reference/endpoint/activate-license"},{"title":"Deactivate a license key instance","openapi":"post /v1/licenses/deactivate","href":"/api-reference/endpoint/deactivate-license"},{"title":"List license instances","openapi":"get /v1/licenses/{id}/instances","href":"/api-reference/endpoint/list-license-instances"}]},{"group":"Discount Code","icon":"tag","pages":[{"title":"Create a discount","openapi":"post /v1/discounts","href":"/api-reference/endpoint/create-discount-code"},{"title":"Delete a discount","openapi":"delete /v1/discounts/{id}/delete","href":"/api-reference/endpoint/delete-discount-code"},{"title":"Retrieve discount","openapi":"get /v1/discounts","href":"/api-reference/endpoint/get-discount-code"},{"title":"Search discounts","openapi":"get /v1/discounts/search","href":"/api-reference/endpoint/search-discounts"}]},{"group":"Subscription","icon":"repeat","pages":[{"title":"Retrieve a subscription","openapi":"get /v1/subscriptions","href":"/api-reference/endpoint/get-subscription"},{"title":"List all subscriptions","openapi":"get /v1/subscriptions/search","href":"/api-reference/endpoint/search-subscriptions"},{"title":"Update a subscription","openapi":"post /v1/subscriptions/{id}","href":"/api-reference/endpoint/update-subscription"},{"title":"Upgrade a subscription to a different product","openapi":"post /v1/subscriptions/{id}/upgrade","href":"/api-reference/endpoint/upgrade-subscription"},{"title":"Pause a subscription","openapi":"post /v1/subscriptions/{id}/pause","href":"/api-reference/endpoint/pause-subscription"},{"title":"Resume a subscription","openapi":"post /v1/subscriptions/{id}/resume","href":"/api-reference/endpoint/resume-subscription"},{"title":"Cancel a subscription","openapi":"post /v1/subscriptions/{id}/cancel","href":"/api-reference/endpoint/cancel-subscription"}]},{"group":"Splits","icon":"arrows-split-up-and-left","pages":[{"title":"Create a split","openapi":"post /v1/splits","href":"/api-reference/endpoint/create-split"},{"title":"List all splits","openapi":"get /v1/splits","href":"/api-reference/endpoint/list-splits"},{"title":"Retrieve a split","openapi":"get /v1/splits/{id}","href":"/api-reference/endpoint/retrieve-split"},{"title":"Delete a split","openapi":"delete /v1/splits/{id}","href":"/api-reference/endpoint/delete-split"}]},{"group":"Stats","icon":"chart-line","pages":[{"title":"Get store metrics summary","openapi":"get /v1/stats/summary","href":"/api-reference/endpoint/get-stats-summary"}]},{"group":"Customer Credits","icon":"coins","pages":[{"title":"Create a customer credits account","openapi":"post /v1/customer-credits/accounts","href":"/api-reference/endpoint/create-credits-account"},{"title":"List customer credits accounts","openapi":"get /v1/customer-credits/accounts","href":"/api-reference/endpoint/list-credits-accounts"},{"title":"Retrieve a customer credits account","openapi":"get /v1/customer-credits/accounts/{id}","href":"/api-reference/endpoint/get-credits-account"},{"title":"Get account balance","openapi":"get /v1/customer-credits/accounts/{id}/balance","href":"/api-reference/endpoint/get-credits-account-balance"},{"title":"List account entries","openapi":"get /v1/customer-credits/accounts/{id}/entries","href":"/api-reference/endpoint/list-credits-entries"},{"title":"Credit an account","openapi":"post /v1/customer-credits/accounts/{id}/credit","href":"/api-reference/endpoint/credit-account"},{"title":"Debit an account","openapi":"post /v1/customer-credits/accounts/{id}/debit","href":"/api-reference/endpoint/debit-account"},{"title":"Reverse a transaction","openapi":"post /v1/customer-credits/accounts/{id}/reverse","href":"/api-reference/endpoint/reverse-credits-transaction"},{"title":"Freeze an account","openapi":"post /v1/customer-credits/accounts/{id}/freeze","href":"/api-reference/endpoint/freeze-credits-account"},{"title":"Unfreeze an account","openapi":"post /v1/customer-credits/accounts/{id}/unfreeze","href":"/api-reference/endpoint/unfreeze-credits-account"},{"title":"Close an account","openapi":"post /v1/customer-credits/accounts/{id}/close","href":"/api-reference/endpoint/close-credits-account"},{"title":"Post a transaction","openapi":"post /v1/customer-credits/transactions","href":"/api-reference/endpoint/post-credits-transaction"},{"title":"Retrieve a transaction","openapi":"get /v1/customer-credits/transactions/{id}","href":"/api-reference/endpoint/get-credits-transaction"},{"title":"Reverse a transaction","openapi":"post /v1/customer-credits/transactions/{id}/reverse","href":"/api-reference/endpoint/reverse-credits-transaction-by-id"},{"title":"List transactions by reference","openapi":"get /v1/customer-credits/transactions","href":"/api-reference/endpoint/list-credits-transactions"}]},{"group":"Moderation","icon":"shield-check","pages":[{"title":"Screen a prompt","openapi":"post /v1/moderation/prompt","href":"/api-reference/endpoint/screen-prompt"}]},{"group":"Webhooks","icon":"webhook","pages":[{"title":"List webhook endpoints","openapi":"get /v1/webhooks","href":"/api-reference/endpoint/list-webhooks"},{"title":"Create a webhook endpoint","openapi":"post /v1/webhooks","href":"/api-reference/endpoint/create-webhook"},{"title":"Retrieve a webhook endpoint","openapi":"get /v1/webhooks/{id}","href":"/api-reference/endpoint/get-webhook"},{"title":"Update a webhook endpoint","openapi":"patch /v1/webhooks/{id}","href":"/api-reference/endpoint/update-webhook"},{"title":"Delete a webhook endpoint","openapi":"delete /v1/webhooks/{id}","href":"/api-reference/endpoint/delete-webhook"},{"title":"Retrieve a webhook signing secret","openapi":"get /v1/webhooks/{id}/secret","href":"/api-reference/endpoint/get-webhook-secret"},{"title":"List pending events for a CLI webhook endpoint","openapi":"get /v1/webhooks/{id}/events/pending","href":"/api-reference/endpoint/list-pending-webhook-events"},{"title":"Acknowledge a CLI webhook event","openapi":"post /v1/webhooks/{id}/events/{event_id}/ack","href":"/api-reference/endpoint/acknowledge-webhook-event"}]}]}]},"title":"Creates a new checkout session - Creem","buildId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","deploymentId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DKJwRUt2.js","utils-CWD_VS3u.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-oFjciODD.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-C76WsxC3.js","snippetPresets-DvPMxpX_.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CuNQfndH.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BVFpVUoF.js","shallow-t59Jg5Kr.js","getApiPlaygroundDisplay-C_JZ4amX.js","CodeSnippet-CLRDnx_h.js","CodeSnippets-C2myU4kc.js","Page-7TwLLapg.js","getPastedJson-B-JaVXw7.js","icon-BA-iDhH3.js","MethodPill-D4qZABFp.js","DuplicateIcon-THIDKO1O.js","createIcon-CYYJwgFd.js","DynamicMarkdown-UGQuxDKp.js","SectionHeading-jYELb23h.js","axios-vUo_bRtp.js","Markdown-DKsLa3wy.js","clsx-CefdjKz2.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BaREnp3o.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-sgx_0XzF.js"]}