Skip to main content
Solved

Show Invalid or unsupported phone number for the Api

  • December 22, 2022
  • 1 reply
  • 202 views

Forum|alt.badge.img+2
$data = [
        "data" =>
        [
            "type" => "profile",
            "attributes" => [
                "email" => "ajay.makwana+8554@gmail.com",
                "first_name" => "Ajaymak",
                "phone_number" => "+14168902222"
            ]
        ]
    ];

This is the phone number I’m trying to enter and latest API version 2022-10-17.  But Still kit show me an error. Please help with me that.

{
  "errors": [
    {
      "id": "06b72c92-4b68-4680-b3cb-456f499468da",
      "status": 400,
      "code": "invalid",
      "title": "Invalid input.",
      "detail": "Invalid or unsupported phone number",
      "source": {
        "pointer": "/data/attributes/phone_number"
      },
      "meta": {

      }
    }
  ]
}

 

Best answer by Brian Turcotte

Hi @Fanbasis and welcome to the Community!

 

There are a few reasons why this error message could occur. Firstly, the number has to be real/valid and in E.164 format, although the number in your example appears to meet these requirements. In the future, you can check if a number is valid using this third-party tool.

 

On the other end, this error can also occur if you don’t have SMS set up in your Klaviyo account, which you can enable/verify from Account > Settings > SMS

You can find more directions on how to set up SMS through this article here.

 

I hope this helps, and thanks for using the Community!

 

- Brian

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

1 reply

Brian Turcotte
Forum|alt.badge.img+37
  • Klaviyo Alum
  • 1393 replies
  • Answer
  • December 22, 2022

Hi @Fanbasis and welcome to the Community!

 

There are a few reasons why this error message could occur. Firstly, the number has to be real/valid and in E.164 format, although the number in your example appears to meet these requirements. In the future, you can check if a number is valid using this third-party tool.

 

On the other end, this error can also occur if you don’t have SMS set up in your Klaviyo account, which you can enable/verify from Account > Settings > SMS

You can find more directions on how to set up SMS through this article here.

 

I hope this helps, and thanks for using the Community!

 

- Brian