Create Virtual Account
Create a dedicated virtual bank account for receiving fiat deposits.
Endpoint
POST /v1/virtual-accountsAuthentication
Header
Value
Request body
Field
Type
Required
Description
Example request
curl -X POST https://ramp-api.ivorypay.io/api/v1/virtual-accounts \
-H "x-api-key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"email": "merchant-user@example.com",
"identityType": "bvn",
"identityNumber": "22222222222",
"currency": "NGN"
}'const response = await fetch("https://ramp-api.ivorypay.io/api/v1/virtual-accounts", {
method: "POST",
headers: {
"x-api-key": "your_api_key",
"Content-Type": "application/json",
},
body: JSON.stringify({
email: "merchant-user@example.com",
identityType: "bvn",
identityNumber: "22222222222",
currency: "NGN",
}),
});
const data = await response.json();
console.log(data);Example response
Response fields
Field
Type
Description
Identity types
Type
Description
Example
Last updated