Create and send a Draft Invoice when a product is tagged SUBA to multiple customers

Hi,

I have a python script that does this, but was wondering if there is a way to send a draft invoice to certain customers when a product is tagged “Subscribers”

so Far I have

product status updated > get product data

And I don’t know what to put into get product data

I think I put in tag:SUB but then send invoice gives me an error

Thanks for any help

How are you mapping the product to the customers now?