@eagleeye-solutions/integration-events-common
Version:
Eagle Eye CDP connector common functionality
787 lines (786 loc) • 35.6 kB
JSON
{
"headers": {
"eventName": "SERVICE.WALLET.ACCOUNTS.CREATE",
"eventDate": "2025-01-29T20:23:00.774880",
"eesEnvironmentType": "sandbox-uk",
"eesSubsystemId": "wallet.sandbox.uk.eagleeye.com",
"callerIp": "35.244.186.249",
"unitId": "197332",
"unitFriendlyName": "Apply Digital",
"clientId": "mgtgpt5ewhj5fwvdm6d1",
"clientIdFriendlyName": "api",
"eesEventId": "3c1067fe-8eb8-4541-88f6-9d677618d0a9",
"eesMasterEventId": "Z5qOJNulXmFlV8jBaNlOlQAAA94",
"externalMessageId": null,
"eesApiVersion": "2.0"
},
"request": {
"resource": "\/services\/wallet\/accounts",
"method": "POST",
"body": "{\n \"state\": \"DEFAULT\",\n \"status\": \"ACTIVE\",\n \"type\": \"CONSUMER\",\n \"consumer\": {\n \"friendlyName\": \"Naush test wallet\",\n \"type\": \"INDIVIDUAL\",\n \"status\": \"ACTIVE\",\n \"meta\": {\n \"meta1\": \"Naush test meta value 1\",\n \"meta2\": \"Naush test meta value 2\"\n },\n \"data\": {\n \"personal\": {\n \"title\": \"Ms\",\n \"firstName\": \"Naush\",\n \"lastName\": \"S\",\n \"preferredName\": \"Naush\",\n \"language\": \"English\",\n \"gender\": \"M\",\n \"birthDate\": \"1980-01-01\"\n },\n \"address\": [\n {\n \"name\": \"default\",\n \"type\": \"local\",\n \"line1\": \"line1\",\n \"line2\": \"line2\",\n \"line3\": \"line3\",\n \"city\": \"Toronto\",\n \"county\": \"\",\n \"postcode\": \"M1M1M1\",\n \"state\": \"ON\",\n \"country\": \"Canada\"\n }\n ],\n \"contact\": [\n {\n \"type\": \"email\",\n \"name\": \"default\",\n \"value\": \"example@eagleeye.com\"\n },\n {\n \"type\": \"phone\",\n \"name\": \"default\",\n \"value\": \"01234567890\"\n }\n ],\n \"communication\": [\n {\n \"type\": \"default\",\n \"optin\": {\n \"admin\": true,\n \"marketing\": false\n }\n }\n ]\n }\n },\n \"identities\": [\n {\n \"state\": \"DEFAULT\",\n \"status\": \"ACTIVE\",\n \"type\": \"CUSTOMER_ID\",\n \"value\": \"1111111111111124\"\n },\n {\n \"state\": \"DEFAULT\",\n \"status\": \"ACTIVE\",\n \"type\": \"CARD\",\n \"value\": \"2222222222222214\"\n },\n {\n \"state\": \"DEFAULT\",\n \"status\": \"ACTIVE\",\n \"type\": \"MOBILE\",\n \"value\": \"+1(416)-111-1124\"\n }\n ],\n \"accounts\": {\n \"campaign\": [\n {\n \"campaignTag\": \"initialoffer\",\n \"state\": \"LOADED\"\n }\n ],\n \"scheme\": [\n {\n \"status\": \"ACTIVE\",\n \"schemeId\": 100620987,\n \"state\": \"LOADED\"\n }\n ]\n }\n}",
"contentType": "application\/json",
"customHeaders": []
},
"response": {
"code": 201,
"body": {
"walletId": "216396239",
"friendlyName": null,
"status": "ACTIVE",
"type": "CONSUMER",
"state": "DEFAULT",
"meta": [],
"dateCreated": "2025-01-29T20:23:00+00:00",
"lastUpdated": "2025-01-29T20:23:00+00:00",
"relationships": {
"parent": [],
"child": [],
"associate": [],
"donor": []
},
"identities": [
{
"identityId": "187129875",
"walletId": "216396239",
"type": "CUSTOMER_ID",
"friendlyName": null,
"value": "1111111111111124",
"safeValue": null,
"secret": null,
"dates": {
"start": "2025-01-29T20:23:00+00:00",
"end": null
},
"meta": [],
"state": "DEFAULT",
"status": "ACTIVE",
"dateCreated": "2025-01-29T20:23:00+00:00",
"lastUpdated": "2025-01-29T20:23:00+00:00",
"mobileWallet": "https:\/\/sb.uk.mypass.is\/identity\/197332\/216396239\/187129875\/c6fd6ed597fc274734052ce7e0693e3eae646d5e2c81bd2a3d48565c160ca307"
},
{
"identityId": "187129876",
"walletId": "216396239",
"type": "CARD",
"friendlyName": null,
"value": "2222222222222214",
"safeValue": null,
"secret": null,
"dates": {
"start": "2025-01-29T20:23:00+00:00",
"end": null
},
"meta": [],
"state": "DEFAULT",
"status": "ACTIVE",
"dateCreated": "2025-01-29T20:23:00+00:00",
"lastUpdated": "2025-01-29T20:23:00+00:00",
"mobileWallet": "https:\/\/sb.uk.mypass.is\/identity\/197332\/216396239\/187129876\/c7799596ec83799e0efafc093303ea6a33e18af94018632624fd5bdd2d356140"
},
{
"identityId": "187129877",
"walletId": "216396239",
"type": "MOBILE",
"friendlyName": null,
"value": "+1(416)-111-1124",
"safeValue": null,
"secret": null,
"dates": {
"start": "2025-01-29T20:23:00+00:00",
"end": null
},
"meta": [],
"state": "DEFAULT",
"status": "ACTIVE",
"dateCreated": "2025-01-29T20:23:00+00:00",
"lastUpdated": "2025-01-29T20:23:00+00:00",
"mobileWallet": "https:\/\/sb.uk.mypass.is\/identity\/197332\/216396239\/187129877\/9d3c5cbda7cceb6ab2c71a8636a0fb4ad18bcc49b5a5367163e6ec6387b1c671"
}
],
"accounts": {
"campaign": {
"total": 3,
"results": [
{
"accountId": "4093853179",
"walletId": "216396239",
"campaignId": "100641542",
"type": "ECOUPON",
"clientType": "OFFER",
"status": "ACTIVE",
"state": "LOADED",
"dates": {
"start": "2025-01-29T20:23:00+00:00",
"end": "2025-12-31T23:59:00+00:00"
},
"meta": [],
"dateCreated": "2025-01-29T20:23:00+00:00",
"lastUpdated": "2025-01-29T20:23:00+00:00",
"overrides": [],
"balances": {
"available": 0,
"refundable": 0
},
"relationships": [],
"mobileWallet": "https:\/\/sb.uk.mypass.is\/a\/4093853179\/7e4c9ba080030bd"
},
{
"accountId": "4093853180",
"walletId": "216396239",
"campaignId": "100641543",
"type": "ECOUPON",
"clientType": "OFFER",
"status": "ACTIVE",
"state": "LOADED",
"dates": {
"start": "2025-01-29T20:23:00+00:00",
"end": "2025-12-31T23:59:00+00:00"
},
"meta": [],
"dateCreated": "2025-01-29T20:23:00+00:00",
"lastUpdated": "2025-01-29T20:23:00+00:00",
"overrides": [],
"balances": {
"available": 0,
"refundable": 0
},
"relationships": [],
"mobileWallet": "https:\/\/sb.uk.mypass.is\/a\/4093853180\/aea8299340defc8"
},
{
"accountId": "4093853181",
"walletId": "216396239",
"campaignId": "100641544",
"type": "ECOUPON",
"clientType": "OFFER",
"status": "ACTIVE",
"state": "LOADED",
"dates": {
"start": "2025-01-29T20:23:01+00:00",
"end": "2025-12-31T23:59:00+00:00"
},
"meta": [],
"dateCreated": "2025-01-29T20:23:01+00:00",
"lastUpdated": "2025-01-29T20:23:01+00:00",
"overrides": [],
"balances": {
"available": 0,
"refundable": 0
},
"relationships": [],
"mobileWallet": "https:\/\/sb.uk.mypass.is\/a\/4093853181\/8ccf9c459c500ff"
}
],
"successful": {
"total": 3,
"results": [
{
"accountId": "4093853179",
"walletId": "216396239",
"campaignId": "100641542",
"type": "ECOUPON",
"clientType": "OFFER",
"status": "ACTIVE",
"state": "LOADED",
"dates": {
"start": "2025-01-29T20:23:00+00:00",
"end": "2025-12-31T23:59:00+00:00"
},
"meta": [],
"dateCreated": "2025-01-29T20:23:00+00:00",
"lastUpdated": "2025-01-29T20:23:00+00:00",
"overrides": [],
"balances": {
"available": 0,
"refundable": 0
},
"relationships": [],
"mobileWallet": "https:\/\/sb.uk.mypass.is\/a\/4093853179\/7e4c9ba080030bd"
},
{
"accountId": "4093853180",
"walletId": "216396239",
"campaignId": "100641543",
"type": "ECOUPON",
"clientType": "OFFER",
"status": "ACTIVE",
"state": "LOADED",
"dates": {
"start": "2025-01-29T20:23:00+00:00",
"end": "2025-12-31T23:59:00+00:00"
},
"meta": [],
"dateCreated": "2025-01-29T20:23:00+00:00",
"lastUpdated": "2025-01-29T20:23:00+00:00",
"overrides": [],
"balances": {
"available": 0,
"refundable": 0
},
"relationships": [],
"mobileWallet": "https:\/\/sb.uk.mypass.is\/a\/4093853180\/aea8299340defc8"
},
{
"accountId": "4093853181",
"walletId": "216396239",
"campaignId": "100641544",
"type": "ECOUPON",
"clientType": "OFFER",
"status": "ACTIVE",
"state": "LOADED",
"dates": {
"start": "2025-01-29T20:23:01+00:00",
"end": "2025-12-31T23:59:00+00:00"
},
"meta": [],
"dateCreated": "2025-01-29T20:23:01+00:00",
"lastUpdated": "2025-01-29T20:23:01+00:00",
"overrides": [],
"balances": {
"available": 0,
"refundable": 0
},
"relationships": [],
"mobileWallet": "https:\/\/sb.uk.mypass.is\/a\/4093853181\/8ccf9c459c500ff"
}
]
},
"failed": {
"total": 0,
"results": []
}
},
"scheme": {
"successful": {
"results": [
{
"accountId": "4093853182",
"walletId": "216396239",
"campaignId": "100620987",
"type": "POINTS",
"clientType": "RETAILPOINTS",
"status": "ACTIVE",
"state": "LOADED",
"dates": {
"start": "2025-01-29T20:23:01+00:00",
"end": "2038-01-19T03:14:07+00:00"
},
"meta": [],
"dateCreated": "2025-01-29T20:23:01+00:00",
"lastUpdated": "2025-01-29T20:23:01+00:00",
"overrides": [],
"balances": {
"current": 0,
"usable": 0,
"locked": 0,
"lifetime": 0,
"lifetimeSpend": 0,
"lifetimeSpendValue": 0,
"pending": 0
},
"relationships": [],
"mobileWallet": "https:\/\/sb.uk.mypass.is\/a\/4093853182\/8955b70dd1bff59"
}
],
"total": 1
},
"failed": {
"results": [],
"total": 0
},
"total": 1,
"results": [
{
"accountId": "4093853182",
"walletId": "216396239",
"campaignId": "100620987",
"type": "POINTS",
"clientType": "RETAILPOINTS",
"status": "ACTIVE",
"state": "LOADED",
"dates": {
"start": "2025-01-29T20:23:01+00:00",
"end": "2038-01-19T03:14:07+00:00"
},
"meta": [],
"dateCreated": "2025-01-29T20:23:01+00:00",
"lastUpdated": "2025-01-29T20:23:01+00:00",
"overrides": [],
"balances": {
"current": 0,
"usable": 0,
"locked": 0,
"lifetime": 0,
"lifetimeSpend": 0,
"lifetimeSpendValue": 0,
"pending": 0
},
"relationships": [],
"mobileWallet": "https:\/\/sb.uk.mypass.is\/a\/4093853182\/8955b70dd1bff59"
}
]
}
},
"consumer": {
"consumerId": "47849476",
"walletId": "216396239",
"friendlyName": "Naush test wallet",
"type": "INDIVIDUAL",
"state": "DEFAULT",
"status": "ACTIVE",
"data": {
"personal": {
"title": "Ms",
"firstName": "Naush",
"lastName": "S",
"preferredName": "Naush",
"language": "English",
"gender": "M",
"birthDate": "1980-01-01"
},
"address": [
{
"name": "default",
"type": "local",
"line1": "line1",
"line2": "line2",
"line3": "line3",
"city": "Toronto",
"county": null,
"postcode": "M1M1M1",
"state": "ON",
"country": "Canada"
}
],
"contact": [
{
"type": "email",
"name": "default",
"value": "example@eagleeye.com"
},
{
"type": "phone",
"name": "default",
"value": "01234567890"
}
],
"communication": [
{
"type": "default",
"optin": {
"admin": true,
"marketing": false
}
}
]
},
"meta": {
"meta1": "Naush test meta value 1",
"meta2": "Naush test meta value 2"
},
"dateCreated": "2025-01-29T20:23:01+00:00",
"lastUpdated": "2025-01-29T20:23:01+00:00"
}
},
"contentType": "application\/json;charset=utf-8"
},
"atomicOperations": [
{
"objectType": "walletEntity",
"operationType": "CREATE",
"objectValue": {
"walletId": "216396239",
"friendlyName": null,
"status": "ACTIVE",
"type": "CONSUMER",
"state": "DEFAULT",
"meta": [],
"dateCreated": "2025-01-29T20:23:00+00:00",
"lastUpdated": "2025-01-29T20:23:00+00:00",
"relationships": {
"parent": [],
"child": [],
"associate": [],
"donor": []
}
}
},
{
"objectType": "walletIdentityEntity",
"operationType": "CREATE",
"objectValue": {
"identityId": "187129875",
"walletId": "216396239",
"type": "CUSTOMER_ID",
"friendlyName": null,
"value": "1111111111111124",
"safeValue": null,
"secret": null,
"dates": {
"start": "2025-01-29T20:23:00+00:00",
"end": null
},
"meta": [],
"state": "DEFAULT",
"status": "ACTIVE",
"dateCreated": "2025-01-29T20:23:00+00:00",
"lastUpdated": "2025-01-29T20:23:00+00:00",
"mobileWallet": "https:\/\/sb.uk.mypass.is\/identity\/197332\/216396239\/187129875\/c6fd6ed597fc274734052ce7e0693e3eae646d5e2c81bd2a3d48565c160ca307"
}
},
{
"objectType": "walletIdentityEntity",
"operationType": "CREATE",
"objectValue": {
"identityId": "187129876",
"walletId": "216396239",
"type": "CARD",
"friendlyName": null,
"value": "2222222222222214",
"safeValue": null,
"secret": null,
"dates": {
"start": "2025-01-29T20:23:00+00:00",
"end": null
},
"meta": [],
"state": "DEFAULT",
"status": "ACTIVE",
"dateCreated": "2025-01-29T20:23:00+00:00",
"lastUpdated": "2025-01-29T20:23:00+00:00",
"mobileWallet": "https:\/\/sb.uk.mypass.is\/identity\/197332\/216396239\/187129876\/c7799596ec83799e0efafc093303ea6a33e18af94018632624fd5bdd2d356140"
}
},
{
"objectType": "walletIdentityEntity",
"operationType": "CREATE",
"objectValue": {
"identityId": "187129877",
"walletId": "216396239",
"type": "MOBILE",
"friendlyName": null,
"value": "+1(416)-111-1124",
"safeValue": null,
"secret": null,
"dates": {
"start": "2025-01-29T20:23:00+00:00",
"end": null
},
"meta": [],
"state": "DEFAULT",
"status": "ACTIVE",
"dateCreated": "2025-01-29T20:23:00+00:00",
"lastUpdated": "2025-01-29T20:23:00+00:00",
"mobileWallet": "https:\/\/sb.uk.mypass.is\/identity\/197332\/216396239\/187129877\/9d3c5cbda7cceb6ab2c71a8636a0fb4ad18bcc49b5a5367163e6ec6387b1c671"
}
},
{
"objectType": "walletAccountTransactionEntity",
"operationType": "CREATE",
"objectValue": {
"accountTransactionId": "7909470722",
"parentAccountTransactionId": null,
"accountId": "4093853179",
"account": {
"accountId": "4093853179",
"walletId": "216396239",
"campaignId": "100641542",
"type": "ECOUPON",
"clientType": "OFFER",
"status": "ACTIVE",
"state": "LOADED",
"dates": {
"start": "2025-01-29T20:23:00+00:00",
"end": "2025-12-31T23:59:00+00:00"
},
"meta": [],
"dateCreated": "2025-01-29T20:23:00+00:00",
"lastUpdated": "2025-01-29T20:23:00+00:00",
"overrides": [],
"balances": {
"available": 0,
"refundable": 0
},
"relationships": [],
"mobileWallet": null
},
"event": "CREATE",
"value": 0,
"source": 1,
"balancesBefore": {
"available": 0,
"refundable": 0
},
"balancesAfter": {
"available": 0,
"refundable": 0
},
"transactionDetails": [],
"properties": [],
"dateCreated": "2025-01-29T20:23:00+00:00",
"lastUpdated": "2025-01-29T20:23:00+00:00"
}
},
{
"objectType": "walletAccountTransactionEntity",
"operationType": "CREATE",
"objectValue": {
"accountTransactionId": "7909470723",
"parentAccountTransactionId": null,
"accountId": "4093853180",
"account": {
"accountId": "4093853180",
"walletId": "216396239",
"campaignId": "100641543",
"type": "ECOUPON",
"clientType": "OFFER",
"status": "ACTIVE",
"state": "LOADED",
"dates": {
"start": "2025-01-29T20:23:00+00:00",
"end": "2025-12-31T23:59:00+00:00"
},
"meta": [],
"dateCreated": "2025-01-29T20:23:00+00:00",
"lastUpdated": "2025-01-29T20:23:00+00:00",
"overrides": [],
"balances": {
"available": 0,
"refundable": 0
},
"relationships": [],
"mobileWallet": null
},
"event": "CREATE",
"value": 0,
"source": 1,
"balancesBefore": {
"available": 0,
"refundable": 0
},
"balancesAfter": {
"available": 0,
"refundable": 0
},
"transactionDetails": [],
"properties": [],
"dateCreated": "2025-01-29T20:23:00+00:00",
"lastUpdated": "2025-01-29T20:23:00+00:00"
}
},
{
"objectType": "walletAccountTransactionEntity",
"operationType": "CREATE",
"objectValue": {
"accountTransactionId": "7909470724",
"parentAccountTransactionId": null,
"accountId": "4093853181",
"account": {
"accountId": "4093853181",
"walletId": "216396239",
"campaignId": "100641544",
"type": "ECOUPON",
"clientType": "OFFER",
"status": "ACTIVE",
"state": "LOADED",
"dates": {
"start": "2025-01-29T20:23:01+00:00",
"end": "2025-12-31T23:59:00+00:00"
},
"meta": [],
"dateCreated": "2025-01-29T20:23:01+00:00",
"lastUpdated": "2025-01-29T20:23:01+00:00",
"overrides": [],
"balances": {
"available": 0,
"refundable": 0
},
"relationships": [],
"mobileWallet": null
},
"event": "CREATE",
"value": 0,
"source": 1,
"balancesBefore": {
"available": 0,
"refundable": 0
},
"balancesAfter": {
"available": 0,
"refundable": 0
},
"transactionDetails": [],
"properties": [],
"dateCreated": "2025-01-29T20:23:01+00:00",
"lastUpdated": "2025-01-29T20:23:01+00:00"
}
},
{
"objectType": "walletAccountTransactionEntity",
"operationType": "CREATE",
"objectValue": {
"accountTransactionId": "7909470725",
"parentAccountTransactionId": null,
"accountId": "4093853182",
"account": {
"accountId": "4093853182",
"walletId": "216396239",
"campaignId": "100620987",
"type": "POINTS",
"clientType": "RETAILPOINTS",
"status": "ACTIVE",
"state": "LOADED",
"dates": {
"start": "2025-01-29T20:23:01+00:00",
"end": "2038-01-19T03:14:07+00:00"
},
"meta": [],
"dateCreated": "2025-01-29T20:23:01+00:00",
"lastUpdated": "2025-01-29T20:23:01+00:00",
"overrides": [],
"balances": {
"current": 0,
"usable": 0,
"locked": 0,
"lifetime": 0,
"lifetimeSpend": 0,
"lifetimeSpendValue": 0,
"pending": 0
},
"relationships": [],
"mobileWallet": "https:\/\/sb.uk.mypass.is\/a\/4093853182\/8955b70dd1bff59"
},
"event": "CREATE",
"value": 0,
"source": 1,
"balancesBefore": {
"current": 0,
"lifetime": 0
},
"balancesAfter": {
"current": 0,
"lifetime": 0
},
"transactionDetails": [],
"properties": [],
"dateCreated": "2025-01-29T20:23:01+00:00",
"lastUpdated": "2025-01-29T20:23:01+00:00"
}
},
{
"objectType": "tierMembershipEntity",
"operationType": "CREATE",
"objectValue": {
"tierMembershipId": "1291031",
"tierId": "177",
"status": "ACTIVE",
"accountIds": [
"4093853182"
],
"balances": {
"points": 0,
"spend": 0,
"transactions": 0
},
"expiryDate": "2025-07-31T23:59:59+00:00",
"tierBalancesResetDate": "2031-01-31T23:59:59+00:00",
"dateCreated": "2025-01-29T20:23:01+00:00",
"lastUpdated": "2025-01-29T20:23:01+00:00"
}
},
{
"objectType": "walletConsumerEntity",
"operationType": "CREATE",
"objectValue": {
"consumerId": "47849476",
"walletId": "216396239",
"friendlyName": "Naush test wallet",
"type": "INDIVIDUAL",
"state": "DEFAULT",
"status": "ACTIVE",
"data": {
"personal": {
"title": "Ms",
"firstName": "Naush",
"lastName": "S",
"preferredName": "Naush",
"language": "English",
"gender": "M",
"birthDate": "1980-01-01"
},
"address": [
{
"name": "default",
"type": "local",
"line1": "line1",
"line2": "line2",
"line3": "line3",
"city": "Toronto",
"county": null,
"postcode": "M1M1M1",
"state": "ON",
"country": "Canada"
}
],
"contact": [
{
"type": "email",
"name": "default",
"value": "example@eagleeye.com"
},
{
"type": "phone",
"name": "default",
"value": "01234567890"
}
],
"communication": [
{
"type": "default",
"optin": {
"admin": true,
"marketing": false
}
}
]
},
"meta": {
"meta1": "Naush test meta value 1",
"meta2": "Naush test meta value 2"
},
"dateCreated": "2025-01-29T20:23:01+00:00",
"lastUpdated": "2025-01-29T20:23:01+00:00"
}
}
],
"enrichmentData": {
"walletEntity_216396239": {
"identities": [
{
"identityId": "187129875",
"walletId": "216396239",
"type": "CUSTOMER_ID",
"value": "1111111111111124",
"state": "DEFAULT",
"status": "ACTIVE"
},
{
"identityId": "187129876",
"walletId": "216396239",
"type": "CARD",
"value": "2222222222222214",
"state": "DEFAULT",
"status": "ACTIVE"
},
{
"identityId": "187129877",
"walletId": "216396239",
"type": "MOBILE",
"value": "+1(416)-111-1124",
"state": "DEFAULT",
"status": "ACTIVE"
}
]
}
}
}