Create Customer
https://sandboxapi.bitnob.co/api/v1/customers/ (opens in a new tab)
Create a customer under a company.
Body Parameters
Parameter | type | Required |
---|---|---|
firstName | string | ❌ |
lastName | string | ❌ |
string | ✅ | |
phone phone number of customer | string | ❌ |
countryCode | string | ❌ |
Request
Customers/Create Customer [POST]
curl --request POST \
--url https://sandboxapi.bitnob.co/api/v1/customers \
--header 'Authorization: Bearer API-KEY' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"email": "bob@bitnob.com",
"firstName": "Bob",
"lastName": "Wonder",
"phone": "9012345678",
"countryCode": "+234"
}
'
Responses
🟢 200 - Result example
{
"status": true,
"message": "Customer successfully added",
"data": {
"firstName": "Bob",
"lastName": "Wonder",
"email": "bob@bitnob.com",
"phone": "9021534385",
"countryCode": "+234",
"blacklist": false,
"id": "1e258349-2043-4ca1-b39c-8418f9e0d36d",
"createdAt": "2021-08-26T11:15:23.788Z",
"updatedAt": "2021-08-26T11:15:23.788Z"
}
}
Last updated on