Create Checkout Session
Create a new checkout session for payment processing
Documentation Index
Fetch the complete documentation index at: https://docs.clinkbill.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Your secret API key obtained from the Clink dashboard (Developers section)
Current timestamp in milliseconds since Unix epoch (required for request signing)
Body
Parameters required to initialize a new checkout session. Provide at least one of customerId, customerEmail, or referenceCustomerId. If all three are empty, the request fails with CUSTOMER_NOT_FOUND. 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.
Total transaction amount in the specified currency (must be greater than 0)
x > 0Three-letter ISO currency code for the transaction (e.g., USD, EUR, GBP)
Existing customer's unique identifier. At least one of customerId, customerEmail, or referenceCustomerId is required. When provided, customerId is the primary identifier and customerEmail/referenceCustomerId must match the same customer
1Customer's email address. At least one of customerId, customerEmail, or referenceCustomerId 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
1Merchant-side customer ID used to locate, validate, create, or bind a customer. At least one of customerId, customerEmail, or referenceCustomerId is required. If all three are empty, the request fails with CUSTOMER_NOT_FOUND
1Your internal reference ID for tracking (non-unique identifier, does not guarantee idempotency)
Unique identifier of the predefined price configuration from your dashboard
Unique identifier of the product configured in your dashboard
Checkout UI mode. Use hostedPage for hosted redirect checkout and elements for embedded checkout. When set to elements, returnUrl is required.
elements, hostedPage 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}
URL where customers will be redirected after successful payment completion
URL where customers will be redirected if they cancel the checkout process
The default selected payment method for created checkout session. Recommended if you know customer preference in advance
CARD, CASHAPP, WECHAT, KAKAO, PIX, ALIPAY, UPI, PAYPAL, GOOGLEPAY, APPLEPAY, QRIS, GCASH 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
CARD, CASHAPP, WECHAT, KAKAO, PIX, ALIPAY, UPI, PAYPAL, GOOGLEPAY, APPLEPAY, QRIS, GCASH Controls whether the QR code payment flow is launched directly when opening checkout.
Currently only supports CASHAPP.
This parameter takes effect only when:
paymentMethodTypeis set toCASHAPPCASHAPPis 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:
CASHAPPis not available in checkoutpaymentMethodTypeis notCASHAPP
Allowed values:
CASHAPP
CASHAPP List of product pricing details for one-time purchases. Use this when creating transactions without pre-configured products
Set to true to enable customers to enter promotion codes during checkout
Pre-filled promotion code for the checkout session. Only effective when allowPromotionCodes is set to true