• 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)

Cancel Pending Request

117 views 0 Updated on February 21, 2022

Use the CancelRequest endpoint to send request to cancel pending transaction.

You can only request cancellation for a pending transaction that has the following in the description:

  • Wrong bank account/wallet.
  • Restricted/Dormant account: Account cannot receive payment.

Syntax

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

Response Codes

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

CodeStatus
200Completed
201Your cancellation request has been Submitted. We will update you status shortly.
202The transaction is already canceled
203Cancel request is less than the time specified

Input Parameters

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

FieldValue FormatRequired/OptionalDescription
usernameyourmail@mail.com Required Input the valid email address that you submitted to your Partner Company.
passwordyourPassword Required Input your secure password.
secretKeyyourSecretKey Required Input the API key provided to you by your Partner Company.
transaction_pinNGN###########OptionalInput the transaction PIN returned from the SubmitTransaction or Submit WalletTransaction request.

Sample Request

curl --location --request POST 'https://nairagrambasket.com/api/cancelRequest' \
--form 'username="yourmail@mail.com"' \
--form 'password="yourPassword"' \
--form 'secretKey="yourSecretKey"' \
--form 'transaction_pin="NGN###########"'

Sample Response

Code: 200
Message: Canceled
Content:{
	transaction_pin: NGN##########,
	transaction_status: “Transaction is canceled”
}

Code: 201,
"Message": "Your cancelation request has been Submitted. We will update you status shortly.",
"Content": {
        "transaction_pin": "XOF##########",
        "transaction_ref": "pt1##########",
        "cancelation_request_code": "cancel########",
        "transaction_status": "pending",
        "description": "your cancellation request has been sent successfully"
}

Code: 202
Message: Transaction is already canceled
Content:{
	transaction_pin: NGN##########,
	transaction_status: “Transaction is already canceled”
}

Code: 203
Message: Cancel request is less than the time specified
Content:{
	transaction_pin: NGN##########,
	transaction_status: “Cancel request is less than the time specified”
}

Was this helpful?

Yes  No

Didn't find your answer? Contact Us

Previously
Submitting a transfer via dashboard
Up Next
Mobile Wallet Transfer
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
  • Client Support
  • Get Security Questions
  • Get Wallet by Country
©2022 - Nairagram Ltd. All rights reserved.