Cart Custom Properties
You can enable a mini cart view in the following requests to show changes to the cart immediately. Find out more in the Views for Cart modifying operations
Prerequisites
access_token
from Headless API AuthenticationcartId
from Create a CartcultureCode
, e.g.en-US
(string)priceGroupId
from the cart or from Price Groups
Add Custom Properties to Cart
Parameters
key
the unique key of the property (string)value
the value of the property (string)
Request
Response
Delete Custom Property from Cart
Parameters
propertyId
from Add Custom Properties to Cart or Get Custom Properties for Cart
Request
Response
Get Custom Properties for Cart
Request
Response
Update Custom Properties for Cart
Parameters
propertyId
from Add Custom Properties to Cart or Get Custom Properties for Cartvalue
new value for the property (string)
Request
Response
Error Handling
BadRequest (400)
Execution of the pipeline fails; Price group is not found; AccessToken is not attached.
Unauthorized (401)
The token is expired.
Forbidden (403)
The token does not have access to this endpoint.
NotFound (404)
Cart or Property not found.
Conflict (409)
Property already exists on the order.
Error Response Example
Related Articles
Error HandlingLast updated