XM
Members
Retrieve Transaction
Retrieves transactions for a given time range (in UTC format). In addition, you may optionally specify the query parameters such as limit and offset values.
Path:
1
POST https://{baseurl}/earn/get-transaction/
Copied!

Headers

Content-Type : application/json
Authorization: JWT Token
x-site-context : { "date": "2020-08-28T02:35:27.787Z", "channel": 12, "account": 5f493c9f30ec2a0007a94fc8", "stage": "sandbox"

Parameters

Type : query
startTimestamp : The start date..
Required: true
endTimestamp : The end date.
Required: true
transactionExternalReference : The external reference of the transaction.
Required: true
transactionId : The transaction ID.
Required: true
limit : The limit value.
Required: true
offset : The offset value.
Required: true

Sample Path

1
POST https://{baseurl}/earn/get-transaction/?startTimestamp=in dolore&endTimestamp=in dolore&transactionExternalReference=-96259921&transactionId=-96259921&limit=-96259921&offset=-96259921
Copied!

Sample Response

Response Code: 200
Message: OK
1
{
2
"profileId": "48ab0d88-6748-7db2-6cdf-78782d791fe0",
3
"loyaltyNumber": "aute ad voluptate proident",
4
"transactionId": 18242435,
5
"transactionTypeExternalReference": "in",
6
"transactionTotalTax": 46291830.35279101,
7
"transactionExternalReference": "elit cillum in sed",
8
"transactionEntityReference": "inc",
9
"netValue": 65509134.69991997,
10
"grossValue": -26384922.269878253,
11
"eligibleRevenue": -86265649.66286972,
12
"itemNumber": "in Exc",
13
"quantity": 63993761,
14
"status": "minim dolor voluptate",
15
"basePoints": 57739745.08210456,
16
"bonusPoints": -29540547.2247805,
17
"promotionalPoints": -87821103.25285783,
18
"discounts": [
19
{
20
"id": 43714004,
21
"value": 78140598.12201971,
22
"type": "ut magna in cupidatat"
23
},
24
{
25
"id": 56410759,
26
"value": 67344597.22022358,
27
"type": "id incididunt deserunt irure minim"
28
}
29
],
30
"transactionItems": [
31
{
32
"id": 67626336,
33
"productId": -52099623,
34
"productName": "id nulla",
35
"productPrice": 83993610.18337876,
36
"SKU": "est exercitation quis",
37
"grossAmount": 35208833.11436683,
38
"netAmount": -2831661.347887814,
39
"taxAmount": -66964237.77113987,
40
"itemQuantity": -47832227,
41
"itemPrice": -34227178.51584038,
42
"lineNumber": -80142594,
43
"itemName": "in aliqua ullamco occaecat",
44
"discounts": [
45
{
46
"id": 71117188,
47
"value": -87600193.67314564,
48
"type": "et magna"
49
},
50
{
51
"id": 96068252,
52
"value": -11087035.32660842,
53
"type": "laboris anim Ut culpa"
54
}
55
],
56
"UOM": "nostrud laborum et"
57
},
58
{
59
"id": 67808863,
60
"productId": -53491203,
61
"productName": "dolor proident et",
62
"productPrice": -42681505.59154775,
63
"SKU": "ullamco sunt tempor ipsum laborum",
64
"grossAmount": 85918749.47314963,
65
"netAmount": 9190821.678984344,
66
"taxAmount": -7211119.654497504,
67
"itemQuantity": -64451812,
68
"itemPrice": 59730065.80004269,
69
"lineNumber": 96563311,
70
"itemName": "fugiat",
71
"discounts": [
72
{
73
"id": -33687050,
74
"value": 26274175.148444235,
75
"type": "in irure dolor est"
76
},
77
{
78
"id": -14574345,
79
"value": -38769860.96588677,
80
"type": "voluptate anim eiusmod deserunt"
81
}
82
],
83
"UOM": "veniam exercitation pariatur Excepteur magna"
84
}
85
],
86
"activityTimestamp": "1957-04-08T18:46:26.911Z",
87
"discountValue": 21284772.021417454,
88
"entityReference": "fugiat labore consequat",
89
"issueAuditUser": "magna do dolore officia",
90
"cancelAuditUser": "culpa ut occaecat"
91
}
Copied!
Response Code: 400
Message: Bad Request
Response Code: 401
Message: Unauthorized

Changelog

  • Nov-2021
Last modified 18d ago
Copy link
Contents
Changelog