CGI Raw Transaction
CGI Raw Transaction sends an arbitrary JSON transaction request to the terminal. Tpn and Authkey must be passed in request headers (Authkey may be omitted when SpinAccessToken is supplied). The request body is forwarded to the terminal as-is, and the response JSON is returned as-is when it is not a standard API error. A new RequestGuid is generated for each call; timeout is taken from the terminal's DefaultOperationalTimeout.
Header Parameters
Tpn*string
Terminal profile number.
Length
10 <= length <= 12Authkey?string
Merchant's authorization password. Required if no SpinAccessToken.
Length
10 <= length <= 10Request Body
application/json
[key: string]?any
Response Body
application/json
application/json
curl -X POST "https://example.com/v2/CGI/Transaction/Raw" \ -H "Tpn: stringstri" \ -H "Content-Type: application/json" \ -d '{}'{}{
"GeneralResponse": {
"ResultCode": "0",
"StatusCode": "0000",
"Message": "",
"DetailedMessage": "",
"DelayBeforeNextRequest": null
}
}