Specific discounts on categories

PUT https://{{URL}}/v2/customer_sessions/:sessionId

customerSession REQUIRED
The customer session update details

profileId string
ID of the customers profile as used within this Talon.One account. May be omitted or set to the empty string if the customer does not yet have a known profile ID.

couponCodes array
Any coupon codes entered.

referralCode string
Any referral code entered.

state stringdefault: open
Indicates the current state of the session. All sessions must start in the open state, after which valid transitions are...

open -> closed open -> cancelled closed -> cancelled

cartItems array
All items the customer will be purchasing in this session

additionalCosts object
Any costs associated with the session that can not be explicitly attributed to cart items. Examples include shipping costs and service fees.

identifiers array
Identifiers for the customer, this can be used for limits on values such as device ID.

attributes object
A key-value map of the sessions attributes. The potentially valid attributes are configured in your accounts developer settings.

responseContent array Optional list of requested information to be present on the response related to the customer session update. Currently supported: customerSession, customerProfile, coupons, triggeredCampaigns, referral, loyalty and event. Allowed values: customerSession customerProfile coupons triggeredCampaigns referral loyalty event

Request Params

KeyDatatypeRequiredDescription
drybooleanIndicates whether to persist the changes. Changes are ignored when dry=true.

Request Body

{"customerSession"=>{"profileId"=>"{{integrationId}}", "state"=>"closed", "cartItems"=>[{"name"=>"ProductC", "sku"=>"sku-00003", "quantity"=>1, "price"=>200, "Category"=>"Road Bikes", "weight"=>0}, {"name"=>"ProductD", "sku"=>"sku-00004", "quantity"=>2, "price"=>30, "Category"=>"Helmets", "weight"=>0}], "couponCodes"=>[""], "referralCode"=>""}}