How to get returns policy data from API

Shopify admin provides a way to configure some return params. How to get them via API? It looks like there’s no existing API for that, but are there any workarounds maybe?

Related:

Solved: Re: access the store return days setting for our app - Shopify Community.

1 Like

Hey @Siarhei_Karavai,

Have you tried the shopPolicyUpdate - GraphQL Admin mutation to see if it will work for you?

We are looking for a query to get data, not for mutation to update. And that mutation updates policy texts, so, unfortunately, wouldn’t help.

Sorry for my misunderstanding. I was thinking you were looking for the return policies, not the return rules settings.

The settings themselves aren’t queryable currently. Visibility in to the return eligibility as a result of the rules are available in the customer account API. More information on that here: Returns now supported in Customer Accounts API - Shopify developer changelog