Skip to main content

Fetch Rate

Description: Endpoint to fetch exchange rate

Request Parameters

ParameterTypeDescriptionRequired
idIntegerUnique IdentifierYes
terminalIdstringTerminal IdentifierYes
terminalCardbooleanTerminal Card parameterYes
directionstringParameter to identify of message is a request or response. Value “request” is to be passed for requestsYes
transactionobjectAn object holding the transaction information as follows:Yes
sourceCountrystringCountry code for the source country e.g. USYes
destinationCountrystringCountry code for the destination country e.g. US. NG should be passed here for rate to be used when transition is to be terminated into naira account.Yes
referencestringReference numberYes
senderNamestringSender NameYes
endPointstringEndpoint to call. FX for foreign exchange transaction. A for local currencyYes
actionstringAction to be performed e.g. RT. The transaction type to be performed. Refer to section 1.2 for possible actions.Yes
accountstringAccount objectNo
beneficiaryobjectBeneficiary object. This is applicable when action is CP= cash pickupNo
senderobjectSender object. This is applicable when action is CP= cash pickupNo

Request Parameters

POST {base_url}/rate
curl `${base_url}/rate`
-H "Content-type: application/json"
-X POST
-d '{
"id":"2233",
"terminalId":"7000000004",
"terminalCard":false,
"direction":"request",
"transaction":{
"reference":"reference{{random_number}}",
"sourceCountry":"US",
"destinationCountry":"NG",
"senderName":"Testing sent",
"endPoint":"A"
},
"action":"RT",
"account": null,
"beneficiary": null,
"sender": null
}
'