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 submit places a real order on your Mercadona account. This is irreversible and spends real money. The command requires both --yes (explicit consent) and — when a spending cap is configured — verifies the order total against that cap before placing the order.
Synopsis
Flags
| Flag | Required | Description |
|---|---|---|
--checkout <id> | ✅ | Checkout ID (from checkout create) |
--yes | ✅ | Explicit consent — required to place the order |
--max <eur> | Recommended | Refuse if order total exceeds this amount |
--json | — | Emit raw order confirmation JSON |
How the Spending Guard Works
The budget check oncheckout submit is the final and strictest guard:
- With
--maxset: the CLI fetches the current checkout total viaGET /api/customers/<id>/checkouts/<id>/before submitting. Iftotal > cap, it refuses without placing the order. - Fails closed: if the total cannot be read (API error, network failure), the CLI refuses rather than proceeding blind. This is intentional — when in doubt, don’t spend.
- Without
--max: prints a warning and submits unconditionally. The warning reads:⚠ no spending limit set — submitting without a budget guard.
--max value can also be set via the MERCADONA_MAX_EUR environment variable or [limits].max_eur in ~/.mercadona/config.toml. Precedence: --max flag > MERCADONA_MAX_EUR env > config.