Update the cart
Sets the language, delivery address and shipping option of the caller's cart. Send any of `locale`, `deliveryAddress` and `shippingOptionId`. An absent field keeps its value. The cart keeps its shipping option only while it is active in the market of the delivery country, else the option is cleared. A cart without a delivery country has no shipping. A new address can change the VAT and the amounts charged. Checkout recomputes every figure. Prices and unsellable lines are updated as on `GET /cart`. A malformed `shippingOptionId` or an unknown `countryCode` returns 422. No cart, or a wrong token, returns 404 `CART_NOT_FOUND`. > **Note:** Available only on sites with e-commerce enabled.
/carthttps://api.lynkow.com/storefront/{siteId}Request bodyrequired
deliveryAddressunionReplaces the delivery address whole; its country sets the market and VAT. Omit it to keep it, null clears it.
localestringBCP 47 locale code (e.g. "en", "fr")
shippingOptionIdunionA shipping option (prefixed `shp_`) active in the delivery country's market. Omit it to keep the choice, null clears it.