Create Customer
Create a new customer for your business.
Endpoint
POST /v1/customersAuthentication
Header
Value
Request body
Field
Type
Required
Description
Example request
curl -X POST https://ramp-api.ivorypay.io/api/v1/customers \
-H "x-api-key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"firstName": "Amina",
"lastName": "Okafor",
"email": "amina@example.com",
"phoneNumber": "+2348012345678"
}'const response = await fetch("https://ramp-api.ivorypay.io/api/v1/customers", {
method: "POST",
headers: {
"x-api-key": "your_api_key",
"Content-Type": "application/json",
},
body: JSON.stringify({
firstName: "Amina",
lastName: "Okafor",
email: "amina@example.com",
phoneNumber: "+2348012345678",
}),
});
const data = await response.json();
console.log(data);Example response
Response fields
Field
Type
Description
Error cases
Scenario
Description
Last updated