Error codes
What to do for each code that e‑Factura Gateway adds to the shared ones, and the codes behind the refusals of the product window.
On this page
A refused request answers with the error object and a stable code, and a refusal changes nothing. The object, the codes every API shares and which of them to retry are on Errors. This page says what to do for the codes of this API.
{
"code": "blocked_by_checks",
"message": "A blocking check still fails. Nothing was sent and the invoice stays a draft.",
"requestId": "9ca99b13-8c47-408c-ae9c-03e90e9c94bd"
} Send the same request again after you fixed the cause, with the same operationId, or send a new change with a new one. See Idempotency and concurrency.
Codes of this API
| Code | HTTP | What to do |
|---|---|---|
company_not_found | 404 | List the companies of the account and use one of their ids. |
no_authorisation | 404 | Ask the representative to confirm access, then read the authorisation again. |
invoice_not_found | 404 | Read the id from a list or from the operation result. |
operation_not_found | 404 | Check the operationId; send the change if it was never sent. |
delivery_not_found | 404 | List the deliveries and use one of their ids. |
subscription_not_found | 404 | List the subscriptions and use one of their ids. |
no_stored_file | 404 | Wait for accepted, or read the invoice to see its status. |
invalid_status | 409 | Read the invoice and use the operation that fits its status. |
already_corrected | 409 | Read the correction through correctionOf and work on it. |
already_credited | 409 | Read the credit note through creditOf and work on it. |
authorisation_not_in_force | 409 | Read the authorisation of the company and renew it. |
authorisation_revoked | 409 | Ask the representative of the company to authorise the gateway again at the authority. |
no_renewal_needed | 409 | Read the company again when its status is renewal_needed. |
renewal_running | 409 | Wait for the representative, then check the renewal. |
no_renewal_running | 409 | Start a renewal first. |
sync_paused | 409 | Resume synchronisation, then synchronise. |
nothing_new | 409 | Nothing to do: try again later. |
already_paused | 409 | Nothing to do. |
not_paused | 409 | Nothing to do. |
endpoint_answering | 409 | Nothing to do. |
endpoint_not_answering | 409 | Repair the endpoint, check it, then replay the event. |
nothing_to_retry | 409 | Read the delivery and use the operation that fits its state. |
nothing_parked | 409 | Read the delivery and use the operation that fits its state. |
company_exists | 409 | Read the company with the list of companies. |
blocked_by_checks | 422 | Read the checks, fix the invoice and send it again. |
invalid_vat_rate | 422 | Use one of the rates the checks name as in force. |
no_such_line | 422 | Use the code of a line of the invoice. |
What the product window says
The product window refuses an action with a sentence. The API refuses the same action with the code on the right.
| The window says | The API answers |
|---|---|
| This invoice no longer exists. | invoice_not_found |
| This company no longer exists. | company_not_found |
| The invoice changed since you opened it. Nothing was applied. | revision_conflict |
| The invoice is not in a state that allows this. | invalid_status |
| A blocking check still fails. Nothing was sent. | blocked_by_checks |
| The company’s authorisation is not in force. Nothing was sent. | authorisation_not_in_force |
| A correction of this invoice already exists. | already_corrected |
| A credit note for this invoice already exists. | already_credited |
| That is not a VAT rate the invoice may carry. | invalid_vat_rate |
| The invoice has no such line. | no_such_line |
| No event is waiting for a retry. | nothing_to_retry |
| No event is parked. | nothing_parked |
| The event endpoint still does not answer. The event stays parked. | endpoint_not_answering |
| The event endpoint already answers. | endpoint_answering |
| Synchronisation is paused. Resume it first. | sync_paused |
| The authority lists nothing new for this company. | nothing_new |
| Synchronisation is already paused. | already_paused |
| Synchronisation is not paused. | not_paused |
| The authorisation does not need renewal yet. | no_renewal_needed |
| A renewal is already under way. | renewal_running |
| No renewal is under way. Start one first. | no_renewal_running |
| The authorisation was revoked. The company’s representative has to authorise the gateway again. | authorisation_revoked |
When the authority refuses
A refusal by the authority is not an error of the API. The request that sent the invoice was accepted; the answer comes later as the status rejected with the message of the authority. See The authority’s answers.