Skip to main content

Cash Pickup

Description: Endpoint for cash pickup

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
pinstringAES encrypted pinYes
referencestringReference numberYes
secretQuestionstringSecret question to be usedYes
secretAnswerstringAnswer to the secret questionYes
bankCodestringBank CodeYes
endPointstringEndpoint to call. FX for foreign exchange transaction.Yes
currencystringCurrency code. e.g USD, NGNYes
amountdecimalTransaction amountYes
descriptionstringTransaction descriptionYes
sourcestringSource account numberNo
destinationCountrystringCountry code for the destination country e.g NGYes
receiveAmountdecimalAmount receivedYes
exchangeRatedecimalExchange rateYes
actionstringAction to be performed e.g. CP. 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
firstNamestringFirst name of the beneficiaryYes
lastNamestringLast name of the beneficiaryYes
emailstringEmail of the beneficiaryYes
phoneNumberstringPhone number of the beneficiaryYes
serialstringID number of the beneficiary’s means of identificationYes
idTypestringBeneficiary’s means of identificationYes
idIssueDatedatetimeID date of issuanceYes
idExpiryDatedatetimeID expiration dateYes
countryOfResidencestringCountry code of the beneficiary e.g NGYes
nationalitystringBeneficiary’s nationalityYes
senderobjectSender object. This is applicable when action is CP= cash pickupNo
firstNamestringFirst name of the senderYes
lastNamestringLast name of the senderYes
emailstringEmail of the senderYes
phoneNumberstringPhone number of the senderYes
countryOfResidencestringCountry code of the beneficiary e.g NGYes
nationalitystringBeneficiary’s nationalityYes

Request Parameters

POST {base_url}/users/cashpickup
curl `${base_url}/users/cashpickup`
-H "Content-type: application/json"
-X POST
-d '{
"id":"2233",
"terminalId":"7000000004",
"terminalCard":false,
"direction":"request",
"transaction":{
"pin":" kghxqwveJ3eSQJip/cmaMQ==",
"reference":"reference{{random_number}}",
"secretQuestion":"which animal",
"secretAnswer":"cat",
"endPoint":"FX",
"bankCode":"050",
"amount": 100,
"exchangeRate": "105.7",
"receiveAmount": "211",
"destinationCountry":"KE",
"source":"",
"currency":"USD",
"description":"professional travel expense"
},
"action":"CP",
"account": null,
"beneficiary": {
"firstName": "Ugo",
"lastName": "Omeje",
"email": "test@test.com",
"phoneNumber": "18003564892",
"serial": "12234567",
"idType": "passport",
"idIssueDate": "",
"idExpiryDate": "2020-08-23 00:00:00",
"countryOfResidence": "KE",
"nationality": "Kenya"
},
"sender": {
"firstName": "Ugo",
"lastName": "Doe",
"phoneNumber":"18003564892",
"email": "johndoe@tester.com",
"countryOfResidence": "US",
"nationality":"United State of America"
}
}
'