Customers
Retrieve a customer
Changed onRetrieve customer information by ID or email. View purchase history, subscriptions, and profile details.
get/v1/customers
Request
- Base URLhttps://api.creem.io
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
customer_idstring
Example:cust_1234567890
The unique identifier of the customer.
emailstring
Example:customer@example.com
The email address of the customer.
Response
Successfully retrieved the customer
Example response
{
"email": "user@example.com",
"name": "John Doe",
"metadata": {
"key": "value"
},
"country": "US",
"external_id": "user-42",
"created_at": "2023-01-01T00:00:00Z",
"updated_at": "2023-01-01T00:00:00Z"
}Changes
- breaking
the
response's property type changed fromobjecttostringfor status
- breaking
- info
added the optional property
to the response with the status
- info