Your secret API key obtained from the Clink dashboard (Developers section)
Headers
X-Timestamp
string
required
Current timestamp in milliseconds since Unix epoch (required for request signing)
Example:
"1783513683000"
Body
application/json
Parameters required to initialize a new checkout session. Provide at least one of customerId, customerEmail, referenceCustomerId, or a complete historicalPaymentInstrumentImport object. If none is provided, the request fails with CUSTOMER_NOT_FOUND. A complete historicalPaymentInstrumentImport object can be used by itself to resolve or create the customer. When customerId is provided, it is the primary identifier and customerEmail/referenceCustomerId must match the same customer. Without customerId, Clink resolves the customer by customerEmail and/or referenceCustomerId; when both are provided, they must resolve to the same customer or the request fails with CUSTOMER_IDENTIFIER_NOT_MATCHED.
originalAmount
number
required
Total transaction amount in the specified currency (must be greater than 0)
Required range: x > 0
originalCurrency
string
required
Three-letter ISO currency code for the transaction (e.g., USD, EUR, GBP)
customerId
string
Existing customer's unique identifier. At least one of customerId, customerEmail, referenceCustomerId, or a complete historicalPaymentInstrumentImport object is required. When provided, customerId is the primary identifier and customerEmail/referenceCustomerId must match the same customer
Minimum string length: 1
customerEmail
string
Customer's email address. At least one of customerId, customerEmail, referenceCustomerId, or a complete historicalPaymentInstrumentImport object is required. When customerId is not provided, Clink uses customerEmail and/or referenceCustomerId to resolve the customer. A new customer may be created when no existing customer matches
Minimum string length: 1
initializeCardholder
string
Optional cardholder name used when initializing a card. Only Unicode letters and ordinary spaces are allowed.
Pattern: ^[\p{L} ]+$
Example:
"Alice Silva"
referenceCustomerId
string
Merchant-side customer ID used to locate, validate, create, or bind a customer. At least one of customerId, customerEmail, referenceCustomerId, or a complete historicalPaymentInstrumentImport object is required. If none is provided, the request fails with CUSTOMER_NOT_FOUND
Minimum string length: 1
historicalPaymentInstrumentImport
object
Optional customer information associated with a merchant's existing payment channel. Currently, only Stripe is supported. It is used to resolve or create the corresponding customer record and migrate historical payment instruments from supported payment providers. This object may be used as the only customer identifier. When provided, both channelAlias and channelCustomerReference are required.
Show child attributes
merchantReferenceId
string
Your internal reference ID for tracking (non-unique identifier, does not guarantee idempotency)
priceId
string
Unique identifier of the predefined price configuration from your dashboard
productId
string
Unique identifier of the product configured in your dashboard
productUrl
string
URL of the product page. Used for the product name link in the receipt email when the matching line item has no productUrl. Standard products fall back to the product's own productUrl when omitted. Must start with http:// or https:// (scheme is case-insensitive) and be at most 2048 characters. Requests whose productUrl uses any other scheme are rejected.
Maximum string length: 2048
scheduledPhases
object[]
Optional top-level list of scheduled subscription plan changes for subscription checkout sessions. The initial subscription uses productId and priceId; each scheduled phase references an existing subscription price snapshot and takes effect at a future billing period boundary. One-time price snapshots are rejected. sequence and effectiveCycle must be strictly increasing.
Maximum array length: 10
Show child attributes
subscriptionStartType
enum<string>
default:subscription_created
Optional subscription start time selection for subscription checkout sessions. subscription_created uses the time the subscription is created (default); session_created uses the time the Checkout Session was created. This parameter has no effect on one-time checkout sessions.
Available options:
subscription_created,
session_created
Example:
"session_created"
uiMode
enum<string>
Checkout UI mode. Use hostedPage for hosted redirect checkout and elements for embedded checkout. When set to elements, returnUrl is required.
Available options:
elements,
hostedPage
returnUrl
string
requiredifuiMode=elements
Return URL for embedded checkout. Required when uiMode is elements. Clink replaces {ELEMENTS_SESSION_ID} in the URL with the created session ID before returning control to your site. Example: https://merchant.example.com/complete.html?session_id={ELEMENTS_SESSION_ID}
successUrl
string
URL where customers will be redirected after successful payment completion
cancelUrl
string
URL where customers will be redirected if they cancel the checkout process
paymentMethodType
enum<string>
The default selected payment method for created checkout session. Recommended if you know customer preference in advance
Available options:
CARD,
CASHAPP,
WECHAT,
KAKAO,
PIX,
ALIPAY,
UPI,
PAYPAL,
GOOGLEPAY,
APPLEPAY,
QRIS,
GCASH
paymentMethodTypeBlackList
enum<string>[]
List of payment method types to be excluded from the checkout session. Recommended if you know customer preference in advance. Supported values: CARD, CASHAPP, WECHAT, KAKAO, PIX, ALIPAY, UPI, PAYPAL, GOOGLEPAY, APPLEPAY, QRIS, GCASH
Available options:
CARD,
CASHAPP,
WECHAT,
KAKAO,
PIX,
ALIPAY,
UPI,
PAYPAL,
GOOGLEPAY,
APPLEPAY,
QRIS,
GCASH
paymentMethodSortOrder
string[]
Optional display order for payment methods in the created checkout session. Available payment methods listed here are displayed in the exact specified order. Available payment methods omitted from the array are appended afterward in the system default order. Unsupported, unrecognized, or currently unavailable codes are ignored. Duplicate codes are deduplicated using the first occurrence. When omitted or empty, the system default order is used. This field controls display order only; it does not enable unavailable payment methods or replace paymentMethodTypeBlackList.
Controls whether cards saved through Apple Pay are excluded from the bound-card list under CARD in checkout. Defaults to false. Set to true to hide only Apple Pay-saved cards; the APPLEPAY payment method itself remains available when supported.
filterGooglePayBoundCard
boolean
default:false
Controls whether cards saved through Google Pay are excluded from the bound-card list under CARD in checkout. Defaults to false. Set to true to hide only Google Pay-saved cards; the GOOGLEPAY payment method itself remains available when supported.
filterLinkPayBoundCard
boolean
default:false
Controls whether cards saved through Link are excluded from the bound-card list under CARD in checkout. Defaults to false. Set to true to hide only Link-saved cards; the LINK payment method itself remains available when supported.
directPaymentQrCodePaymentMethodType
enum<string>
Controls whether the QR code payment flow is launched directly when opening checkout.
Currently supports CASHAPP and QRIS.
This parameter takes effect only when:
paymentMethodType is set to the same value as directPaymentQrCodePaymentMethodType
The selected payment method is available in the checkout session
Behavior:
When effective, checkout directly initiates the QR code payment flow
In no-password scenarios, payment is not automatically completed
Ignored when:
The selected payment method is not available in checkout
paymentMethodType does not match directPaymentQrCodePaymentMethodType
Allowed values:
CASHAPP
QRIS
Available options:
CASHAPP,
QRIS
priceDataList
object[]
List of product pricing details for one-time purchases. Use this when creating transactions without pre-configured products
Show child attributes
allowPromotionCodes
boolean
Set to true to enable customers to enter promotion codes during checkout
showPromotionCode
boolean
default:true
Controls whether the promotion code input is shown in checkout. Defaults to true. Set to false with allowPromotionCodes=true and promotionCode to apply a hidden promotion code without showing the input box.
localPriceOnly
boolean
default:false
One-time payments only. Controls whether checkout prioritizes price options that match the customer's local currencies resolved from the checkout access IP. Defaults to false. When true, checkout shows local price options for one-time payments; if no local price option can be shown, Clink falls back to the original pricing currency when it is available. This setting does not apply to subscription checkout sessions.
promotionCode
string
Pre-filled promotion code for the checkout session. Only effective when allowPromotionCodes is set to true. Required when showPromotionCode is false
metadata
object
Merchant metadata. Values must be strings. Maximum 20 keys. Key length must be 40 characters or fewer and string value length must be 500 characters or fewer.
Show child attributes
Response
Checkout session created successfully
code
integer<int32>
msg
string
data
object
Details of the created checkout session
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Clink Documentation","colors":{"primary":"#FF9472"},"logo":{"light":"https://mintcdn.com/clink/SmNnnZK50PsVdBCU/logo/light_new.svg?fit=max\u0026auto=format\u0026n=SmNnnZK50PsVdBCU\u0026q=85\u0026s=9956e279765b6e968dcc19748a3ee896","dark":"https://mintcdn.com/clink/SmNnnZK50PsVdBCU/logo/dark_new.svg?fit=max\u0026auto=format\u0026n=SmNnnZK50PsVdBCU\u0026q=85\u0026s=e447d25bef8f25b8da7fbbe78e04ef92"},"favicon":"https://mintcdn.com/clink/peBNaRlFWIQS8vOQ/favicon.svg?fit=max\u0026auto=format\u0026n=peBNaRlFWIQS8vOQ\u0026q=85\u0026s=c6eb5684668bd21139f01cb68bd69932","api":{"playground":{"display":"interactive"},"examples":{"languages":["curl","java","python","javascript"]}},"appearance":{"default":"light","strict":true},"navbar":{"links":[{"href":"https://uat-dashboard.clinkbill.com","label":"Sandbox"},{"href":"mailto:contact@clinkbill.com","label":"Support"},{"href":"https://github.com/clinkbillcom/clink-integ-skills","label":"Integration-skill"},{"href":"https://docs.clinkbill.com/llms.txt","label":"llms.txt"},{"href":"https://docs.clinkbill.com/llms-full.txt","label":"llms-full.txt"}],"primary":{"type":"button","label":"Dashboard","href":"https://dashboard.clinkbill.com"}},"footer":{"socials":{"x":"https://x.com/clink_bill","linkedin":"https://linkedin.com/company/clinkbill"}},"icons":{"library":"lucide"},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","href":""},{"language":"cn","href":"cn"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"clink","hasAudioNarration":false,"actualSubdomain":"clink","customDomains":["docs.clinkbill.com"],"gitSource":{"type":"github","owner":"pppatrickkkk","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b0698d3aa9af906bc125a31","clientVersion":"0.0.4344","searchFilterCounts":[{"language":"en","tag":"API Reference","count":59},{"language":"cn","tag":"API 文档","count":59},{"language":"en","tag":"Documentation","count":46},{"language":"cn","tag":"知识库","count":46},{"language":"default","tag":"API Reference","count":36},{"language":"en","tag":"Agent Portal","count":22},{"language":"cn","tag":"Agent Portal","count":22},{"language":"en","tag":"Agent Solutions","count":15},{"language":"cn","tag":"Agent 解决方案","count":15},{"language":"en","tag":"Guides","count":14},{"language":"cn","tag":"介绍","count":14},{"language":"default","tag":"Webhook Endpoint Management","count":10},{"language":"en","tag":"Subscription","count":8},{"language":"cn","tag":"Subscription","count":8},{"language":"default","tag":"Webhooks","count":7},{"language":"en","tag":"Integration","count":6},{"language":"en","tag":"Choose your integration","count":6},{"language":"en","tag":"Core Resource","count":6},{"language":"cn","tag":"接入","count":6},{"language":"cn","tag":"选择接入方案","count":6},{"language":"cn","tag":"资源说明","count":6},{"language":"en","tag":"API Documentation","count":5},{"language":"default","tag":"Test Clock","count":5},{"language":"cn","tag":"概述","count":5},{"language":"default","tag":"Subscription","count":3},{"language":"default","tag":"Checkout Session","count":3},{"language":"default","tag":"Agent Payment Session","count":2},{"language":"default","tag":"Price","count":2},{"language":"default","tag":"Product","count":2},{"language":"default","tag":"Order","count":1}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/endpoint/create-checkout-session","slug":"/api-reference/endpoint/create-checkout-session","pageMetadata":{"title":"Create Checkout Session","openapi":"POST /checkout/session","description":"Create a new checkout session for payment processing","href":"/api-reference/endpoint/create-checkout-session"},"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 for payment processing\"\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":"Create Checkout Session","openapi":"POST /checkout/session","description":"Create a new checkout session for payment processing","href":"/api-reference/endpoint/create-checkout-session"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Create Checkout Session","description":"Create a new checkout session for payment processing","operationId":"add","requestBody":"f59d8f1d-b2b9-4e87-9397-d217609e926a","parameters":["d38b859a-2711-4bdd-afd4-64d76db26d0e"],"responses":{"200":"84fb0f53-3740-4e85-ac17-40832379b53b","401":"de0034a1-8654-49f1-aa25-2e40a06795a5"},"method":"post","type":"path","servers":["b2630f7c-b580-42ee-848e-50e28a0df10c"],"security":["576c5cef-b775-4c78-9e3a-3dcf79b6a742"],"path":"/checkout/session","baseUrlOptions":["https://uat-api.clinkbill.com/api/"],"title":"Create Checkout Session","codeSamples":[],"requestExampleLanguages":["bash","java","python","javascript"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"d38b859a-2711-4bdd-afd4-64d76db26d0e":{"name":"X-Timestamp","in":"header","required":true,"description":"Current timestamp in milliseconds since Unix epoch (required for request signing)","schema":{"type":"string","example":"1783513683000","isRequired":true,"description":"Current timestamp in milliseconds since Unix epoch (required for request signing)","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","description":"Parameters required to initialize a new checkout session. Provide at least one of customerId, customerEmail, referenceCustomerId, or a complete historicalPaymentInstrumentImport object. If none is provided, the request fails with CUSTOMER_NOT_FOUND. A complete historicalPaymentInstrumentImport object can be used by itself to resolve or create the customer. When customerId is provided, it is the primary identifier and customerEmail/referenceCustomerId must match the same customer. Without customerId, Clink resolves the customer by customerEmail and/or referenceCustomerId; when both are provided, they must resolve to the same customer or the request fails with CUSTOMER_IDENTIFIER_NOT_MATCHED.","required":["originalAmount","originalCurrency"],"conditionallyRequiredProperties":{"returnUrl":[{"when":[[{"property":"uiMode","values":["elements"]}]]}]},"properties":{"originalAmount":{"minimum":0,"exclusiveMinimum":true,"type":"number","description":"Total transaction amount in the specified currency (must be greater than 0)","isRequired":true,"uniqueKey":"originalAmount","typeLabel":"number"},"originalCurrency":{"type":"string","description":"Three-letter ISO currency code for the transaction (e.g., USD, EUR, GBP)","isRequired":true,"uniqueKey":"originalCurrency","typeLabel":"string"},"customerId":{"type":"string","minLength":1,"description":"Existing customer's unique identifier. At least one of customerId, customerEmail, referenceCustomerId, or a complete historicalPaymentInstrumentImport object is required. When provided, customerId is the primary identifier and customerEmail/referenceCustomerId must match the same customer","uniqueKey":"customerId","typeLabel":"string"},"customerEmail":{"type":"string","minLength":1,"description":"Customer's email address. At least one of customerId, customerEmail, referenceCustomerId, or a complete historicalPaymentInstrumentImport object is required. When customerId is not provided, Clink uses customerEmail and/or referenceCustomerId to resolve the customer. A new customer may be created when no existing customer matches","uniqueKey":"customerEmail","typeLabel":"string"},"initializeCardholder":{"type":"string","description":"Optional cardholder name used when initializing a card. Only Unicode letters and ordinary spaces are allowed.","pattern":"^[\\p{L} ]+$","example":"Alice Silva","uniqueKey":"initializeCardholder","typeLabel":"string"},"referenceCustomerId":{"type":"string","minLength":1,"description":"Merchant-side customer ID used to locate, validate, create, or bind a customer. At least one of customerId, customerEmail, referenceCustomerId, or a complete historicalPaymentInstrumentImport object is required. If none is provided, the request fails with CUSTOMER_NOT_FOUND","uniqueKey":"referenceCustomerId","typeLabel":"string"},"historicalPaymentInstrumentImport":{"description":"Optional customer information associated with a merchant's existing payment channel. Currently, only Stripe is supported. It is used to resolve or create the corresponding customer record and migrate historical payment instruments from supported payment providers. This object may be used as the only customer identifier. When provided, both channelAlias and channelCustomerReference are required.","required":["channelAlias","channelCustomerReference"],"type":"object","properties":{"channelAlias":{"type":"string","minLength":1,"description":"Alias of the merchant-owned hosted Stripe channel, for example mcht_xxx-stripe-m1","isRequired":true,"uniqueKey":"historicalPaymentInstrumentImport.channelAlias","typeLabel":"string"},"channelCustomerReference":{"type":"string","minLength":1,"description":"Stripe customer identifier assigned by the channel, for example cus_xxx","isRequired":true,"uniqueKey":"historicalPaymentInstrumentImport.channelCustomerReference","typeLabel":"string"},"paymentMethodTypes":{"type":"array","description":"Optional payment method types to import from the Stripe customer. If omitted or empty, Clink uses the server-side payment method set allowed for the merchant and channel. Supported values are CARD and CASHAPP. CASHAPP takes effect only when enabled for both the merchant and the channel; otherwise it is filtered out without failing the request.","uniqueItems":true,"items":{"type":"string","enum":["CARD","CASHAPP"],"uniqueKey":"historicalPaymentInstrumentImport.paymentMethodTypes.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"historicalPaymentInstrumentImport.paymentMethodTypes","typeLabel":"enum\u003cstring>[]"}},"uniqueKey":"historicalPaymentInstrumentImport","typeLabel":"object"},"merchantReferenceId":{"type":"string","description":"Your internal reference ID for tracking (non-unique identifier, does not guarantee idempotency)","uniqueKey":"merchantReferenceId","typeLabel":"string"},"priceId":{"type":"string","description":"Unique identifier of the predefined price configuration from your dashboard","uniqueKey":"priceId","typeLabel":"string"},"productId":{"type":"string","description":"Unique identifier of the product configured in your dashboard","uniqueKey":"productId","typeLabel":"string"},"productUrl":{"type":"string","maxLength":2048,"description":"URL of the product page. Used for the product name link in the receipt email when the matching line item has no productUrl. Standard products fall back to the product's own productUrl when omitted. Must start with http:// or https:// (scheme is case-insensitive) and be at most 2048 characters. Requests whose productUrl uses any other scheme are rejected.","uniqueKey":"productUrl","typeLabel":"string"},"scheduledPhases":{"type":"array","description":"Optional top-level list of scheduled subscription plan changes for subscription checkout sessions. The initial subscription uses productId and priceId; each scheduled phase references an existing subscription price snapshot and takes effect at a future billing period boundary. One-time price snapshots are rejected. sequence and effectiveCycle must be strictly increasing.","maxItems":10,"items":{"required":["sequence","effectiveCycle","priceSnapshotId"],"type":"object","description":"A scheduled subscription plan change for a checkout session that takes effect at a future billing period boundary.","properties":{"sequence":{"minimum":1,"type":"integer","description":"Position of this phase in the schedule. Values must be strictly increasing.","format":"int32","isRequired":true,"uniqueKey":"scheduledPhases.items.[INDEX].sequence","typeLabel":"integer\u003cint32>"},"effectiveCycle":{"minimum":1,"type":"integer","description":"The renewal boundary when this phase takes effect, counted from subscription creation. Values must be strictly increasing.","format":"int32","isRequired":true,"uniqueKey":"scheduledPhases.items.[INDEX].effectiveCycle","typeLabel":"integer\u003cint32>"},"priceSnapshotId":{"type":"string","description":"Target subscription price snapshot ID. The snapshot must exist, have priceType=SUBSCRIBE with valid recurring details, and support the subscription payment currency.","isRequired":true,"uniqueKey":"scheduledPhases.items.[INDEX].priceSnapshotId","typeLabel":"string"},"metadata":{"type":"object","description":"Optional metadata for this scheduled phase. Maximum 20 keys. Key length must be 40 characters or fewer and string value length must be 500 characters or fewer.","maxProperties":20,"propertyNames":{"maxLength":40},"additionalProperties":{"type":"string","maxLength":500,"uniqueKey":"scheduledPhases.items.[INDEX].metadata.additionalProperties","typeLabel":"string"},"uniqueKey":"scheduledPhases.items.[INDEX].metadata","typeLabel":"object"}},"uniqueKey":"scheduledPhases.items.[INDEX]","typeLabel":"object"},"uniqueKey":"scheduledPhases","typeLabel":"object[]"},"subscriptionStartType":{"type":"string","description":"Optional subscription start time selection for subscription checkout sessions. `subscription_created` uses the time the subscription is created (default); `session_created` uses the time the Checkout Session was created. This parameter has no effect on one-time checkout sessions.","enum":["subscription_created","session_created"],"default":"subscription_created","example":"session_created","uniqueKey":"subscriptionStartType","typeLabel":"enum\u003cstring>"},"uiMode":{"type":"string","enum":["elements","hostedPage"],"description":"Checkout UI mode. Use `hostedPage` for hosted redirect checkout and `elements` for embedded checkout. When set to `elements`, `returnUrl` is required.","uniqueKey":"uiMode","typeLabel":"enum\u003cstring>"},"returnUrl":{"type":"string","description":"Return URL for embedded checkout. Required when `uiMode` is `elements`. Clink replaces `{ELEMENTS_SESSION_ID}` in the URL with the created session ID before returning control to your site. Example: `https://merchant.example.com/complete.html?session_id={ELEMENTS_SESSION_ID}`","conditionalRequirements":[{"when":[[{"property":"uiMode","values":["elements"]}]]}],"uniqueKey":"returnUrl","typeLabel":"string"},"successUrl":{"type":"string","description":"URL where customers will be redirected after successful payment completion","uniqueKey":"successUrl","typeLabel":"string"},"cancelUrl":{"type":"string","description":"URL where customers will be redirected if they cancel the checkout process","uniqueKey":"cancelUrl","typeLabel":"string"},"paymentMethodType":{"type":"string","enum":["CARD","CASHAPP","WECHAT","KAKAO","PIX","ALIPAY","UPI","PAYPAL","GOOGLEPAY","APPLEPAY","QRIS","GCASH"],"description":"The default selected payment method for created checkout session. Recommended if you know customer preference in advance","uniqueKey":"paymentMethodType","typeLabel":"enum\u003cstring>"},"paymentMethodTypeBlackList":{"type":"array","items":{"type":"string","enum":["CARD","CASHAPP","WECHAT","KAKAO","PIX","ALIPAY","UPI","PAYPAL","GOOGLEPAY","APPLEPAY","QRIS","GCASH"],"uniqueKey":"paymentMethodTypeBlackList.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"List of payment method types to be excluded from the checkout session. Recommended if you know customer preference in advance. Supported values: CARD, CASHAPP, WECHAT, KAKAO, PIX, ALIPAY, UPI, PAYPAL, GOOGLEPAY, APPLEPAY, QRIS, GCASH","uniqueKey":"paymentMethodTypeBlackList","typeLabel":"enum\u003cstring>[]"},"paymentMethodSortOrder":{"type":"array","items":{"type":"string","uniqueKey":"paymentMethodSortOrder.items.[INDEX]","typeLabel":"string"},"example":["WECHAT","APPLEPAY","CASHAPP","PAYPAL","GOOGLEPAY","ALIPAY","LINK","CARD"],"description":"Optional display order for payment methods in the created checkout session. Available payment methods listed here are displayed in the exact specified order. Available payment methods omitted from the array are appended afterward in the system default order. Unsupported, unrecognized, or currently unavailable codes are ignored. Duplicate codes are deduplicated using the first occurrence. When omitted or empty, the system default order is used. This field controls display order only; it does not enable unavailable payment methods or replace paymentMethodTypeBlackList.","uniqueKey":"paymentMethodSortOrder","typeLabel":"string[]"},"filterApplePayBoundCard":{"type":"boolean","description":"Controls whether cards saved through Apple Pay are excluded from the bound-card list under CARD in checkout. Defaults to false. Set to true to hide only Apple Pay-saved cards; the APPLEPAY payment method itself remains available when supported.","default":false,"uniqueKey":"filterApplePayBoundCard","typeLabel":"boolean"},"filterGooglePayBoundCard":{"type":"boolean","description":"Controls whether cards saved through Google Pay are excluded from the bound-card list under CARD in checkout. Defaults to false. Set to true to hide only Google Pay-saved cards; the GOOGLEPAY payment method itself remains available when supported.","default":false,"uniqueKey":"filterGooglePayBoundCard","typeLabel":"boolean"},"filterLinkPayBoundCard":{"type":"boolean","description":"Controls whether cards saved through Link are excluded from the bound-card list under CARD in checkout. Defaults to false. Set to true to hide only Link-saved cards; the LINK payment method itself remains available when supported.","default":false,"uniqueKey":"filterLinkPayBoundCard","typeLabel":"boolean"},"directPaymentQrCodePaymentMethodType":{"type":"string","enum":["CASHAPP","QRIS"],"description":"Controls whether the QR code payment flow is launched directly when opening checkout.\n\nCurrently supports `CASHAPP` and `QRIS`.\n\nThis parameter takes effect only when:\n\n- `paymentMethodType` is set to the same value as `directPaymentQrCodePaymentMethodType`\n- The selected payment method is available in the checkout session\n\nBehavior:\n\n- When effective, checkout directly initiates the QR code payment flow\n- In no-password scenarios, payment is not automatically completed\n\nIgnored when:\n\n- The selected payment method is not available in checkout\n- `paymentMethodType` does not match `directPaymentQrCodePaymentMethodType`\n\nAllowed values:\n\n- `CASHAPP`\n- `QRIS`","uniqueKey":"directPaymentQrCodePaymentMethodType","typeLabel":"enum\u003cstring>"},"priceDataList":{"type":"array","description":"List of product pricing details for one-time purchases. Use this when creating transactions without pre-configured products","items":{"required":["name","unitAmount"],"type":"object","properties":{"name":{"type":"string","description":"Display name of the product shown to customers during checkout","isRequired":true,"uniqueKey":"priceDataList.items.[INDEX].name","typeLabel":"string"},"unitAmount":{"minimum":0,"exclusiveMinimum":true,"type":"number","description":"Price per unit in the specified currency (must be greater than 0)","isRequired":true,"uniqueKey":"priceDataList.items.[INDEX].unitAmount","typeLabel":"number"},"quantity":{"minimum":1,"type":"integer","description":"Number of units to be purchased (minimum 1)","format":"int32","uniqueKey":"priceDataList.items.[INDEX].quantity","typeLabel":"integer\u003cint32>"},"currency":{"type":"string","description":"Three-letter ISO currency code for the price (e.g., USD, EUR, GBP)","uniqueKey":"priceDataList.items.[INDEX].currency","typeLabel":"string"},"imageUrl":{"type":"string","description":"URL of the product image to display during checkout","uniqueKey":"priceDataList.items.[INDEX].imageUrl","typeLabel":"string"},"productUrl":{"type":"string","maxLength":2048,"description":"URL of the product page for this line item. Renders that product name as a link in the receipt email and takes precedence over the session-level productUrl. Must start with http:// or https:// (scheme is case-insensitive) and be at most 2048 characters. Requests whose productUrl uses any other scheme are rejected.","uniqueKey":"priceDataList.items.[INDEX].productUrl","typeLabel":"string"}},"uniqueKey":"priceDataList.items.[INDEX]","typeLabel":"object"},"refType":"PriceData","uniqueKey":"priceDataList","typeLabel":"object[]"},"allowPromotionCodes":{"type":"boolean","description":"Set to true to enable customers to enter promotion codes during checkout","uniqueKey":"allowPromotionCodes","typeLabel":"boolean"},"showPromotionCode":{"type":"boolean","description":"Controls whether the promotion code input is shown in checkout. Defaults to true. Set to false with allowPromotionCodes=true and promotionCode to apply a hidden promotion code without showing the input box.","default":true,"uniqueKey":"showPromotionCode","typeLabel":"boolean"},"localPriceOnly":{"type":"boolean","description":"One-time payments only. Controls whether checkout prioritizes price options that match the customer's local currencies resolved from the checkout access IP. Defaults to false. When true, checkout shows local price options for one-time payments; if no local price option can be shown, Clink falls back to the original pricing currency when it is available. This setting does not apply to subscription checkout sessions.","default":false,"uniqueKey":"localPriceOnly","typeLabel":"boolean"},"promotionCode":{"type":"string","description":"Pre-filled promotion code for the checkout session. Only effective when allowPromotionCodes is set to true. Required when showPromotionCode is false","uniqueKey":"promotionCode","typeLabel":"string"},"metadata":{"type":"object","description":"Merchant metadata. Values must be strings. Maximum 20 keys. Key length must be 40 characters or fewer and string value length must be 500 characters or fewer.","maxProperties":20,"propertyNames":{"maxLength":40},"additionalProperties":{"type":"string","maxLength":500,"uniqueKey":"metadata.additionalProperties","typeLabel":"string"},"uniqueKey":"metadata","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"hostedCheckout":{"title":"hostedCheckout","summary":"Hosted checkout","value":{"customerId":"customer_id","originalAmount":4.99,"originalCurrency":"USD","priceId":"price_id","productId":"prd_id","initializeCardholder":"Alice Silva","uiMode":"hostedPage","metadata":{"customerTier":"vip","source":"merchant_portal"}}},"embeddedElements":{"title":"embeddedElements","summary":"Embedded checkout (elements)","value":{"customerId":"customer_id","originalAmount":4.99,"originalCurrency":"USD","priceId":"price_id","productId":"prd_id","initializeCardholder":"Alice Silva","uiMode":"elements","returnUrl":"https://merchant.example.com/complete.html?session_id={ELEMENTS_SESSION_ID}","metadata":{"customerTier":"vip","source":"merchant_portal"}}},"hiddenPromotionCode":{"title":"hiddenPromotionCode","summary":"Checkout with a hidden promotion code","value":{"customerId":"cus_xxxxx","originalAmount":19.99,"originalCurrency":"USD","priceId":"price_xxxxx","productId":"prd_xxxxx","uiMode":"hostedPage","allowPromotionCodes":true,"showPromotionCode":false,"promotionCode":"SAVE10"}},"historicalPaymentInstrumentImport":{"title":"historicalPaymentInstrumentImport","summary":"Checkout with historical payment instrument import","value":{"customerId":"cus_xxxxx","originalAmount":19.99,"originalCurrency":"USD","priceId":"price_xxxxx","productId":"prd_xxxxx","uiMode":"hostedPage","historicalPaymentInstrumentImport":{"channelAlias":"mcht_xxx-stripe-m1","channelCustomerReference":"cus_xxx","paymentMethodTypes":["CARD"]}}},"subscriptionScheduledPhases":{"title":"subscriptionScheduledPhases","summary":"Subscription checkout with scheduled phases","value":{"customerId":"cus_xxxxx","originalAmount":1000,"originalCurrency":"USD","priceId":"price_initial","productId":"prd_basic","subscriptionStartType":"session_created","uiMode":"hostedPage","successUrl":"https://merchant.example.com/success","cancelUrl":"https://merchant.example.com/cancel","metadata":{"customerTier":"vip","source":"merchant_portal"},"scheduledPhases":[{"sequence":1,"effectiveCycle":2,"priceSnapshotId":"pricesns_growth_monthly","metadata":{"source":"checkout_schedule"}},{"sequence":2,"effectiveCycle":4,"priceSnapshotId":"pricesns_scale_monthly"}]}}},"exampleType":"examples"}},"required":true,"exampleType":"examples"},"responses":{"84fb0f53-3740-4e85-ac17-40832379b53b":{"description":"Checkout session created successfully","content":{"*/*":{"schema":{"type":"object","properties":{"code":{"type":"integer","format":"int32","uniqueKey":"code","typeLabel":"integer\u003cint32>"},"msg":{"type":"string","uniqueKey":"msg","typeLabel":"string"},"data":{"type":"object","description":"Details of the created checkout session","properties":{"sessionId":{"type":"string","description":"Unique identifier for the created checkout session","example":"sess_abc123xyz","uniqueKey":"data.sessionId","typeLabel":"string"},"tokenValue":{"type":"string","description":"Secure, time-limited token for authenticating checkout session access","uniqueKey":"data.tokenValue","typeLabel":"string"},"customerId":{"type":"string","description":"Unique identifier of the customer associated with this checkout session","example":"cus_12345","uniqueKey":"data.customerId","typeLabel":"string"},"originalAmount":{"type":"number","description":"Initial transaction amount specified in the creation request","example":99.99,"uniqueKey":"data.originalAmount","typeLabel":"number"},"originalCurrency":{"type":"string","description":"Three-letter ISO currency code specified in the creation request (e.g., USD, EUR, GBP)","example":"USD","uniqueKey":"data.originalCurrency","typeLabel":"string"},"uiMode":{"type":"string","enum":["elements","hostedPage"],"description":"Checkout UI mode used for this session","uniqueKey":"data.uiMode","typeLabel":"enum\u003cstring>"},"returnUrl":{"type":"string","description":"Return URL configured for embedded checkout sessions","uniqueKey":"data.returnUrl","typeLabel":"string"},"url":{"type":"string","description":"Complete URL to the hosted checkout page where customers can complete their payment","example":"https://uat-checkout.clinkbill.com/pay/sess_abc123xyz","uniqueKey":"data.url","typeLabel":"string"},"merchantReferenceId":{"type":"string","description":"Your provided reference identifier for tracking this transaction","example":"order_ref_123","uniqueKey":"data.merchantReferenceId","typeLabel":"string"},"expireTime":{"type":"string","example":"2026-07-30 12:00:00","description":"Session expiry time. Serialized as \"yyyy-MM-dd HH:mm:ss\" with no offset or timezone designator, so it is not RFC 3339. Do not assume UTC, the browser timezone, or a per-account timezone - none of those is applied by the backend today.","uniqueKey":"data.expireTime","typeLabel":"string"}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":123,"msg":"\u003cstring>","data":{"sessionId":"sess_abc123xyz","tokenValue":"\u003cstring>","customerId":"cus_12345","originalAmount":99.99,"originalCurrency":"USD","uiMode":"elements","returnUrl":"\u003cstring>","url":"https://uat-checkout.clinkbill.com/pay/sess_abc123xyz","merchantReferenceId":"order_ref_123","expireTime":"2026-07-30 12:00:00"}}}},"exampleType":"generated"},"application/json":{"schema":{"type":"object","description":"Response object returned when creating a new checkout session","properties":{"code":{"type":"integer","description":"HTTP status code indicating the request result (200 for success, 4xx for client errors, 5xx for server errors)","format":"int32","example":200,"uniqueKey":"code","typeLabel":"integer\u003cint32>"},"msg":{"type":"string","description":"Human-readable message describing the result ('success' for successful operations, error details for failures)","example":"success","uniqueKey":"msg","typeLabel":"string"},"data":{"type":"object","description":"Checkout session details when successfully created","properties":{"sessionId":{"type":"string","description":"Unique identifier for the created checkout session","example":"sess_abc123xyz","uniqueKey":"data.sessionId","typeLabel":"string"},"tokenValue":{"type":"string","description":"Secure, time-limited token for authenticating checkout session access","uniqueKey":"data.tokenValue","typeLabel":"string"},"customerId":{"type":"string","description":"Unique identifier of the customer associated with this checkout session","example":"cus_12345","uniqueKey":"data.customerId","typeLabel":"string"},"originalAmount":{"type":"number","description":"Initial transaction amount specified in the creation request","example":99.99,"uniqueKey":"data.originalAmount","typeLabel":"number"},"originalCurrency":{"type":"string","description":"Three-letter ISO currency code specified in the creation request (e.g., USD, EUR, GBP)","example":"USD","uniqueKey":"data.originalCurrency","typeLabel":"string"},"uiMode":{"type":"string","enum":["elements","hostedPage"],"description":"Checkout UI mode used for this session","uniqueKey":"data.uiMode","typeLabel":"enum\u003cstring>"},"returnUrl":{"type":"string","description":"Return URL configured for embedded checkout sessions","uniqueKey":"data.returnUrl","typeLabel":"string"},"url":{"type":"string","description":"Complete URL to the hosted checkout page where customers can complete their payment","example":"https://uat-checkout.clinkbill.com/pay/sess_abc123xyz","uniqueKey":"data.url","typeLabel":"string"},"merchantReferenceId":{"type":"string","description":"Your provided reference identifier for tracking this transaction","example":"order_ref_123","uniqueKey":"data.merchantReferenceId","typeLabel":"string"},"expireTime":{"type":"string","example":"2026-07-30 12:00:00","description":"Session expiry time. Serialized as \"yyyy-MM-dd HH:mm:ss\" with no offset or timezone designator, so it is not RFC 3339. Do not assume UTC, the browser timezone, or a per-account timezone - none of those is applied by the backend today.","uniqueKey":"data.expireTime","typeLabel":"string"}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":200,"msg":"success","data":{"sessionId":"sess_abc123xyz","tokenValue":"\u003cstring>","customerId":"cus_12345","originalAmount":99.99,"originalCurrency":"USD","uiMode":"elements","returnUrl":"\u003cstring>","url":"https://uat-checkout.clinkbill.com/pay/sess_abc123xyz","merchantReferenceId":"order_ref_123","expireTime":"2026-07-30 12:00:00"}}}},"exampleType":"generated"}},"exampleType":"generated"},"de0034a1-8654-49f1-aa25-2e40a06795a5":{"description":"Unauthorized","content":{"*/*":{"schema":{"type":"string","uniqueKey":"","typeLabel":"string"},"examples":{"Example":{"title":"Example","value":"\u003cstring>"}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"576c5cef-b775-4c78-9e3a-3dcf79b6a742":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-KEY","description":"Your secret API key obtained from the Clink dashboard (Developers section)","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"b2630f7c-b580-42ee-848e-50e28a0df10c":{"url":"https://uat-api.clinkbill.com/api/"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-KEY","description":"Your secret API key obtained from the Clink dashboard (Developers section)","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"X-API-KEY","type":"string","description":"Your secret API key obtained from the Clink dashboard (Developers section)","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"X-API-KEY"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"clink","siteName":"Clink Documentation","title":"Create Checkout Session - Clink Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-reference/endpoint/create-checkout-session","matchLevel":0},"cn":{"href":"/api-reference/endpoint/create-checkout-session","matchLevel":0}}},"lastModified":"2025-08-07T09:16:41.198Z","originalFileLocation":"api-reference/endpoint/create-checkout-session.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";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=\"light\"}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 for payment processing\">\u003cmeta data-mint-head name=\"application-name\" content=\"Clink Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/clink/ur0VwNJVZSsj7vK4/_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/clink/ur0VwNJVZSsj7vK4/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/clink/ur0VwNJVZSsj7vK4/_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/clink/ur0VwNJVZSsj7vK4/_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/clink/ur0VwNJVZSsj7vK4/_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/clink/ur0VwNJVZSsj7vK4/_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/clink/ur0VwNJVZSsj7vK4/_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/clink/ur0VwNJVZSsj7vK4/_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/clink/ur0VwNJVZSsj7vK4/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Checkout Session - Clink Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a new checkout session for payment processing\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Clink Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.clinkbill.com/api-reference/endpoint/create-checkout-session\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://clink.mintlify.site/_mintlify/api/og/v2?division=Checkout+Session\u0026amp;title=Create+Checkout+Session\u0026amp;description=Create+a+new+checkout+session+for+payment+processing\u0026amp;theme=be5a6376d6c12292dd7b4d25\u0026amp;signature=a1b39a3f926cd3610b4357817e201132f08f62ecd53830ad2fc55a466709458a\">\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=\"Create Checkout Session - Clink Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a new checkout session for payment processing\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://clink.mintlify.site/_mintlify/api/og/v2?division=Checkout+Session\u0026amp;title=Create+Checkout+Session\u0026amp;description=Create+a+new+checkout+session+for+payment+processing\u0026amp;theme=be5a6376d6c12292dd7b4d25\u0026amp;signature=a1b39a3f926cd3610b4357817e201132f08f62ecd53830ad2fc55a466709458a\">\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/clink/ur0VwNJVZSsj7vK4/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Clink Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FF9472\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.clinkbill.com/api-reference/endpoint/create-checkout-session\">\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-session.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.clinkbill.com/#organization\",\"name\":\"Clink Documentation\",\"url\":\"https://docs.clinkbill.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/clink/SmNnnZK50PsVdBCU/logo/light_new.svg?fit=max\u0026auto=format\u0026n=SmNnnZK50PsVdBCU\u0026q=85\u0026s=9956e279765b6e968dcc19748a3ee896\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.clinkbill.com#website\",\"name\":\"Clink Documentation\",\"url\":\"https://docs.clinkbill.com\",\"publisher\":{\"@id\":\"https://docs.clinkbill.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.clinkbill.com/api-reference/endpoint/create-checkout-session#webpage\",\"url\":\"https://docs.clinkbill.com/api-reference/endpoint/create-checkout-session\",\"name\":\"Create Checkout Session\",\"description\":\"Create a new checkout session for payment processing\",\"dateModified\":\"2025-08-07T09:16:41.198Z\",\"isPartOf\":{\"@id\":\"https://docs.clinkbill.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.clinkbill.com/api-reference/endpoint/create-checkout-session#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.clinkbill.com/api-reference/endpoint/create-checkout-session#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Clink Documentation\",\"item\":\"https://docs.clinkbill.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Checkout Session\",\"item\":\"https://docs.clinkbill.com/api-reference/endpoint/create-checkout-session\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.clinkbill.com/api-reference/endpoint/create-checkout-session#apireference\",\"headline\":\"Create Checkout Session\",\"name\":\"Create Checkout Session\",\"description\":\"Create a new checkout session for payment processing\",\"url\":\"https://docs.clinkbill.com/api-reference/endpoint/create-checkout-session\",\"mainEntityOfPage\":{\"@id\":\"https://docs.clinkbill.com/api-reference/endpoint/create-checkout-session#webpage\"},\"dateModified\":\"2025-08-07T09:16:41.198Z\",\"publisher\":{\"@id\":\"https://docs.clinkbill.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.clinkbill.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Clink Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Clink Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/endpoint/create-checkout-session.md","siteName":"Clink Documentation","nav":{"global":null,"languages":[{"language":"en","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API Reference","groups":[{"group":"API Documentation","pages":[{"title":"Introduction","icon":"chevrons-left-right-ellipsis","href":"/api-reference/introduction"},{"title":"TypeScript SDK","icon":"npm","href":"/api-reference/SDK"},{"title":"JavaScript SDK","icon":"code","href":"/api-reference/javascript_sdk"},{"title":"Clink CLI","icon":"terminal","href":"/api-reference/clink_cli"},{"title":"Agent Vault SDK API reference","sidebarTitle":"Agent Vault SDK","icon":"vault","href":"/api-reference/agent_vault_sdk"}]},{"group":"Clink MCP","pages":[{"title":"Wallet MCP tools","icon":"wallet","href":"/api-reference/mcp/wallet"},{"title":"Browser Pay tools","icon":"app-window","href":"/api-reference/mcp/browser_pay"},{"title":"Operations and recovery","icon":"refresh-cw","href":"/api-reference/mcp/operations"},{"title":"Catalog and UCP Checkout","icon":"shopping-cart","href":"/api-reference/mcp/commerce"},{"title":"Agent Platform MCP Login","icon":"key-round","href":"/api-reference/mcp/agent_platform_login"}]},{"group":"Agent Portal","icon":"layout-dashboard","pages":[{"title":"Portal token","openapi":"POST /agent/cwallet/platform/portal/tokens","href":"/api-reference/agent-portal/portal_token"},{"group":"Account","pages":[{"title":"Get account","openapi":"GET /agent/platform/me","href":"/api-reference/agent-portal/get_account"},{"title":"Get risk rules","openapi":"GET /agent/platform/risk-rules","href":"/api-reference/agent-portal/get_risk_rules"},{"title":"Update risk rules","openapi":"PUT /agent/platform/risk-rules","href":"/api-reference/agent-portal/update_risk_rules"},{"title":"Get billing address","openapi":"GET /agent/platform/billing-address","href":"/api-reference/agent-portal/get_billing_address"},{"title":"Update billing address","openapi":"PUT /agent/platform/billing-address","href":"/api-reference/agent-portal/update_billing_address"}]},{"group":"Payment Methods","pages":[{"title":"List payment methods","openapi":"GET /agent/platform/payment-methods","href":"/api-reference/agent-portal/list_payment_methods"},{"title":"Bind a card","openapi":"POST /agent/platform/bind-sessions","href":"/api-reference/agent-portal/bind_card"},{"title":"Create a Vault session","openapi":"POST /agent/platform/vault-sessions","href":"/api-reference/agent-portal/create_vault_session"},{"title":"Create a card session","openapi":"POST /agent/platform/card-sessions","href":"/api-reference/agent-portal/create_card_session"},{"title":"Delete payment method","openapi":"DELETE /agent/platform/payment-methods/{paymentInstrumentId}","href":"/api-reference/agent-portal/delete_payment_method"}]},{"group":"Orders","pages":[{"title":"List orders","openapi":"GET /agent/platform/orders","href":"/api-reference/agent-portal/list_orders"},{"title":"Get order","openapi":"GET /agent/platform/orders/{orderId}","href":"/api-reference/agent-portal/get_order"}]},{"group":"Refunds","pages":[{"title":"List refunds","openapi":"GET /agent/platform/refunds","href":"/api-reference/agent-portal/list_refunds"},{"title":"Get refund","openapi":"GET /agent/platform/refunds/{refundOrderId}","href":"/api-reference/agent-portal/get_refund"}]},{"group":"Authorizations","pages":[{"title":"List authorizations","openapi":"GET /agent/platform/authorizations","href":"/api-reference/agent-portal/list_authorizations"},{"title":"Get authorization","openapi":"GET /agent/platform/authorizations/{instructionId}","href":"/api-reference/agent-portal/get_authorization"},{"title":"Get payment credential","openapi":"GET /agent/platform/authorizations/{instructionId}/payment-credential","href":"/api-reference/agent-portal/get_payment_credential"},{"title":"Create instruction","openapi":"POST /agent/platform/authorizations","href":"/api-reference/agent-portal/create_instruction"},{"title":"Revoke instruction","openapi":"POST /agent/platform/authorizations/{instructionId}/revoke","href":"/api-reference/agent-portal/revoke_instruction"}]},{"group":"Credentials","pages":[{"title":"Get credential","openapi":"POST /agent/platform/credential","href":"/api-reference/agent-portal/get_credential"},{"title":"Report credential result","openapi":"POST /agent/platform/credential-results","description":"Reports the outcome observed on the merchant page after using a credential. Requires `portal:write`.","href":"/api-reference/agent-portal/report_credential_result"}]}]},{"group":"Checkout Session","pages":[{"title":"Create Checkout Session","openapi":"POST /checkout/session","href":"/api-reference/endpoint/create-checkout-session"},{"title":"Get Checkout Session","openapi":"GET /checkout/session/{id}","description":"Retrieve details of an existing checkout session","href":"/api-reference/endpoint/get-checkout-session"},{"title":"Expire Checkout Session","openapi":"POST /checkout/session/{id}/expire","href":"/api-reference/endpoint/expire-checkout-session"}]},{"group":"Payment","pages":[{"title":"Create Payment","openapi":"POST /payment","href":"/api-reference/endpoint/create-payment"},{"title":"Refresh Wallet QR Code","openapi":"POST /payment/{orderId}/qrcode/refresh","href":"/api-reference/endpoint/refresh-wallet-qrcode"}]},{"group":"Payment Instrument","pages":[{"title":"Create Payment Instrument","openapi":"POST /payment-instrument","href":"/api-reference/endpoint/create-payment-instrument"}]},{"group":"Order","pages":[{"title":"List Orders","openapi":"GET /order","href":"/api-reference/endpoint/list-orders"},{"title":"Get Order","openapi":"GET /order/{id}","href":"/api-reference/endpoint/get-order"}]},{"group":"Agent Payment Session","pages":[{"title":"Create Agent Payment Session","openapi":"POST /order/payment-session","href":"/api-reference/endpoint/create-agent-payment-session"},{"title":"Get Agent Payment Session","openapi":"GET /order/payment-session/{sessionId}","href":"/api-reference/endpoint/get-agent-payment-session"}]},{"group":"Refund","pages":[{"title":"Create Refund","openapi":"POST /refund","href":"/api-reference/endpoint/create-refund"},{"title":"Get Refund","openapi":"GET /refund/{id}","href":"/api-reference/endpoint/get-refund"}]},{"group":"Product","pages":[{"title":"Upload Product Image","openapi":"POST /product/image/upload","href":"/api-reference/endpoint/upload-product-image"},{"title":"Create Product","openapi":"POST /product","href":"/api-reference/endpoint/create-product"},{"title":"Get Product","openapi":"GET /product/{id}","href":"/api-reference/endpoint/get-product"},{"title":"Get Product List","openapi":"GET /product","href":"/api-reference/endpoint/get-product-list"}]},{"group":"Price","pages":[{"title":"Create Price","openapi":"POST /price","href":"/api-reference/endpoint/create-price"},{"title":"Get Price","openapi":"GET /price/{id}","href":"/api-reference/endpoint/get-price"},{"title":"Get Price List","openapi":"GET /price","href":"/api-reference/endpoint/get-price-list"},{"title":"Update Price","openapi":"PUT /price/{id}","href":"/api-reference/endpoint/update-price"}]},{"group":"Coupon","pages":[{"title":"Create Coupon","openapi":"POST /coupon","href":"/api-reference/endpoint/create-coupon"},{"title":"List Coupons","openapi":"GET /coupon","href":"/api-reference/endpoint/list-coupons"},{"title":"Get Coupon","openapi":"GET /coupon/{couponId}","href":"/api-reference/endpoint/get-coupon"},{"title":"Rename Coupon","openapi":"PUT /coupon/{couponId}/name","href":"/api-reference/endpoint/rename-coupon"}]},{"group":"Promotion Code","pages":[{"title":"Create Promotion Code","openapi":"POST /promotion-code/{id}","href":"/api-reference/endpoint/create-promotion-code"},{"title":"Get Promotion Code","openapi":"GET /promotion-code/{id}","href":"/api-reference/endpoint/get-promotion-code"},{"title":"List Promotion Codes by Coupon","openapi":"GET /promotion-code/coupon/{couponId}","href":"/api-reference/endpoint/list-promotion-codes-by-coupon"},{"title":"Activate Promotion Code","openapi":"PUT /promotion-code/{promotionCodeId}/active","href":"/api-reference/endpoint/activate-promotion-code"},{"title":"Deactivate Promotion Code","openapi":"PUT /promotion-code/{promotionCodeId}/deactivate","href":"/api-reference/endpoint/deactivate-promotion-code"}]},{"group":"Subscription","pages":[{"title":"Create Subscription","openapi":"POST /subscription","href":"/api-reference/endpoint/create-subscription"},{"title":"Get Subscription","openapi":"GET /subscription/{id}","href":"/api-reference/endpoint/get-subscription"},{"title":"Preview Subscription Update","openapi":"POST /subscription/{id}/update/preview","href":"/api-reference/endpoint/preview-subscription-update"},{"title":"Confirm Subscription Update","openapi":"POST /subscription/{id}/update/confirm","href":"/api-reference/endpoint/confirm-subscription-update"},{"title":"Cancel Subscription Update","openapi":"POST /subscription/{id}/update/cancel","href":"/api-reference/endpoint/cancel-subscription-update"},{"title":"Pause Subscription","openapi":"POST /subscription/{id}/pause","href":"/api-reference/endpoint/pause-subscription"},{"title":"Cancel a Scheduled Pause","openapi":"POST /subscription/{id}/pause/cancel","href":"/api-reference/endpoint/cancel-subscription-pause-schedule"},{"title":"Resume Subscription","openapi":"POST /subscription/{id}/resume","href":"/api-reference/endpoint/resume-subscription"},{"title":"Update Automatic Resume Time","openapi":"POST /subscription/{id}/resume/schedule","href":"/api-reference/endpoint/update-subscription-resume-schedule"},{"title":"Cancel Subscription","openapi":"POST /subscription/{id}/cancel","href":"/api-reference/endpoint/cancel-subscription"},{"title":"Get Invoice","openapi":"GET /subscription/invoice/{id}","href":"/api-reference/endpoint/get-invoice"}]},{"group":"Test Clock","pages":[{"title":"List Test Clocks","openapi":"GET /subscription/test-clocks/list","href":"/api-reference/endpoint/list-test-clocks"},{"title":"Create Test Clock","openapi":"POST /subscription/test-clocks","href":"/api-reference/endpoint/create-test-clock"},{"title":"Get Test Clock","openapi":"GET /subscription/test-clocks/{clockId}","href":"/api-reference/endpoint/get-test-clock"},{"title":"Advance Test Clock","openapi":"POST /subscription/test-clocks/{clockId}/advance","href":"/api-reference/endpoint/advance-test-clock"},{"title":"Complete Test Clock","openapi":"POST /subscription/test-clocks/{clockId}/complete","href":"/api-reference/endpoint/complete-test-clock"}]},{"group":"Customer Portal","pages":[{"title":"Customer Portal Session","openapi":"POST /billing/session","href":"/api-reference/endpoint/create-customer-portal"}]},{"group":"Webhook Endpoint Management","pages":[{"title":"List Webhook Events","openapi":"GET /webhook/events","href":"/api-reference/endpoint/list-webhook-events"},{"title":"List Webhook Endpoints","openapi":"GET /webhook/endpoints","href":"/api-reference/endpoint/list-webhook-endpoints"},{"title":"Create Webhook Endpoint","openapi":"POST /webhook/endpoints","href":"/api-reference/endpoint/create-webhook-endpoint"},{"title":"Ensure Webhook Endpoint","openapi":"PUT /webhook/endpoints/ensure","href":"/api-reference/endpoint/ensure-webhook-endpoint"},{"title":"Get Webhook Endpoint","openapi":"GET /webhook/endpoints/{id}","href":"/api-reference/endpoint/get-webhook-endpoint"},{"title":"Update Webhook Endpoint","openapi":"PATCH /webhook/endpoints/{id}","href":"/api-reference/endpoint/update-webhook-endpoint"},{"title":"Enable Webhook Endpoint","openapi":"POST /webhook/endpoints/{id}/enable","href":"/api-reference/endpoint/enable-webhook-endpoint"},{"title":"Disable Webhook Endpoint","openapi":"POST /webhook/endpoints/{id}/disable","href":"/api-reference/endpoint/disable-webhook-endpoint"},{"title":"Rotate Webhook Signing Secret","openapi":"POST /webhook/endpoints/{id}/rotate-secret","href":"/api-reference/endpoint/rotate-webhook-signing-secret"},{"title":"Delete Webhook Endpoint","openapi":"DELETE /webhook/endpoints/{id}","href":"/api-reference/endpoint/delete-webhook-endpoint"}]},{"group":"Webhooks","pages":[{"title":"order","openapi":"WEBHOOK order","href":"/api-reference/webhook/order"},{"title":"refund","openapi":"WEBHOOK refund","href":"/api-reference/webhook/refund"},{"title":"subscription","openapi":"WEBHOOK subscription","href":"/api-reference/webhook/subscription"},{"title":"invoice","openapi":"WEBHOOK invoice","href":"/api-reference/webhook/invoice"},{"title":"session","openapi":"WEBHOOK session","href":"/api-reference/webhook/session"},{"title":"customer.verify","openapi":"WEBHOOK customer.verify","href":"/api-reference/webhook/customer.verify"},{"title":"dispute","openapi":"WEBHOOK dispute","href":"/api-reference/webhook/dispute"}]}]}]},{"language":"cn","tabs":[{"tab":"知识库","pages":[{"title":"知识库","href":"/cn"}]},{"tab":"API 文档","groups":[{"group":"概述","pages":[{"title":"介绍","icon":"chevrons-left-right-ellipsis","href":"/cn/api-reference/introduction"},{"title":"TypeScript SDK","icon":"npm","href":"/cn/api-reference/SDK"},{"title":"JavaScript SDK","icon":"code","href":"/cn/api-reference/javascript_sdk"},{"title":"Clink CLI","icon":"terminal","href":"/cn/api-reference/clink_cli"},{"title":"Agent Vault SDK API 参考","sidebarTitle":"Agent Vault SDK","icon":"vault","href":"/cn/api-reference/agent_vault_sdk"}]},{"group":"Clink MCP","pages":[{"title":"Wallet MCP 工具","icon":"wallet","href":"/cn/api-reference/mcp/wallet"},{"title":"Browser Pay 工具","icon":"app-window","href":"/cn/api-reference/mcp/browser_pay"},{"title":"Operation 与恢复","icon":"refresh-cw","href":"/cn/api-reference/mcp/operations"},{"title":"Catalog 与 UCP Checkout","icon":"shopping-cart","href":"/cn/api-reference/mcp/commerce"},{"title":"Agent Platform MCP 登录","icon":"key-round","href":"/cn/api-reference/mcp/agent_platform_login"}]},{"group":"Agent Portal","icon":"layout-dashboard","pages":[{"title":"Portal token","openapi":"POST /agent/cwallet/platform/portal/tokens","href":"/cn/api-reference/agent-portal/portal_token"},{"group":"Account","pages":[{"title":"获取账户","openapi":"GET /agent/platform/me","href":"/cn/api-reference/agent-portal/get_account"},{"title":"获取风控规则","openapi":"GET /agent/platform/risk-rules","href":"/cn/api-reference/agent-portal/get_risk_rules"},{"title":"更新风控规则","openapi":"PUT /agent/platform/risk-rules","href":"/cn/api-reference/agent-portal/update_risk_rules"},{"title":"获取账单地址","openapi":"GET /agent/platform/billing-address","href":"/cn/api-reference/agent-portal/get_billing_address"},{"title":"更新账单地址","openapi":"PUT /agent/platform/billing-address","href":"/cn/api-reference/agent-portal/update_billing_address"}]},{"group":"Payment Methods","pages":[{"title":"支付方式列表","openapi":"GET /agent/platform/payment-methods","href":"/cn/api-reference/agent-portal/list_payment_methods"},{"title":"绑定银行卡","openapi":"POST /agent/platform/bind-sessions","href":"/cn/api-reference/agent-portal/bind_card"},{"title":"创建 Vault 会话","openapi":"POST /agent/platform/vault-sessions","href":"/cn/api-reference/agent-portal/create_vault_session"},{"title":"创建卡管理会话","openapi":"POST /agent/platform/card-sessions","href":"/cn/api-reference/agent-portal/create_card_session"},{"title":"删除支付方式","openapi":"DELETE /agent/platform/payment-methods/{paymentInstrumentId}","href":"/cn/api-reference/agent-portal/delete_payment_method"}]},{"group":"Orders","pages":[{"title":"订单列表","openapi":"GET /agent/platform/orders","href":"/cn/api-reference/agent-portal/list_orders"},{"title":"订单详情","openapi":"GET /agent/platform/orders/{orderId}","href":"/cn/api-reference/agent-portal/get_order"}]},{"group":"Refunds","pages":[{"title":"退款列表","openapi":"GET /agent/platform/refunds","href":"/cn/api-reference/agent-portal/list_refunds"},{"title":"退款详情","openapi":"GET /agent/platform/refunds/{refundOrderId}","href":"/cn/api-reference/agent-portal/get_refund"}]},{"group":"Authorizations","pages":[{"title":"授权列表","openapi":"GET /agent/platform/authorizations","href":"/cn/api-reference/agent-portal/list_authorizations"},{"title":"授权详情","openapi":"GET /agent/platform/authorizations/{instructionId}","href":"/cn/api-reference/agent-portal/get_authorization"},{"title":"获取支付凭证","openapi":"GET /agent/platform/authorizations/{instructionId}/payment-credential","href":"/cn/api-reference/agent-portal/get_payment_credential"},{"title":"创建指令","openapi":"POST /agent/platform/authorizations","href":"/cn/api-reference/agent-portal/create_instruction"},{"title":"撤销指令","openapi":"POST /agent/platform/authorizations/{instructionId}/revoke","href":"/cn/api-reference/agent-portal/revoke_instruction"}]},{"group":"Credentials","pages":[{"title":"获取凭证","openapi":"POST /agent/platform/credential","href":"/cn/api-reference/agent-portal/get_credential"},{"title":"回报支付结果","openapi":"POST /agent/platform/credential-results","description":"Reports the outcome observed on the merchant page after using a credential. Requires `portal:write`.","href":"/cn/api-reference/agent-portal/report_credential_result"}]}]},{"group":"Checkout Session","pages":[{"title":"Create Checkout Session","openapi":"POST /checkout/session","href":"/api-reference/endpoint/create-checkout-session"},{"title":"Get Checkout Session","openapi":"GET /checkout/session/{id}","description":"Retrieve details of an existing checkout session","href":"/api-reference/endpoint/get-checkout-session"},{"title":"Expire Checkout Session","openapi":"POST /checkout/session/{id}/expire","href":"/api-reference/endpoint/expire-checkout-session"}]},{"group":"Payment","pages":[{"title":"创建一次性支付","openapi":"POST /payment","href":"/cn/api-reference/endpoint/create-payment"},{"title":"刷新钱包二维码","openapi":"POST /payment/{orderId}/qrcode/refresh","href":"/cn/api-reference/endpoint/refresh-wallet-qrcode"}]},{"group":"Payment Instrument","pages":[{"title":"创建支付方式","openapi":"POST /payment-instrument","href":"/cn/api-reference/endpoint/create-payment-instrument"}]},{"group":"Order","pages":[{"title":"查询订单列表","openapi":"GET /order","href":"/cn/api-reference/endpoint/list-orders"},{"title":"Get Order","openapi":"GET /order/{id}","href":"/api-reference/endpoint/get-order"}]},{"group":"Agent Payment Session","pages":[{"title":"Create Agent Payment Session","openapi":"POST /order/payment-session","href":"/api-reference/endpoint/create-agent-payment-session"},{"title":"Get Agent Payment Session","openapi":"GET /order/payment-session/{sessionId}","href":"/api-reference/endpoint/get-agent-payment-session"}]},{"group":"Refund","pages":[{"title":"创建退款","openapi":"POST /refund","href":"/cn/api-reference/endpoint/create-refund"},{"title":"Get Refund","openapi":"GET /refund/{id}","href":"/api-reference/endpoint/get-refund"}]},{"group":"Product","pages":[{"title":"上传产品图片","openapi":"POST /product/image/upload","href":"/cn/api-reference/endpoint/upload-product-image"},{"title":"创建产品","openapi":"POST /product","href":"/cn/api-reference/endpoint/create-product"},{"title":"Get Product","openapi":"GET /product/{id}","href":"/api-reference/endpoint/get-product"},{"title":"Get Product List","openapi":"GET /product","href":"/api-reference/endpoint/get-product-list"}]},{"group":"Price","pages":[{"title":"创建价格","openapi":"POST /price","href":"/cn/api-reference/endpoint/create-price"},{"title":"Get Price","openapi":"GET /price/{id}","href":"/api-reference/endpoint/get-price"},{"title":"Get Price List","openapi":"GET /price","href":"/api-reference/endpoint/get-price-list"},{"title":"更新价格","openapi":"PUT /price/{id}","href":"/cn/api-reference/endpoint/update-price"}]},{"group":"Coupon","pages":[{"title":"创建优惠券","openapi":"POST /coupon","href":"/cn/api-reference/endpoint/create-coupon"},{"title":"查询优惠券列表","openapi":"GET /coupon","href":"/cn/api-reference/endpoint/list-coupons"},{"title":"查询优惠券","openapi":"GET /coupon/{couponId}","href":"/cn/api-reference/endpoint/get-coupon"},{"title":"重命名优惠券","openapi":"PUT /coupon/{couponId}/name","href":"/cn/api-reference/endpoint/rename-coupon"}]},{"group":"Promotion Code","pages":[{"title":"创建促销码","openapi":"POST /promotion-code/{id}","href":"/cn/api-reference/endpoint/create-promotion-code"},{"title":"查询促销码","openapi":"GET /promotion-code/{id}","href":"/cn/api-reference/endpoint/get-promotion-code"},{"title":"查询优惠券促销码列表","openapi":"GET /promotion-code/coupon/{couponId}","href":"/cn/api-reference/endpoint/list-promotion-codes-by-coupon"},{"title":"启用促销码","openapi":"PUT /promotion-code/{promotionCodeId}/active","href":"/cn/api-reference/endpoint/activate-promotion-code"},{"title":"停用促销码","openapi":"PUT /promotion-code/{promotionCodeId}/deactivate","href":"/cn/api-reference/endpoint/deactivate-promotion-code"}]},{"group":"Subscription","pages":[{"title":"创建订阅","openapi":"POST /subscription","href":"/cn/api-reference/endpoint/create-subscription"},{"title":"Get Subscription","openapi":"GET /subscription/{id}","href":"/api-reference/endpoint/get-subscription"},{"title":"预览订阅升降级","openapi":"POST /subscription/{id}/update/preview","href":"/cn/api-reference/endpoint/preview-subscription-update"},{"title":"确认订阅升降级","openapi":"POST /subscription/{id}/update/confirm","href":"/cn/api-reference/endpoint/confirm-subscription-update"},{"title":"取消待生效订阅变更","openapi":"POST /subscription/{id}/update/cancel","href":"/cn/api-reference/endpoint/cancel-subscription-update"},{"title":"暂停订阅","openapi":"POST /subscription/{id}/pause","href":"/cn/api-reference/endpoint/pause-subscription"},{"title":"撤销预约暂停","openapi":"POST /subscription/{id}/pause/cancel","href":"/cn/api-reference/endpoint/cancel-subscription-pause-schedule"},{"title":"恢复订阅","openapi":"POST /subscription/{id}/resume","href":"/cn/api-reference/endpoint/resume-subscription"},{"title":"修改自动恢复时间","openapi":"POST /subscription/{id}/resume/schedule","href":"/cn/api-reference/endpoint/update-subscription-resume-schedule"},{"title":"Cancel Subscription","openapi":"POST /subscription/{id}/cancel","href":"/api-reference/endpoint/cancel-subscription"},{"title":"Get Invoice","openapi":"GET /subscription/invoice/{id}","href":"/api-reference/endpoint/get-invoice"}]},{"group":"Test Clock","pages":[{"title":"List Test Clocks","openapi":"GET /subscription/test-clocks/list","href":"/api-reference/endpoint/list-test-clocks"},{"title":"Create Test Clock","openapi":"POST /subscription/test-clocks","href":"/api-reference/endpoint/create-test-clock"},{"title":"Get Test Clock","openapi":"GET /subscription/test-clocks/{clockId}","href":"/api-reference/endpoint/get-test-clock"},{"title":"Advance Test Clock","openapi":"POST /subscription/test-clocks/{clockId}/advance","href":"/api-reference/endpoint/advance-test-clock"},{"title":"Complete Test Clock","openapi":"POST /subscription/test-clocks/{clockId}/complete","href":"/api-reference/endpoint/complete-test-clock"}]},{"group":"Customer Portal","pages":[{"title":"创建客户门户会话","openapi":"POST /billing/session","href":"/cn/api-reference/endpoint/create-customer-portal"}]},{"group":"Webhook Endpoint Management","pages":[{"title":"List Webhook Events","openapi":"GET /webhook/events","href":"/api-reference/endpoint/list-webhook-events"},{"title":"List Webhook Endpoints","openapi":"GET /webhook/endpoints","href":"/api-reference/endpoint/list-webhook-endpoints"},{"title":"Create Webhook Endpoint","openapi":"POST /webhook/endpoints","href":"/api-reference/endpoint/create-webhook-endpoint"},{"title":"Ensure Webhook Endpoint","openapi":"PUT /webhook/endpoints/ensure","href":"/api-reference/endpoint/ensure-webhook-endpoint"},{"title":"Get Webhook Endpoint","openapi":"GET /webhook/endpoints/{id}","href":"/api-reference/endpoint/get-webhook-endpoint"},{"title":"Update Webhook Endpoint","openapi":"PATCH /webhook/endpoints/{id}","href":"/api-reference/endpoint/update-webhook-endpoint"},{"title":"Enable Webhook Endpoint","openapi":"POST /webhook/endpoints/{id}/enable","href":"/api-reference/endpoint/enable-webhook-endpoint"},{"title":"Disable Webhook Endpoint","openapi":"POST /webhook/endpoints/{id}/disable","href":"/api-reference/endpoint/disable-webhook-endpoint"},{"title":"Rotate Webhook Signing Secret","openapi":"POST /webhook/endpoints/{id}/rotate-secret","href":"/api-reference/endpoint/rotate-webhook-signing-secret"},{"title":"Delete Webhook Endpoint","openapi":"DELETE /webhook/endpoints/{id}","href":"/api-reference/endpoint/delete-webhook-endpoint"}]},{"group":"Webhooks","pages":[{"title":"order","openapi":"WEBHOOK order","href":"/api-reference/webhook/order"},{"title":"refund","openapi":"WEBHOOK refund","href":"/api-reference/webhook/refund"},{"title":"subscription","openapi":"WEBHOOK subscription","href":"/api-reference/webhook/subscription"},{"title":"invoice","openapi":"WEBHOOK invoice","href":"/api-reference/webhook/invoice"},{"title":"session","openapi":"WEBHOOK session","href":"/api-reference/webhook/session"},{"title":"customer.verify","openapi":"WEBHOOK customer.verify","href":"/api-reference/webhook/customer.verify"},{"title":"dispute","openapi":"WEBHOOK dispute","href":"/api-reference/webhook/dispute"}]}]}]}]},"basePath":"","title":"Create Checkout Session - Clink Documentation","deploymentId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","buildId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-B8kPdtB2.js","snippetPresets-C-p1aFQ1.js","utils-B9NnUZSZ.js","style-to-object-BY3JEAdk.js","utils-DFxl7cW2.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-bSr9h7OB.js","conditional-requirements-CFM0id0Q.js","cloneDeep-Bw4Gcy_r.js","_Uint8Array-C68x8Gny.js","isObject-FP1Yky1u.js","ApiExamples-BXsp8PHs.js","usePlaygroundInputsStore-BlAOLmIF.js","shallow-C2F02mqa.js","isEqual-C8iG4q2G.js","CodeSnippets-45lHR04X.js","CodeSnippet-6Cemznl-.js","use-playground-group-access-Cyy8SXp5.js","Page-CeZ_ZB5X.js","api-description-markdown-DiOdv5rp.js","DynamicMarkdown-B_9ywLDq.js","SectionHeading-Cc2r-uqU.js","MethodPill-Df3Tcu4c.js","getPastedJson-B3vrV0wE.js","Check2Icon-YQhSFafd.js","axios-CsQoIw0U.js","Markdown-0RkHcMOI.js","AssistantPageLink-DeJZCj9t.js","dist-DVqS175j.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}