A customer is either an individual or business entity that can be issued a payment card.
Endpoints
Method | Url |
---|---|
POST | /customers |
GET | /customers |
GET | /customers/:id |
PUT | /customers/:id |
Customer Object
{
"_id": "61d4311000c7cdd1184ef76a",
"business": "61d4150b00c7cdd1384f2355",
"type": "individual",
"name": "John Doe",
"status": "active",
"individual": {
"firstName": "John",
"lastName": "Doe",
"_id": "61dc10951160e92757b1c4a1"
},
"billingAddress": {
"line1": "Ikeja, Lagos",
"line2": "",
"city": "Lagos",
"state": "Lagos",
"country": "Nigeria",
"postalCode": "100001",
"_id": "61d4311000c7cdd1184ef76d"
},
"emailAddress": "[email protected]",
"phoneNumber": "+234 8145431688",
"metadata": {
"name": "john"
}
}