Is there a way to get a legal notice policy in the storefront API?

I am building a frontend using storefront API and facing I can only get privacyPolicy, refundPolicy, shippingPolicy and termsOfService not legalNotice.
https://shopify.dev/api/storefront/2022-01/objects/ShopPolicy#fields

However, I can get the legal notice policy via admin API though, I want to use storefront API because it supports translation header.

5 Likes

I am also struggling with this issue.
I am building a Hydrogen store, but there is no way to retrieve the legal notice policy.
As of July 2024, the only method is to use the GraphQL Admin API’s Shop query to fetch all policies and then use only the legal notice policy.
This means that the Admin API is called every time a customer accesses the page, and unnecessary data must also be fetched.

You can use the following query for Storefront API.

query LegalNoticePolicy($id: ID!) {
  node(id: $id) {
    ... on ShopPolicy {
      body
    }
  }
}

You can obtain an ID through Admin API. (e.g. “gid://shopify/ShopPolicy/00000000”)