Skip to main content
GET
/
s2s
/
customers
/
{customer_id}
/
tokens
cURL
curl --request GET \
  --url https://api.xpaycheckout.com/s2s/customers/{customer_id}/tokens \
  --header 'Authorization: Basic <encoded-value>'
{
  "customer_id": "cus_Tfd3Jq1tZxPjYVhRQW2r3",
  "tokens": [
    {
      "token": "tok_4xK2Nm1tYwOiXUgPQV1r2",
      "last4": "4242",
      "brand": "visa",
      "exp_month": 12,
      "exp_year": 2025,
      "created_at": 1728127800000
    }
  ]
}
Retrieves the latest 10 saved card tokens for a customer.

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

customer_id
string
required

Unique customer identifier

Response

Customer tokens retrieved successfully

customer_id
string

Unique customer identifier

Example:

"cus_Tfd3Jq1tZxPjYVhRQW2r3"

tokens
object[]

Array of saved card tokens (latest 10)