Update customer session

PUT {{integrationBaseUrl}}/segment/v2/customer_sessions/:customerSessionId?skipNonExistingAttributes=false

Request Params

KeyDatatypeRequiredDescription
skipNonExistingAttributesbooleanIndicates whether to skip non-existing attributes. If true, the non-existing attributes are skipped and a 400 error is not returned. If false, a 400 error is returned in case of non-existing attributes.

Request Body

{"profileId"=>"URN-GV8294NV", "couponCodes"=>["XMAS-20-2021"], "referralCode"=>"NT2K54D9", "loyaltyCards"=>["loyalty-card-1"], "state"=>"open", "cartItems"=>[{"name"=>"Air Glide", "sku"=>"SKU1241028", "quantity"=>1, "returnedQuantity"=>1, "remainingQuantity"=>1, "price"=>99.99, "category"=>"shoes", "weight"=>1130, "height"=>0, "width"=>0, "length"=>0, "position"=>0, "attributes"=>{"image"=>"11.jpeg", "material"=>"leather"}, "additionalCosts"=>{"shipping"=>{"price"=>9}}}], "additionalCosts"=>{"shipping"=>{"price"=>9}}, "identifiers"=>["91.11.156.141"], "attributes"=>{"ShippingCity"=>"Berlin"}}

HEADERS

KeyDatatypeRequiredDescription
destination-hostnamestring(Required) The base URL of your Talon.One deployment.
X-Callback-Destination-URIstringThe full URI where Talon.One sends the response content. The callback is a POST request.
X-Callback-API-KeystringThe header and the API key, separated by a space. The first space marks the header.

For example: To set "Authorization: 3aa74d582bd94", use "Authorization 3aa74d582bd94".

To set "Authorization: ApiKey-v1 3aa74d582bd94", use "Authorization ApiKey-v1 3aa74d582bd94".

The minimal length of the API key is 32 characters. | | X-Content-Fields | string | | A comma-separated list of field names from the Update customer enpdoint's response that you want to receive.

If omitted, all the fields will be sent to the callback destination URI. | | X-Correlation-ID | string | | An arbitrary ID assigned to the callback request. You can use it to track the callbacks you receive from Talon.One. If omitted, the callback request does not include "X-Correlation-ID". |