cURL
curl --request GET \ --url https://carbonapistagingsecure.getcarbon.co/baas/api/v1/customers/{id} \ --header 'apikey: <api-key>' \ --header 'x-carbon-key: <x-carbon-key>'
{ "status": "success", "message": "Customer fetched successfully", "data": { "id": "965c4bf7-e86b-45ca-b286-1ee6f32e991b", "first_name": "ola", "last_name": "ajayi", "email": "[email protected]", "phone": "08071000030", "nin": "11111111111", "bvn": "11111111111", "is_business": false, "business_name": null, "mode": "sandbox", "created_at": "2024-02-27T16:15:38.000Z", "updated_at": "2024-02-27T16:15:38.000Z" } }
Retrieve details of a specific customer by ID.
GET
/v1/customers/{id}
x-carbon-key
string
id
200 OK
application/json
{ "status": "success", "message": "Customer fetched successfully", "data": { "id": "965c4bf7-e86b-45ca-b286-1ee6f32e991b", "first_name": "Ola", "last_name": "Ajayi", "email": "[email protected]", "phone": "08071000030", "nin": "11111111111", "bvn": "11111111111", "is_business": false, "business_name": null, "mode": "sandbox", "created_at": "2024-02-27T16:15:38.000Z", "updated_at": "2024-02-27T16:15:38.000Z" } }
Provide your API key in the 'apikey' header.
OK
The response is of type object.
object