Transaction Events

Retrieve a Transaction Event

GET

Path parameters

eventIdstringRequired
Unique Transaction Identifier

Response

This endpoint returns an object
transactionState
enum
Model for transaction states. E.g. Processing, Refunded, Successful etc.
timestamp
double
Timestamp of the event
transactionId
string
Transaction ID the event pertains to
eventId
stringOptional
Unique event ID
reason
stringOptional
Reason for the event or a state change
eventDescription
stringOptional
Event description
updatedTransactionAttributes
objectOptional
Model for transaction additional payload
metaData
objectOptional
Model for device data

Errors

GET
1curl https://sandbox.api.flagright.com/events/transaction/eventId \
2 -H "x-api-key: <apiKey>"
1{
2 "transactionState": "SUCCESSFUL",
3 "timestamp": 1641654664000,
4 "transactionId": "443dea26147a406b957d9ee3a1247b11",
5 "eventId": "eventId",
6 "reason": "reason",
7 "eventDescription": "eventDescription",
8 "updatedTransactionAttributes": {
9 "transactionState": "CREATED",
10 "originAmountDetails": {
11 "transactionAmount": 800,
12 "transactionCurrency": "EUR",
13 "country": "DE"
14 },
15 "destinationAmountDetails": {
16 "transactionAmount": 800,
17 "transactionCurrency": "EUR",
18 "country": "DE"
19 },
20 "relatedTransactionIds": [
21 "relatedTransactionIds"
22 ],
23 "productType": "productType",
24 "promotionCodeUsed": true,
25 "reference": "reference",
26 "originDeviceData": {
27 "batteryLevel": 1.1,
28 "deviceLatitude": 1.1,
29 "deviceLongitude": 1.1,
30 "ipAddress": "ipAddress",
31 "deviceIdentifier": "deviceIdentifier",
32 "vpnUsed": true,
33 "operatingSystem": "operatingSystem",
34 "deviceMaker": "deviceMaker",
35 "deviceModel": "deviceModel",
36 "deviceYear": "deviceYear",
37 "appVersion": "appVersion"
38 },
39 "destinationDeviceData": {
40 "batteryLevel": 1.1,
41 "deviceLatitude": 1.1,
42 "deviceLongitude": 1.1,
43 "ipAddress": "ipAddress",
44 "deviceIdentifier": "deviceIdentifier",
45 "vpnUsed": true,
46 "operatingSystem": "operatingSystem",
47 "deviceMaker": "deviceMaker",
48 "deviceModel": "deviceModel",
49 "deviceYear": "deviceYear",
50 "appVersion": "appVersion"
51 },
52 "tags": [
53 {
54 "key": "customKey",
55 "value": "customValue"
56 }
57 ]
58 },
59 "metaData": {
60 "batteryLevel": 1.1,
61 "deviceLatitude": 1.1,
62 "deviceLongitude": 1.1,
63 "ipAddress": "144.13.22.19",
64 "deviceIdentifier": "deviceIdentifier",
65 "vpnUsed": true,
66 "operatingSystem": "operatingSystem",
67 "deviceMaker": "deviceMaker",
68 "deviceModel": "deviceModel",
69 "deviceYear": "deviceYear",
70 "appVersion": "appVersion"
71 }
72}