Skip to main content
Use quotes to compare providers before creating a ramp payment. Check coverage first, request a price, then confirm the quote you want to use.

Discover coverage

Check the available markets, assets and routes before showing payment options to your customer. Use indicative rates for display. Request a quote when you need a price you can confirm. The reference pages document each endpoint’s parameters and responses.

Request a quote

Create a quote for the source amount and destination asset. This example requests an off-ramp quote in Sandbox:
Quote request
source_amount is in the asset’s smallest unit: 1000000 is 1 USDC, because USDC has 6 decimals. rail is the fiat rail: bank for NGN, mobile_money for GHS. You do not have to name a network. Onstacks orchestrates the network internally; pass source_network only when you need a specific one. The response lists eligible providers, ranked by what the recipient receives after fees. Compare the funding amount, payout, fees, rate and expiry before choosing one. The recommended_quote_reference identifies the recommended option.

Confirm a quote

Confirm the quote with the destination details and an idempotency key:
Quote confirmation
The destination must match the payment rail: a bank account, mobile-money account or wallet. See the confirmation reference for the required fields in each market. Confirming returns the payment, with funding_instructions that tell the customer where to send the funds. For a bank payout:
  • Take bank_code from GET /v1/ramp/institutions with the quote’s provider and the country. Each provider has its own codes, so a central-bank code such as 058 can be refused.
  • Send account_name exactly as the bank holds it. The provider verifies the account when the quote is locked. If the names differ, the response is 400 recipient_name_mismatch and the message gives the verified name.
For a quidax quote, send customer.first_name and customer.last_name. On an off-ramp, Quidax only pays an account in that name. For a GHS mobile-money on-ramp, send the paying account in payer, and set destination.wallet.network to the quote’s network:
GHS on-ramp confirmation
Confirming locks the quote with the provider. If the locked price differs from the quote, the response is 409 quote_changed and no payment is created. error.details.quote holds the locked quote; confirm its quote_reference to accept it.
Quotes expire about two minutes after they are issued. Confirming an expired quote returns 422; request a fresh one.

Skip the quote

Create a payment directly when the customer does not need to compare quotes. Onstacks selects the provider. Include the destination and an idempotency key; see the reference for the full request.