FROM CACHE - en_header

How to get a store's contact us page url

user072319
Explorer
94 0 9

Hello there,

I'm creating an app in Shopify and for Contact Us link I want shopify store's contact us page url? How can I get it? Also I want the contact form id property value. Is there any API like Pages api which I can use?

 

Any help would be appreciated.

Replies 2 (2)
Alex
Shopify Staff
Shopify Staff
1561 81 324

I assume that in most cases the contact page is a Page resource, so you'd use the pages API as you implied: https://help.shopify.com/en/api/reference/online-store/page

 

From that you could infer the contact page by name, use the handle to construct the URL (shop.myshopify.com/pages/contact-page), and get the ID.

 

Cheers.

Alex | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

themusaib
New Member
1 0 0

{{contact.url}}