Paytrie Developer Documentation
API ReferenceQuotes

Get latest quote

View as Markdown
GET
/quotes

Returns a quote for the pair and amount with a fee breakdown. Send your x-api-key to price with your fee terms; without a key the quote uses default terms.

Authorization

x-api-key<token>

API key for integrator authentication

In: header

Query Parameters

leftSideLabel?string
leftSideValue?number
rightSideLabel?string
rightSideValue?number
useReferral?boolean

Apply the user's referral credit. Requires a user token.

vendorId?string

Price as this vendor. Honoured with the Paytrie key or when it is your own app id; otherwise ignored.

Response Body

application/json

application/json

import { PaytrieAPI, configure } from '@paytrie/sdk'configure({ headers: { 'x-api-key': process.env.PAYTRIE_API_KEY! } })const { data } = await PaytrieAPI.getQuotes({  leftSideLabel: "CAD",  leftSideValue: 100,  rightSideLabel: "USDC-ETH",  rightSideValue: 100,  useReferral: false,  vendorId: "000001"})
{  "success": true,  "data": {    "quoteId": 12345,    "leftSideLabel": "CAD",    "leftSideValue": 39,    "rightSideLabel": "USDC-ETH",    "rightSideValue": 140,    "breakdown": {      "paytrieFee": 5,      "sponsoredFee": 0,      "referralDiscount": 0,      "feeRate": 0.006,      "minFee": 5,      "gasFee": 21.5,      "gasPrice": 20,      "usdToCad": 1.3    },    "timestamp": "2026-04-14T19:58:16.000Z"  }}
{  "success": false,  "errors": [    {      "field": "string",      "message": "string"    }  ]}