Skip to navigation

Get Quote (Exact Out)

Destination-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.

Authentication

x-coinflow-auth-walletstring
x-coinflow-auth-blockchainstring
x-coinflow-auth-merchant-idstring
The merchant ID the session should be generated for
OR
x-coinflow-auth-user-idstring
x-coinflow-auth-blockchainstring
OR
x-coinflow-auth-session-keystring

Query parameters

exactAmountOutdoubleRequired
  • The fiat payout amount (in cents) the withdrawer should receive.
inputTokenstringRequired
  • The token address or contract of the token which the user is withdrawing.
merchantIdstringRequired
  • The merchant that this quote is for.
currencyenumOptional
  • The currency of exactAmountOut. Defaults to the account/withdrawer currency.
usePermitbooleanOptionalDefaults to true
  • [EVM only] whether the user’s wallet supports signing permit messages.
accountTokenstringOptional
  • The token of the account to use

Response

Ok
asapobject

The result of a destination-amount (“reverse” / exact-out) withdraw quote.

Given a target fiat payout (exactAmountOut), this reports how much of the input token the merchant needs to send so that — after swap, gas, and withdraw fees — the withdrawer nets at least the requested payout.

same_dayobject

The result of a destination-amount (“reverse” / exact-out) withdraw quote.

Given a target fiat payout (exactAmountOut), this reports how much of the input token the merchant needs to send so that — after swap, gas, and withdraw fees — the withdrawer nets at least the requested payout.

standardobject

The result of a destination-amount (“reverse” / exact-out) withdraw quote.

Given a target fiat payout (exactAmountOut), this reports how much of the input token the merchant needs to send so that — after swap, gas, and withdraw fees — the withdrawer nets at least the requested payout.

cardobject

The result of a destination-amount (“reverse” / exact-out) withdraw quote.

Given a target fiat payout (exactAmountOut), this reports how much of the input token the merchant needs to send so that — after swap, gas, and withdraw fees — the withdrawer nets at least the requested payout.

ibanobject

The result of a destination-amount (“reverse” / exact-out) withdraw quote.

Given a target fiat payout (exactAmountOut), this reports how much of the input token the merchant needs to send so that — after swap, gas, and withdraw fees — the withdrawer nets at least the requested payout.

pixobject

The result of a destination-amount (“reverse” / exact-out) withdraw quote.

Given a target fiat payout (exactAmountOut), this reports how much of the input token the merchant needs to send so that — after swap, gas, and withdraw fees — the withdrawer nets at least the requested payout.

eftobject

The result of a destination-amount (“reverse” / exact-out) withdraw quote.

Given a target fiat payout (exactAmountOut), this reports how much of the input token the merchant needs to send so that — after swap, gas, and withdraw fees — the withdrawer nets at least the requested payout.

venmoobject

The result of a destination-amount (“reverse” / exact-out) withdraw quote.

Given a target fiat payout (exactAmountOut), this reports how much of the input token the merchant needs to send so that — after swap, gas, and withdraw fees — the withdrawer nets at least the requested payout.

paypalobject

The result of a destination-amount (“reverse” / exact-out) withdraw quote.

Given a target fiat payout (exactAmountOut), this reports how much of the input token the merchant needs to send so that — after swap, gas, and withdraw fees — the withdrawer nets at least the requested payout.

wireobject

The result of a destination-amount (“reverse” / exact-out) withdraw quote.

Given a target fiat payout (exactAmountOut), this reports how much of the input token the merchant needs to send so that — after swap, gas, and withdraw fees — the withdrawer nets at least the requested payout.

interacobject

The result of a destination-amount (“reverse” / exact-out) withdraw quote.

Given a target fiat payout (exactAmountOut), this reports how much of the input token the merchant needs to send so that — after swap, gas, and withdraw fees — the withdrawer nets at least the requested payout.

swiftobject

The result of a destination-amount (“reverse” / exact-out) withdraw quote.

Given a target fiat payout (exactAmountOut), this reports how much of the input token the merchant needs to send so that — after swap, gas, and withdraw fees — the withdrawer nets at least the requested payout.

cryptoobject

The result of a destination-amount (“reverse” / exact-out) withdraw quote.

Given a target fiat payout (exactAmountOut), this reports how much of the input token the merchant needs to send so that — after swap, gas, and withdraw fees — the withdrawer nets at least the requested payout.