<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
Set SMS Factor - 400 Error " Invalid Phone Number"
Okta Identity Engine
Multi-Factor Authentication
Overview

This article describes a scenario where, depending on the country used to send the SMS code, the below error can be received:

400 Error 
Invalid Phone Number


 

Applies To
  • SMS Factor
  • International SMS
Cause
A country such as Argentina can have different behaviors when sending SMS codes.
Solution
To send an SMS text message to an Argentine cell phone from another country (in this case, the US), the 9 used internationally when dialing the number for a voice call (and the 15 used for calls within Argentina) is omitted.
  • For example, if the mobile number in Argentina is (11) 15 1234–5678, a voice call from abroad would be dialed as +54 9 11 1234 5678, but a text message would require +54 11 1234 5678, with +54 9 11 1234 5678 resulting in an invalid phone number error.
Note! Using Factors API to set SMS for an Argentina mobile number will still require the '9'.
 
Loading
Set SMS Factor - 400 Error " Invalid Phone Number"