You'll need to use the Shopify API to do that.
Register webhooks to pick up on inventory changes. You'll also have the product and variant ids.
You'll need to use the Shopify API to do that.
Register webhooks to pick up on inventory changes. You'll also have the product and variant ids.