IDEMPOTENCY_CONFLICT: Idempotency-Key already used with another body
Checked on 2026-11-25 against the SharkPOS API code · Markdown
IDEMPOTENCY_CONFLICT · HTTP 409
Message you may see:
Ese Idempotency-Key ya se usó con otra boleta. (That Idempotency-Key was already used with another boleta.)
What it means
You sent an issuance with an Idempotency-Key that had already been used, but with a different body (other products, another amount, another recipient). The API cannot tell whether it is a retry or a new sale, so it does not issue.
Why it happens
- The key does not come from the sale id but from something that repeats (the date, the register number, a counter that resets).
- The sale was modified after the first attempt and retried with the same key.
- Two different sales share an id in your system.
How to fix it
- Use a unique, stable identifier of the sale as the key:
venta-884,pedido-2026-000123. - For a retry, send exactly the same body as the first attempt.
- For a new sale, use a new key.
Should you retry? Not with the same body and another key "to unblock it": review the sales logic.
All API errors are JSON: {"status": "error", "code": "...", "message": "...", "solution": "..."}. The code is stable; message and solution are in Spanish. Full table in the guide for agents.
Related
- IDEMPOTENCY_KEY_REQUIRED: the Idempotency-Key header is missing
- RATE_LIMIT_EXCEEDED or EMISSION_RATE_LIMIT_EXCEEDED: too many requests
Integrating receipts or invoices? Try it in the sandbox, without touching the real SII.
Try it today in the sandbox
Get a sandbox API key: a test company with certificate and folios already loaded and a simulated SII. When you are ready, each RUT costs CLP 5,990 a month (VAT included) with 20,000 documents a month.