Query Transaction message is used to get the status of a transaction. The HTTP method is GET 5.1 Request Headers.
Request Headers
S/N | Data Element (DE) | Description | |
1 | Authorization | Mandatory | Basic Authentication will be used. E.g Basic dXNlcm5hbWU6cGFzc3dvcmQ= |
2 | Content-Type | Mandatory | The API should support “application/json” media type |
3 | OriginalTransactionId | Mandatory | Unique ID for the original transaction |
Sample Query Transaction Request
POST {context}/transactions
Content-Type: application/json Authorization: dXNlcm5hbWU6cGFzc3dvcmQ= OriginalTransactionId: 1234567890 |
Query Transaction Response (Sent from Interswitch)
The following describes the important data element required for Query Transaction response.
Successful Response
HTTP Status Code: 200
Content-Type: application/json { “responseCode”: “00”, “responseDescription”: “Approved“ } |
Unsuccessful Response
HTTP Status Code: 401
Content-Type: application/json { “responseCode”: “63”, “responseDescription”: “Security Violation” }
HTTP Status Code: 500 Content-Type: application/json { “responseCode”: “06”, “responseDescription”: “Unable to authorize due to some errors” }
HTTP Status Code: 404 Content-Type: application/json { “responseCode”: “25”, “responseDescription”: “Transaction not found” } |
|