I’m using the latest stable API (version 2022-10-17) to create a profile and I’m running into issues with the phone number. I understand it needs to be E.164 compliant which my numbers are, but I’m running into an issue with fake phone numbers.
For example this phone number won’t work:
+14161112222
But this one will:
+14168902222
According to the E.164 guidelines both numbers should be correct. Why is the first one failing for me?
The error response is:
"detail"=>"Invalid or unsupported phone number",
"source"=>{"pointer"=>"/data/attributes/phone_number"}
And I’m using the endpoint for create:
https://a.klaviyo.com/api/profiles/
Issues with invalid of unsupported phone number from the API
Best answer by alex.hong
Hi
The first number is fake (hence why it's invalid). Do you also think the second one is also fake? I have checked and it's legitimate (hence why it's working). You can run them both through here: https://www.phonevalidator.com/results.aspx
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.