Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 2.47 KB

CustomerSession.md

File metadata and controls

37 lines (23 loc) · 2.47 KB

TalonOne.CustomerSession

Properties

Name Type Description Notes
integrationId String The integration ID set by your integration layer.
created Date The time this entity was created.
applicationId Number The ID of the application that owns this entity.
profileId String ID of the customer profile set by your integration layer. Note: If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`.
coupon String Any coupon code entered.
referral String Any referral code entered.
state String Indicates the current state of the session. Sessions can be created as `open` or `closed`. The state transitions are: 1. `open` → `closed` 2. `open` → `cancelled` 3. `closed` → `cancelled` or `partially_returned` 4. `partially_returned` → `cancelled` For more information, see Customer session states. [default to 'open']
cartItems [CartItem] Serialized JSON representation.
identifiers [String] Session custom identifiers that you can set limits on or use inside your rules. For example, you can use IP addresses as identifiers to potentially identify devices and limit discounts abuse in case of customers creating multiple accounts. See the tutorial. [optional]
total Number The total sum of the cart in one session.
attributes Object A key-value map of the sessions attributes. The potentially valid attributes are configured in your accounts developer settings.
firstSession Boolean Indicates whether this is the first session for the customer's profile. Will always be true for anonymous sessions.
discounts {String: Number} A map of labelled discount values, values will be in the same currency as the application associated with the session.
updated Date Timestamp of the most recent event received on this session.

Enum: StateEnum

  • open (value: "open")

  • closed (value: "closed")

  • partially_returned (value: "partially_returned")

  • cancelled (value: "cancelled")