Hello,
can I use events and listening to the changes in Shopify only for custom apps or is it also possible for public apps?
-> trigger: shopify.on("products/create"),
Events
What follows is a small selection of webhook topics and associated payloads. A complete list of possible topic names and payloads can be found here.
fulfillments/create
Occurs when a fulfillment is created. Official Shopify docs.
usage.ts
client.defineJob({
id: "<my-id>",
name: "<my-job-name>",
version: "0.1.0",
trigger: shopify.on("fulfillments/create"),
run: async (payload, io, ctx) => {
// Add tasks here
},
});