Factuarea APIDevelopers

Products error codes

Every public API error code emitted by Products, with its HTTP status, its type and a page per code.

Error codes emitted by Products. Each code links to its own page with the cause and the action to take.

CodeTypeHTTPDescription
duplicate_pack_componentinvalid_request_error422The same product, variant, presentation or configuration appears more than once in the pack.
duplicate_promotion_iteminvalid_request_error422The same article appears more than once in the offer, and each article can have only one price rule.
gross_weight_not_allowedinvalid_request_error422This item cannot carry a gross transport weight: services have no weight, products and variants whose base unit is a mass unit (KGM, GRM) already weigh their quantity, and a variable-measure presentation is weighed on each line.
invalid_gross_weightinvalid_request_error422The gross transport weight is not a number, is zero or negative, has more than 4 decimals or exceeds the column ceiling. On a goods line of a transport control document, also when the quantity times the weight per unit gives a line weight that rounds to 0 kg or exceeds that ceiling.
invalid_pack_componentinvalid_request_error422A component cannot be part of a pack, for example a product sold by real weight, whose price is only known at the scale.
invalid_pack_imageinvalid_request_error422The uploaded file is not a usable pack image: it is not a JPG, PNG, WebP or GIF image, it exceeds the maximum size or it could not be read.
invalid_pack_pricinginvalid_request_error422The pack price is not valid for its mode: a missing or out-of-range value, more than two decimals, or a discount that equals or exceeds the price of the products separately.
invalid_pack_status_transitioninvalid_request_error422The requested status change is not allowed from the current pack status, for example activating a pack without sales channels or restoring one whose composition is blocked.
invalid_promotioninvalid_request_error422A field of the offer breaks one of its rules: the name, the text shown on the web, the dates, the time zone, the channels or the list of articles.
invalid_promotion_iteminvalid_request_error422An article of the offer is not valid: its target, its mode, its basis or its value breaks a rule.
pack_composition_too_smallinvalid_request_error422A pack needs at least two components, or a single counted product with a quantity of 2 or more.
pack_group_not_contiguousinvalid_request_error422The lines of the same pack are not consecutive in the document. Another line sits between them.
pack_image_limit_reachedinvalid_request_error422The pack already has the maximum of 5 images.
pack_in_useinvalid_request_error422The pack is referenced by issued documents, so deleting it would break their composition.
pack_line_lockedinvalid_request_error422A line that belongs to a pack group cannot change its product, quantity, unit price or discount.
pack_lines_must_be_expandedinvalid_request_error422The lines of a pack cannot be built by hand. The server splits the price among the components of the pack and sets the group data itself.
pack_not_foundnot_found_error404The identifier does not resolve to any pack of the authenticated company.
pack_not_sellableinvalid_request_error422The pack cannot be added to a document: it is archived, inactive, out of its availability dates, or one of its components is inactive.
pack_price_allocation_impossibleinvalid_request_error422The pack price cannot be split among its components because they have no price when bought separately.
pack_price_unreachableinvalid_request_error422The requested price including VAT cannot be reached exactly because VAT is rounded line by line.
pack_print_mode_not_allowedinvalid_request_error422The only print mode is full_breakdown: every product of the pack is printed as a regular line with the pack name.
pack_snapshot_invalidinvalid_request_error422The pack snapshot sent with the document line is unsigned, altered or malformed.
product_in_useinvalid_request_error422The product is referenced by issued documents or by other catalogue entries, and removing it would leave those references dangling.
product_not_foundnot_found_error404The identifier does not resolve to any product of the authenticated company.
promotion_not_foundnot_found_error404The identifier does not resolve to any offer of the authenticated company.
promotion_read_onlyinvalid_request_error422The offer has ended or been cancelled, so it is read-only and accepts no further changes.
promotion_startedinvalid_request_error422The offer has already started and is part of the price history. A started offer only allows changing its end date and cannot be deleted.
sku_already_existsconflict_error409Another product of the company already uses that SKU, and the SKU identifies the item uniquely in the catalogue.
slug_already_existsconflict_error409The slug is already used, as current or previous slug, by another product or pack of the company.

On this page

Need a hand?Contact support