We refreshed our doc site!

Bookmarked links may have changed

Read release notes

createQuote

Web3 Services

Create a USDC Access Onramp or Offramp quote

POSThttps://api.circle.com/v1/w3s/ramp/quotes

Creates Onramp (BUY) or Offramp (SELL) quote.

Body parameters
blockchain
string
Required

Blockchain network the resource is on, or will be created on. Networks with a dash indicate a testnet; e.g. ETH-SEPOLIA.

paymentMethodType
string
Required

The fiat payment method type.

rampType
string
Required

Type of ramp session or quote. BUY (Onramp) or SELL (Offramp).

fiatAmount
object

Amount and currency of the fiat money.

cryptoAmount
object

Amount and currency of the crypto money.

Response
RequestChoose a language
ResponseChoose an example
1{
2  "data": {
3    "id": "c4d1da72-111e-4d52-bdbf-2e74a2d803d5",
4    "blockchain": "ETH",
5    "paymentMethodType": "WIRE",
6    "fiatAmount": {
7      "amount": "1000.00",
8      "currency": "USD"
9    },
10    "cryptoAmount": {
11      "amount": "1000.00",
12      "currency": "USDC"
13    },
14    "partnerName": "Legend Trading",
15    "exchangeRate": {
16      "rate": "1.010100",
17      "pair": "USDC/USD"
18    },
19    "fees": {
20      "totalAmount": {
21        "amount": "1000.00",
22        "currency": "USD"
23      },
24      "breakdown": [
25        {
26          "amount": {
27            "amount": "1000.00",
28            "currency": "USD"
29          },
30          "type": "MARKUP"
31        }
32      ]
33    },
34    "createDate": "2023-01-01T12:04:05Z",
35    "expireDate": "2023-01-01T12:04:05Z"
36  }
37}
Did this page help you?
© 2023-2024 Circle Technology Services, LLC. All rights reserved.