Problem with return entity GraphQL

Topic summary

A developer is encountering a null response when querying Shopify’s GraphQL API for a return entity using an ID obtained from an order’s returns list.

The Issue:

  • The return ID is successfully retrieved from the order’s returns
  • However, when using that same ID to fetch the return entity directly, the query returns null
  • Screenshots are provided showing both the successful ID retrieval and the subsequent null response

Current Status:

  • The issue remains unresolved with no responses yet
  • The developer is seeking community input on why this discrepancy occurs and how to properly retrieve return entities using their IDs
Summarized with AI on October 29. AI used: claude-sonnet-4-5-20250929.

Hi community,

When I try to retrieve a return from Shopify using the ID I get from returns through orders, the entity returns null.

How can this happen if I’m using the return ID obtained from the order’s returns?

I’m attaching screenshots.

You’re welcome, everyone. :blush:

1 Like