Web API
Kindly refer command below for Web API interation.
| Item | Description |
|---|---|
| Setup Details | The HTTP communication protocol was used to communicate between terminal and third party’s device. |
| URL | The terminal URL is http://[terminal_ip_address]:8888. The IP address can be obtained from the terminal. And the IP address change according to network. |
| Listener | The listener only active at main page. If the terminal at different page, the terminal won’t listen to incoming message. |
| Message Format | POST request method was used this communication. |
| Header | Content-Type: application/json |
Request (Sample)
{
"TransactionType": "1",
"TransactionAmount": "1.00"
}
Response (Sample)
{
"ResponseCode": "00",
"ResponseDescription": "Approved",
"TransactionType": "1",
"TransactionAmount": "1.00",
"TransactionMID": "000000000000001",
"TransactionTID": "00000001",
"TransactionSTN": "000001",
"TransactionRRN": "123456789012",
"TransactionBatchNo": "000001",
"TransactionApplicationLabel": "Visa Cerdit",
"TransactionCardNo": "412345******9999",
"TransactionEntryType": "wave",
"TransactionARQC": "8989898989",
"TransactionTVR": "0000000000",
"TransactionAID": "00000000003101",
"TransactionCVM": "000000",
"TransactionTSI": "00",
"TransactionApprovalCode": "123456",
"TransactionInvoice": "000001",
"TransactionSchemeID": "01",
"TransactionDateTime": "20220501110023"
}
CURL (Sample)
curl --location --request POST 'http://115.132.150.54:8888' \ --header 'Content-Type: application/json' \ --data-raw {"TransactionType":"1","TransactionAmount":"1.00"}'