Return Rules: How to get the return window assocaited with a shop through graphQl Admin API

Topic summary

A developer is building a feature that requires attribution to occur only after a shop’s return window has expired.

Current Challenge:

  • Can retrieve shop policies via GraphQL Admin API
  • Cannot find how to specifically query the return window duration/timeframe
  • Needs to programmatically access return window settings to implement time-based logic

Status: The question remains unanswered with no solutions or workarounds provided yet. The post includes a screenshot (likely showing relevant API documentation or current implementation) that may contain additional context about the attempted approach.

Summarized with AI on October 27. AI used: claude-sonnet-4-5-20250929.


I am trying to build a feature which requires attribution to be made only after the return window has been exceeded. How to get the same using graphql admin api. I can get the Shop policy but I want the

1 Like