Skip to main content
Solved

Invalid or unsupported phone number when I call api

  • December 29, 2022
  • 2 replies
  • 201 views

Forum|alt.badge.img+2

I try to call an API to create a profile, in field “phone_number” i have an error (Invalid or unsupported phone number).

My country code is +84 (Vietnam) and my phone number is 0986427842.

According to the documentation => “phone_number”:“+84976427833” but it invalid.

Here I try on postman:

Thanks for help.

Best answer by Ashley I.

Hi @tungnk !

 

I’d recommend first checking the How to collect SMS consent via API article to ensure that you have met all requirements. 

 

In regards to the ‘Invalid or unsupported phone number’ error you are receiving, it is possible this is displayed because you may be unable to appropriately collect consent from a Vietnam phone number; even in testing. At the time of this post, Klaviyo is only enabled to collect SMS consent and send text messages in the United States, Canada, United Kingdom, and Australia. You can read more about that here.

 

You may choose to try testing with a phone number from one of the above listed countries to confirm if this is the issue.

 

Hope this is helpful!

View original
Did this topic or the replies in the thread help you find an answer to your question?

2 replies

Ashley I.
Partner - Platinum
Forum|alt.badge.img+39
  • 2025 Champion
  • 242 replies
  • Answer
  • December 29, 2022

Hi @tungnk !

 

I’d recommend first checking the How to collect SMS consent via API article to ensure that you have met all requirements. 

 

In regards to the ‘Invalid or unsupported phone number’ error you are receiving, it is possible this is displayed because you may be unable to appropriately collect consent from a Vietnam phone number; even in testing. At the time of this post, Klaviyo is only enabled to collect SMS consent and send text messages in the United States, Canada, United Kingdom, and Australia. You can read more about that here.

 

You may choose to try testing with a phone number from one of the above listed countries to confirm if this is the issue.

 

Hope this is helpful!


Forum|alt.badge.img+2
  • Author
  • Contributor I
  • 2 replies
  • December 29, 2022

Hi @AshCRO!

Your answer is really helpful, thanks for your help.