Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Storefront API checkoutCreate use email_or_phone attribute

Solved

Storefront API checkoutCreate use email_or_phone attribute

Bogdan_Hiriscau
Shopify Partner
3 0 0

Hello,

I am using the checkoutCreate mutation, everything is working flawlessly, but I need to complete the checkout without an E-mail address. Is it possible to replace the email attribute of the mutation with phone or email_or_phone like the checkout supports.

Accepted Solution (1)

Josh
Shopify Staff
1134 84 235

This is an accepted solution.

Hey @Bogdan_Hiriscau ,

 

At this time, this isn't possible when creating a checkout with the Storefront API. With that being said though, I'll file a request to have this added as it makes sense to mirror the behaviour of the online checkout. Thanks for bringing this up! 

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 2 (2)

Josh
Shopify Staff
1134 84 235

This is an accepted solution.

Hey @Bogdan_Hiriscau ,

 

At this time, this isn't possible when creating a checkout with the Storefront API. With that being said though, I'll file a request to have this added as it makes sense to mirror the behaviour of the online checkout. Thanks for bringing this up! 

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

sancodellc
Visitor
2 0 0

Hi @Josh 

 

Is there an update on creating a checkout with storefront API using phone number? This is important for markets with customer storefronts where customers frequently prefer giving their phone number over email.