Customers
Get Customer
GET
https://backendapi.sayswitchgroup.com/api/v1/customer/{email_or_code}Use this endpoint to fetch detailed information about a specific customer by providing their unique customer email or code.
Sample cURL Request
cURL
curl -X GET https://backendapi.sayswitchgroup.com/api/v1/customer/johndoe@gmail.com
-H "Authorization: Bearer YOUR_SECRET_KEY"Sample Response
JSON
{
"success": true,
"message": "Customer retrieved",
"data": {
"id": 330,
"first_name": "John",
"last_name": "Doe",
"email": "test@email.com",
"phone": "08159994269",
"bvn": null,
"domain": "test",
"customer_code": "CUS_8n9f689gok7obwg",
"metadata": "{}",
"status": "active"
}
}