Onramp API
The Onramp API provides multi-provider aggregation for crypto purchases. It fans out requests to all enabled payment gateways, compares quotes, and lets users checkout with their preferred provider. All endpoints are public and require aprojectId parameter. No API key is needed.
How It Works
Base URL
Get Supported Configuration
Returns available providers, fiat currencies, crypto currencies, payment methods, and countries aggregated across all enabled providers.Query Parameters
Response
Provider Features
Get Quotes
Fetches quotes from all enabled gateways in parallel and returns them ranked by best rate.Query Parameters
Either
fiatAmount or cryptoAmount must be provided.Response
Quote Fields
Ranked Results
The response includes convenience fields for common selection strategies:Create Checkout Intent
Creates an order with a specific gateway and returns a checkout URL for payment.Request Body
Request Example
Response
Checkout Methods
Get Transaction
Returns the current status of an order, syncing with the gateway’s latest status.Path Parameters
Response
Transaction Statuses
The
providerStatus field contains the gateway’s original status string, while status is normalized across all gateways.GeoIP Country Detection
All onramp endpoints automatically detect the user’s country from their IP address. This is used to:- Filter supported currencies and payment methods by region
- Provide region-specific pricing and availability
- Comply with geographic restrictions
country parameter explicitly.
Using the SDK
The@nowramp/sdk provides convenient methods for all onramp endpoints: