Skip to main content
POST
/
v1
/
buy
/
quote
Create buy quote
curl --request POST \
  --url https://api.developer.coinbase.com/onramp/v1/buy/quote \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "country": "<string>",
  "paymentAmount": "<string>",
  "paymentCurrency": "<string>",
  "paymentMethod": "UNSPECIFIED",
  "purchaseCurrency": "<string>",
  "purchaseNetwork": "<string>",
  "subdivision": "<string>"
}'
{
  "coinbaseFee": {
    "currency": "<string>",
    "value": "<string>"
  },
  "networkFee": {
    "currency": "<string>",
    "value": "<string>"
  },
  "paymentSubtotal": {
    "currency": "<string>",
    "value": "<string>"
  },
  "paymentTotal": {
    "currency": "<string>",
    "value": "<string>"
  },
  "purchaseAmount": {
    "currency": "<string>",
    "value": "<string>"
  },
  "quoteId": "<string>"
}

Authorizations

Authorization
string
header
required

Body

application/json
country
string
required
paymentAmount
string
required
paymentCurrency
string
required
paymentMethod
enum<string>
required
Available options:
UNSPECIFIED,
CARD,
ACH_BANK_ACCOUNT,
APPLE_PAY,
FIAT_WALLET,
CRYPTO_ACCOUNT,
GUEST_CHECKOUT_CARD,
PAYPAL,
RTP,
GUEST_CHECKOUT_APPLE_PAY
purchaseCurrency
string
required
purchaseNetwork
string
subdivision
string

Response

coinbaseFee
object
networkFee
object
paymentSubtotal
object
paymentTotal
object
purchaseAmount
object
quoteId
string