Create Customer Session

Creates a customer session for enrolling and managing payment methods. Use this to save cards, wallets, and other payment methods for future use. Requires a customer_id from Create Customer.

POST/customers/sessions

Body application/json

account_idstringrequired

The unique identifier of the account. You find this information on the WHITELABEL dashboard (UUID, 36 chars).

country"AR" | "BO" | "BR" | "CL" | "CO" | "CR" | "EC" | "SV" | "GT" | "HN" | "MX" | "NI" | "PA" | "PY" | "PE" | "US" | "UY"required

The customer’s country (MAX 2; MIN 2; ISO 3166-1).

customer_idstringrequired

The unique identifier of the customer, created using the Create Customer endpoint (UUID, 36 chars).

callback_urlstring

The URL to redirect your customer after the enrollment is made in the provider’s environment (MAX 526; MIN 3).

checkout_idstring

The unique identifier (UUID) of the Custom Checkout to use for this enrollment session. Optional. When omitted, the session uses the account’s default checkout.

Response

201

customer_sessionstring
customer_idstring
countrystring
callback_urlstring
created_atstring
checkout_idstring

400

codestring
messagesstring[]

401

codestring
messagesstring[]

403

codestring
messagesstring[]
Request
curl -X POST "https://api-sandbox.whitelabel.com/v1/customers/sessions" \
  -H "Content-Type: application/json" \
  -H "public-api-key: <public-api-key>" \
  -H "private-secret-key: <private-secret-key>" \
  -d '{
  "account_id": "string",
  "country": "AR",
  "customer_id": "string",
  "callback_url": "string",
  "checkout_id": "string"
}'
Response
{
  "customer_session": "7dd71f21-9e4c-439a-9c6d-58f240bd28df",
  "customer_id": "ae106483-65ee-463b-8782-9794022b3112",
  "country": "US",
  "callback_url": "https://www.google.com/?customerSession=7dd71f21-9e4c-439a-9c6d-58f240bd28df",
  "created_at": "2025-05-07T20:00:18.721786Z",
  "checkout_id": "6822f80c-684e-41a3-8628-78963d3d60f7"
}