id |
int |
Internal ID of this entity. |
|
created |
\DateTime |
The time this entity was created. The time this entity was created. |
|
integrationId |
string |
The integration ID set by your integration layer. |
|
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`. |
|
storeIntegrationId |
string |
The integration ID of the store. You choose this ID when you create a store. |
[optional] |
evaluableCampaignIds |
int[] |
When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. |
[optional] |
couponCodes |
string[] |
Any coupon codes entered. Important - for requests only: - If you create a coupon budget for your campaign, ensure the session contains a coupon code by the time you close it. - In requests where `dry=false`, providing an empty array discards any previous coupons. To avoid this, provide `"couponCodes": null` or omit the parameter entirely. |
[optional] |
referralCode |
string |
Any referral code entered. Important - for requests only: - If you create a referral budget for your campaign, ensure the session contains a referral code by the time you close it. - In requests where `dry=false`, providing an empty value discards the previous referral code. To avoid this, provide `"referralCode": null` or omit the parameter entirely. |
[optional] |
loyaltyCards |
string[] |
Identifier of a loyalty card. |
[optional] |
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. Either: - `closed` → `cancelled` (only via Update customer session) or - `closed` → `partially_returned` (only via Return cart items) - `closed` → `open` (only via Reopen customer session) 4. `partially_returned` → `cancelled` For more information, see Customer session states. |
[default to 'open'] |
cartItems |
\TalonOne\Client\Model\CartItem[] |
The items to add to this session. Do not exceed 1000 items and ensure the sum of all cart item's `quantity` does not exceed 10.000 per request. |
|
additionalCosts |
map[string,\TalonOne\Client\Model\AdditionalCost] |
Use this property to set a value for the additional costs of this session, such as a shipping cost. They must be created in the Campaign Manager before you set them with this property. See Managing additional costs. |
[optional] |
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. Important: Ensure the session contains an identifier by the time you close it if: - You create a unique identifier budget for your campaign. - Your campaign has coupons. |
[optional] |
attributes |
object |
Use this property to set a value for the attributes of your choice. Attributes represent any information to attach to your session, like the shipping city. You can use built-in attributes or custom ones. Custom attributes must be created in the Campaign Manager before you set them with this property. |
|
firstSession |
bool |
Indicates whether this is the first session for the customer's profile. Will always be true for anonymous sessions. |
|
total |
float |
The total value of cart items and additional costs in the session, before any discounts are applied. |
|
cartItemTotal |
float |
The total value of cart items, before any discounts are applied. |
|
additionalCostTotal |
float |
The total value of additional costs, before any discounts are applied. |
|
updated |
\DateTime |
Timestamp of the most recent event received on this session. |
|