Set cart attributes
PUT
/ store/ v1/ carts/ {cart_id}/ attributesAnswer the store's checkout fields (GET /checkout/asks). Required ones must be answered before paying.
Path parameters
cart_idstringrequiredThe cart's ID, like
cart_01k8qs5s….
Headers
X-Cart-TokenstringrequiredThe cart's token
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
attributesobjectrequiredBy field key: the answer as text (
truefor a ticked box,YYYY-MM-DDfor a date, the option's value for a choice);nullor empty clears it. Keys left out stay as they are.
Returns
200 The updated cart.
Errors
- 404
not_foundNo such cart. - 409A payment is in progress, or the cart is completed.
- 422
validation_failedA key the store doesn't ask, or an answer that doesn't fit its field.