1. Home
  2. PAYCode
  3. SINGLE PAYCODE
  4. Cancel Token

Cancel Token

A Cancel Token message is a request to cancel/deactivate an already generated Token. Please request the context URL from Interswitch.

Cancel Token Request (Sent from Third-party)
The following describes the important element required to be sent for a Cancel Token request.

S/N Data Element (DE)   Description
1 transactionRef Mandatory Original Transaction Ref used in token generation call. E.g. 324555
2 frontEndPartner Mandatory Front End Partner ID sent in token generation call

 

Sample Request
DELETE https://sandbox.interswitchng.com/api/v1/pwm/tokens

Content-Type: application/json

[Other ISW HTTP headers]…Click on this link  to see the documentation

“transactionRef”: “999393939”,

“frontEndPartner”: “ABP”

{}

 

Cancel Token Request (Sent from Interswitch)

The following describes the important data element required for a Cancel Token response.

S/N Data Element (DE) Description
1 code Response code of the operation e.g. 00
2 Description Response message of the operation e.g. Success

 

Successful Response

        HTTP Status Code:  200

 

{

“code”: “00”,

“description”: “Successfully queued to be cancelled”

}

 

Unsuccessful Response

HTTP Status Code: 401

 

{

“errors”: [

{

“code”: “E50”,

“message”: “Transaction reference cannot be empty.”

}

],

“error”: {

“code”: “E50”,

“message”: “Transaction reference cannot be empty.”

}

}

 

 

HTTP Status Code:  403

 

{

“error”: {

“code”: “E24”,

“message”: “Invalid authentication credentials: Timestamp out of window”

},

“errors”: [

{

“code”: “E24”,

“message”: “Invalid authentication credentials: Timestamp out of window”

}

]

}

Was this article helpful to you? Yes 1 No

How can we help?