• Dashboard
  • Dashboard
Expand All Collapse All
  • Welcome
  • Introduction
  • API Access Key and Authentication
  • Nairagram Response Codes
  • Test Data
    • Test Bank Account Numbers
    • Test Data for Mobile Wallet Transfer
  • Implementing Nairagram Services
    • Bank Account Transfer Services
      • Submitting a transfer via Nairagram Payout API
      • Submitting a transfer via dashboard
      • Cancel Pending Request
    • Mobile Wallet Transfer
      • Submit Mobile Wallet Transaction
    • Cash Pick-up
      • Submit Cash Pick Up Transaction
      • Get Cash Pick-up locations
    • Client Support
      • Get Wallet by Country
      • Bank List
      • Operator Wallet Code
      • Cash Pick-up Locations
      • Webhook/Call back
      • Get Beneficiary Name
      • Get Bank List
      • Get Security Questions
      • Get Currency Rate
      • Get Country List
      • Get Balance
      • Get Transaction Status
  • User Acceptance Complete Testing (UAT)

Submit Cash Pick Up Transaction

174 views 0 Updated on September 14, 2023

Use the submitCashpickupTransaction endpoint to make an international transaction and get a transaction PIN. Send this PIN to the beneficiary, who then shares it with the bank in Nigeria. Provide a call-back URL that can be used to notify you of any change in the transaction status timely.

Syntax

POST https://nairagrambasket.com/api/submitCashpickupTransaction

Response Codes

The following table lists the status codes that are returned in response to the submitCashpickupTransaction request.

CodeStatus
200Success
Note: You will receive the error code 200 when the beneficiary picks up the cash.
201Success pending payout to beneficiation (Do not try again)
400Invalid Request
401Unauthorized error: “Invalid Token”
403Forbidden “You are not allowed to use this service”
440Failed – Invalid bank account number”
Note: Before re-initiating, editing, or canceling any transaction with the error “440, please do Get Transaction Status to confirm the updated status.”

The beneficiary’s valid phone number is needed because the beneficiary will receive a One True Pairing Code via SMS while at the bank to cash the money. An invalid number may affect the ability to cash the funds.

Please ensure that the beneficiary’s first, middle, and last name agrees to the beneficiary’s Government-issued ID.

The Cash Pick up locations may not be the same banks included in the Bank List API.

Input Parameters

The following table lists the parameters that you need to provide in the submitCashpickupTransaction request.

FieldValue FormatRequired/OptionalDescription
usernameMAIL@MAIL.l.com Required Input the valid email address that you submitted to your Partner Company.
passwordYour Password Required Input your secure password.
secretKeyYourKey Required Input the API key provided to you by your Partner Company.
senderfirstnamefirstName Required Input the first name of the sender. For example, Jane.
senderlastnameLastName Required Input the last name of the sender. For example, Doe.
sendercityLondon Required Input the name of the sender’s city.
sendercountryUS Required Input the code for the sender’s country in ISO ALPHA-2 format. For example, US, GB, CA.
senderaddressNo 5, Address street Required Input the valid address of the sender.
senderpostalcode178980 Required Input the sender’s postal code.
senderemailsendermail@mail.com Required Input the email address of the sender.
toaddressLagosOptional Input the valid address of the beneficiary. 
security_question_id2RequiredInput the security question ID.
security_answertestRequiredInput the answer to the security question.
source_of_fundssalaryRequiredThis can also include pensions and savings.
purpose_of_fundsfamily supportRequired This can also include medication, housing, etc.
tophone12345678RequiredThe beneficiary phone number is significant as this is used to deliver the OTP code to receive payments at the bank. Please Remove the country code and the leading zero from the number.
tofirstnameBeneficiary First NameRequiredPlease ensure the beneficiary’s first, middle, and last name agrees to the beneficiary’s Government-issued ID.
tomiddlenameBeneficiary Middle NameOptional Please ensure the beneficiary’s first, middle, and last name agrees to the beneficiary’s Government-issued ID.
tolastnameBeneficiary Last NameRequiredPlease ensure the beneficiary’s first, middle, and last name agrees to the beneficiary’s Government-issued ID.
dateofbirth1985-12-29Required Input the date of birth of the sender in the valid format: YYYY-MM-DD.
fromamount200RequiredInput an amount to send. The minimum value is USD 10.
fromcurrencyUSDRequired It can also be a settlement currency per your agreement. For example, USD, GBP, CAD, EUR.
transaction_number022111712000060271266Required This is your internal reference that could be used to query the transaction. It must have a minimum of 10 digits and a maximum of 25 digits.
sendfromstate1Required Input a 2-letter abbreviation of the sender’s state. For example, TX, NY, WA. Non-US default: 01.
fees0Optional Input the fees. The default fee is 0 unless specified.
exchangerate1.3Optional Input the exchange rate.
toemaila@gmail.comRequiredThis is used to confirm the pickup and delivery.
tocurrencyUSDOptionalInput the currency for the beneficiary. 
senderphone7654533231Required Input the valid phone number of the sender. When unavailable, use the default phone number: 11111111111.
tocountryNGOptionalInput the country code in ISO ALPHA-2 format. For example, NG, GH, KE. It is required for Nigeria only.
cashpickuplocation002RequiredPlease call the API GetUSD Cash pick-up location for the correct code.
Indicates the cash pickup location. For example, 002- Fidelity Bank or 001- Zenith Bank

Sample Request

curl --location --request POST 'https://nairagrambasket.com/api/submitCashpickupTransaction' \
--form 'username="ankur.garg1311@gmail.com"' \
--form 'password="@Password12"' \
--form 'secretKey="XkxTvJ3banMiCT3Kzgg3"' \
--form 'senderfirstname="firstName"' \
--form 'senderlastname="LastName"' \
--form 'sendercity="London"' \
--form 'sendercountry="US"' \
--form 'senderaddress="No 5, Address street"' \
--form 'senderpostalcode="178980"' \
--form 'senderemail="sendermail@mail.com"' \
--form 'toaddress="Lagos"' \
--form 'security_question_id="2"' \
--form 'security_answer="test"' \
--form 'source_of_funds="salary"' \
--form 'purpose_of_funds="family support"' \
--form 'tophone="12345678"' \
--form 'tofirstname="Benificiary FIrst Name"' \
--form 'tomiddlename="Beneficiary Middle Name"' \
--form 'tolastname="Beneficiary Last Name"' \
--form 'dateofbirth="1985-12-29"' \
--form 'fromamount="200"' \
--form 'fromcurrency="USD"' \
--form 'transaction_number="022111712000060271266"' \
--form 'sendfromstate="1"' \
--form 'fees="0"' \
--form 'exchangerate="1.3"' \
--form 'toemail="a@gmail.com"' \
--form 'tocurrency="USD"' \
--form 'senderphone="7654533231"' \
--form 'tocountry="NG"' \
--form 'settlement_currency="USD"'

Sample Response

{
  "Code": "201",
  "Message": "Success without payout, do not initiate this transaction again",
  "Content": {
    "transaction_pin": "NGN9040150837USD"
  }
}

Was this helpful?

Yes  No

Didn't find your answer? Contact Us

Previously
Cash Pick-up
Up Next
Get Cash Pick-up locations
Recent Topics
  • Get Currency Rate
  • Submit Cash Pick Up Transaction
  • Submit Mobile Wallet Transaction
  • Webhook/Call back
  • Submitting a transfer via Nairagram Payout API
Popular Topics
  • Submitting a transfer via dashboard
  • Welcome
  • Test Data for Mobile Wallet Transfer
  • Client Support
  • Get Security Questions
©2022 - Nairagram Ltd. All rights reserved.