Skip to main content

Account Enquiry

Description: Endpoint to query account details

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
bankCodestringBank CodeYes
destinationCountrystringCountry code for the destination country e.g. USYes
destinationCurrencystringThe value here should be NGN for transactions that are expected to be deposited into Naira NUBAN account.No
destinationstringDestination account number. Beneficiary NUBAN naira account is to be passed here for transactions that are expected to be deposited into Naira NUBAN accountYes
referencestringReference numberYes
senderNamestringSender NameYes
endPointstringEndpoint to call. FX for foreign exchange transaction. A for naira account M for pocketmoni walletYes
actionstringAction to be performed e.g. AQ. 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}/account-query
curl `${base_url}/account-query`
-H "Content-type: application/json"
-X POST
-d '{
"id":"2233",
"terminalId":"7000000004",
"terminalCard":false,
"direction":"request",
"transaction":{
"bankCode":"050",
"destination":"6580009213",
"destinationCurrency":"NGN",
"destinationCountry":"KE",
"reference":"IHFNIUW6283H4R",
"senderName":"Testing sent",
"endPoint":"A"
},
"action":"AQ",
"account": null,
"beneficiary": null,
"sender": null
}
'