Create Customer
This 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.
API Endpoint
POST https://backendapi.sayswitchgroup.com/api/v1/customerSample Request
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
| Fields | Type | Description |
|---|---|---|
email | string | The customer’s valid email address. |
first_name | string | The customer’s given name. |
last_name | string | The customer’s surname or family name. |
phone | string | The customer’s primary phone number. |
Sample Response
{
"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"
}
}