Customers
Create Customer
POST
https://backendapi.sayswitchgroup.com/api/v1/customerThis endpoint allows you to register a new customer on the platform by submitting essential information such as email, name, and phone number, along with any additional optional details.
Sample Request
cURL
curl -X POST https://backendapi.sayswitchgroup.com/api/v1/customer
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_SECRET_KEY" \
-d '{
"email": "test@email.com",
"first_name": "test",
"last_name": "tester",
"phone": "08159994269"
}'Request Explanation
Sample Response
JSON
{
"success": true,
"message": "Customer created",
"data": {
"email": "test@email.com",
"domain": "test",
"customer_code": "CUS_8n9f689gok7obwg",
"id": 330,
"created_at": "2025-05-13T14:35:44.000000Z",
"updated_at": "2025-05-13T14:35:44.000000Z"
}
}