Get Quote (Exact Out)
Changed onDestination-amount ("reverse") quote. Given a target fiat payout (exactAmountOut), returns — for every withdrawal speed — how much of the input token the merchant needs to send so that, after swap, gas and withdraw fees, the withdrawer nets exactly that payout. A speed is undefined when it isn't available for the requested payout (no providers, unsupported currency, over the limit, or unreachable).
This is the inverse of GET /withdraw/quote.
Request
- Base URLhttps://api-sandbox.coinflow.cash/api
- URLhttps://api-sandbox.coinflow.cash/api/withdraw/quote/exact-out
- AuthAPI key in header x-coinflow-auth-wallet
Query parameters
- The fiat payout amount (in cents) the withdrawer should receive.
- The token address or contract of the token which the user is withdrawing.
- The merchant that this quote is for.
- The currency of exactAmountOut. Defaults to the account/withdrawer currency.
- [EVM only] whether the user's wallet supports signing permit messages.
- The token of the account to use
Response
Ok
Changes
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info
- warning
deleted the
headerrequest parameterx-coinflow-auth-wallet - info
the endpoint scheme security
walletwas added to the API
- warning