Validate phone number
Foxentry allows you to check validity and the existence of phone numbers. It can also give you additional information about the validated phone number based on the validationType option.
Please pay attention to the formatNumber option. This option defines the format of number that should be considered as valid.
Foxentry validator is able not only to evaluate the validity of the inputed information but it also can fix various typos, errors and missing data. Foxentry can also suggest more suitable alternatives to the data sent in query. Please pay attention to the result, resultCorrected and suggestions in the response.
Always check result.proposal in the response for a proposed solution by Foxentry how you should process the response in your form or application.
Headers
Api-VersionstringAuthorizationstringrequiredBody params
requestobjectrequiredqueryobjectrequiredoptionsobjectbasicfalsefullclientobjectEmpty fields use the example value shown in grey. Everything you type here is written into the request on the right, and the other way round.
Responses
statusintegerrequestobjectendpointstringcodestringcustomIdstring | nullqueryobjectprefixstringnumberstringnumberWithPrefixstringoptionsobjectvalidationTypestringbasicextendedallowedPrefixesarray[string]preferredPrefixesarray[string]defaultPrefixstring | nullformatNumberbooleancorrectionModestringfullformatsuggestionnoneclientobjectipstringcountrystringlocationobjectlatnumberlonnumberresponseobjectresultobjectisValidbooleanproposalstringvalidvalidWithSuggestioninvalidinvalidWithCorrectioninvalidWithPartialCorrectioninvalidWithSuggestioninvalidWithCorrectionWithSuggestionNonedataobjectcountryobjectcodestringprefixstringprefixstring | nullnumberstring | nullnumberWithPrefixstring | nullcarrierobjectnamestring | nulltypestring | nulllandlinemobilevoipNoneformatobjectnationalstring | nullnationalFormattedstring | nullinternationalstring | nullinternationalFormattedstring | nullerrorsarray[object]groupstringSYNTAXtypestringCHARACTERSINVALIDUNABLE_TO_PROCESSVALUE_LENGTHVALUE_PART_EXTRAVALUE_PART_MISSINGsubtypestringNOT_ALLOWEDWHITESPACESTOO_LONGTOO_SHORTCONTEXTseveritystringinfowarningcriticalrelatedToarray[string]descriptionstringDisallowed characters were used in the value.Value contains invalid use of spaces.Value has invalid syntax.Cannot be processed due to the invalid syntax.Value is too long.Value is too short.Value contains unneccessary context.resultCorrectedobjectisValidbooleandataobjectcountryobjectcodestringprefixstringprefixstring | nullnumberstring | nullnumberWithPrefixstring | nullcarrierobjectnamestring | nulltypestring | nulllandlinemobilevoipNoneformatobjectnationalstring | nullnationalFormattedstring | nullinternationalstring | nullinternationalFormattedstring | nullerrorsarray[object]groupstringSYNTAXtypestringCHARACTERSINVALIDUNABLE_TO_PROCESSVALUE_LENGTHVALUE_PART_EXTRAVALUE_PART_MISSINGsubtypestringNOT_ALLOWEDWHITESPACESTOO_LONGTOO_SHORTCONTEXTseveritystringinfowarningcriticalrelatedToarray[string]descriptionstringDisallowed characters were used in the value.Value contains invalid use of spaces.Value has invalid syntax.Cannot be processed due to the invalid syntax.Value is too long.Value is too short.Value contains unneccessary context.fixesarray[object]groupstringFORMATVALUEtypestringCHANGEDsubtypestringCASE_SENSITIVITYDIACRITICSWHITESPACESTYPONonedataobjecttypeFromstringtypestringvalueFromstringvaluestringsuggestionsarray[object]isValidbooleandataobjectcountryobjectcodestringprefixstringprefixstring | nullnumberstring | nullnumberWithPrefixstring | nullcarrierobjectnamestring | nulltypestring | nulllandlinemobilevoipNoneformatobjectnationalstring | nullnationalFormattedstring | nullinternationalstring | nullinternationalFormattedstring | nullerrorsarray[object]groupstringSYNTAXtypestringCHARACTERSINVALIDUNABLE_TO_PROCESSVALUE_LENGTHVALUE_PART_EXTRAVALUE_PART_MISSINGsubtypestringNOT_ALLOWEDWHITESPACESTOO_LONGTOO_SHORTCONTEXTseveritystringinfowarningcriticalrelatedToarray[string]descriptionstringDisallowed characters were used in the value.Value contains invalid use of spaces.Value has invalid syntax.Cannot be processed due to the invalid syntax.Value is too long.Value is too short.Value contains unneccessary context.fixesarray[object]groupstringFORMATVALUEtypestringCHANGEDsubtypestringCASE_SENSITIVITYDIACRITICSWHITESPACESTYPONonedataobjecttypeFromstringtypestringvalueFromstringvaluestringerrorsarray[string]statusintegererrorsarray[object]groupstringREQUESTAUTHVALUESERVERtypestringsubtypestring | nullseveritystringcriticalwarninginforelatedToarray[string]descriptionstringstatusintegererrorsarray[object]groupstringREQUESTAUTHVALUESERVERtypestringsubtypestring | nullseveritystringcriticalwarninginforelatedToarray[string]descriptionstringstatusintegererrorsarray[object]groupstringREQUESTAUTHVALUESERVERtypestringsubtypestring | nullseveritystringcriticalwarninginforelatedToarray[string]descriptionstringstatusintegererrorsarray[object]groupstringREQUESTAUTHVALUESERVERtypestringsubtypestring | nullseveritystringcriticalwarninginforelatedToarray[string]descriptionstringstatusintegererrorsarray[object]groupstringREQUESTAUTHVALUESERVERtypestringsubtypestring | nullseveritystringcriticalwarninginforelatedToarray[string]descriptionstringstatusintegererrorsarray[object]groupstringREQUESTAUTHVALUESERVERtypestringsubtypestring | nullseveritystringcriticalwarninginforelatedToarray[string]descriptionstringstatusintegererrorsarray[object]groupstringREQUESTAUTHVALUESERVERtypestringsubtypestring | nullseveritystringcriticalwarninginforelatedToarray[string]descriptionstringstatusintegererrorsarray[object]groupstringREQUESTAUTHVALUESERVERtypestringsubtypestring | nullseveritystringcriticalwarninginforelatedToarray[string]descriptionstringstatusintegererrorsarray[object]groupstringREQUESTAUTHVALUESERVERtypestringsubtypestring | nullseveritystringcriticalwarninginforelatedToarray[string]descriptionstring