Get Quote

Retrieve the details and current status of a quote.

GET /v1/quotes/:id

Headers

Header Required Description
X-Api-Key Yes Your API key

Path Parameters

Parameter Type Description
id string UUID of the quote

Example Request

curl "https://api.esca.finance/v1/quotes/a1b2c3d4-e5f6-7890-abcd-ef1234567890" \
  -H "X-Api-Key: your_api_key_here"

Example Response

{
  "status": true,
  "message": "Quote retrieved successfully.",
  "data": {
    "quoteId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "sourceCurrency": "NGN",
    "targetCurrency": "USD",
    "sourceAmount": 500000,
    "targetAmount": 312.50,
    "appliedRate": 1600,
    "status": "PENDING",
    "expiresAt": "2026-02-15T12:00:30.000Z"
  }
}

Error Responses

Quote not found

{
  "statusCode": 404,
  "error": "Not Found",
  "message": "Quote not found."
}