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 checkout create converts your current cart into a checkout object, returning a checkout ID and default delivery address. This is reversible — creating a checkout reserves nothing and costs nothing. Only checkout submit places a real order.
Synopsis
Flags
| Flag | Default | Description |
|---|---|---|
--max <eur> | 0 / env / config | Refuse if checkout total exceeds this amount |
--wh <code> | config / mad1 | Warehouse code |
--json | false | Emit raw checkout JSON |
Example Flow
JSON Output Shape
When--json is passed, the response includes the checkout ID, the embedded default delivery address, and the order summary:
Orders below 60€ are rejected by the Mercadona API. When your basket is under this threshold,
checkout create prints a warning to stderr — faltan X€ para el mínimo — so that --json stdout remains clean and parseable. The delivery fee (~8.20€) is added on top once a slot is chosen, so the minimum applies to the product subtotal alone.Delivery slots are not returned by
checkout create. They hang off the delivery address, not the checkout. Fetch them separately with checkout slots --address <id> after capturing the address ID from the create response.