Tax Reports error codes
Every public API error code emitted by Tax Reports, with its HTTP status, its type and a page per code.
Error codes emitted by Tax Reports. Each code links to its own page with the cause and the action to take.
| Code | Type | HTTP | Description |
|---|---|---|---|
insufficient_data_for_report | invalid_request_error | 422 | The period has no data to file, or an invoice of the period lacks a mandatory field for this model — typically the customer tax id. |
invalid_period | invalid_request_error | 422 | The period does not identify a filing: the year is outside the accepted range, or the quarter is missing or out of the range 1 to 4 for a quarterly model. |
report_format_invalid | invalid_request_error | 422 | The format is outside the catalogue txt_aeat, pdf, excel. |
tax_report_not_found | not_found_error | 404 | The identifier does not resolve to any tax report of the authenticated company. |
tax_report_type_invalid | invalid_request_error | 422 | The report type is outside the catalogue modelo_303, modelo_347, modelo_130. |
unsupported_format | invalid_request_error | 422 | The requested format is not available for this model: not every filing produces every output. |