Menu
Get Customer Session
Get customer session
GET
/v2/customer_sessions/{customerSessionId}Use it in a workflow
- Add a step and choose the Talon.One connector.
- Pick the Get Customer Session action (under integration).
- Fill in the fields below, then reference the result from later steps as
{{getCustomerSession.response.data}}.
Request
Path parameters
Response
Returns 200 with an object. Read it in later steps with {{getCustomerSession.response.data.<field>}}.
{
"customerSession": {
"couponCodes": [
"XMAS-20-2021"
],
"updateCount": 3,
"created": {},
"identifiers": [
"d41306257915f83fe01e54092ae470f631161ea16fcf4415842eed41470386ea"
],
"integrationId": "URNGV8294NV",
"experimentVariantAllocations": [
{
"experimentID": 1,
"variantID": 2
},
{
"experimentID": 1,
"variantID": 2
}
],
"total": 119.99,
"loyaltyCards": [
"loyalty-card-1"
],
"additionalCosts": {
"shipping": {
"price": 9
}
},
"additionalCostTotal": 20,
"storeIntegrationId": "STORE-001",
"profileId": "URNGV8294NV",
"evaluableCampaignIds": [
10,
12
],
"referralCode": "NT2K54D9",
"attributes": {
"ShippingCity": "Berlin"
},
"id": 6,
"state": "open",
"applicationId": 322,
"cartItems": [
{
"remainingQuantity": 1,
"product": {
"name": "sample_product"
},
"quantity": 1,
"returnedQuantity": 1,
"length": 1.4658129805029452,
"weight": 1130,
"adjustmentReferenceId": "68851723-e6fa-488f-ace9-112581e6c19b",
"adjustmentEffectiveFrom": {},
"catalogItemID": 5,
"additionalCosts": {
"shipping": {
"price": 9
}
},
"price": 99.99,
"selectedPriceType": "member",
"name": "Air Glide",
"width": 6.027456183070403,
"attributes": {
"image": "11.jpeg",
"material": "leather"
},
"adjustmentEffectiveUntil": {},
"position": 5.962133916683182,
"sku": "SKU1241028",
"category": "shoes",
"prices": {
"member": {
"price": 90,
"adjustmentReferenceId": "68851723-e6fa-488f-ace9-112581e6c19b",
"effectiveFrom": {},
"effectiveUntil": {}
},
"base": {
"price": 100
}
},
"height": 0.8008281904610115
},
{
"remainingQuantity": 1,
"product": {
"name": "sample_product"
},
"quantity": 1,
"returnedQuantity": 1,
"length": 1.4658129805029452,
"weight": 1130,
"adjustmentReferenceId": "68851723-e6fa-488f-ace9-112581e6c19b",
"adjustmentEffectiveFrom": {},
"catalogItemID": 5,
"additionalCosts": {
"shipping": {
"price": 9
}
},
"price": 99.99,
"selectedPriceType": "member",
"name": "Air Glide",
"width": 6.027456183070403,
"attributes": {
"image": "11.jpeg",
"material": "leather"
},
"adjustmentEffectiveUntil": {},
"position": 5.962133916683182,
"sku": "SKU1241028",
"category": "shoes",
"prices": {
"member": {
"price": 90,
"adjustmentReferenceId": "68851723-e6fa-488f-ace9-112581e6c19b",
"effectiveFrom": {},
"effectiveUntil": {}
},
"base": {
"price": 100
}
},
"height": 0.8008281904610115
}
],
"updated": {},
"firstSession": true,
"cartItemTotal": 99.99
},
"effects": [
{
"rulesetId": 73,
"ruleIndex": 2,
"campaignRevisionVersionId": 5,
"campaignId": 244,
"conditionIndex": 786,
"evaluationGroupMode": "stackable",
"effectType": "rejectCoupon",
"adjustmentReferenceId": "68851723-e6fa-488f-ace9-112581e6c19b",
"props": "{}",
"selectedPrice": 100,
"evaluationGroupID": 3,
"triggeredForCatalogItem": 786,
"selectedPriceType": "member",
"campaignRevisionId": 1,
"ruleName": "Give 20% discount",
"experimentId": 12,
"triggeredByCoupon": 4928
}
]
}
Need more? See the Talon.One guide for connection setup and behaviour shared by every action.
Was this page helpful?