Skip to main content
POST

Authentication

This endpoint supports two authentication methods:
  • Bearer token via POST /v1/checkout/sessions
  • HMAC signature via POST /v1/sdk/checkout/sessions using X-API-Key and X-Signature headers
or (for server-to-server SDK integration):
Use the /v1/sdk/checkout/sessions endpoint when integrating from your backend with HMAC authentication. This is the recommended approach for production integrations.

Body Parameters

number
required
The payment amount in the specified fiat currency. Must be greater than zero.
string
required
The fiat currency for the checkout. Supported values: USD, LKR.
string
required
The URL to redirect the customer to after a successful payment. The session ID will be appended as a query parameter.
string
required
The URL to redirect the customer to if they cancel the checkout.
object
An arbitrary key-value object to attach to the session. Returned in webhook events for reconciliation.

Response

string
Unique identifier for the checkout session.
string
The full URL of the hosted checkout page. Redirect the customer to this URL to complete payment.
string
ISO 8601 timestamp indicating when the checkout session expires.