A product can be in multiple categories, and looking at the API I don’t see a way to get that category list even through the get product API.
I think your best bet is a server-side lookup table ( hit airtable ) or else try a custom field on the product that indicates the order notification recip. It looks like it’s at the SKU level under fieldData, so you’d might be populating a lot of them.