Quotes are non-binding. They show the user what they will get. The final price is set when the user confirms on the hosted page.
Request
Call Get Quote. The request is the same for both directions;orderType and the source/destination pair change.
- Onramp (buy)
- Offramp (sell)
cURL
Response
The response echoes the route and returnssrcAmount, dstAmount, exchangeRate and feeDetails. If no quote can be produced, message explains why.
Partner fee (markup)
To take a margin on an order, pass your fee on the quote and order-creation requests. Both fields are optional and override the fee configured on your account for that request:
They apply to the quote (
/ext/ramp_order/quote) and the checkout order (/ext/ramp_order/checkout). When omitted, the account-configured partner fee applies. Send the same values on both calls so the order matches the quote you showed the user.
Fee breakdown (feeDetails)
Quote and order responses return a feeDetails array. Each entry has a type, fee, currency, and isInclusive. The returned type values are:
Reconciliation. In the quote, the partner fee is folded into
platform, so total = platform + network. On the order responses it is broken out: platform excludes the partner amount and a partner line is added, so total = platform + network + partner. The total is identical either way.
Next: Create the order
Create the checkout order with the user’s details