# Allergen tracking from the pantry item to the order

> Allergen tracking for bakeries. Tag an allergen once on the ingredient and it flows to every recipe, product and order.

ibakepro tracks allergens from the ingredient to the order: you tag each
pantry item once, and every recipe, product, storefront page and order that
uses it carries the declaration. When an ingredient changes, it lists every
product to relabel and waits for a person to approve the new label.

An allergen declaration is a legal statement. In a bakery of any size, an
allergen label often goes wrong when a supplier changes an ingredient and
nobody has a list of the products that use it.

Allergen tracking in ibakepro follows one rule: **never under-declare, and never publish a changed label without a
person**. Allergen tracking is on every plan.

## How do you tag an allergen?

An allergen is declared at one of three levels: **contains**, **may contain**
(cross-contamination risk) and **processed in** (facility risk). You set the
level on the pantry item, and it is the only place you have to set it.

When the same allergen arrives from two directions, the stronger declaration
always wins: an ingredient that definitely contains egg and a component that
may contain egg read as contains, not may contain.

## How does it reach the product and the order?

Tag peanuts on one ingredient and every component built from it, every product
built from those components and every order line for those products inherits
the declaration. That aggregation is automatic and happens as things are built.

Scanning a barcode when you add a pantry item can pre-fill its allergens from
the scanned product data. You still confirm it against the packet.

## Which allergen rules apply where you trade?

ibakepro's allergen list starts with the fourteen allergens UK and EU law
requires you to declare, which also covers the core lists elsewhere, and you
can add your own. What each country asks of a bakery:

- **United Kingdom.** Since 1 October 2021, food prepacked for direct sale
  (Natasha's Law), such as cookies, slices and sandwiches boxed on the premises before
  the customer asks for them, needs a label with the name, a full ingredients
  list and the 14 allergens emphasised, for example in bold.
- **Australia and New Zealand.** Plain English Allergen Labelling has applied
  since 25 February 2024: allergens are declared by plain names such as milk,
  wheat and almond rather than casein or semolina, with tree nuts named
  individually.
- **United States.** There are nine major food allergens: milk, eggs, fish,
  crustacean shellfish, tree nuts, peanuts, wheat, soybeans and sesame, which
  was added from 1 January 2023.
- **Canada.** The priority allergens include mustard and sulphites as well as
  the usual list, and wheat and triticale are declared together.

Rules for food sold unpackaged or made to order differ again, so check with
your local authority which apply to you.

## What happens when a supplier changes an ingredient?

ibakepro suggests the new allergen set. It never publishes one without a person.

A supplier reformulates. You update the pantry item. ibakepro finds every
dependent product, recomputes what its allergen set should now be and flags
those products **allergen review needed** with the suggested set attached.

None of the published allergen information changes until a person opens the
review and applies it.

> The roll-up is automatic. **The publish is a person's decision, every time**,
> because an allergen label is a food safety and legal statement.

Applying the review publishes the new set and pushes it out to your
storefront and search in the same step.

## Overrides, and per-variant precision

You can add an allergen by hand to a component or product the recipe does not
know about. Manual additions are **add-only**: they raise a declaration and
never remove one, and they survive every rebuild.

A size or flavour with no allergen data of its own shows everything the
product could contain, never an empty list.

## Where does allergen tracking show up?

On the storefront, a product page shows the levels for the variant the shopper
selected.

On the order document your customer receives, contains, may contain and
processed in each print as their own labelled row, along with any allergy note on
the order.

Where an ingredient goes, you can see every product it ends up in, which is the
list you need when a supplier issues a recall. Tagging is what drives all of
this, so tag every pantry item, and set dietary labels such as vegan or gluten
free on the product yourself; they are kept separate from allergens.
