Integrating into an OnRamp Aggregator
The OnRamp Aggregator API lets developers get a quote for the fees and an exchange rate for a buy. Then it initializes Coinbase Pay with the appropriate parameters to execute that buy.
| Parameter | Reqd | Type | Description |
|---|---|---|---|
| quoteId | Yes | String | ID of the quote. Received from Buy Quote. |
| defaultAsset | Yes | String | UUID of asset. Received from Buy Options and sent to Buy Quote. |
| defaultNetwork | No | String | Default 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. |
| defaultPaymentMethod | Yes | String | Default payment method, one of:
|
| fiatCurrency | Yes | String | Ticker symbol of the fiat currency. |
| presetFiatAmount | Yes | Number | Amount to be spent on the crypto purchase, fees included. |