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.

Phone Number Validation

Phone Number Validation

joshheppell
Visitor
1 0 1

I've been moving over all our trade applications to B2B in Shopify using GQL, but hundreds have invalid or blank phone numbers when trying to create company contacts through GQL. Phone numbers are not validated when creating a customer through Shopify, so is there a way to skip this validation when using GQL? This is leading to hour of manual work to fix these one by one. Thanks in advance!

Reply 1 (1)

pdaire
Visitor
2 0 0

Is not the answer for your specific question, but it might be a valid response:

Instead of cleaning invalid or blank numbers ensure that you receive the actual phone number. You can use this very simple service (whatsauth.com). Copy and paste the JS and you'll receive only verified numbers.

You can follow this docs https://docs.whatsauth.com/guides/web-installation/shopify-install.html if you don't know how to add custom js to your site/page.

 

I hope it helps