POST
/
v1
/
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

Enter your JSON Web Token (JWT) here. Refer to the Generate JWT section of our Authentication docs for information on how to generate your Bearer Token.

Body

application/json

Create Buy Quote API request parameters

Response

200
application/json

OK

Create Buy Quote API response