Create a quote
Mints a single-use held quote for the requested currency pair. intent selects the action: ‘payout’ prices a held cross-rate / fiat-source / same-currency quote (the corridor picks the engine), ‘convert’ prices an in-wallet conversion between the caller’s own balances, and ‘order’ prices a trade-desk order (your markup + order-channel spread, no fee). Exactly one of fromAmount / toAmount fixes a leg of the pair: payout fixes toAmount (the beneficiary amount), convert fixes fromAmount (the source debit), and order fixes either side. The quote prices FX + markup, plus the per-conversion fee on convert intent, and locks the rate until it is consumed by the matching executor or expires. Read expiresAt for how long the quote is valid rather than assuming a duration. A payout’s per-transaction fee (a flat amount, or basis points of the debit floored at that amount) is applied at payout creation, not here. Every intent returns the same QuoteResponseDto, always carrying a rate (1 for a same-currency or stablecoin-par quote).
Headers
Optional. Names an owned sub-account (UUID) to mint the quote for. The quote records it, so only a payout, conversion or order made with the same Zuba-Account-Id, or one made without the header, can spend it. Omit to mint a master-level quote. An Idempotency-Key reused under a different Zuba-Account-Id returns 422 IDEMPOTENCY_PARAM_MISMATCH (payout, order) or IDEMPOTENCY_KEY_REUSED (convert). For payout and convert, a key whose quote is spent or expired returns 409 IDEMPOTENCY_KEY_CONSUMED ahead of that check. Naming an account this key does not own returns 403 not_account_owner.
Body
The intent field discriminates the body, and exactly one of fromAmount / toAmount fixes a leg of the pair. A payout quote takes either: toAmount fixes the beneficiary amount, fromAmount fixes the debit before the payout fee (NGN to GBP, EUR and USD take toAmount only). A convert quote requires fromAmount (the source debit). An order quote takes either. A side an intent does not take is rejected with a stable code. The runtime body is a single CreateQuoteDto validated per-intent.
- Option 1
- Option 2
- Option 3
Fixes the funded leg: the debit in fromCurrency, before the payout fee that is added at payout creation. The quote computes toAmount: on a cross-currency pair it is rounded down to the smallest unit every payout method in the target currency accepts (whole shillings for KES), on a same-currency pair it equals fromAmount. Create the payout for exactly that amount. Provide exactly one of fromAmount / toAmount. NGN to GBP, EUR and USD take toAmount only. Major-unit decimal string, up to 4 dp.
"100"
The rail the payout will use. Your terms for the pair on that rail price the quote, falling back to your rail-agnostic terms. Required whenever your terms for the pair differ by rail: omitting it there is refused with RAIL_REQUIRED. The payout consuming the quote must run on the same rail, or it is refused with QUOTE_RAIL_MISMATCH.
sepa_inst, sepa_credit, bank_transfer, ach, fedwire, swift, crypto, mobile_money, alipay, upi Response
The minted quote. Every intent returns the same shape.
Total amount debited from the caller in fromCurrency. A payout quote prices FX + markup only, so this is the FX base; the payout's per-transaction fee (a flat amount, or basis points of the debit floored at that amount) is added at payout creation. A convert quote includes its fee here: the debit less fee is what converts at rate.
"252447.5600"