Customers
Get customer details
Returns the details of a customer and their payment instruments.
get/customers/{identifier}
Request
- Base URLhttps://{prefix}.api.sandbox.checkout.com
- Auth
- OAuth 2Client credentialsToken URLstringScopesvault, vault:customers
- or API key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The customer's ID or email
Response
Customer retrieved successfully
Example response
{
"id": "cus_y3oqhf46pyzuxjbcn2giaqnb44",
"email": "brucewayne@gmail.com",
"default": "src_wmlfc3zyhqzehihu7giusaaawu",
"name": "Bruce Wayne",
"phone": {
"country_code": "+1",
"number": "415 555 2671"
},
"metadata": {
"coupon_code": "NY2018",
"partner_id": 123989
},
"instruments": [
{
"type": "card",
"id": "src_wmlfc3zyhqzehihu7giusaaawu",
"fingerprint": "vnsdrvikkvre3dtrjjvlm5du4q",
"expiry_month": 6,
"expiry_year": 2025,
"scheme": "VISA",
"last4": 9996,
"bin": 454347,
"card_type": "CREDIT",
"card_category": "CONSUMER",
"issuer": "TEST STATE BANK",
"issuer_country": "US",
"product_id": "F",
"product_type": "CLASSIC",
"account_holder": {
"first_name": "John",
"last_name": "Smith",
"billing_address": {
"address_line1": "123 High St.",
"address_line2": "Flat 456",
"city": "London",
"zip": "SW1A 1AA",
"country": "GB"
},
"phone": {
"country_code": 1,
"number": "415 555 2671"
}
},
"card_wallet_type": "applepay"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.