702 – Request Cancel Authorization
Allows the merchant to submit a request to cancel an authorized only transaction previously submitted and approved using the 700 command.
702 Request Data description:
apiUser
YES (1)
YES
Character max 50.
The API user assigned by the Gateway to the merchant. Can be obtained from the website inside your merchant account.
apiPassword
YES (2)
YES
Character max 50.
The API password assigned by Gateway to the merchant. Can be obtained from the website inside your merchant account.
apiCmd
YES (3)
YES
702
3 digit numeric transaction code must be 702
gatetransid
YES (4)
YES
Character max 50.
Unique gateway internal transaction id, received by the merchant in the 850 Notification of the originating transaction.
checksum
YES
Character no limit
SHA-1 calculated using the fields specified by the transaction plus the API key assigned by gateway to the merchant. This field must be calculated using the fields marked as “Include in checksum” (in the order indicated) plus the API key at the end.
702 Response Data description
result
YES
Character
Result indicates the result of the transaction. CANCELED: Cancel has been completed PENDING: Request for Cancel has been accepted but not yet processed. After the Cancel has been processed, the results will be sent in the 850 Notification that will be sent from the system server to the merchant server. ERROR: means error detected in the request, no processing takes place, and transaction was not accepted by the system. No record for the transaction has been created. Note: Do NOT ASSUME the pending request will result in CANCELED as it could also result in ERROR.
gatetransid
YES
Character max 50.
Unique gateway internal transaction id refers to Authorized transaction for which the Capture has been requested.
errorcode
YES
Character 3
Error Code of the transaction or 000 if no error condition found.
errormessage
YES
Character max 100
Full description of the error.
description
OPT
Character no limit
Optional details of the transaction except in the case of DECLINED and then the reason for the decline. May be null.
702 Request Sample
The response to a 702 - Request Cancel Authorization is a plain xml un-encoded that contains the following data:
Last updated