Store returns setting api

Hi,

We have app where merchants can set up discount campaigns and we promote them. There is input required where merchant is required to put in their return window, ie number of days for return of order etc. To avoid mismatch and errors we want to pull this information for our form directly from the Store > Settings > Policies > Manage Returns = 7 days or 14 days or 30 days… cant find any mutation, any help would be great.

Hi - just to confirm, you want to be able to calculate what the return window should be, based on this info:

yes / we need to check or read this everytime a campaign is made.

That specific data point doesn’t appear to be accessible via the API - the closest would be querying the shopPolicy object here: ShopPolicy - GraphQL Admin

Can you parse rules from the data returned in that?

will check with my devs, i think not though, will update