Use Cases
Display live inventory on a storefront or menu
Menu and e-commerce integrations need current product data: what's in stock, what it's called, and what strain it is.
Pull active packages
Code
quantity tells you what's available. is_on_hold tells you whether it should be pulled from the menu even though it's technically active.
Enrich with item and strain details
Code
Match packages to their item and strain records for display fields like unit_weight, genetics, and indica/sativa split.
Show lab results if you display COAs
Code
Gotchas
There's no modified_since filter, so keep a reasonable poll interval rather than pulling the full active set on every page load.
Last modified on