Off Ramp – Create Fiat Payout Transaction
This endpoint initiates a fiat payout transaction, sending funds to a recipient’s bank account.
Endpoint
POST {{baseURL}}/v1/ramp/payout
Headers
Header | Value | Required |
---|---|---|
x-api-key | YOUR_API_KEY | Yes |
Request Body
{
"recipient": {
"id": "",
"name": "",
"address": "",
"email": "",
"website": "",
"type": "<i.e PERSON/BUSINESS>",
"account": {
"bankName": "",
"address": "",
"accountNumber": "",
"sortCode": "",
"swiftCode": "",
"branchCode": "",
"routingNumber": "",
"mobileProvider": ""
}
},
"quoteId": "<quoteId>",
"reason": "",
"remark": ""
}
Field Descriptions
Field | Type | Description |
---|---|---|
recipient.id | string | Recipient ID (if available) |
recipient.name | string | Recipient’s name |
recipient.address | string | Recipient’s address |
recipient.email | string | Recipient’s email (if available) |
recipient.website | string | Recipient’s website (optional) |
recipient.type | string | "PERSON" or "BUSINESS" |
recipient.account.bankName | string | Bank name |
recipient.account.address | string | Bank branch address (optional) |
recipient.account.accountNumber | string | Bank account number |
recipient.account.sortCode | string | Bank sort code (if applicable) |
recipient.account.swiftCode | string | SWIFT code (for international transfers) |
recipient.account.branchCode | string | Bank branch code (optional) |
recipient.account.routingNumber | string | Routing number (if applicable) |
recipient.account.mobileProvider | string | Mobile provider (if using mobile money) |
quoteId | string | ID of the quote to finalize payout details |
reason | string | Reason for the transaction |
remark | string | Additional notes or description for the transaction |
Successful Response 200 OK
{
"message": "transaction created successfully",
"status": "success",
"data": {
"id": "bc1ac02d-2b9c-435f-9b7a-xxxxxxxxxxxxx",
"referenceNumber": "XYORKSXAUJRYJ",
"state": "PENDING",
"created": "2023-05-05T13:21:54.197217",
"processed": "2023-05-05T13:21:54.197217"
}
}
Error Codes
Code | Message |
---|---|
400 | Bad request – invalid or missing fields |
401 | Unauthorized – invalid API key or token |
500 | Internal server error |
Additional Notes
- Use a valid
quoteId
to ensure the payout uses the correct exchange rates and fees. - The
recipient.account
section must contain valid banking details for the payout. - Always verify the
state
field (PENDING
,COMPLETED
,FAILED
) in the response to track payout status. - All sensitive requests must include the required headers for secure authorization.