Initiate Buy
Initiate a Buy transaction for an existing customer.
Endpoint
POST /v1/buy/initiateAuthentication
Header
Value
Request body
Field
Type
Required
Description
Example request
curl -X POST https://ramp-api.ivorypay.io/api/v1/buy/initiate \
-H "x-api-key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"email": "kemi@example.com",
"fiatAmount": 25000,
"fiatCurrency": "NGN",
"reference": "770e8400-e29b-41d4-a716-446655440002"
}'const response = await fetch("https://ramp-api.ivorypay.io/api/v1/buy/initiate", {
method: "POST",
headers: {
"x-api-key": "your_api_key",
"Content-Type": "application/json",
},
body: JSON.stringify({
email: "kemi@example.com",
fiatAmount: 25000,
fiatCurrency: "NGN",
reference: "770e8400-e29b-41d4-a716-446655440002",
}),
});
const data = await response.json();
console.log(data);Example response
Last updated