Skip to main content

Rules and supported checks

An entity condition's rule decides which check actually runs against it at checkout. Two checks exist today:

Age restriction (AGE_RESTRICTION)

Checks the shopper's age against a configured minimum.

  • Condition value: a minimum age, e.g. { "minimum_age": 18 }.
  • Denied if the shopper's age is below the minimum.
  • Can't be checked yet (soft denial) if the shopper's age isn't known at checkout at all — this is different from the shopper failing the check, and checkout may prompt for the missing information or retry.

License requirement (LICENSE_REQUIREMENT)

Checks whether the shopper holds a specific license — for example, a professional license required to buy a restricted product. There's no separate condition value for this one: the condition's own id is the license being checked for, so a condition called forestry_license checks that the shopper's licenses include forestry_license.

  • Denied if the shopper's known licenses don't include this one — including when the shopper is known to hold no licenses at all (an empty list is a definite answer, not a "we don't know yet").
  • Can't be checked yet (soft denial) only when license information wasn't supplied at all.

More checks may be added over time — this page will be kept up to date as they ship.