Skip to main content
GET
/
s2s
/
customers
/
{customer_id}
cURL
curl --request GET \
  --url https://api.xpaycheckout.com/s2s/customers/{customer_id} \
  --header 'Authorization: Basic <encoded-value>'
{
  "customer_id": "cus_Tfd3Jq1tZxPjYVhRQW2r3",
  "name": "John Doe",
  "email": "john.doe@example.com",
  "mobile": "+1234567890",
  "address": {
    "line1": "123 Main Street",
    "line2": "Apt 4B",
    "city": "San Francisco",
    "state": "CA",
    "postal_code": "94102",
    "country": "US"
  },
  "created_at": 1728127800000
}
Retrieves customer details by customer ID.

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 details retrieved successfully

customer_id
string

Unique customer identifier

Example:

"cus_Tfd3Jq1tZxPjYVhRQW2r3"

name
string
Example:

"John Doe"

email
string
Example:

"john.doe@example.com"

mobile
string
Example:

"+1234567890"

address
object
created_at
integer

Epoch timestamp in milliseconds of when the customer was created

Example:

1728127800000