A valid request URL is required to generate request examples{
"id": "<string>",
"object": "customer",
"merchant_id": "<string>",
"livemode": true,
"test_clock": "<string>",
"email": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"phone": "<string>",
"billing_address": {
"line1": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>",
"line2": "<string>"
},
"shipping": {
"name": "<string>",
"phone": "<string>",
"address": {
"line1": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>",
"line2": "<string>"
}
},
"creation_source": "api",
"payment_settings": {
"default_payment_method": "<string>"
},
"metadata": {},
"deleted": true,
"created_at": 123,
"updated_at": 123,
"summary": {
"payment_count": 123,
"succeeded_payment_count": 123,
"failed_payment_count": 123,
"refunded_payment_count": 123,
"payment_methods_count": 123,
"active_payment_methods_count": 123,
"first_paid_at": 123,
"last_paid_at": 123,
"net_spend_by_currency": {},
"gross_spend_by_currency": {},
"refunded_by_currency": {},
"largest_payment_by_currency": {}
},
"default_payment_method": {
"id": "<string>",
"type": "<string>",
"usage": "<string>",
"status": "<string>",
"brand": "<string>",
"last4": "<string>",
"exp_month": 123,
"exp_year": 123,
"bin": "<string>",
"funding_type": "<string>",
"issuer": "<string>",
"country": "<string>",
"fingerprint": "<string>",
"billing_name": "<string>",
"billing_email": "<string>",
"billing_phone": "<string>",
"billing_address": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>"
},
"chargeable": true,
"created_at": 123,
"updated_at": 123
},
"last_payment": {
"id": "<string>",
"description": "<string>",
"amount": 123,
"currency": "<string>",
"status": "<string>",
"charge_id": "<string>",
"payment_method_id": "<string>",
"card_brand": "<string>",
"last4": "<string>",
"created_at": 123
},
"payment_methods": [
{
"id": "<string>",
"type": "<string>",
"usage": "<string>",
"status": "<string>",
"brand": "<string>",
"last4": "<string>",
"exp_month": 123,
"exp_year": 123,
"bin": "<string>",
"funding_type": "<string>",
"issuer": "<string>",
"country": "<string>",
"fingerprint": "<string>",
"billing_name": "<string>",
"billing_email": "<string>",
"billing_phone": "<string>",
"billing_address": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>"
},
"chargeable": true,
"created_at": 123,
"updated_at": 123
}
],
"recent_payments": [
{
"id": "<string>",
"description": "<string>",
"amount": 123,
"currency": "<string>",
"status": "<string>",
"charge_id": "<string>",
"payment_method_id": "<string>",
"card_brand": "<string>",
"last4": "<string>",
"created_at": 123
}
]
}{
"error": {
"code": "INVALID_REQUEST",
"message": "invalid request body"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "CUSTOMER_NOT_FOUND",
"message": "customer not found"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Retrieve a customer
Returns a customer with full dashboard detail: all saved payment
methods, recent payments, and a lifetime spend summary. The
section_size parameter caps how many items appear in
payment_methods and recent_payments; omit it to receive all.
A valid request URL is required to generate request examples{
"id": "<string>",
"object": "customer",
"merchant_id": "<string>",
"livemode": true,
"test_clock": "<string>",
"email": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"phone": "<string>",
"billing_address": {
"line1": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>",
"line2": "<string>"
},
"shipping": {
"name": "<string>",
"phone": "<string>",
"address": {
"line1": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>",
"line2": "<string>"
}
},
"creation_source": "api",
"payment_settings": {
"default_payment_method": "<string>"
},
"metadata": {},
"deleted": true,
"created_at": 123,
"updated_at": 123,
"summary": {
"payment_count": 123,
"succeeded_payment_count": 123,
"failed_payment_count": 123,
"refunded_payment_count": 123,
"payment_methods_count": 123,
"active_payment_methods_count": 123,
"first_paid_at": 123,
"last_paid_at": 123,
"net_spend_by_currency": {},
"gross_spend_by_currency": {},
"refunded_by_currency": {},
"largest_payment_by_currency": {}
},
"default_payment_method": {
"id": "<string>",
"type": "<string>",
"usage": "<string>",
"status": "<string>",
"brand": "<string>",
"last4": "<string>",
"exp_month": 123,
"exp_year": 123,
"bin": "<string>",
"funding_type": "<string>",
"issuer": "<string>",
"country": "<string>",
"fingerprint": "<string>",
"billing_name": "<string>",
"billing_email": "<string>",
"billing_phone": "<string>",
"billing_address": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>"
},
"chargeable": true,
"created_at": 123,
"updated_at": 123
},
"last_payment": {
"id": "<string>",
"description": "<string>",
"amount": 123,
"currency": "<string>",
"status": "<string>",
"charge_id": "<string>",
"payment_method_id": "<string>",
"card_brand": "<string>",
"last4": "<string>",
"created_at": 123
},
"payment_methods": [
{
"id": "<string>",
"type": "<string>",
"usage": "<string>",
"status": "<string>",
"brand": "<string>",
"last4": "<string>",
"exp_month": 123,
"exp_year": 123,
"bin": "<string>",
"funding_type": "<string>",
"issuer": "<string>",
"country": "<string>",
"fingerprint": "<string>",
"billing_name": "<string>",
"billing_email": "<string>",
"billing_phone": "<string>",
"billing_address": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>"
},
"chargeable": true,
"created_at": 123,
"updated_at": 123
}
],
"recent_payments": [
{
"id": "<string>",
"description": "<string>",
"amount": 123,
"currency": "<string>",
"status": "<string>",
"charge_id": "<string>",
"payment_method_id": "<string>",
"card_brand": "<string>",
"last4": "<string>",
"created_at": 123
}
]
}{
"error": {
"code": "INVALID_REQUEST",
"message": "invalid request body"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "CUSTOMER_NOT_FOUND",
"message": "customer not found"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Authorizations
A merchant secret key (sk_…) sent as Authorization: Bearer <key>.
Headers
Merchant ID when an authorized Platform acts for a connected Merchant. Omit when authenticating directly as that Merchant.
^mer_[0-9A-Za-z]{14}$Path Parameters
The customer id (cus_…).
Query Parameters
Maximum items to return in payment_methods and recent_payments (1–100). Omit to return all.
1 <= x <= 100Response
The customer with full dashboard detail.
A customer enriched with payment summary data. The list endpoint
returns summary, default_payment_method, and last_payment for
each item. The retrieve endpoint additionally returns the full
payment_methods and recent_payments arrays.
Unique customer identifier (cus_…).
customer ID of the account that owns the customer (mer_…).
Whether this customer was created with a live (true) or test (false) key.
The immutable logical billing clock attached at creation; null when this customer uses wall-clock time.
Customer email address.
Empty string when not set.
Empty string when not set.
Empty string when not set.
Billing address; null when not set.
Show child attributes
Show child attributes
Shipping details; null when not set.
Show child attributes
Show child attributes
How the customer was created (for example api).
api, checkout, import, dashboard, platform Payment configuration stored for the customer.
Show child attributes
Show child attributes
Custom key-value pairs for your use.
Show child attributes
Show child attributes
True when the customer has been soft-deleted.
Unix epoch seconds.
Unix epoch seconds when the customer was last updated.
Lifetime payment statistics for this customer.
Show child attributes
Show child attributes
The customer's default payment method; absent when none is set.
Show child attributes
Show child attributes
The customer's most recent payment; absent when there are none.
Show child attributes
Show child attributes
All payment methods on file. Only returned by the retrieve endpoint.
Show child attributes
Show child attributes
Recent payments. Only returned by the retrieve endpoint.
Show child attributes
Show child attributes

