With the REST api deprecated and all new apps must use GraphQL by April 2025, I am migrating our solution from REST to GraphQL. However, one significant roadblock is the field names returned by webhooks are in snake_case but the data returned by GraphQL api is in camelCase. This discrepancy rendered the webhook notifications useless in a solution that uses GraphQL.
Is there any plan for Shopify to return webhook data with the same field names as the GraphQL API?
1 Like
Hi @John.Adams, there’s no immediate plans to rename the fields in the webhook data to match GraphQL field names. The fields previously were very similar to the REST API as you mentioned; however, they are in fact distinct APIs, where in some cases the fields between REST and webhooks may have differed slightly.
Depending on what exactly you are trying to accomplish, you should be able to map the webhook fields to the corresponding GraphQL, albeit manually.
We are always looking to improve the usability of our APIs so we’ve noted your feedback for future consideration.
1 Like