/api/v1/customersCreate customer
Creates a merchant-scoped customer. If the email already exists, returns the existing record.
| Field | Type | Description |
|---|---|---|
| email* | string | Customer email |
| name* | string | Full name |
| phone | string | Nigerian mobile (080… or +234…) |
| meta | object | Optional key-value metadata |
Request
POST https://apipay.topify.ng/api/v1/customers
Authorization: Bearer sk_test_xxxxxxxx
Content-Type: application/json
{
"email": "buyer@example.com",
"name": "Ada Okafor",
"phone": "08012345678"
}Response
{
"status": true,
"message": "Customer created.",
"data": {
"customer_code": "CUS-ABC123",
"email": "buyer@example.com",
"name": "Ada Okafor",
"phone": "08012345678",
"meta": null
},
"errors": null
}