Quotes
Get Quote

Get Quote API

The Get Quote API allows users to retrieve the details of a previously created exchange quote using the unique quoteId.
This API provides details such as the exchange rate, transaction fees, applicable limits, and the total amount after fees.


Endpoint

GET {{baseURL}}/v1/quote/{{quoteId}}

Headers

HeaderDescriptionRequiredExample Value
x-api-keyAPI key for authentication✅ YesYOUR_API_KEY
Content-TypeRequest content type✅ Yesapplication/json

Request Example

cURL Request

curl --location --request GET '{{baseURL}}/v1/quote/{quote_id}' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json'

Responses

response.json
{
"message": "quote successfully fetched",
"status": "success",
"data": {
    "id": "15tyyba81-f71a-76ha-b579-xxxxxxxxxxxxx",
    "source": {
        "currency": "NGN",
        "country": "NG",
        "amount": 150000.00
    },
    "target": {
        "currency": "EUR",
        "country": "AT",
        "amount": 81.97
    },
    "rate": 1830.00000000,
    "fee": {
        "amount": 0.00
    },
    "rules": [
        {
            "category": "LIMIT",
            "appliedCurrency": "EUR",
            "appliedCountry": "AT",
            "transaction": {
                "minimum": 1.00,
                "maximum": 20000000000000.00
            },
            "invoice": 200000000000.00
        }
    ],
    "summary": {
        "total": 150000.00
    },
    "expiresInSeconds": 600
}
}

Response Breakdown

General Information

FieldTypeDescription
messageStringConfirmation message
statusStringIndicates success or failure
data.idStringUnique identifier for the quote

Source (Sending) Details

FieldTypeDescription
source.currencyStringCurrency being exchanged (NGN)
source.countryStringCountry where the transaction originates (NG)
source.amountNumberAmount to be converted (150000 NGN)

Target (Receiving) Details

FieldTypeDescription
target.currencyStringTarget currency (EUR)
target.countryStringDestination country (AT)
target.amountNumberConverted amount (81.97 EUR)

Exchange Rate and Fees

FieldTypeDescription
rateNumberExchange rate applied (1830.00)
fee.amountNumberTransaction fee (0.00)

Transaction Rules

FieldTypeDescription
rules[].categoryStringType of rule applied (LIMIT)
rules[].appliedCurrencyStringCurrency the rule applies to (EUR)
rules[].appliedCountryStringCountry the rule applies to (AT)
rules[].transaction.minimumNumberMinimum allowed transaction (1.00 EUR)
rules[].transaction.maximumNumberMaximum allowed transaction (20000000000000.00 EUR)
rules[].invoiceNumberMaximum invoice amount (200000000000.00 EUR)

Summary

FieldTypeDescription
summary.totalNumberTotal amount user pays (150000 NGN)

Expiration

FieldTypeDescription
expiresInSecondsNumberQuote expiration time in seconds (600)

Error Handling

Status CodeMeaningExample ResponseHow to Handle
400Bad Request (No API Key)No API key found in requestEnsure x-api-key header is sent with a valid key
404Route Not FoundThe Route is not supportedContact support to get the correct route
400Validation ErrorQuote does not existCheck the quoteId value and confirm it is correct or exists
401Unauthorized (Invalid Parameter or API Key)Invalid authentication credentialsVerify the API key is correct and exists in your dashboard settings
403Forbidden (Non-whitelisted IP)Your IP address is not allowed to access this serviceWhitelist your IP address in the Developer on the dashboard
422Unprocessable Entity (Semantic Error)Invalid value in request bodyCheck request body for incorrect values or semantic mistakes
429Too Many Requests (Rate Limited)API rate limit exceedImplement retry with exponential backoff; stay within rate limits (e.g., 50 requests/sec)
500Internal Server ErrorAn unexpected error occurred on the serverRetry later; contact support if the issue persists

Best Practices

  • ✅ Include a valid API key (x-api-key) in the request headers to authenticate the request.
  • ✅ Ensure that the quoteId is retrieved from the Create Quote API before making the request.
  • ✅ Handle transaction limits appropriately to comply with API restrictions.