Fiat Payment Refunds
Refund completed fiat collections to bank accounts using your Ivorypay business crypto balance.
Send a refund for a completed fiat collection to a recipient's bank account. Ivorypay converts the refund amount from your crypto wallet balance and delivers funds via local bank transfer.
Base path: /v1/fiat-collection-refund
Authentication: API Key (Authorization: <secret-key>)
Endpoints
POST
/v1/fiat-collection-refund
Initiate a fiat refund
POST /v1/fiat-collection-refund
Initiates a refund for a previously completed fiat collection. The refund amount is converted from your business crypto wallet and sent to the recipient's bank account.
Prerequisites
The original collection transaction must have a status of
SUCCESS.Only one refund is allowed per collection: a second request against the same
collectionReferencewill be rejected.Your business wallet must hold sufficient crypto balance to cover the fiat refund amount after conversion.
Request
Headers
Authorization: <your-secret-api-key>
Content-Type: application/jsonBody
amount
number
Yes
Fiat amount to refund in fiatCurrency. Must be a positive number.
accountNumber
string
Yes
Recipient's bank account number.
accountName
string
ZAR refunds
Recipient's account holder name, as recorded by their bank. Required when the refund currency is ZAR.
bankId
string
Yes
Bank ID from the bank directory. Provide it with accountNumber; saved beneficiary IDs are not accepted by this endpoint.
reference
string
Yes
Your unique reference for this refund. Reuse for the same operation; duplicate requests may be rejected rather than replayed.
collectionReference
string
Yes
The reference of the original collection transaction to refund.
Response
Response Fields
id
string
Refund record UUID
reference
string
Your supplied refund reference
collectionReference
string
The original collection reference being refunded
amountInFiat
number
Refund amount in fiat currency
currency
string
Fiat currency of the refund (e.g. NGN)
token
string
Crypto token used from your wallet (e.g. USDT)
amountInCrypto
number
Equivalent crypto amount debited from your wallet
feeInFiat
number
Platform fee in fiat
feeInCrypto
number
Platform fee in crypto
payoutMethod
string
Payment rail used
environment
string
LIVE or TEST
businessId
string
Your business UUID
createdAt
string
ISO 8601 creation timestamp
Error Responses
400
A refund has already been processed for this collection
collectionReference was already refunded
400
No transaction found with the provided collection reference
collectionReference does not exist
400
Cannot process refund for a transaction that is not successful
Original collection is not in SUCCESS state
400
Amount exceeds the settled amount for this transaction
amount is greater than the collection settled amount
400
Insufficient balance
Crypto wallet balance too low to cover the refund
400
Duplicate transaction reference
reference was already used
401
Unauthorized
Missing or invalid API key
Refund Status Values
PENDING
Refund created, queued for processing
PROCESSING
Sent to payment rail, awaiting bank confirmation
SUCCESS
Bank confirmed receipt, crypto wallet debited
FAILED
Refund failed. Check the final transaction and balance; a reservation may remain pending reconciliation.
Subscribe to webhook events to receive real-time status updates.
Supported Values
fiatCurrency
NGN
Nigerian Naira
KES
Kenyan Shilling
GHS
Ghanaian Cedi
ZAR
South African Rand
USD
US Dollar
Refunds to mobile money wallets are not supported. Refunds are paid by bank transfer only, so the recipient needs a bank account. Mobile money is available for payouts (see Mobile Money Payments), but not for refunds.
Payout Methods
BANK_TRANSFER
Direct bank transfer
Code Examples
Node.js
cURL
Python
Notes
The
amountis in fiat (e.g. NGN): Ivorypay converts it to the equivalent crypto amount at the time of the request.The
amountcannot exceed the original collection's received fiat amount.Use your live key for live refunds and your test key for test refunds.
To resolve bank IDs, use the
GET /v1/fiat-transfer/banksendpoint.
Last updated