Skip to main content
GET
/
v2
/
quotes
Get Quote
curl --request GET \
  --url https://api.stablepay.global/v2/quotes \
  --header 'Authorization: Bearer <token>'

Documentation Index

Fetch the complete documentation index at: https://docs.stablepay.global/llms.txt

Use this file to discover all available pages before exploring further.

Get Quote

Returns the current exchange rate and fee breakdown without creating a transaction.
amount
string
required
Amount in USD
asset
string
required
USDC or USDT
network
string
required
Blockchain network

Request

curl "https://api.stablepay.global/v2/quotes?amount=100&asset=USDC&network=polygon" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "success": true,
  "data": {
    "rate": 84.50,
    "amount": "100",
    "inr": "8450.00",
    "validFor": 60,
    "asset": "USDC",
    "network": "polygon"
  }
}

Response Fields

FieldTypeDescription
ratenumberCurrent USD/INR exchange rate
amountstringRequested amount
inrstringEquivalent INR at current rate
validFornumberQuote validity in seconds
assetstringRequested asset
networkstringRequested network
Quotes are valid for 60 seconds. Fees are applied when you create a transaction.