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

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

Tom124
Visitor
1 0 5

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.

Reply 1 (1)

wugk
Shopify Partner
1 0 0

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.