Get Customer

Retrieves a customer by ID.

Endpoint

GET /v1/customers/:id

Authentication

Requires API key authentication via X-API-Key header.

Path Parameters

Parameter
Type
Description

id

string

The customer ID

Query Parameters

Parameter
Type
Description

expand

string

Comma-separated list of fields to expand. Supported: stats

Example Request

curl https://api.example.com/v1/customers/cus_abc123def456 \
  -H "X-API-Key: sk_live_xxxxx"

Example Response

Example Request with Stats Expansion

Example Response with Stats

Errors

Code
Description

401

Invalid or missing API key

404

Customer not found or doesn't belong to your merchant account

Last updated