Skip to content

Get a customer

Request

Returns one customer by its ID.

Security
ApiKey
Path
customerIdstring^cus_[A-Za-z0-9]+$required

The ID of the customer, for example cus_N8w2Lq7Tz.

curl -i -X GET \
  'https://acme-billing.redocly.app/_mock/apis/billing/customers/{customerId}' \
  -H 'X-API-Key: YOUR_API_KEY_HERE'

Responses

The customer.

Bodyapplication/json
objectstringrequired
Value:"customer"
idstring^cus_[A-Za-z0-9]+$required

The unique ID of the customer.

namestringrequired

The legal name of the company.

emailstring, (email)required

The address that receives invoices and payment receipts.

countrystring^[A-Z]{2}$required

The two-letter ISO 3166-1 country code of the billing address.

currencystring(Currency)^[a-z]{3}$required

The three-letter ISO 4217 currency code, in lowercase.

Example:"usd"
paymentMethodobject(PaymentMethod)required

How the customer pays. card is present only when type is card.

createdAtstring, (date-time)required
Response
{ "object": "customer", "id": "cus_N8w2Lq7Tz", "name": "Northwind Traders", "email": "ap@northwind.example", "country": "US", "currency": "usd", "paymentMethod": { "type": "card", "card": { … } }, "createdAt": "2025-01-09T14:30:00Z" }