The meCash Docs is live 🎉 🎉
Quotes
Get Quote

Get Quote API Documentation

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


Endpoint

GET https://{{baseURL}}/v1/quote/{{quote_id}}

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 'https://{{baseURL}}/v1/quote/{quote_id}' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json'

Success Response (200 OK)

If the request is successful, the API returns the following JSON response:

response.json
{
    "message": "quote successfully fetched",
    "status": "success",
    "data": {
        "id": "90b8cb00-5fc2-4a01-87fc-558f4bd53231",
        "source": {
            "currency": "NGN",
            "country": "NG",
            "amount": 5000.00
        },
        "target": {
            "currency": "CNY",
            "country": "CN",
            "amount": 23.58
        },
        "rate": 212.02000000,
        "fee": {
            "amount": 12.00
        },
        "rules": [
            {
                "category": "LIMIT",
                "appliedCurrency": "CNY",
                "appliedCountry": "CN",
                "transaction": {
                    "minimum": 2.00,
                    "maximum": 48000.00
                },
                "invoice": 48000.00
            }
        ],
        "summary": {
            "total": 5012.00
        }
    }
}

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 (5000 NGN)

Target (Receiving) Details

FieldTypeDescription
target.currencyStringTarget currency (CNY)
target.countryStringDestination country (CN)
target.amountNumberConverted amount (23.58 CNY)

Exchange Rate and Fees

FieldTypeDescription
rateNumberExchange rate applied (212.02)
fee.amountNumberTransaction fee (12 NGN)

Transaction Rules

FieldTypeDescription
rules[].categoryStringType of rule applied (LIMIT)
rules[].appliedCurrencyStringCurrency the rule applies to (CNY)
rules[].appliedCountryStringCountry the rule applies to (CN)
rules[].transaction.minimumNumberMinimum allowed transaction (2 CNY)
rules[].transaction.maximumNumberMaximum allowed transaction (48,000 CNY)
rules[].invoiceNumberMaximum invoice amount (48,000 CNY)

Summary

FieldTypeDescription
summary.totalNumberTotal amount user pays (5012 NGN)

Key Takeaways

  • The user sends 5,000 NGN, which is converted to 23.58 CNY at an exchange rate of 212.02.
  • A transaction fee of 12 NGN is applied.
  • The total amount the user must pay (including fees) is 5,012 NGN.
  • A transaction limit rule restricts transactions between 2 CNY and 48,000 CNY.

Best Practices

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