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 andnullremoves 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
422parameter_invalid_valuewithparambarcode, and nothing is written. Another company can use the same code. - Full view only.
barcodeisnullwhen the product has none. Thestorefrontview 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
barcodein theproduct.*events.