v1
latestOpenAPI 3.0.02026-07-24103118224.7 KBCustomer
Get customer by email
Retrieves a single customer by their email address. Returns the customer's profile (email, name, phone, billing info) along with their active payment methods. Useful when you only have the customer's email and not their internal ID.
get/api/customer/email/{email}
Path parameters
emailstring required
Example:customer@example.com
Email address of the customer
Response
Customer details with active payment methods.
Example response
{
"id": "cus_abc123xyz789",
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-03-20T14:45:00.000Z",
"email": "john.doe@example.com",
"firstName": "John",
"lastName": "Doe",
"phone": "+33612345678",
"billingCountry": "FR",
"businessName": "Acme Corporation",
"taxId": "FR12345678901",
"taxType": "eu_vat",
"paymentMethods": [
{
"id": "cpm_abc123xyz789",
"currency": "EUR",
"cardBrand": "Visa",
"cardLast4": "4242",
"cardExpMonth": 12,
"cardExpYear": 2025,
"isDefault": true
},
{
"id": "cpm_def456uvw012",
"currency": "USD",
"cardBrand": "Mastercard",
"cardLast4": "5555",
"cardExpMonth": 6,
"cardExpYear": 2026,
"isDefault": false
}
]
}