Get the current cart

Returns the caller's active cart with its lines and totals. A signed-in customer gets their own cart. A guest sends the `X-Lynkow-Cart-Token` header. No cart, or a wrong token, returns 404 `CART_NOT_FOUND`. Totals include provisional VAT for the delivery country, else the `country` query parameter, else the merchant's country. Checkout recomputes every figure. Reading the cart applies the current catalogue prices. It removes the lines that can no longer be sold and reports them in `removedLines`. It also clears a shipping option no longer offered for the delivery country. > **Note:** Available only on sites with e-commerce enabled.

Required access
Send
  • Publishable keyX-Lynkow-Pk
Optional: customer session tokenSite access
GET/cart
Base URLhttps://api.lynkow.com/storefront/{siteId}

Query parameters

country
string

Country (ISO 3166-1 alpha-2) for this response's VAT while the cart has no delivery country. An invalid code returns 422

Feedback

Was this page helpful?