API reference and playgroundCustomers
Get customer details
curl -X GET "https://test-api.kashier.io/v2/customers/string"{ "body": { "_id": "507f1f77bcf86cd799439047", "name": "John Doe", "phoneNumber": "01000000000", "emailAddress": "", "customerId": "C-XXXXXXXXXXXXX", "merchantId": "MID-XXXXX-XXX", "customFields": [ { "name": "custom-key-1", "value": "custom-value-1" }, { "name": "custom-key-2", "value": "custom-value-2" } ], "createdAt": "2025-02-22 19:14:37+02:00", "updatedAt": "2025-02-22 19:14:37+02:00", "timeLine": [ { "_id": "507f1f77bcf86cd799439048", "customerId": "507f1f77bcf86cd799439047", "operation": "created", "actionBy": { "email": "[email protected]", "fullName": "Dashboard User" }, "updatedFields": [], "updatedAt": "2025-02-22 19:14:37+02:00" } ] }, "message": "Customer retrieved successfully"}Retrieves a single customer, including the timeLine of changes made to the profile and who made them.
Authorization
secretKey Authorization<token>
Your secret key from the Kashier dashboard. Send the raw key value in the Authorization header, without a Bearer prefix.
In: header
Path Parameters
id*string
The customer's record id.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json