Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Age checks

    What happens when an age-restricted item is scanned, who approves and what is recorded.

    Some items of the catalogue are marked age-restricted. When one is scanned, the line is held and the lane stops with an intervention whose reason is age_check. The shopper’s screen says only that an age check is needed. The decision belongs to an attendant, who checks the shopper in person.

    1. Scan

      addLine with the code of the item. The line is held and the lane is assistance_needed.

    2. Read the intervention

      It is in the queue with reason=age_check and carries the lineId.

    3. Decide

      approveIntervention releases the line. It becomes awaiting_weight, the lane is weight_pending, and the line carries ageApprovedBy. refuseIntervention voids the line.

    4. Weigh

      The shopper puts the item on the scale and you report the weight as for any item. See Weights and produce codes.

    An age check that waits

    {
      "id": "626ba1d4-2b3c-46d6-ad7d-962a8e1d8a98",
      "storeId": "5c15af2a-ec60-41c3-b91c-db5b305b4fd1",
      "laneId": "b0623320-6fc1-4c0f-8a09-af041e8d91ed",
      "basketId": "9cb6d664-6e70-4497-b962-5c6e9fbb069a",
      "lineId": "0a2091f1-a853-4bbd-864c-b52dd2a05f54",
      "reason": "age_check",
      "status": "waiting",
      "expectedGrams": null,
      "measuredGrams": null,
      "raisedAt": "2026-11-23T07:11:20Z",
      "decidedAt": null,
      "decidedBy": null,
      "revision": 1
    }

    The same intervention once approved

    {
      "id": "626ba1d4-2b3c-46d6-ad7d-962a8e1d8a98",
      "storeId": "5c15af2a-ec60-41c3-b91c-db5b305b4fd1",
      "laneId": "b0623320-6fc1-4c0f-8a09-af041e8d91ed",
      "basketId": "9cb6d664-6e70-4497-b962-5c6e9fbb069a",
      "lineId": "0a2091f1-a853-4bbd-864c-b52dd2a05f54",
      "reason": "age_check",
      "status": "approved",
      "expectedGrams": null,
      "measuredGrams": null,
      "raisedAt": "2026-11-23T07:11:20Z",
      "decidedAt": "2026-11-23T07:13:00Z",
      "decidedBy": "cristina-lungu",
      "revision": 2
    }

    What is recorded

    • The intervention keeps decidedBy and decidedAt.
    • The line keeps ageApprovedBy, so the basket and its receipt say who approved.
    • Events intervention.raised and intervention.resolved tell your software when the check began and when it was decided.

    An approval by a person who is not an attendant of the store is refused with not_an_attendant and nothing is recorded.