REST API deprecation and webhooks

REST API deprecation and webhooks

carl-mgp
Shopify Partner
6 0 1

We have a setup where we listen for webhooks for paid orders and product updates. Based on this document

 

https://shopify.dev/changelog/deprecation-timelines-related-to-new-graphql-product-apis

 

REST api will eventually be deprecated. We're trying to look for information related to how webhook data will now be presented because while the interfacing app set up in Shopify Admin has a Webhook Version and the data being passed has a graphQL ID called admin_graphql_api_id, the data from the webhook is in REST format. Someone asked this question before but it looks like since then, it's stayed in JSON format.

 

https://community.shopify.com/c/webhooks-and-events/will-webhooks-send-graphql-payloads/td-p/1973228

 

We would prefer the data from the webhooks still be in JSON format so we don't have to change our endpoints but we want to confirm if there's documentation somewhere related to the change

 

thanks

Reply 1 (1)

carl-mgp
Shopify Partner
6 0 1

okay so based on this, it looks like any webhooks created before will still work

 

https://community.shopify.dev/t/product-crud-webhooks-that-were-created-with-the-rest-admin-api/4402

 

based on the documentation here

 

https://shopify.dev/docs/api/admin-graphql/2024-10/mutations/eventbridgewebhooksubscriptioncreate?la...

 

they will still respond in JSON format. but any future webhooks must be created via graphQL