FROM CACHE - en_header

Reading Checkout Settings

Solved
copleykj
Excursionist
21 0 3

Is there any possible way to read the checkout settings for a shop? Knowing if the shop requires customer accounts for checkout, or if they prefer to collect email instead of email-or-phone would be helpful to the sales channel app that I am building.

Accepted Solution (1)

Accepted Solutions
Josh
Shopify Staff
Shopify Staff
1134 83 215

This is an accepted solution.

Hey there, 

 

You can retrieve the customer account preferences for a shop using GraphQL, but not REST. An example query to get that would be : 

 

query{
 shop {
  customerAccounts
 }
}

As far as the e-mail or e-mail/phone setting though, I'm not aware of a way to grab that one.

 

 

Josh | 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

View solution in original post

Replies 3 (3)
Josh
Shopify Staff
Shopify Staff
1134 83 215

This is an accepted solution.

Hey there, 

 

You can retrieve the customer account preferences for a shop using GraphQL, but not REST. An example query to get that would be : 

 

query{
 shop {
  customerAccounts
 }
}

As far as the e-mail or e-mail/phone setting though, I'm not aware of a way to grab that one.

 

 

Josh | 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

copleykj
Excursionist
21 0 3

Can you offer any insight into whether this will be supported in the REST API in the future?

kavishatalsania
Tourist
14 0 3

Where can I find information about whether store is using our app as post purchase or not in checkout settings?

kavishatalsania_0-1633330513407.png