Fixed Assets error codes
Every public API error code emitted by Fixed Assets, with its HTTP status, its type and a page per code.
Error codes emitted by Fixed Assets. Each code links to its own page with the cause and the action to take.
| Code | Type | HTTP | Description |
|---|---|---|---|
fixed_asset_block_not_of_this_invoice | invalid_request_error | 422 | The id of the fixed_asset block of an expense line is not the id of a fixed asset of this expense: it does not exist, belongs to another expense or to another company. |
fixed_asset_disposal_invalid | invalid_request_error | 422 | The disposal breaks a rule: its date is earlier than the date the asset started to be used or than the last declared quarter, a sale has no sale_amount, or a disposal that is not a sale carries one. |
fixed_asset_disposed | invalid_request_error | 422 | The fixed asset was already disposed of: its plan was cut at the disposal date and it can be neither edited nor disposed of again. |
fixed_asset_has_declared_quotas | invalid_request_error | 422 | The fixed asset has quotas already included in a filed modelo 130, and those quarters are frozen. |
fixed_asset_in_service_date_locked | invalid_request_error | 422 | The asset has quotas already included in a filed modelo 130, so its start-of-use date can no longer change. |
fixed_asset_not_found | not_found_error | 404 | The fixed asset does not exist in this company. A fixed asset that belongs to another company answers exactly the same. |
fixed_asset_origin_invalid | invalid_request_error | 422 | The purchase or the line indicated as the origin of the fixed asset does not exist in this company. |
fixed_asset_origin_line_taken | invalid_request_error | 422 | The purchase line chosen as the origin already has a fixed asset: a line can have only one. |
fixed_asset_previously_amortized_invalid | invalid_request_error | 422 | The amount already amortized before Factuarea is not valid: the year is earlier than the year the asset started to be used, the amount is negative or exceeds the amortizable value, only one of the two data was sent, or it was changed after quotas were declared. |
fixed_asset_quarter_not_last_declared | invalid_request_error | 422 | A later quarter of the same year is also declared, and only the last declared quarter can be reopened. |
fixed_asset_rate_exceeds_type_maximum | invalid_request_error | 422 | The depreciation_rate is higher than the maximum of the fixed asset type (Orden de 27 de marzo de 1998 simplified table, for example 26 % for IT equipment). |
fixed_asset_transition_invalid | invalid_request_error | 422 | The change of status requested is not allowed from the current status of the fixed asset. |
fixed_asset_type_invalid | invalid_request_error | 422 | The asset_type sent is not in the catalogue of fixed asset types (the "Tipo de bien" of the AEAT investment-goods book). |
fixed_asset_value_invalid | invalid_request_error | 422 | A value of the asset breaks its basic rules: the name must be 1 to 150 characters, the amortizable value and the business-use percentage must be greater than zero, the rate must be between 0 and 100 %, and the yearly quota cannot round to zero cents or stretch the plan beyond the maximum years of the type. param names the field. |
purchase_invoice_has_declared_fixed_asset_quotas | invalid_request_error | 422 | One of the fixed assets of the expense has quotas already included in a filed modelo 130, so the expense cannot be deleted, cancelled, returned to draft or lose the line of that asset. |
Related
Error codes by category
Find an error by the category that emits it.
Full reference table
All codes, HTTP statuses, types and descriptions in one reference.
Error model
Interpret the error envelope and handle errors by code.