Initiate Direct Payout
This API is used to initiate a new payout, enabling the transfer of funds to multiple beneficiaries simultaneously.
Restrictions
Upon initialising a new payout, a validation will be carried out on each account to ensure compliance with the set conditions configured for payouts. The conditions will be pre-determined with the financial partner.
Validation Rules
- Account lookup for each beneficiaries
- Amount Validation: Each payout must be less than or equals to configured value
- Each beneficiary mustn’t have received a payout over configured value under 24 hrs.
- Confirm Business payout holding currency can settle all payout to payout recipients.
A proper response is returned upon a failed validation. See sample below:
Error Response on Amount Validation
{
"status": 400,
"data": null,
"message": "error has occurred",
"error": {
"id": "18239c29-746c-479d-9d4a-4a6dba993193",
"details": "rpc error: code = Unknown desc = maximum amount per payout of NGN is 1000000.000000",
"message": "Maximum amount per payout of NGN is 1000000.000000."
}
}
HTTP Method : POST
API Endpoint :{{base_url}}/api/v1/payouts
Sample cURL Request
curl --location 'https://sandbox-api.ovalfi-app.com/api/v1/payouts' \
--header 'Authorization: Bearer eyJidXNpbmVzc0lEIjoiYmEwY2E1NGMtZjRkYi00NDU5LWE4MDYtOTZkYzA3NWIzZjlkIiwidXNlcklEIjoiM2E5NjhiOWYtMzU5MC00ODZhLWE1MTMtYzg2MzkzZjZmYWI4Iiwia2V5IjoiaGFsZWVtYWgifQ==' \
--header 'Signature: 8042e424f924a236e9c8b4c6a76991ffeee24328d39cbb8a31d16cbca9948bf2' \
--form 'document=@"b079-80-f/Sample+NGN+Bulk+Payout+Instruction+++Bank+Codes (2).xlsx"' \
--form 'currency="NGN"' \
--form 'remarks="External API"'
Response
{
"status": 201,
"data": {
"requestID": "f1f18f0f-0a38-4d16-bf6e-6f9c4fc5bcdb",
"id": "26fdc99d-92f1-4b7d-9c84-9845abdd0c46",
"business_id": "d04319d7-b3fb-478e-ade5-76cc5176e1dd",
"status": "initiated",
"count": 5,
"currency": "NGN",
"total_amount": 95020,
"fee": {
"currency": "NGN",
"symbol": "₦",
"amount": 0
},
"remarks": "External API",
"cancel_reason": null,
"completed_at": null,
"created_at": "2023-06-19T14:13:47.437928208Z",
"updated_at": "2023-06-19T14:13:47.438303583Z"
},
"message": "Bulk payout initiated successfully!",
"error": null
}
Updated 10 months ago