Factuarea APIDevelopers
Added

Barcode of the product

A product carries its own barcode, next to the ones of its variants and presentations and unique in the catalog of the company, and the barcode examples of the API Reference are valid EAN-13 codes. 22 updated operations and the MCP tools that mirror them.

3 December 2026 — A product now carries its own barcode: the one of the article sold as it is, next to the barcodes of its variants and presentations. It is written when the product is created or updated, it is read wherever the API returns a product, and it shares one namespace with every barcode of the catalog of the company. The barcode examples of the API Reference are now valid EAN-13 codes. No operation is new: the 22 that change are listed at the end of this page and link to their API Reference page.

The field

POST /v1/companies/{company}/products and PATCH /v1/companies/{company}/products/{product} take barcode, and the full view of a product publishes it:

{
  "name": "Vino tinto D.O. Rioja",
  "sku": "VINO-RIOJA",
  "price": "3.70",
  "barcode": "8437012345690"
}
  • Text of up to 64 characters. Surrounding spaces are trimmed and an empty value means none. On PATCH, an absent key keeps the barcode and null removes it.
  • One namespace per company. The barcode cannot be repeated by any other product, variant or presentation of the company, including the variants and presentations of the product itself. A repeated one is 422 parameter_invalid_value with param barcode, and nothing is written. Another company can use the same code.
  • Full view only. barcode is null when the product has none. The storefront view does not publish it.

GS1 check digit

A numeric code of 8, 12, 13 or 14 digits is a GTIN (EAN-8, UPC-A, EAN-13, GTIN-14), and its last digit is the check digit: modulo 10 with weights 3 and 1 from the right. A scanner rejects a GTIN whose check digit is wrong. The API stores any text, as it does for variants and presentations, so codes of other symbologies, such as Code 128 or internal references, are accepted: validate a GTIN before sending it.

Two examples of the API Reference were not valid EAN-13 codes: 8437012345678 in the presentations and 8437012345685 in the variants. They are now 8437012345676 and 8437012345683, and the example product carries 8437012345690.

MCP tools

create_product and update_product take barcode with the same rules as POST and PATCH, and the tools that return a product publish it. The company comes from the MCP session. See the tool catalog.

Operations that change

  • Products. The operations that return or write a product publish barcode: creating, reading, listing, searching, updating, finding by SKU or external id, activating or deactivating, adjusting the stock and uploading the video of a product, the low-stock report and the replacement of a base unit.
  • Variants and presentations. Their examples carry valid EAN-13 codes.
  • Events and webhook deliveries. The events feed and the deliveries of a webhook endpoint carry the product snapshot with barcode in the product.* events.

Updated endpoints22

EndpointDescription
POST/v1/companies/{company}/productsCreate a product
PATCH/v1/companies/{company}/products/{product}Update a product
GET/v1/companies/{company}/products/{product}Retrieve a product
GET/v1/companies/{company}/productsList all products
GET/v1/companies/{company}/products/searchSearch products
POST/v1/companies/{company}/products/find-by-external-idFind a product by external ID
POST/v1/companies/{company}/products/find-by-skuFind a product by SKU
GET/v1/companies/{company}/products/low-stock-reportList products below the stock threshold
POST/v1/companies/{company}/products/{product}/toggle-activeToggle product active state
PATCH/v1/companies/{company}/products/{product}/stockUpdate product stock
POST/v1/companies/{company}/products/{product}/videoUpload a video to a product
POST/v1/companies/{company}/products/{product}/base-unit-replacementReplace a product by changing its base unit
POST/v1/companies/{company}/products/{product}/variantsCreate a product variant
GET/v1/companies/{company}/products/{product}/variantsList product variants
PATCH/v1/companies/{company}/products/{product}/variants/{variant}Update a product variant
POST/v1/companies/{company}/products/{product}/presentationsCreate a product presentation
GET/v1/companies/{company}/products/{product}/presentationsList product presentations
PATCH/v1/companies/{company}/products/{product}/presentations/{presentation}Update a product presentation
GET/v1/companies/{company}/eventsList all events
GET/v1/companies/{company}/events/{event}Retrieve an event
GET/v1/companies/{company}/webhook-endpoints/{webhook_endpoint}/deliveriesList webhook deliveries
GET/v1/companies/{company}/webhook-endpoints/{webhook_endpoint}/deliveries/{delivery}Retrieve webhook delivery

On this page

Need a hand?Contact support