My use case is as following:
-
Product vendor creates product catalog
-
I have built an external application which will get the products (a market place)
-
The external application will accept orders on its own UI
-
The external application calls Shopify REST/GraphQL APIs for creating order/draft order (as https://.myshopify.com/admin/api/2022-01/orders.json or https://.myshopify.com/admin/api/2022-01/graphql.json)
-
The external application registers web hook for fulfillment/create topic (using https://.myshopify.com/admin/api/2022-01/webhooks.json)
-
The external application received the web hook trigger and do some housekeeping tasks
Now my question is
I know I can filter content of web hook response using filter element in the web hook registration request. But consider the scenario that the vendor has tie up with other market place so all the orders from our market place as well as other market place will get created in shopify. When I create a webhook like order/create, I will receive triggers even for orders getting created in other market places. Is there any way to filter out other orders during web hook registration itself probably by applying some custom pattern on some of the order attributes?