Retrieve Customers
This endpoint returns a comprehensive list of all customers currently registered in the system.
Endpoint
GET https://backendapi.sayswitchgroup.com/api/v1/customer
Example cURL Request
curl -X GET https://backendapi.sayswitchgroup.com/api/v1/customer
-H "Authorization: Bearer YOUR_SECRET_KEY"Example Response
{
"success": true,
"message": "Customers retrieved",
"data": [
{
"id": 330,
"first_name": "Rosemond",
"last_name": "Oyeniyi",
"email": "test@email.com",
"phone": "08159994269",
"bvn": null,
"domain": "test",
"customer_code": "CUS_8n9f689gok7obwg",
"metadata": "{}"
},
{
"id": 54,
"first_name": "Test",
"last_name": "Test",
"email": "test@gmail.com",
"phone": "08326900563",
"bvn": null,
"domain": "live",
"customer_code": "CUS_cdoyvpt3yadgflq",
"metadata": "{}"
},
// ...additional customer records
]
}