Skip to content

idempotency_key_reused

Idempotency key reused

HTTP status422 Unprocessable Content
Returned byInvoicing API (/v1, API keys)
typeEnglish (default): https://flashpi.com.ec/docs/en/errors/idempotency_key_reused
Spanish (Accept-Language: es): https://flashpi.com.ec/docs/errors/idempotency_key_reused
It changes with the language of the answer: branch on code.
Retry?No: the same request gets the same answer. Change the request, or the state of what it acts on, first.

What to do

  • The key was already used for a different request (another method, path, query string or body). Use a new key for each new request, and the same key only to retry the same request.
  • A key that created a document stays tied to it for good: the answer then carries its documentId, so read that document instead of issuing again. See how it works.

Texts of the answer

The title and detail of the answer, in English by default and in Spanish when the Accept-Language entry with the highest priority (q) is es or es- plus a region, such as es-EC. A detail can be more specific than this one, and {name} marks a value of each occurrence.

Languagetitledetail
English (default)Idempotency key reusedThis Idempotency-Key was already used with a different request. Use a new key for a new request.
Spanish (Accept-Language: es)Clave de idempotencia reutilizadaEsta Idempotency-Key ya se usó con una solicitud diferente. Usa una clave nueva para cada solicitud nueva.