Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ivorpad/mercadona-cli/llms.txt
Use this file to discover all available pages before exploring further.
mercadona cart get fetches your current cart and displays each line with the product name, quantity, unit price, and a calculated subtotal. It requires a valid authenticated session. Pass --json to receive the raw cart API response on stdout instead of the human-readable view.
Synopsis
Flags
| Flag | Default | Description |
|---|---|---|
--wh <code> | config/mad1 | Warehouse code |
--lang <code> | config/es | Language code (es, en, ca, eu, vai) |
--json | false | Emit raw cart JSON to stdout |
Examples
Human output format
Each cart line is rendered as[id] display_name — qty × unit_price€ = subtotal€ when the API returns a price for that line. If no price is available (the product was added in a different warehouse session, for example), the fallback format is [id] qty × display_name. The header line shows the cart ID, schema version, product count, and running total.
JSON output shape
With--json, the command echoes the raw GET response from the cart API. The product object is nested under each line, carrying the display name and price instructions:
quantity is a float — the API returns 1.0 for unit items; weight and bulk products can carry fractional values. unit_price is what you pay per item as sold; reference_price/reference_format is the per-unit comparison (e.g. 0.960 €/L).
The Mercadona cart API is eventually consistent — a read issued immediately after a write may return the pre-write state for a moment. If
cart get shows results that look stale right after an add, set, or set-many, simply re-run it. The view converges within a second or two.