Menu
Get Customer Inventory
List customer data
GET
/v1/customer_profiles/{integrationId}/inventoryUse it in a workflow
- Add a step and choose the Talon.One connector.
- Pick the Get Customer Inventory action (under integration).
- Fill in the fields below, then reference the result from later steps as
{{getCustomerInventory.response.data}}.
Request
Path parameters
Query parameters
Response
Returns 200 with an object. Read it in later steps with {{getCustomerInventory.response.data.<field>}}.
{
"profile": {
"accountId": 31,
"closedSessions": 3,
"created": {},
"sandbox": false,
"integrationId": "URNGV8294NV",
"attributes": {
"Language": "english",
"ShippingCountry": "DE"
},
"totalSales": 299.99,
"lastActivity": {},
"id": 6,
"loyaltyMemberships": [
{
"joined": {},
"loyaltyProgramId": 323414846
},
{
"joined": {},
"loyaltyProgramId": 323414846
}
],
"audienceMemberships": [
{
"name": "Travel audience",
"id": 2
},
{
"name": "Travel audience",
"id": 2
}
]
},
"loyalty": {
"cards": [
{
"ledger": {
"pendingBalance": 10,
"nextTierName": "Silver",
"negativeBalance": 10,
"currentBalance": 100,
"spentBalance": 0,
"tentativeCurrentBalance": 100,
"tentativePendingBalance": 20,
"pointsToNextTier": 20,
"expiredBalance": 0,
"currentTier": {
"expiryDate": {},
"downgradePolicy": "one_down",
"name": "bronze",
"id": 11,
"startDate": {}
},
"tentativeNegativeBalance": 100
},
"identifier": "summer-loyalty-card-0543",
"oldCardIdentifier": "summer-loyalty-card-0543",
"usersPerCardLimit": 111,
"created": {},
"profiles": [
{
"integrationId": "R195412",
"timestamp": {}
},
{
"integrationId": "R195412",
"timestamp": {}
}
],
"subledgers": {
"key": {
"pendingBalance": 10,
"nextTierName": "Silver",
"negativeBalance": 10,
"currentBalance": 100,
"spentBalance": 0,
"tentativeCurrentBalance": 100,
"tentativePendingBalance": 20,
"pointsToNextTier": 20,
"expiredBalance": 0,
"currentTier": {
"expiryDate": {},
"downgradePolicy": "one_down",
"name": "bronze",
"id": 11,
"startDate": {}
},
"tentativeNegativeBalance": 100
}
},
"batchId": "wdefpov",
"programTitle": "Loyalty program",
"programName": "Loyalty_program",
"modified": {},
"id": 6,
"blockReason": "Current card lost. Customer needs a new card.",
"newCardIdentifier": "summer-loyalty-card-0543",
"programID": 125,
"status": "active"
},
{
"ledger": {
"pendingBalance": 10,
"nextTierName": "Silver",
"negativeBalance": 10,
"currentBalance": 100,
"spentBalance": 0,
"tentativeCurrentBalance": 100,
"tentativePendingBalance": 20,
"pointsToNextTier": 20,
"expiredBalance": 0,
"currentTier": {
"expiryDate": {},
"downgradePolicy": "one_down",
"name": "bronze",
"id": 11,
"startDate": {}
},
"tentativeNegativeBalance": 100
},
"identifier": "summer-loyalty-card-0543",
"oldCardIdentifier": "summer-loyalty-card-0543",
"usersPerCardLimit": 111,
"created": {},
"profiles": [
{
"integrationId": "R195412",
"timestamp": {}
},
{
"integrationId": "R195412",
"timestamp": {}
}
],
"subledgers": {
"key": {
"pendingBalance": 10,
"nextTierName": "Silver",
"negativeBalance": 10,
"currentBalance": 100,
"spentBalance": 0,
"tentativeCurrentBalance": 100,
"tentativePendingBalance": 20,
"pointsToNextTier": 20,
"expiredBalance": 0,
"currentTier": {
"expiryDate": {},
"downgradePolicy": "one_down",
"name": "bronze",
"id": 11,
"startDate": {}
},
"tentativeNegativeBalance": 100
}
},
"batchId": "wdefpov",
"programTitle": "Loyalty program",
"programName": "Loyalty_program",
"modified": {},
"id": 6,
"blockReason": "Current card lost. Customer needs a new card.",
"newCardIdentifier": "summer-loyalty-card-0543",
"programID": 125,
"status": "active"
}
],
"programs": {
"key": {
"ledger": {
"pendingBalance": 10,
"nextTierName": "Silver",
"negativeBalance": 10,
"currentBalance": 100,
"spentBalance": 0,
"tentativeCurrentBalance": 100,
"tentativePendingBalance": 20,
"pointsToNextTier": 20,
"expiredBalance": 0,
"currentTier": {
"expiryDate": {},
"downgradePolicy": "one_down",
"name": "bronze",
"id": 11,
"startDate": {}
},
"tentativeNegativeBalance": 100
},
"joinDate": {},
"subLedgers": {
"key": {
"pendingBalance": 10,
"nextTierName": "Silver",
"negativeBalance": 10,
"currentBalance": 100,
"spentBalance": 0,
"tentativeCurrentBalance": 100,
"tentativePendingBalance": 20,
"pointsToNextTier": 20,
"expiredBalance": 0,
"currentTier": {
"expiryDate": {},
"downgradePolicy": "one_down",
"name": "bronze",
"id": 11,
"startDate": {}
},
"tentativeNegativeBalance": 100
}
},
"name": "program1",
"id": 5,
"title": "My loyalty program"
}
}
},
"referrals": [
{
"code": "27G47Y54VH9L",
"created": {},
"usageLimit": 1,
"campaignId": 78,
"usageCounter": 1,
"batchId": "tqyrgahe",
"advocateProfileIntegrationId": "URNGV8294NV",
"expiryDate": {},
"importId": 4,
"friendProfileIntegrationId": "BZGGC2454PA",
"attributes": {
"channel": "web"
},
"referredCustomers": [
"referredCustomers",
"referredCustomers"
],
"id": 6,
"startDate": {}
}
],
"coupons": [
{
"recipientIntegrationId": "URNGV8294NV",
"implicitlyReserved": false,
"created": {},
"campaignId": 211,
"usageLimit": 100,
"referralId": 326632952,
"profileRedemptionCount": 5,
"usageCounter": 10,
"batchId": "32535-43255",
"discountCounter": 10,
"expiryDate": {},
"importId": 4,
"reservationLimit": 45,
"reservationCounter": 1,
"reservation": false,
"attributes": "{}",
"id": 6,
"state": "active",
"value": "XMAS-20-2021",
"discountLimit": 30,
"startDate": {},
"limits": [
{
"period": "yearly",
"entities": [
"Coupon"
],
"limit": 1000,
"action": "createCoupon"
},
{
"period": "yearly",
"entities": [
"Coupon"
],
"limit": 1000,
"action": "createCoupon"
}
],
"discountRemainder": 5,
"isReservationMandatory": false
}
],
"giveaways": [
{
"profileIntegrationId": "R195412",
"code": "GIVEAWAY1",
"importId": 4,
"endDate": {},
"created": {},
"profileId": 1,
"poolId": 1,
"attributes": "{}",
"id": 6,
"used": true,
"startDate": {}
}
],
"achievements": [
{
"endDate": {},
"achievementAllowRollbackAfterCompletion": false,
"campaignId": 3,
"achievementId": 3,
"description": "50% off for every 50th purchase in a year.",
"achievementFixedStartDate": {},
"title": "50% off on 50th purchase.",
"target": 10,
"achievementRecurrencePolicy": "no_recurrence",
"achievementActivationPolicy": "fixed_schedule",
"name": "FreeCoffee10Orders",
"achievementEndDate": {},
"progress": 10,
"completionDate": {},
"startDate": {},
"status": "completed"
}
]
}
Need more? See the Talon.One guide for connection setup and behaviour shared by every action.
Was this page helpful?