Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 2.5 KB

CustomerSession.md

File metadata and controls

22 lines (19 loc) · 2.5 KB

TalonOne.Model.CustomerSession

Properties

Name Type Description Notes
IntegrationId string The integration ID set by your integration layer.
Created DateTime The time this entity was created.
ApplicationId int 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 StateEnum.Open]
CartItems List<CartItem> Serialized JSON representation.
Identifiers List<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 decimal 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 bool Indicates whether this is the first session for the customer's profile. Will always be true for anonymous sessions.
Discounts Dictionary<string, decimal> A map of labelled discount values, values will be in the same currency as the application associated with the session.
Updated DateTime Timestamp of the most recent event received on this session.

[Back to Model list] [Back to API list] [Back to README]