Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Will upcoming Refund and RefundLineItem API changes affect Order webhooks in any way?

Will upcoming Refund and RefundLineItem API changes affect Order webhooks in any way?

Tdfrantz
Shopify Partner
3 0 0

Hi, 

  I am wondering if the upcoming changes to Refund and RefundLineItem GraphQL API objects will also affect the Order events that are sent to Order webhooks.

In other words, will the JSON format of the Order events change -- in particular the "refunds" and "refund_line_items" arrays. 

I am expecting it will not change since it not listed anywhere, but I would like to double check.

Thanks.

Replies 2 (2)

awwdam
Shopify Staff
249 42 38

Hey @Tdfrantz,

I took a look at our upcoming 2021-07 Release Notes and our Developer Changelog, where larger API changes and releases are usually documented, and couldn't find reference to any changes around Refund or RefundLineItem.

To get a better idea of which upcoming changes you are referencing in your post - would you be able to share a screenshot or link to the resource you are following? With this, I'd be happy to take a closer look or pass on any insights I can!

awwdam | API Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

Tdfrantz
Shopify Partner
3 0 0

Thanks for the reply, 

  My app listens to the "orders/created" and "orders/updated" webhook events, and goes through the line items and reports sales to another platform with the purpose of maintaining inventory counts across both Shopify and our service. This includes reporting refunded items that are restocked, since they'll be available again. If there is no change to the Refunds or RefundLineItems arrays in the JSON events that are sent to those webhooks then there will be nothing to change in advance of the July 1st changes.