@eagleeye-solutions/integration-events-common
Version:
Eagle Eye CDP connector common functionality
299 lines (298 loc) • 12.9 kB
JSON
{
"headers": {
"eventName": "POSCONNECT.WALLET.FULFIL",
"eventDate": "2025-02-11T04:42:08.834937",
"eesEnvironmentType": "sandbox-uk",
"eesSubsystemId": "pos.sandbox.uk.eagleeye.com",
"callerIp": "35.244.190.158",
"unitId": "197332",
"unitFriendlyName": "Apply Digital",
"clientId": "mgtgpt5ewhj5fwvdm6d1",
"clientIdFriendlyName": "api",
"eesEventId": "044e9a06-3cae-4e0f-bc57-4ea544b10ff2",
"eesMasterEventId": "Z6rVIL5mIs-Obz6g3Pf0TwAAAZg",
"externalMessageId": "",
"eesApiVersion": "7.6"
},
"request": {
"resource": "\/connect\/wallet\/fulfil",
"method": "POST",
"body": "{\n \"originalTransaction\": {\n \"reference\": \"TransactionReferenceFeb10e\"\n },\n \"reference\": \"Initial_TransactionReferenceFeb10e\",\n \"identity\": {\n \"identityValue\": \"1111111111111127\"\n },\n \"location\": {\n \"incomingIdentifier\": \"outlet1\",\n \"parentIncomingIdentifier\": \"banner1\"\n }\n}",
"contentType": "application\/json",
"customHeaders": []
},
"response": {
"code": 200,
"body": "{\"walletTransactions\":[],\"accountTransactions\":[]}",
"contentType": "application\/json;charset=utf-8"
},
"atomicOperations": [
{
"objectType": "walletTransactionEntity",
"operationType": "UPDATE",
"objectValue": {
"walletTransactionId": "444110257",
"parentWalletTransactionId": "0",
"walletId": "216418806",
"reference": "TransactionReferenceFeb10e",
"transactionDateTime": "2025-02-11T04:40:59+00:00",
"transactionDateTimeOffset": "+00:00",
"identityId": "187158510",
"identity": null,
"type": "SETTLE",
"status": "FULFILLING",
"meta": null,
"state": "ORIGINAL",
"expiryDate": null,
"accounts": [],
"basket": {
"contents": [
{
"upc": "245874",
"itemUnitCost": 1000,
"salesKey": "SALE",
"totalUnitCostAfterDiscount": 2000,
"totalUnitCost": 2000,
"description": "Lemonade",
"itemUnitCount": 2,
"contributionResults": [
{
"instanceId": "100792525-1",
"value": 200
},
{
"instanceId": "100620987-1",
"value": 18
}
]
},
{
"upc": "245875",
"itemUnitCost": 1000,
"salesKey": "SALE",
"totalUnitCostAfterDiscount": 1000,
"totalUnitCost": 1000,
"description": "Coffee",
"itemUnitCount": 1,
"contributionResults": [
{
"instanceId": "100792525-1",
"value": 100
},
{
"instanceId": "100620987-1",
"value": 9
}
]
},
{
"upc": "245887",
"itemUnitCost": 1000,
"salesKey": "SALE",
"totalUnitCostAfterDiscount": 1000,
"totalUnitCost": 1000,
"description": "Oranges",
"itemUnitCount": 1,
"contributionResults": [
{
"instanceId": "100792525-1",
"value": 100
},
{
"instanceId": "100620987-1",
"value": 9
}
]
},
{
"upc": "245886",
"itemUnitCost": 1000,
"salesKey": "SALE",
"totalUnitCostAfterDiscount": 1000,
"totalUnitCost": 1000,
"description": "Carrot",
"itemUnitCount": 1,
"contributionResults": [
{
"instanceId": "100792525-1",
"value": 100
},
{
"instanceId": "100620987-1",
"value": 9
}
]
},
{
"upc": "245868",
"itemUnitCost": 1000,
"salesKey": "SALE",
"totalUnitCostAfterDiscount": 1000,
"totalUnitCost": 1000,
"description": "Pizza",
"itemUnitCount": 1,
"contributionResults": [
{
"instanceId": "100792525-1",
"value": 100
},
{
"instanceId": "100620987-1",
"value": 9
}
]
},
{
"upc": "245872",
"itemUnitCost": 1000,
"salesKey": "SALE",
"totalUnitCostAfterDiscount": 1000,
"totalUnitCost": 1000,
"description": "Wine",
"itemUnitCount": 1,
"contributionResults": [
{
"instanceId": "100792525-1",
"value": 100
},
{
"instanceId": "100620987-1",
"value": 9
}
]
}
],
"summary": {
"totalItems": 6,
"totalBasketValue": 6300,
"totalDiscountAmount": {
"promotions": 700
},
"qualifiesResults": [
{
"instanceId": "100792525-1",
"totalMatchingUnits": null,
"totalMatchingSpend": 1000,
"totalOverallMatchingSpend": null
}
],
"adjustmentResults": [
{
"resourceType": "CAMPAIGN",
"resourceId": "100792525",
"instanceId": "100792525-1",
"relatedAccountIds": [],
"success": null,
"type": "createRedeem",
"multiItem": [],
"value": 700,
"isUnredeemable": false,
"targetedAccountId": null,
"targetedWalletId": "216418806",
"totalMatchingUnits": null,
"playOrderPosition": 1,
"totalRewardUnits": 7,
"totalDiscountAmount": 700
}
],
"results": {
"points": {
"spend": 0,
"debit": 0,
"refund": 0,
"totalPointsTaken": 0,
"earn": 63,
"credit": 0,
"totalPointsGiven": 63,
"totalMonetaryValue": 0
},
"tiers": {
"points": 63,
"transactions": 0,
"spend": 6300
}
},
"adjudicationResults": [
{
"resourceType": "SCHEME",
"resourceId": "100620987",
"instanceId": "100620987-1",
"success": null,
"type": "earn",
"value": null,
"balances": {
"current": 63
},
"isRefundable": true,
"isUnredeemable": false,
"relatedAccountIds": [],
"targetedAccountId": "4102294539",
"targetedWalletId": "216418806",
"totalMatchingUnits": null,
"playOrderPosition": 2
}
],
"tierMembershipResults": [
{
"tierMembershipId": "1291239",
"type": "credit",
"balances": {
"points": 63,
"transactions": 0,
"spend": 6300
},
"success": null
}
],
"expectedPoints": [
{
"schemeId": "100620987",
"earn": 63,
"credit": 0,
"isPending": false
}
]
},
"payment": null
},
"channel": "api",
"location": {
"storeId": null,
"storeParentId": null
},
"dateCreated": "2025-02-11T04:40:59+00:00",
"lastUpdated": "2025-02-11T04:42:08+00:00"
}
}
],
"enrichmentData": {
"walletEntity_216418806": {
"identities": [
{
"identityId": "187158510",
"walletId": "216418806",
"type": "CUSTOMER_ID",
"value": "1111111111111127",
"state": "DEFAULT",
"status": "ACTIVE"
},
{
"identityId": "187158511",
"walletId": "216418806",
"type": "CARD",
"value": "2222222222222217",
"state": "DEFAULT",
"status": "ACTIVE"
},
{
"identityId": "187158512",
"walletId": "216418806",
"type": "MOBILE",
"value": "+1(416)-111-1127",
"state": "DEFAULT",
"status": "ACTIVE"
}
]
}
}
}