Create a one-time payment with an existing payment instrument, or omit paymentInstrumentId for payment methods that support automatic payment instrument creation. Use either productId and priceId, or amount and currency. To charge in a different payment currency, provide paymentCurrency and Clink will apply the available fixed multi-currency price or automatic currency conversion. You can provide billingAddress for the payment instrument and tax calculation.
Current timestamp in milliseconds since Unix epoch (required for request signing)
Example:
"1783513683000"
Body
application/json
Parameters required to create a one-time payment by API. Provide at least one customer identifier. Provide either priceId with productId, or amount with currency. Use paymentCurrency to charge the customer in a different supported payment currency.
Payment method type (uppercase). CARD requires a previously saved card and its paymentInstrumentId. APPLEPAY and GOOGLEPAY require additionalPaymentInstrument.tokenValue and support automatic payment instrument creation.
Existing payment instrument ID. Required for CARD and other methods that do not support automatic creation. For APPLEPAY and GOOGLEPAY it is optional: when omitted, Clink creates the wallet payment instrument from additionalPaymentInstrument.tokenValue; if provided, it must belong to the customer and match paymentMethodType.
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.
Original pricing currency. Required with amount when priceId is not provided. If paymentCurrency is not provided, this currency is also used as the payment currency.
Optional target payment currency. When provided, Clink uses the configured fixed multi-currency price when available, otherwise automatically converts from the original pricing currency. The requested payment method must support the target currency.
URL where the customer is redirected after required payment actions. Required for all payment methods except APPLEPAY and GOOGLEPAY, which are settled synchronously and do not redirect.
Optional billing address used for the payment instrument and this payment's tax calculation. This address takes precedence over the existing payment instrument address, customer billing address, and request IP country for this payment. When Clink automatically creates a payment instrument, the address is saved to the new payment instrument. When paymentInstrumentId references an existing payment instrument, this address does not update that payment instrument.
Response data returned after creating a one-time payment. It contains the order and session identifiers, together with the payment flow result.
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":"6af4694a8aa693fcd6be42fd","clientVersion":"0.0.4111","searchFilterCounts":[{"language":"en","tag":"Documentation","count":41},{"language":"cn","tag":"知识库","count":41},{"language":"default","tag":"API Reference","count":36},{"language":"en","tag":"API Reference","count":35},{"language":"cn","tag":"API 文档","count":35},{"language":"en","tag":"Guides","count":14},{"language":"cn","tag":"介绍","count":14},{"language":"en","tag":"Agent Solutions","count":11},{"language":"cn","tag":"Agent 解决方案","count":11},{"language":"default","tag":"Webhook Endpoint Management","count":10},{"language":"default","tag":"Webhooks","count":7},{"language":"en","tag":"Core Resource","count":6},{"language":"cn","tag":"资源说明","count":6},{"language":"en","tag":"Integration","count":5},{"language":"en","tag":"Promotion Code","count":5},{"language":"en","tag":"Clink MCP","count":5},{"language":"en","tag":"Get Started","count":5},{"language":"en","tag":"Choose your integration","count":5},{"language":"default","tag":"Test Clock","count":5},{"language":"cn","tag":"接入","count":5},{"language":"cn","tag":"Promotion Code","count":5},{"language":"cn","tag":"Clink MCP","count":5},{"language":"cn","tag":"开始使用","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":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/endpoint/create-payment","slug":"/api-reference/endpoint/create-payment","pageMetadata":{"title":"Create Payment","openapi":"POST /payment","description":"Create a one-time payment with an existing payment instrument, or omit paymentInstrumentId for payment methods that support automatic payment instrument creation. Use either productId and priceId, or amount and currency. To charge in a different payment currency, provide paymentCurrency and Clink will apply the available fixed multi-currency price or automatic currency conversion. You can provide billingAddress for the payment instrument and tax calculation.","href":"/api-reference/endpoint/create-payment"},"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 one-time payment with an existing payment instrument, or omit paymentInstrumentId for payment methods that support automatic payment instrument creation. Use either productId and priceId, or amount and currency. To charge in a different payment currency, provide paymentCurrency and Clink will apply the available fixed multi-currency price or automatic currency conversion. You can provide billingAddress for the payment instrument and tax calculation.\"\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 Payment","openapi":"POST /payment","description":"Create a one-time payment with an existing payment instrument, or omit paymentInstrumentId for payment methods that support automatic payment instrument creation. Use either productId and priceId, or amount and currency. To charge in a different payment currency, provide paymentCurrency and Clink will apply the available fixed multi-currency price or automatic currency conversion. You can provide billingAddress for the payment instrument and tax calculation.","href":"/api-reference/endpoint/create-payment"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Create Payment","description":"Create a one-time payment with an existing payment instrument, or omit paymentInstrumentId for payment methods that support automatic payment instrument creation. Use either productId and priceId, or amount and currency. To charge in a different payment currency, provide paymentCurrency and Clink will apply the available fixed multi-currency price or automatic currency conversion. You can provide billingAddress for the payment instrument and tax calculation.","operationId":"createPayment","requestBody":"fccb4b26-2c76-4074-b486-906261033519","parameters":["20ac0ddd-5a9a-488a-bc24-a3705a8169c6"],"responses":{"200":"d5b88af8-cc4d-431f-bd0e-119c5ce17f4e","401":"e5a8e76c-d399-4c8e-9fd2-8ea7a3289a0f"},"method":"post","type":"path","servers":["7ce95461-a04d-43b4-a136-137963aec4b4"],"security":["bc97af99-5993-453f-b36b-014447336e1a"],"path":"/payment","baseUrlOptions":["https://uat-api.clinkbill.com/api/"],"title":"Create Payment","codeSamples":[],"requestExampleLanguages":["bash","java","python","javascript"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"20ac0ddd-5a9a-488a-bc24-a3705a8169c6":{"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":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"Parameters required to create a one-time payment by API. Provide at least one customer identifier. Provide either priceId with productId, or amount with currency. Use paymentCurrency to charge the customer in a different supported payment currency.","required":["paymentMethodType"],"conditionallyRequiredProperties":{"additionalPaymentInstrument":[{"when":[[{"property":"paymentMethodType","values":["APPLEPAY","GOOGLEPAY"]}]]}],"returnUrl":[{"when":[[{"property":"paymentMethodType","values":["APPLEPAY","GOOGLEPAY"]}]],"negated":true}]},"properties":{"paymentMethodType":{"type":"string","description":"Payment method type (uppercase). CARD requires a previously saved card and its paymentInstrumentId. APPLEPAY and GOOGLEPAY require additionalPaymentInstrument.tokenValue and support automatic payment instrument creation.","enum":["ALIPAY","APPLEPAY","CARD","CASHAPP","GCASH","GOOGLEPAY","KAKAO","KCP","PIX","PROMPTPAY","QRIS","TNG","UPI","WECHAT"],"isRequired":true,"uniqueKey":"paymentMethodType","typeLabel":"enum\u003cstring>"},"customerId":{"type":"string","description":"Existing customer ID. At least one customer identifier is required.","uniqueKey":"customerId","typeLabel":"string"},"customerEmail":{"type":"string","description":"Customer email. Used to resolve or create a customer when customerId is not provided.","uniqueKey":"customerEmail","typeLabel":"string"},"referenceCustomerId":{"type":"string","description":"Merchant-side customer ID used to resolve, create, or bind a customer.","uniqueKey":"referenceCustomerId","typeLabel":"string"},"paymentInstrumentId":{"type":"string","description":"Existing payment instrument ID. Required for CARD and other methods that do not support automatic creation. For APPLEPAY and GOOGLEPAY it is optional: when omitted, Clink creates the wallet payment instrument from additionalPaymentInstrument.tokenValue; if provided, it must belong to the customer and match paymentMethodType.","uniqueKey":"paymentInstrumentId","typeLabel":"string"},"priceId":{"type":"string","description":"Predefined one-time price ID. If provided, productId is required.","uniqueKey":"priceId","typeLabel":"string"},"productId":{"type":"string","description":"Product ID. Required when priceId is provided.","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"},"priceDataList":{"type":"array","description":"Product and price line items for direct amount payments or display/risk data.","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"},"uniqueKey":"priceDataList","typeLabel":"object[]"},"amount":{"type":"number","description":"Direct payment amount. Required with currency when priceId is not provided.","uniqueKey":"amount","typeLabel":"number"},"currency":{"type":"string","description":"Original pricing currency. Required with amount when priceId is not provided. If paymentCurrency is not provided, this currency is also used as the payment currency.","uniqueKey":"currency","typeLabel":"string"},"paymentCurrency":{"type":"string","description":"Optional target payment currency. When provided, Clink uses the configured fixed multi-currency price when available, otherwise automatically converts from the original pricing currency. The requested payment method must support the target currency.","example":"HKD","uniqueKey":"paymentCurrency","typeLabel":"string"},"merchantReferenceId":{"type":"string","description":"Merchant-side reference ID for reconciliation.","uniqueKey":"merchantReferenceId","typeLabel":"string"},"returnUrl":{"type":"string","description":"URL where the customer is redirected after required payment actions. Required for all payment methods except APPLEPAY and GOOGLEPAY, which are settled synchronously and do not redirect.","conditionalRequirements":[{"when":[[{"property":"paymentMethodType","values":["APPLEPAY","GOOGLEPAY"]}]],"negated":true}],"uniqueKey":"returnUrl","typeLabel":"string"},"additionalPaymentInstrument":{"type":"object","description":"Complete wallet token for APPLEPAY / GOOGLEPAY, as returned by the wallet SDK. The token is single-use: generate a new one for every payment attempt.","properties":{"tokenValue":{"type":"string","minLength":1,"description":"The complete wallet token as a string. Apple Pay: JSON.stringify(payment.token) (the PKPaymentToken). Google Pay: the raw tokenizationData.token (ECv2 JSON).","uniqueKey":"additionalPaymentInstrument.tokenValue","typeLabel":"string"}},"conditionalRequirements":[{"when":[[{"property":"paymentMethodType","values":["APPLEPAY","GOOGLEPAY"]}]]}],"uniqueKey":"additionalPaymentInstrument","typeLabel":"object"},"promotionCode":{"type":"string","description":"Promotion code to apply.","uniqueKey":"promotionCode","typeLabel":"string"},"metadata":{"type":"object","description":"Merchant metadata. Values must be strings.","additionalProperties":{"type":"string","uniqueKey":"metadata.additionalProperties","typeLabel":"string"},"uniqueKey":"metadata","typeLabel":"object"},"billingAddress":{"type":"object","description":"Optional billing address used for the payment instrument and this payment's tax calculation. This address takes precedence over the existing payment instrument address, customer billing address, and request IP country for this payment. When Clink automatically creates a payment instrument, the address is saved to the new payment instrument. When paymentInstrumentId references an existing payment instrument, this address does not update that payment instrument.","properties":{"city":{"type":"string","description":"City.","example":"San Francisco","uniqueKey":"billingAddress.city","typeLabel":"string"},"country":{"type":"string","description":"Country code or name.","example":"US","uniqueKey":"billingAddress.country","typeLabel":"string"},"line1":{"type":"string","description":"First line of the street address.","example":"123 Market Street","uniqueKey":"billingAddress.line1","typeLabel":"string"},"line2":{"type":"string","description":"Second line of the street address.","example":"Suite 100","uniqueKey":"billingAddress.line2","typeLabel":"string"},"postalCode":{"type":"string","description":"Postal or zip code.","example":"94105","uniqueKey":"billingAddress.postalCode","typeLabel":"string"},"region":{"type":"string","description":"Region, state, or province.","example":"CA","uniqueKey":"billingAddress.region","typeLabel":"string"}},"uniqueKey":"billingAddress","typeLabel":"object"},"platformType":{"type":"string","description":"Platform type. Supported values are WEB and WAP.","enum":["WEB","WAP"],"uniqueKey":"platformType","typeLabel":"enum\u003cstring>"},"deviceType":{"type":"string","description":"Device type. Supported values are Android and iOS.","enum":["Android","iOS"],"uniqueKey":"deviceType","typeLabel":"enum\u003cstring>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"pricePayment":{"title":"pricePayment","value":{"customerId":"cus_xxxxx","productId":"prd_xxxxx","priceId":"price_xxxxx","paymentInstrumentId":"pi_xxxxx","paymentMethodType":"CARD","returnUrl":"https://merchant.example.com/payment/return","merchantReferenceId":"pay_ref_123","billingAddress":{"city":"San Francisco","region":"CA","country":"US","line1":"123 Market Street","line2":"Suite 100","postalCode":"94105"},"platformType":"WEB","deviceType":"Android"}},"amountPayment":{"title":"amountPayment","value":{"customerEmail":"customer@example.com","paymentInstrumentId":"pi_xxxxx","paymentMethodType":"CARD","amount":19.99,"currency":"USD","returnUrl":"https://merchant.example.com/payment/return","priceDataList":[{"name":"One-time service","quantity":1,"unitAmount":19.99,"currency":"USD"}],"platformType":"WEB","deviceType":"Android"}},"convertedCurrencyPayment":{"title":"convertedCurrencyPayment","value":{"customerId":"cus_xxxxx","productId":"prd_xxxxx","priceId":"price_xxxxx","paymentInstrumentId":"pi_xxxxx","paymentMethodType":"CARD","paymentCurrency":"HKD","returnUrl":"https://merchant.example.com/payment/return","platformType":"WEB","deviceType":"Android"}},"applePayPayment":{"title":"applePayPayment","value":{"customerId":"cus_xxxxx","productId":"prd_xxxxx","priceId":"price_xxxxx","paymentMethodType":"APPLEPAY","additionalPaymentInstrument":{"tokenValue":"{\"paymentData\":{\"version\":\"EC_v1\",\"data\":\"...\",\"signature\":\"...\",\"header\":{\"ephemeralPublicKey\":\"...\",\"publicKeyHash\":\"...\",\"transactionId\":\"...\"}},\"paymentMethod\":{\"displayName\":\"Visa 1234\",\"network\":\"Visa\",\"type\":\"debit\"},\"transactionIdentifier\":\"...\"}"},"platformType":"WEB","deviceType":"iOS"}},"googlePayPayment":{"title":"googlePayPayment","value":{"customerEmail":"customer@example.com","amount":19.99,"currency":"USD","paymentMethodType":"GOOGLEPAY","additionalPaymentInstrument":{"tokenValue":"{\"protocolVersion\":\"ECv2\",\"signature\":\"...\",\"intermediateSigningKey\":{\"signedKey\":\"...\",\"signatures\":[\"...\"]},\"signedMessage\":\"...\"}"},"platformType":"WEB","deviceType":"Android"}},"cashappPaymentAutoPaymentInstrument":{"title":"cashappPaymentAutoPaymentInstrument","value":{"customerId":"cus_xxxxx","productId":"prd_xxxxx","priceId":"price_xxxxx","paymentMethodType":"CASHAPP","returnUrl":"https://merchant.example.com/payment/return","merchantReferenceId":"pay_ref_124","platformType":"WEB","deviceType":"Android"}},"pixPayment":{"title":"pixPayment","value":{"customerEmail":"customer@example.com","paymentInstrumentId":"pi_pix_xxxxx","paymentMethodType":"PIX","amount":100,"currency":"BRL","returnUrl":"https://merchant.example.com/payment/return","priceDataList":[{"name":"PIX payment","quantity":1,"unitAmount":100,"currency":"BRL"}],"platformType":"WEB","deviceType":"Android"}},"upiPayment":{"title":"upiPayment","value":{"customerEmail":"customer@example.com","paymentInstrumentId":"pi_upi_xxxxx","paymentMethodType":"UPI","amount":1000,"currency":"INR","returnUrl":"https://merchant.example.com/payment/return","priceDataList":[{"name":"UPI payment","quantity":1,"unitAmount":1000,"currency":"INR"}],"platformType":"WEB","deviceType":"Android"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"d5b88af8-cc4d-431f-bd0e-119c5ce17f4e":{"description":"Payment created successfully","content":{"*/*":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"Response status code, 200 when success","format":"int32","example":200,"uniqueKey":"code","typeLabel":"integer\u003cint32>"},"msg":{"type":"string","example":"success","description":"Brief description of what happened, 'success' when happy case","uniqueKey":"msg","typeLabel":"string"},"data":{"type":"object","description":"Response data returned after creating a one-time payment. It contains the order and session identifiers, together with the payment flow result.","properties":{"orderId":{"type":"string","description":"Unique identifier of the created order","uniqueKey":"data.orderId","typeLabel":"string"},"sessionId":{"type":"string","description":"Unique identifier of the related payment session","uniqueKey":"data.sessionId","typeLabel":"string"},"paymentInstrumentId":{"type":"string","description":"Payment instrument ID used for the one-time payment. When paymentInstrumentId is omitted for an auto-creatable payment method, this is the automatically created payment instrument ID.","uniqueKey":"data.paymentInstrumentId","typeLabel":"string"},"status":{"type":"integer","format":"int32","description":"Payment result status. `1` means success, `2` means pending, `3` means failure, and `5` means need next action to complete payment.","enum":[1,2,3,5],"uniqueKey":"data.status","typeLabel":"enum\u003cinteger>"},"action":{"type":"object","description":"Next action required to complete payment when status is `5` (NEXT_ACTION).","properties":{"redirectUrl":{"type":"string","description":"Redirect URL that the client should open or navigate to for the next payment step.","uniqueKey":"data.action.redirectUrl","typeLabel":"string"},"method":{"type":"string","description":"HTTP method used to perform the next action.","enum":["GET","POST"],"uniqueKey":"data.action.method","typeLabel":"enum\u003cstring>"},"type":{"type":"string","description":"Payment method or action type that triggered this next step.","enum":["ALIPAY","CARD","CASHAPP","GCASH","KAKAO","PIX","PROMPTPAY","QRIS","TNG","UPI","WECHAT"],"uniqueKey":"data.action.type","typeLabel":"enum\u003cstring>"},"walletHandleRedirectOrDisplayQrCode":{"type":"object","description":"Wallet-side display or redirect payload used for QR code rendering, mobile auth links, hosted instructions, or fallback URLs.","properties":{"imageUrlPng":{"type":"string","description":"PNG QR code image URL. This field may also contain a Base64-encoded image string.","uniqueKey":"data.action.walletHandleRedirectOrDisplayQrCode.imageUrlPng","typeLabel":"string"},"imageUrlSvg":{"type":"string","description":"SVG QR code image URL. This field may also contain a Base64-encoded image string.","uniqueKey":"data.action.walletHandleRedirectOrDisplayQrCode.imageUrlSvg","typeLabel":"string"},"imageDataUrl":{"type":"string","description":"Base64-encoded QR code image data URL.","uniqueKey":"data.action.walletHandleRedirectOrDisplayQrCode.imageDataUrl","typeLabel":"string"},"hostedInstructionsUrl":{"type":"string","description":"Hosted instruction or guidance URL for H5 redirection flows.","uniqueKey":"data.action.walletHandleRedirectOrDisplayQrCode.hostedInstructionsUrl","typeLabel":"string"},"mobileAuthUrl":{"type":"string","description":"Mobile authorization URL or deeplink used by mobile redirect flows.","uniqueKey":"data.action.walletHandleRedirectOrDisplayQrCode.mobileAuthUrl","typeLabel":"string"},"fallbackUrl":{"type":"string","description":"Fallback HTTPS URL used when app redirection fails.","uniqueKey":"data.action.walletHandleRedirectOrDisplayQrCode.fallbackUrl","typeLabel":"string"},"packageName":{"type":"string","description":"Android package name used by mobile app redirect flows.","uniqueKey":"data.action.walletHandleRedirectOrDisplayQrCode.packageName","typeLabel":"string"},"expiresAt":{"type":"integer","format":"int64","description":"Expiration time in Unix seconds.","uniqueKey":"data.action.walletHandleRedirectOrDisplayQrCode.expiresAt","typeLabel":"integer\u003cint64>"},"expiresSecond":{"type":"integer","format":"int64","description":"Optional countdown in seconds until expiration.","uniqueKey":"data.action.walletHandleRedirectOrDisplayQrCode.expiresSecond","typeLabel":"integer\u003cint64>"}},"uniqueKey":"data.action.walletHandleRedirectOrDisplayQrCode","typeLabel":"object"},"paymentMethodType":{"type":"string","description":"Payment method type associated with this action.","uniqueKey":"data.action.paymentMethodType","typeLabel":"string"},"postData":{"type":"object","description":"Form or request parameters to submit when `method` is `POST`.","additionalProperties":{"type":"string","uniqueKey":"data.action.postData.additionalProperties","typeLabel":"string"},"uniqueKey":"data.action.postData","typeLabel":"object"}},"uniqueKey":"data.action","typeLabel":"object"},"amount":{"type":"number","description":"Amount charged for this one-time payment","uniqueKey":"data.amount","typeLabel":"number"},"currency":{"type":"string","description":"Actual currency used for the payment","uniqueKey":"data.currency","typeLabel":"string"}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":200,"msg":"success","data":{"orderId":"\u003cstring>","sessionId":"\u003cstring>","paymentInstrumentId":"\u003cstring>","status":1,"action":{"redirectUrl":"\u003cstring>","method":"GET","type":"ALIPAY","walletHandleRedirectOrDisplayQrCode":{"imageUrlPng":"\u003cstring>","imageUrlSvg":"\u003cstring>","imageDataUrl":"\u003cstring>","hostedInstructionsUrl":"\u003cstring>","mobileAuthUrl":"\u003cstring>","fallbackUrl":"\u003cstring>","packageName":"\u003cstring>","expiresAt":123,"expiresSecond":123},"paymentMethodType":"\u003cstring>","postData":{}},"amount":123,"currency":"\u003cstring>"}}}},"exampleType":"generated"},"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"Response status code, 200 when success","format":"int32","example":200,"uniqueKey":"code","typeLabel":"integer\u003cint32>"},"msg":{"type":"string","example":"success","description":"Brief description of what happened, 'success' when happy case","uniqueKey":"msg","typeLabel":"string"},"data":{"type":"object","description":"Response data returned after creating a one-time payment. It contains the order and session identifiers, together with the payment flow result.","properties":{"orderId":{"type":"string","description":"Unique identifier of the created order","uniqueKey":"data.orderId","typeLabel":"string"},"sessionId":{"type":"string","description":"Unique identifier of the related payment session","uniqueKey":"data.sessionId","typeLabel":"string"},"paymentInstrumentId":{"type":"string","description":"Payment instrument ID used for the one-time payment. When paymentInstrumentId is omitted for an auto-creatable payment method, this is the automatically created payment instrument ID.","uniqueKey":"data.paymentInstrumentId","typeLabel":"string"},"status":{"type":"integer","format":"int32","description":"Payment result status. `1` means success, `2` means pending, `3` means failure, and `5` means need next action to complete payment.","enum":[1,2,3,5],"uniqueKey":"data.status","typeLabel":"enum\u003cinteger>"},"action":{"type":"object","description":"Next action required to complete payment when status is `5` (NEXT_ACTION).","properties":{"redirectUrl":{"type":"string","description":"Redirect URL that the client should open or navigate to for the next payment step.","uniqueKey":"data.action.redirectUrl","typeLabel":"string"},"method":{"type":"string","description":"HTTP method used to perform the next action.","enum":["GET","POST"],"uniqueKey":"data.action.method","typeLabel":"enum\u003cstring>"},"type":{"type":"string","description":"Payment method or action type that triggered this next step.","enum":["ALIPAY","CARD","CASHAPP","GCASH","KAKAO","PIX","PROMPTPAY","QRIS","TNG","UPI","WECHAT"],"uniqueKey":"data.action.type","typeLabel":"enum\u003cstring>"},"walletHandleRedirectOrDisplayQrCode":{"type":"object","description":"Wallet-side display or redirect payload used for QR code rendering, mobile auth links, hosted instructions, or fallback URLs.","properties":{"imageUrlPng":{"type":"string","description":"PNG QR code image URL. This field may also contain a Base64-encoded image string.","uniqueKey":"data.action.walletHandleRedirectOrDisplayQrCode.imageUrlPng","typeLabel":"string"},"imageUrlSvg":{"type":"string","description":"SVG QR code image URL. This field may also contain a Base64-encoded image string.","uniqueKey":"data.action.walletHandleRedirectOrDisplayQrCode.imageUrlSvg","typeLabel":"string"},"imageDataUrl":{"type":"string","description":"Base64-encoded QR code image data URL.","uniqueKey":"data.action.walletHandleRedirectOrDisplayQrCode.imageDataUrl","typeLabel":"string"},"hostedInstructionsUrl":{"type":"string","description":"Hosted instruction or guidance URL for H5 redirection flows.","uniqueKey":"data.action.walletHandleRedirectOrDisplayQrCode.hostedInstructionsUrl","typeLabel":"string"},"mobileAuthUrl":{"type":"string","description":"Mobile authorization URL or deeplink used by mobile redirect flows.","uniqueKey":"data.action.walletHandleRedirectOrDisplayQrCode.mobileAuthUrl","typeLabel":"string"},"fallbackUrl":{"type":"string","description":"Fallback HTTPS URL used when app redirection fails.","uniqueKey":"data.action.walletHandleRedirectOrDisplayQrCode.fallbackUrl","typeLabel":"string"},"packageName":{"type":"string","description":"Android package name used by mobile app redirect flows.","uniqueKey":"data.action.walletHandleRedirectOrDisplayQrCode.packageName","typeLabel":"string"},"expiresAt":{"type":"integer","format":"int64","description":"Expiration time in Unix seconds.","uniqueKey":"data.action.walletHandleRedirectOrDisplayQrCode.expiresAt","typeLabel":"integer\u003cint64>"},"expiresSecond":{"type":"integer","format":"int64","description":"Optional countdown in seconds until expiration.","uniqueKey":"data.action.walletHandleRedirectOrDisplayQrCode.expiresSecond","typeLabel":"integer\u003cint64>"}},"uniqueKey":"data.action.walletHandleRedirectOrDisplayQrCode","typeLabel":"object"},"paymentMethodType":{"type":"string","description":"Payment method type associated with this action.","uniqueKey":"data.action.paymentMethodType","typeLabel":"string"},"postData":{"type":"object","description":"Form or request parameters to submit when `method` is `POST`.","additionalProperties":{"type":"string","uniqueKey":"data.action.postData.additionalProperties","typeLabel":"string"},"uniqueKey":"data.action.postData","typeLabel":"object"}},"uniqueKey":"data.action","typeLabel":"object"},"amount":{"type":"number","description":"Amount charged for this one-time payment","uniqueKey":"data.amount","typeLabel":"number"},"currency":{"type":"string","description":"Actual currency used for the payment","uniqueKey":"data.currency","typeLabel":"string"}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":200,"msg":"success","data":{"orderId":"\u003cstring>","sessionId":"\u003cstring>","paymentInstrumentId":"\u003cstring>","status":1,"action":{"redirectUrl":"\u003cstring>","method":"GET","type":"ALIPAY","walletHandleRedirectOrDisplayQrCode":{"imageUrlPng":"\u003cstring>","imageUrlSvg":"\u003cstring>","imageDataUrl":"\u003cstring>","hostedInstructionsUrl":"\u003cstring>","mobileAuthUrl":"\u003cstring>","fallbackUrl":"\u003cstring>","packageName":"\u003cstring>","expiresAt":123,"expiresSecond":123},"paymentMethodType":"\u003cstring>","postData":{}},"amount":123,"currency":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"e5a8e76c-d399-4c8e-9fd2-8ea7a3289a0f":{"description":"Unauthorized","content":{"*/*":{"schema":{"type":"string","uniqueKey":"","typeLabel":"string"},"examples":{"Example":{"title":"Example","value":"\u003cstring>"}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"bc97af99-5993-453f-b36b-014447336e1a":{"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":{"7ce95461-a04d-43b4-a136-137963aec4b4":{"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 Payment - Clink Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-reference/endpoint/create-payment","matchLevel":0},"cn":{"href":"/cn/api-reference/endpoint/create-payment","matchLevel":1}}},"lastModified":"2026-10-08T02:25:51.529Z","originalFileLocation":"api-reference/endpoint/create-payment.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 one-time payment with an existing payment instrument, or omit paymentInstrumentId for payment methods that support automatic payment instrument creation. Use either productId and priceId, or amount and currency. To charge in a different payment currency, provide paymentCurrency and Clink will apply the available fixed multi-currency price or automatic currency conversion. You can provide billingAddress for the payment instrument and tax calculation.\">\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 Payment - Clink Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a one-time payment with an existing payment instrument, or omit paymentInstrumentId for payment methods that support automatic payment instrument creation. Use either productId and priceId, or amount and currency. To charge in a different payment currency, provide paymentCurrency and Clink will apply the available fixed multi-currency price or automatic currency conversion. You can provide billingAddress for the payment instrument and tax calculation.\">\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-payment\">\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=Payment\u0026amp;title=Create+Payment\u0026amp;description=Create+a+one-time+payment+with+an+existing+payment+instrument%2C+or+omit+paymentInstrumentId+for+payment+methods+that+support+automatic+payment+instrument+creatio\u0026amp;theme=be5a6376d6c12292dd7b4d25\u0026amp;signature=a2ccce8728a5594c39315b5e5c607393106b0838f232dc40f8db65a38dee671d\">\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 Payment - Clink Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a one-time payment with an existing payment instrument, or omit paymentInstrumentId for payment methods that support automatic payment instrument creation. Use either productId and priceId, or amount and currency. To charge in a different payment currency, provide paymentCurrency and Clink will apply the available fixed multi-currency price or automatic currency conversion. You can provide billingAddress for the payment instrument and tax calculation.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://clink.mintlify.site/_mintlify/api/og/v2?division=Payment\u0026amp;title=Create+Payment\u0026amp;description=Create+a+one-time+payment+with+an+existing+payment+instrument%2C+or+omit+paymentInstrumentId+for+payment+methods+that+support+automatic+payment+instrument+creatio\u0026amp;theme=be5a6376d6c12292dd7b4d25\u0026amp;signature=a2ccce8728a5594c39315b5e5c607393106b0838f232dc40f8db65a38dee671d\">\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-payment\">\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-payment.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.clinkbill.com/api-reference/endpoint/create-payment\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.clinkbill.com/cn/api-reference/endpoint/create-payment\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.clinkbill.com/api-reference/endpoint/create-payment\">\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-payment#webpage\",\"url\":\"https://docs.clinkbill.com/api-reference/endpoint/create-payment\",\"name\":\"Create Payment\",\"description\":\"Create a one-time payment with an existing payment instrument, or omit paymentInstrumentId for payment methods that support automatic payment instrument creation. Use either productId and priceId, or amount and currency. To charge in a different payment currency, provide paymentCurrency and Clink will apply the available fixed multi-currency price or automatic currency conversion. You can provide billingAddress for the payment instrument and tax calculation.\",\"dateModified\":\"2026-10-08T02:25:51.529Z\",\"isPartOf\":{\"@id\":\"https://docs.clinkbill.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.clinkbill.com/api-reference/endpoint/create-payment#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.clinkbill.com/api-reference/endpoint/create-payment#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Clink Documentation\",\"item\":\"https://docs.clinkbill.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Payment\",\"item\":\"https://docs.clinkbill.com/api-reference/endpoint/create-payment\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.clinkbill.com/api-reference/endpoint/create-payment#apireference\",\"headline\":\"Create Payment\",\"name\":\"Create Payment\",\"description\":\"Create a one-time payment with an existing payment instrument, or omit paymentInstrumentId for payment methods that support automatic payment instrument creation. Use either productId and priceId, or amount and currency. To charge in a different payment currency, provide paymentCurrency and Clink will apply the available fixed multi-currency price or automatic currency conversion. You can provide billingAddress for the payment instrument and tax calculation.\",\"url\":\"https://docs.clinkbill.com/api-reference/endpoint/create-payment\",\"mainEntityOfPage\":{\"@id\":\"https://docs.clinkbill.com/api-reference/endpoint/create-payment#webpage\"},\"dateModified\":\"2026-10-08T02:25:51.529Z\",\"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-payment.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"}]},{"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":"Agent Portal","sidebarTitle":"Agent Portal","icon":"layout-dashboard","href":"/api-reference/agent-portal/overview"},{"title":"Portal token","icon":"key-round","href":"/api-reference/agent-portal/portal_token"},{"title":"Portal APIs","icon":"database","href":"/api-reference/agent-portal/portal_apis"}]},{"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}","href":"/api-reference/endpoint/get-checkout-session"},{"title":"Expire Checkout Session","openapi":"POST /checkout/session/{id}/expire","description":"Expire a checkout session that is still `open`. Once expired, the checkout page can no longer be used to complete a payment, and a checkout session webhook event with status `expired` is delivered. A session cannot be expired if it has already been completed, has already expired, or has a payment in progress.","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","description":"Refresh the wallet QR code for an existing order. Currently only supports CASHAPP wallet payments.","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":"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","pages":[{"title":"cn","href":"/cn/api-reference/endpoint/create-payment"}]}]},"basePath":"","title":"Create Payment - Clink Documentation","buildId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","deploymentId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CybtLBIt.js","utils-BMLj2fvV.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-B6In562Y.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Dr8Mfhp9.js","snippetPresets-2rmQvMVl.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-WMqJYdZj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CJ-MlPHu.js","shallow-dY3TMRCk.js","getApiPlaygroundDisplay-v-1B2bKm.js","CodeSnippet-BDhiTB7U.js","CodeSnippets-D9hnzQcS.js","Page-C4GwDT3_.js","getPastedJson-Th2V45jI.js","icon-BQXch1W9.js","MethodPill-BCqUneP3.js","DuplicateIcon-Q_-bhurZ.js","createIcon-DUjLHRqp.js","DynamicMarkdown-B-f2cqXQ.js","SectionHeading-Da5NsV4v.js","axios-vUo_bRtp.js","Markdown-D13FWkIM.js","clsx-D3Isdib3.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-C-XZBk9h.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink--qIqmmVG.js"]}