Flow Overview
1
Get Configuration
Fetch supported fiat currencies and payment methods via
GET /v1/onramp/config.2
Get Available Assets
Fetch purchasable crypto assets via
GET /v1/onramp/assets.3
Get a Quote
Get pricing for the fiat-to-crypto conversion via
POST /v1/onramp/quote.4
Create Checkout
Create a checkout session and get a redirect URL via
POST /v1/onramp/checkout.5
Redirect User
Send the user to the checkout URL to complete payment.
6
Track Status
Poll the order status via
GET /v1/onramp/status until completion.Step 1: Get Configuration
Fetch the available fiat currencies and payment methods:Step 2: Get Available Assets
Fetch the list of crypto assets available for purchase:Step 3: Get a Quote
Request a quote for the fiat-to-crypto conversion:Step 4: Create Checkout Session
Create a checkout session to get a payment URL:Step 5: Track Order Status
After the user completes payment, poll the order status:Complete Example
Best Practices
The fiat on-ramp involves real money. Always show users a clear summary of fees, exchange rates, and the expected crypto amount before redirecting to checkout.
- Show fees transparently — Display the breakdown of network fees, processing fees, and exchange rate before the user proceeds.
- Use webhooks for production — Instead of polling, configure a webhook to receive order status updates automatically.
- Handle KYC requirements — Some jurisdictions and amounts may require additional KYC verification. The checkout flow handles this automatically, but inform users they may need to verify their identity.
-
Set appropriate redirect URLs — The
redirectUrlshould point to a page in your app that shows the order status and provides a good user experience. -
Respect minimum/maximum amounts — Check the asset’s
minAmountandmaxAmountfrom the assets endpoint before requesting a quote.