Request a Quote
Call Create Order withstate: "draft". The rest of the body is the same as a real order. Use exact-in to fix the stablecoin the user sends, or exact-out to fix the fiat they receive (see Send or Receive an Exact Amount). Both code samples pay out in MXN.
- exact-in
- exact-out
The user sends exactly 300 USDC and the quote estimates how many MXN they receive after fees.
cURL
Read the Quote
Response excerpts for each mode. The amounts are illustrative.- exact-in
- exact-out
The user sends 300 USDC, pays 0.24 USDC in fees, and the remaining 299.76 USDC converts into an estimated 5,137.89 MXN (
quantity).Draft response (excerpt)
Display the Quote
Use these fields to build the quote summary:Place the Order
Once the user is ready to continue, discard the draft and send the request again withoutstate: "draft". The draft was only a preview and cannot be reused.
The new order includes a fresh quote and instructions for sending the funds. If the amounts have changed, show the updated quote to the user before continuing.
Next Steps
Manage Orders
Status, webhooks, and failures
Create Order API
Every request and response field

