Skip to main content

Aggregating Onramps

The OnRamp Aggregator API lets developers get a quote for the fees and an exchange rate for a buy. Then it initializes Coinbase Onramp with the appropriate parameters to execute that buy.

  1. Generate a quote using the Buy Quote API.
  2. Initialize Coinbase Onramp with the parameters used to get the quote (see below).
ParameterReqdTypeDescription
quoteIdYesStringID of the quote. Received from Buy Quote.
defaultAssetYesStringUUID of asset.

Received from Buy Options and sent to Buy Quote.
defaultNetworkNoStringDefault network that should be selected when multiple networks are present. When not set, default is the asset network.

Received from Buy Options and sent to Buy Quote.
defaultPaymentMethodYesStringDefault payment method, one of:
  • CRYPTO_ACCOUNT
  • FIAT_WALLET
  • CARD
  • ACH_BANK_ACCOUNT
  • APPLE_PAY
Received from Buy Options and sent to Buy Quote.
fiatCurrencyYesStringTicker symbol of the fiat currency.
presetFiatAmountYesNumberAmount to be spent on the crypto purchase, fees included.

Was this helpful?