Add a customer
Creating a new customer
POST https://api.ivorypay.io/v1/business-customers
Request Body
Name
Type
Description
firstName
String
The first name of the customer
lastName
String
The last name of the customer
email*
String
A valid email address.
phoneNumber
String
A valid phone number beginning with a country code
{
"success": true,
"message": "Customer was created successfully",
"data": {
"firstName": "Ifeanyi",
"lastName": "Nwakasi",
"email": "nwakasistephen@gmail.com",
"userId": "3f795e70-3267-458d-9d45-4d66d01e118d",
"businessId": "e0353a89-09dc-4304-ac1e-618b6f88f721",
"context": "TEST",
"refCode": "ssmE3nSoVc",
"phoneNumber": "+2347012345678",
"uuid": "3d507168-e808-4f3b-9c5a-dc947125e07d",
"totalSpendInUSD": 0,
"createdAt": "2022-10-03T08:18:05.653Z"
}
}{
"success": false,
"message": "Invalid data",
"statusCode": 400,
"errors": [],
"timestamp": "10/2/2022, 9:47:43
}Last updated