The meCash Docs is live 🎉 🎉
Quotes
NGN - NGN Example

Create Quote Example - NGN to NGN

This example demonstrates a quote request for sending 5,000 NGN (Nigerian Naira) within Nigeria. The NGN to NGN example is needed because it shows the transaction fee for NGN payouts depending on the amount.


Supported Payment Channels

Quotes are often generated with a specific payout method in mind, as fees or limits might vary. For NGN to USD, the Quote API supports getting quotes for payouts via:

  • BANK_TRANSFER

Endpoint

POST https://{{baseURL}}/v1/quote

Authentication

Include these headers in your request:

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

Request Example

curl --location --request POST 'https://{{baseURL}}/v1/quote' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
   "paymentChannel": "BANK_TRANSFER",
   "source": {
        "amount": 5000,
        "country": "NG",
        "currency": "NGN"
    },
    "target": {
        "country": "NG",
        "currency": "NGN"
    }
}'
ℹ️
Note: BANK_TRANSFER is the supported payment channel for domestic transfers within Nigeria.

Sample Response (200 OK)

{
    "message": "quote successfully created",
    "status": "success",
    "data": {
        "id": "23cdd48e-06a9-4d1e-9704-7bb17e2312cd",
        "source": {
            "currency": "NGN",
            "country": "NG",
            "amount": 5000.00
        },
        "target": {
            "currency": "NGN",
            "country": "NG",
            "amount": 5000.00
        },
        "rate": 1.00000000,
        "fee": {
            "amount": 100.00
        },
        "rules": [
            {
                "category": "LIMIT",
                "appliedCurrency": "NGN",
                "appliedCountry": "NG",
                "transaction": {
                    "minimum": 10.00,
                    "maximum": 2000000.00
                },
                "invoice": 2000000.00
            }
        ],
        "summary": {
            "total": 5100.00
        }
    }
}
ℹ️
Note: Transaction fees and limits are subject to change.

Response Breakdown

**General Information

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

Source (Sending) Details

FieldTypeDescription
source.currencyStringCurrency being sent (NGN)
source.countryStringSender country (NG)
source.amountNumberAmount to be sent (5000 NGN)

Target (Receiving) Details

FieldTypeDescription
target.currencyStringCurrency to be received (NGN)
target.countryStringRecipient country (NG)
target.amountNumberAmount recipient receives (5000 NGN)

Exchange Rate and Fees

FieldTypeDescription
rateNumberExchange rate applied (1.0)
fee.amountNumberTransaction fee (100 NGN)

⚖️ Transaction Rules

FieldTypeDescription
rules[].categoryStringRule category (LIMIT)
rules[].appliedCurrencyStringCurrency rule applies to (NGN)
rules[].appliedCountryStringCountry rule applies to (NG)
rules[].transaction.minimumNumberMinimum transaction amount (10 NGN)
rules[].transaction.maximumNumberMaximum transaction amount (2,000,000 NGN)
rules[].invoiceNumberMax invoice value (2,000,000 NGN)

Summary

FieldTypeDescription
summary.totalNumberTotal user pays (5000 + 100 = 5100)

Key Takeaways

  • A quote is generated for BANK_TRANSFER of 5,000 NGN.
  • A 100 NGN transaction fee is applied.
  • Total payable: 5,100 NGN.
  • Recipient receives: 5,000 NGN.
  • Transaction must comply with LIMIT rules (min: 10 NGN, max: 2,000,000 NGN).

Best Practices

  • Include a valid API key in the x-api-key header.
  • Use correct ISO codes for country and currency.
  • Always inspect returned rules to ensure compliance before initiating a transaction.