CGI Raw Transaction

loading...
POST
/v2/CGI/Transaction/Raw

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.

Length10 <= length <= 12
Authkey?string

Merchant's authorization password. Required if no SpinAccessToken.

Length10 <= length <= 10

Request 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
  }
}