Use the getCurrencyRate endpoint to get the partner or wholesale rates at a specific time where the rates are rounded to 2 decimal places. These rates are based on the source country (US, GB, CA, etc.) and vary based on market rates and timing. In addition to this API, emails are received by the key personnel at your partner company.
Syntax
POST https://nairagrambasket.com/api/getCurrencyRate
Input Parameters
The following table lists the parameters that you need to provide in the getCurrencyRate
request.
Field | Value Format | Required/Optional | Description |
---|---|---|---|
username | yourmail@mail.com | Required | Input the valid email address that you submitted to your Partner Company. |
password | yourPassword | Required | Input your secure password. |
secretKey | yourSecretKey | Required | Input the API key provided to you by your Partner Company. |
source_currency | USD(country code) | Required | Input the country code of the source country. The default country code is the USD. |
destination_currency | NGN(country code) | Required | Input the country code of the destination country. |
Sample Request
curl --location --request POST 'https://nairagrambasket.com/api/getCurrencyRate
' \
--form 'username="yourmail@mail.com"' \
--form 'password="yourPassword"' \
--form 'secretKey="yourSecretKey"' \
--form 'source_currency="USD"' \
--form 'destination_currency="NGN"'
Sample Response
Successful
Code: 200
Message: " Success"
Content: {
source_country: "###",
destination_country: "####",
bb_rates: "####"
}