Wallet
Accept quote
Changed onAccept a quote and debit the specified internal wallet. Used for crypto swaps (BTC ↔ USDT), prefunded payouts, and quotes paid from an internal balance. sourceWallet must match the wallet on the quote (BTC, USDT, or NGN). Swap quotes expire in 60 seconds.
post/wallet/payout/{quoteId}/accept
Request
- Base URLhttps://staging.api.mavapay.co/api/v1
- Auth
- API key in header X-API-KEY
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
quoteIdstring uuid required
The ID of the quote to accept
Request body
Example request
{
"sourceWallet": "USDT"
}Response
Successful swap
Example response
{
"status": "ok",
"message": "quote is being processed"
}Changes
- breaking
request property
was restricted to a list of enum values - info
added the new
BTCenum value to the request property - info
added the new
NGNenum value to the request property - info
added the new
USDTenum value to the request property
- breaking
- info
endpoint added
- info