Payout Wallets and Automatic Funding
Enable separate payout balances, fund them from collections and manage automatic funding rules for each currency or token.
Payout wallets are optional and disabled by default. Enable them in Payment Settings separately for TEST and LIVE.
Payout wallets are separate accounting balances for payouts, one per currency or token. They are not new blockchain addresses. Fund them from existing collections; you do not need to send Ivorypay new money when your collection balance is sufficient.
Existing payout endpoints stay the same
Continue using POST /v1/fiat-transfer, POST /v1/crypto-transfer and the existing /v1/bulk-transfers create/review/submit flow. No new payout URL or mandatory wallet ID is required. The merchant setting determines which balance funds newly admitted payouts.
Disabled, the default
Collection balance in the request's crypto token, including fees
Collection balance in the request's token, including fees
Enabled
Payout wallet in fiatCurrency, including fees
Payout wallet in the request's token, including fees
Request units do not change when you enable payout wallets. For the public fiat-transfer API, amount remains an amount in the specified crypto token. The token is still required for quoting. Do not send a ZAR amount in that field, omit token, or copy dashboard-only amountType fields into a merchant API request.
Use the fiat transfer quote with the same request terms. When payout wallets are enabled, the fiat wallet charge is totalAmountInFiat; when disabled, the crypto collection-wallet charge is totalAmountInCrypto. recipientAmount is what the recipient receives. The fee is already included in the total charge. Preserve the returned quote version and fingerprint as described in Fiat Transfer.
For example, a payout to a ZAR recipient uses the ZAR payout wallet once enabled, even when the request uses token: "USDT". If that ZAR wallet has insufficient available funds, the payout fails. It does not draw from USDT, another currency, or collections. Explicitly fund the ZAR wallet first.
Already-admitted payouts retain their saved funding balance and reserved amount. Changing the setting does not redirect them. Existing references, status verification and payout webhook events remain the reconciliation path; successful initiation is not proof of delivery.
Enable and configure in the dashboard
A business owner or administrator enables Payout wallets in Payment Settings, separately for TEST and LIVE. Merchants who do not opt in retain the existing behavior. Coordinate activation with your integration: the request format stays compatible, but new payouts need funds in the newly selected payout wallets.
Automatic payout funding appears only after payout wallets are enabled. It has its own toggle. When enabled, Manage rules lets an owner or administrator choose a collection currency and destination payout-wallet currency.
Collection settlement is independent of payout funding and automatic funding. For each enabled fiat currency, choose Keep original currency or explicitly Settle in USDT. A saved preference applies only to future collection admissions in that business and TEST/LIVE environment. It survives either payout toggle. Without an explicit preference, new collections retain their original net fiat when payout wallets are enabled and use the existing token settlement when disabled.
Allocation rules do not select the collection settlement currency. With automatic funding off, future proceeds stay in their chosen collection currency without an automatic quote or hold. With automatic funding on, a saved active rule moves only the merchant's final net share after fees and splits, using the frozen funding quote. Same-currency funding is one to one without FX. Cross-currency funding retains the existing quoted conversion pricing. Explicit USDT settlement cannot automatically convert back to its original fiat; keep that fiat directly or fund its payout wallet manually after reviewing a quote.
The collection saves its actual credit currency, amount and explicit preference version when accepted. Later preference, rule, payout-mode or rate changes cannot redirect or reprice that payment. Existing accepted collections and crypto collections keep their saved behavior. Re-enabling automation does not backfill old collections. Settings changes never transfer, convert or reserve already-held funds.
Disabling payout wallets requires no outstanding payout reservations, pending funding or funding requiring review. Existing free payout balances remain held and visible. Automatic funding switches off; saved rules and explicit collection preferences remain. You can explicitly return available payout funds to collections in the same currency through the existing quote-and-accept flow even while payout wallets are disabled. New payout-wallet funding and cross-currency returns require the mode enabled. Newly admitted legacy fiat payouts still use the requested token collection balance; held fiat is not silently converted to fund them.
Settings and rule writes use authenticated dashboard sessions, not merchant secret API keys. Use the dashboard to enable the mode and manage rules; do not build an integration around those session-only writes.
Authentication and base URL
For the API-key endpoints below, use the secret key for the business and TEST/LIVE environment. Existing account restrictions and business-role checks apply. Read endpoints allow business roles; funding and cancellation require owner, administrator or billing permissions for the key's user.
The public base is https://api.ivorypay.io/api. A path shown as /v1/payout-wallets therefore becomes https://api.ivorypay.io/api/v1/payout-wallets. Keep keys on your server. See Authentication.
Check balances and supported currencies
GET
/v1/payout-wallets
Settings and collection/payout wallet balances for the authenticated business and environment
GET
/v1/payout-wallets/assets
Enabled funding currencies/tokens, asset type and permitted decimal precision
The overview uses the standard success envelope. Its data contains:
enabled
Whether payout-wallet mode is enabled
automaticSettlementEnabled
API field for the dashboard's Automatic payout funding toggle
version
Settings revision; do not treat it as a payout reference
environment
TEST or LIVE, selected by your credential
wallets
Wallet records with id, currency, purpose, status, balance, reserved and available
purpose is COLLECTION or PAYOUT. Monetary values are decimal strings. available excludes active/dispatched reservations; use it instead of the recorded balance when checking funds. Admission still rechecks funds atomically, because another request can reserve them meanwhile. A currency with no payout-wallet row has no funded payout balance; do not substitute its collections balance.
GET /v1/balance continues to describe collection balances. Use the payout-wallet overview for payout balances and their reservations.
Fund a payout wallet or return funds to collections
Use the same quote-and-accept flow in either direction. The source wallet's purpose determines the destination: COLLECTION funds PAYOUT, and PAYOUT returns funds to COLLECTION. This does not transfer money to an external recipient.
Read the source wallet ID and available balance from the overview, and supported destination currencies from
/assets.Create a quote with an exact decimal-string amount in the source wallet currency:
The UUID above is illustrative. Replace it with an owned source wallet ID. The amount must be positive, fit the source currency's precision and stay within available funds at acceptance. A quote does not reserve or move funds.
Review the returned
data.id,sourceAmount,destinationAmount,sourceCurrency,destinationCurrency,rateandexpiresAt. Quotes currently expire after 60 seconds. Use the returned expiry rather than assuming a fresh window.Accept the reviewed quote:
Acceptance moves both ledger legs atomically using the saved conversion terms; it does not reprice. Repeating acceptance of an already-applied quote returns its saved result without another debit. If the response is lost, first recover that same quote through GET /v1/payout-wallets/funding-quotes/{id} and inspect appliedAt. Do not create and accept a replacement while the original outcome is unknown. An unapplied expired quote must be replaced and reviewed again.
Funding history and export
GET /v1/payout-wallets/funding returns data.records and data.count, combining accepted manual funding and automatic funding. Automatic funding appears once, with its collection reference. Unaccepted manual quotes are not completed funding history.
page
One-based page, default 1
limit
Page size 1 to 100, default 25
q
Case-insensitive reference substring, up to 150 characters
status
FUNDED, PENDING, CANCELLED or NEEDS_REVIEW
startPeriodDatetime, endPeriodDatetime
Inclusive ISO timestamps; use explicit time zones and an end at or after the start
Records identify id, reference, type (MANUAL or AUTOMATIC), state, source/destination currency and purpose, decimal-string amounts, createdAt and appliedAt. Pending automatic funding may have a null destinationAmount; do not estimate it as final.
GET /v1/payout-wallets/funding/export downloads CSV using the same reference/status/date filters, without pagination. More than 10,000 matches are rejected with a request to narrow the date range; exports are never silently truncated. Dates are UTC and amounts retain decimal precision.
PENDING means funding is not complete. NEEDS_REVIEW means automatic retries have stopped and the funds remain reserved for operations review. Contact Ivorypay with the funding ID and collection reference; do not initiate a replacement to bypass the hold.
POST /v1/payout-wallets/routing/{id}/cancel cancels pending automatic funding and releases its reservation without moving the balance. It does not cancel a payout. Use the automatic funding record's ID, not its collection reference. Completed funding and NEEDS_REVIEW holds cannot be cancelled through this endpoint. Repeating a successful cancellation returns the cancelled state.
Configuration endpoints and compatibility
PUT
/v1/payout-wallets/settings
Dashboard JWT, owner/admin only; enabled, optional automaticSettlementEnabled, and current version
GET
/v1/payout-wallets/collection-preferences
Secret key or dashboard session; enabled fiat currencies with saved settlement (KEEP_FIAT, USDT or null), version and effectiveSettlement (KEEP_FIAT, USDT, or QUOTE_TOKEN for the unset legacy default)
PUT
/v1/payout-wallets/collection-preferences
Dashboard JWT, owner/admin only; currency, settlement (KEEP_FIAT or USDT) and current preference version (0 to create)
GET
/v1/payout-wallets/routes
Secret key or dashboard session; inspect saved rules
PUT
/v1/payout-wallets/routes
Dashboard JWT, owner/admin only; collectionCurrency, destinationCurrency, active, and current rule version (0 to create)
GET
/v1/payout-wallets/routing
Secret key or dashboard session; automatic-only history with page/limit; use /funding for combined filtered history
The existing routes, routing and automaticSettlementEnabled API names remain unchanged despite the clearer dashboard label. QUOTE_TOKEN is a read-only compatibility state, not a savable preference. Legacy fiat requests may quote USDC or another previously supported token. An explicit USDT preference requires a USDT quote; a mismatched token is rejected before admission instead of silently repricing or relabeling its units.
Settings, collection preferences and rule writes use optimistic version checks; stale writes return a conflict rather than overwriting a newer configuration.
Errors and rollout checks
Insufficient funds reject initiation or funding acceptance. In payout-wallet mode, the message identifies the selected currency's payout wallet; no other balance is charged as fallback.
A foreign wallet/quote, wrong environment, unsupported currency, invalid precision, expired quote or stale settings/rule version must be corrected before retrying.
Payout quote changes require review of the new terms. Do not change the reference and automatically resubmit an uncertain payout.
Test funding, return, automatic funding, payouts, status/webhook reconciliation and insufficient-funds handling in TEST before enabling LIVE. Verify balances and references after each operation. TEST funds do not fund LIVE wallets.
See Bulk Payouts, Webhooks and the Go Live Checklist.
Last updated