metaData totalCount objects requestData requestType RetailTransaction

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
"metaData": {
"totalCount": 1
},
"objects": [
{
"requestData": {
"requestType": "RetailTransaction",
"workstationID": "01",
"requestID": "43896786",
"batchID": 2842
},
"siteData": {
"countryCode": "TH",
"siteID": "2347"
},
"posData": {
"posTimeStamp": "2018-04-19T13:14:27+01:00",
"transactionNumber": "00016"
},
"tenders": [
{
"tenderID": 1,
"methodOfPaymentID": "1",
"methodOfPayment": "British Pounds Sterling",
"totalAmount": 4.5
}
],
"customerData": [
{
"customerDataType": "VRN",
"customerDataValue": "TR38VU055",
"pointsRedeemed": 65
}
],
"totalAmount": 4.5,
"saleItems": [
{
"itemID": 1,
"saleItemType": "Sale",
"productCode": "072",
"categoryCode": "1071",
"amount": 4.5,
"originalAmount": 5,
"vatRate": 20,
"unitMeasure": "EA",
"unitPrice": 5,
"quantity": 1,
"additionalProductCode": "5054603002201",
"additionalProductInfo": "Hot Drink £",
"priceAdjustments": [
{
"priceAdjustmentID": 1,
"priceAdjustmentType": "RealtimeOffer-U",
"amount": 0.5,
"unitPrice": 0.5,
"quantity": 1,
"categoryCode": "1071",
"reason": "10% Discount on Costa Exp",
"loyaltyOfferID": "149710299"
}
],
"loyaltyoffers": [
{
"loyaltyOfferID": "149710299"
}
]
}
]
}
]
}