Menu
Get Loyalty Points
Get customer's full loyalty ledger
GET
/v1/loyalty_programs/{loyaltyProgramId}/profile/{integrationId}Use it in a workflow
- Add a step and choose the Talon.One connector.
- Pick the Get Loyalty Points action (under management).
- Fill in the fields below, then reference the result from later steps as
{{getLoyaltyPoints.response.data}}.
Request
Path parameters
Response
Returns 200 with an object. Read it in later steps with {{getLoyaltyPoints.response.data.<field>}}.
{
"ledger": {
"total": 0.8008281904610115,
"totalSpentPoints": 5.962133916683182,
"activePoints": [
{
"eventID": 5,
"amount": 100,
"created": {},
"flags": {
"createsNegativeBalance": true
},
"subLedgerID": "mysubledger",
"customerSessionID": "t2gy5s-47274",
"type": "addition",
"userID": 499,
"expiryDate": {},
"archived": false,
"customerProfileID": "URNGV8294NV",
"cardID": 241,
"name": "Add points on purchase",
"validityDuration": "30D",
"programID": 5,
"startDate": {}
},
{
"eventID": 5,
"amount": 100,
"created": {},
"flags": {
"createsNegativeBalance": true
},
"subLedgerID": "mysubledger",
"customerSessionID": "t2gy5s-47274",
"type": "addition",
"userID": 499,
"expiryDate": {},
"archived": false,
"customerProfileID": "URNGV8294NV",
"cardID": 241,
"name": "Add points on purchase",
"validityDuration": "30D",
"programID": 5,
"startDate": {}
}
],
"expiringPoints": [
{
"eventID": 5,
"amount": 100,
"created": {},
"flags": {
"createsNegativeBalance": true
},
"subLedgerID": "mysubledger",
"customerSessionID": "t2gy5s-47274",
"type": "addition",
"userID": 499,
"expiryDate": {},
"archived": false,
"customerProfileID": "URNGV8294NV",
"cardID": 241,
"name": "Add points on purchase",
"validityDuration": "30D",
"programID": 5,
"startDate": {}
},
{
"eventID": 5,
"amount": 100,
"created": {},
"flags": {
"createsNegativeBalance": true
},
"subLedgerID": "mysubledger",
"customerSessionID": "t2gy5s-47274",
"type": "addition",
"userID": 499,
"expiryDate": {},
"archived": false,
"customerProfileID": "URNGV8294NV",
"cardID": 241,
"name": "Add points on purchase",
"validityDuration": "30D",
"programID": 5,
"startDate": {}
}
],
"totalActivePoints": 6.027456183070403,
"totalPendingPoints": 1.4658129805029452,
"totalExpiredPoints": 5.637376656633329,
"totalNegativePoints": 2.3021358869347655,
"transactions": [
{
"eventID": 5,
"amount": 100,
"created": {},
"flags": {
"createsNegativeBalance": true
},
"subLedgerID": "mysubledger",
"customerSessionID": "t2gy5s-47274",
"type": "addition",
"userID": 499,
"expiryDate": {},
"archived": false,
"customerProfileID": "URNGV8294NV",
"cardID": 241,
"name": "Add points on purchase",
"validityDuration": "30D",
"programID": 5,
"startDate": {}
},
{
"eventID": 5,
"amount": 100,
"created": {},
"flags": {
"createsNegativeBalance": true
},
"subLedgerID": "mysubledger",
"customerSessionID": "t2gy5s-47274",
"type": "addition",
"userID": 499,
"expiryDate": {},
"archived": false,
"customerProfileID": "URNGV8294NV",
"cardID": 241,
"name": "Add points on purchase",
"validityDuration": "30D",
"programID": 5,
"startDate": {}
}
],
"expiredPoints": [
{
"eventID": 5,
"amount": 100,
"created": {},
"flags": {
"createsNegativeBalance": true
},
"subLedgerID": "mysubledger",
"customerSessionID": "t2gy5s-47274",
"type": "addition",
"userID": 499,
"expiryDate": {},
"archived": false,
"customerProfileID": "URNGV8294NV",
"cardID": 241,
"name": "Add points on purchase",
"validityDuration": "30D",
"programID": 5,
"startDate": {}
},
{
"eventID": 5,
"amount": 100,
"created": {},
"flags": {
"createsNegativeBalance": true
},
"subLedgerID": "mysubledger",
"customerSessionID": "t2gy5s-47274",
"type": "addition",
"userID": 499,
"expiryDate": {},
"archived": false,
"customerProfileID": "URNGV8294NV",
"cardID": 241,
"name": "Add points on purchase",
"validityDuration": "30D",
"programID": 5,
"startDate": {}
}
],
"currentTier": {
"expiryDate": {},
"downgradePolicy": "one_down",
"name": "bronze",
"id": 11,
"startDate": {}
},
"pendingPoints": [
{
"eventID": 5,
"amount": 100,
"created": {},
"flags": {
"createsNegativeBalance": true
},
"subLedgerID": "mysubledger",
"customerSessionID": "t2gy5s-47274",
"type": "addition",
"userID": 499,
"expiryDate": {},
"archived": false,
"customerProfileID": "URNGV8294NV",
"cardID": 241,
"name": "Add points on purchase",
"validityDuration": "30D",
"programID": 5,
"startDate": {}
},
{
"eventID": 5,
"amount": 100,
"created": {},
"flags": {
"createsNegativeBalance": true
},
"subLedgerID": "mysubledger",
"customerSessionID": "t2gy5s-47274",
"type": "addition",
"userID": 499,
"expiryDate": {},
"archived": false,
"customerProfileID": "URNGV8294NV",
"cardID": 241,
"name": "Add points on purchase",
"validityDuration": "30D",
"programID": 5,
"startDate": {}
}
]
},
"subLedgers": {
"mysubledger": {
"total": 0,
"totalActivePoints": 286,
"totalPendingPoints": 50,
"totalSpentPoints": 150,
"totalExpiredPoints": 25,
"totalNegativePoints": 0
}
}
}
Need more? See the Talon.One guide for connection setup and behaviour shared by every action.
Was this page helpful?