Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
Hi I am creating business tools for the my client they want to get the all the app subscription data into their business tools with real time all the transaction.
I am refereeing this partner blog but not find all the details input Shopify Partner.
does any webhook option,
API https://www.shopify.com/in/partners/blog/partner-api
`query {
transactions(types: [APP_SUBSCRIPTION_SALE]) {
edges {
node {
id
createdAt
... on AppSubscriptionSale {
netAmount {
amount
}
app {
name
}
shop {
myshopifyDomain
}
}
... on ServiceSale {
netAmount {
amount
}
shop {
myshopifyDomain
}
}
}
}
}
}
`
Hi!
If I understand well your questions, you'd like to know if it's possible to subscribe to a webhook topic to get all the app subscriptions in real time. Unfortunately we don't provide such webhook topic but we provide a way to get notified when an app subscription is updated: https://shopify.dev/docs/api/admin-graphql/unstable/enums/WebhookSubscriptionTopic#value-appsubscrip....
I hope this helps.
Cheers,
Cedric | Developer @ Shopify
To learn more visit the Shopify Help Center or the Community Blog.
@cdarne Thanks lot for the your valuable answers This is web hook from the partner API or app development ?
if you can share any code reference that was really help me.
Hey! The API is for the App development: the required code depends on which language/framework you use. Here's a good starting point to help you create webhooks: https://shopify.dev/docs/apps/webhooks/configuration
To learn more visit the Shopify Help Center or the Community Blog.
@cdarne I am using the node react repo from the shopify git https://github.com/Shopify/shopify-app-template-node
can you please help with any code snippets.