Batch Upload
Usage
- Batch upload transaction records to e-Buy Backend, and will be matched and return.Only support the transactions within 7 Days.
action
batchUpload
Request body,Cashier POS===>e-Buy Backend
Field | Type | Mandatory | Description | Memo |
---|---|---|---|---|
traceNo | String | Yes | Cashier terminal trace No. | No repeat allowed |
transCount | Integer | Yes | Upload size | Should equals to size of transRecord list |
beginTime | String | Yes | Begin Time | Format:yyyyMMddHHmmss |
endTime | String | Yes | End Time | Format:yyyyMMddHHmmss |
transRecord | List<transRecord> | Yes | Transaction records | Maximum:5000 |
Request body example
{
"traceNo": "99000009100010101732123",
"transCount": 3,
"beginTime": "20161231102201",
"endTime": "20161231102230",
"transRecord": [
{
"traceNo": "99000009100010101732123",
"paidAmount": 100.00,
"status": 0
},
{
"traceNo": "99000009100010101732123",
"paidAmount": 200.00,
"status": 0
},
{
"traceNo": "99000009100010101732123",
"paidAmount": 300.00,
"status": 0
}
]
}
Response body,e-Buy Backend===>Cashier POS
Field | Type | Mandatory | Description | Memo |
---|---|---|---|---|
traceNo | String | Yes | Cashier terminal trace No. | No repeat allowed |
transDate | String | Yes | Transaction time | Format:yyyyMMddHHmmss |
returnCode | String | Yes | Return code | 00 represent successful transaction, else represent fail |
returnDesc | String | Yes | Return message | Detail explanation / error message per transaction result |
transRecord | List<transRecord> | Yes | Transaction records after match | Maximum:5000 |
Response body example
{
"traceNo": "99000009100010101732123",
"transDate": "20161231120533",
"returnCode": "00",
"returnDesc": "SUCCESS",
"transRecord": [
{
"traceNo": "99000009100010101732123",
"paidAmount": 100.00,
"status": 1
},
{
"traceNo": "99000009100010101732123",
"paidAmount": 200.00,
"status": 2
},
{
"traceNo": "99000009100010101732123",
"paidAmount": 300.00,
"status": 3
}
]
}
No Comments