Buy & Sell
Simplified fiat-in and fiat-out flows using IvoryPay's Buy and Sell features.
Buy: Collect fiat from users
Buy integration steps
1
Initiate the Buy transaction
curl -X POST https://ramp-api.ivorypay.io/api/v1/buy \
-H "x-api-key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"firstName": "Kemi",
"lastName": "Adeyemi",
"email": "kemi@example.com",
"fiatAmount": 25000,
"fiatCurrency": "NGN",
"reference": "770e8400-e29b-41d4-a716-446655440002",
"redirectUrl": "https://yourapp.com/payment/complete"
}'{
"statusCode": 200,
"success": true,
"message": "Buy initiated successfully",
"data": {
"firstName": "Kemi",
"lastName": "Adeyemi",
"email": "kemi@example.com",
"refCode": "buy123abc0",
"reference": "770e8400-e29b-41d4-a716-446655440002",
"transferDetails": {
"id": "uuid-here",
"accountName": "IvoryPay - Kemi Adeyemi",
"accountNumber": "9876543210",
"bank": "Providus Bank",
"amountPayable": 25000,
"expiresAt": "2026-03-26T13:00:00.000Z",
"currency": "NGN",
"businessFee": 0,
"platformFee": 125,
"createdAt": "2026-03-26T12:00:00.000Z",
"checkoutUrl": "https://checkout.ivorypay.io/pay/buy123"
}
}
}3
Listen for Buy webhooks
Event
Description
{
"event": "buy.success",
"data": {
"reference": "770e8400-e29b-41d4-a716-446655440002",
"status": "SUCCESS",
"accountNumber": "9876543210",
"currency": "NGN",
"accountName": "IvoryPay - Kemi Adeyemi",
"bankName": "Providus Bank",
"amount": 25000,
"customer": { ... }
}
}Sell: Send fiat to users
Sell integration steps
1
Initiate the Sell transaction
curl -X POST https://ramp-api.ivorypay.io/api/v1/sell \
-H "x-api-key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"firstName": "Tunde",
"lastName": "Bakare",
"email": "tunde@example.com",
"fiatAmount": 75000,
"fiatCurrency": "NGN",
"accountNumber": "0123456789",
"bankCode": "058",
"reference": "880e8400-e29b-41d4-a716-446655440003",
"redirectUrl": "https://yourapp.com/payout/complete"
}'{
"statusCode": 200,
"success": true,
"message": "Sell initiated successfully",
"data": {
"firstName": "Tunde",
"lastName": "Bakare",
"email": "tunde@example.com",
"refCode": "sell456xyz",
"reference": "880e8400-e29b-41d4-a716-446655440003",
"transferDetails": {
"id": "uuid-here",
"currency": "NGN",
"businessFeeInFiat": 0,
"platformFeeFiat": 375,
"fiatAmount": 75000,
"accountName": "Tunde Bakare",
"accountNumber": "0123456789"
}
}
}When to use Buy/Sell vs On-Ramp/Off-Ramp
Feature
Buy / Sell
On-Ramp / Off-Ramp
Frequently asked questions
Last updated