Factuarea APIDevelopers

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.

CodeTypeHTTPDescription
fixed_asset_block_not_of_this_invoiceinvalid_request_error422The 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_invalidinvalid_request_error422The 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_disposedinvalid_request_error422The 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_quotasinvalid_request_error422The fixed asset has quotas already included in a filed modelo 130, and those quarters are frozen.
fixed_asset_in_service_date_lockedinvalid_request_error422The asset has quotas already included in a filed modelo 130, so its start-of-use date can no longer change.
fixed_asset_not_foundnot_found_error404The fixed asset does not exist in this company. A fixed asset that belongs to another company answers exactly the same.
fixed_asset_origin_invalidinvalid_request_error422The purchase or the line indicated as the origin of the fixed asset does not exist in this company.
fixed_asset_origin_line_takeninvalid_request_error422The purchase line chosen as the origin already has a fixed asset: a line can have only one.
fixed_asset_previously_amortized_invalidinvalid_request_error422The 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_declaredinvalid_request_error422A later quarter of the same year is also declared, and only the last declared quarter can be reopened.
fixed_asset_rate_exceeds_type_maximuminvalid_request_error422The 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_invalidinvalid_request_error422The change of status requested is not allowed from the current status of the fixed asset.
fixed_asset_type_invalidinvalid_request_error422The 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_invalidinvalid_request_error422A 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_quotasinvalid_request_error422One 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.

On this page

Need a hand?Contact support