POST
/
billing
/
session
cURL
curl --request POST \
  --url https://api.clinkbill.dev/api/billing/session \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --header 'X-Timestamp: <api-key>' \
  --data '{
  "customerId": "cus_xxxxx"
}'
{
  "code": 200,
  "msg": "success",
  "data": {
    "url": "https://portal.clinkbill.dev/session/eyJ0eXAiOffsssxxxxxx",
    "expiresAt": 1755152165726
  }
}

Authorizations

X-API-KEY
string
header
required

Your secret API key obtained from the Clink dashboard (Developers section)

X-Timestamp
string
header
required

Current timestamp in milliseconds since Unix epoch (required for request signing)

Body

application/json

Parameters required to initialize a customer portal session

Response

200 - application/json

Customer portal session created successfully

Response object returned when creating a new checkout session