latestOpenAPI 3.0.02026-08-18112552.5 KB

ef0638d19a3a

Payment

Quote a payment without creating it

post/payment/quote

Headers

Datestring

GMT server time (e.g. Tue, 21 Jan 2025 12:00:00 GMT). Required for every request.

Authorizationstring

HMAC-SHA256 Signature header. See the Authentication guide.

Digeststring

SHA-256 digest of the request body (when a body is present).

Request body

order_idstring string required

Order ID

payment_methodinteger

Payment method

chainstring string required

Chain

token_idstring string required

Token identifier

Example request

{
  "order_id": "ord-123",
  "payment_method": 1,
  "chain": "ETHEREUM",
  "token_id": "USDT"
}

Response

amountstring string

USD-denominated amount the payer still owes (== due_amount)

due_amount_fiatstring string

Current payable amount in order currency

amount_confirmedstring string

USD-denominated amount already confirmed

amount_confirmingstring string

USD-denominated amount currently confirming

quoted_token_amountstring string

Amount shown to payer, in pay_currency units

quoted_token_currencystring string

Currency of quoted_token_amount (matches pay_currency)

quoted_token_price_usdcstring string

USDC-per-token snapshot at quote time; 0 for stablecoins

Example response

{
  "amount": "100.00",
  "due_amount_fiat": "100.00",
  "amount_confirmed": "0",
  "amount_confirming": "0",
  "quoted_token_amount": "100.00",
  "quoted_token_currency": "USDT",
  "quoted_token_price_usdc": "0"
}