How to Identify the Restock Location for Returns in Shopify Webhook Data

Hello Shopify Community,

I’m working on integrating Shopify’s return process, and I’ve encountered a challenge regarding restock locations for returned items. When a return is created, the order/update webhook is triggered, and the payload includes a returns array with details like return_line_items, quantity, return_reason, etc.

However, I noticed there’s no location_id or any information about the location selected for restocking. Here’s an example of the returns data I receive in the webhook:

"returns": [
  {
    "id": 18552979555,
    "closed_at": null,
    "name": "#1042-R1",
    "order_id": 5953338343523,
    "return_line_items": [
      {
        "id": 28029747299,
        "fulfillment_line_item_id": 12924528951395,
        "line_item_id": 15312639000675,
        "quantity": 1,
        "return_reason": "unknown",
        "return_reason_note": "",
        "type": "ReturnLineItem",
        "unit_price": null
      }
    ]
  }
]

When creating the return, I can select a location for restocking, but it’s not reflected in the webhook data. Is there a way to identify which location is used for restocking directly from the webhook? Alternatively, is there an API endpoint or method that would allow me to retrieve the selected restock location based on this return data?

Any insights or suggestions on how to work around this would be highly appreciated. Thank you!