LoqateRouteurStable

Validate phone (Loqate)

Validates and normalizes a phone number, including country, national format, and provider characteristics when available.

Vue d’ensemble

Validates and normalizes a phone number, including country, national format, and provider characteristics when available.

Exemple

Normalize a number before sending an SMS OTP.

Decision routes

valid

Valide

Loqate considers the data valid.

Recommended actionContinue with the normalized value.
invalid

Invalide

Loqate considers the data invalid.

Recommended actionRequest a correction before continuing.
unknown

Indeterminate

Loqate cannot produce a reliable conclusion.

Recommended actionDo not treat this result as valid by default.

Parameters 2

extension_config_idRequisref(extension_config:loqate)
Extension configuration used for this operation.
phone_numberRequisphone
Phone number to validate and normalize.

Outputs 8

selected_routeenum
Business route chosen from the validation result.
validboolean
Whether Loqate considers the validated data valid.
phone_numberOptionnelphone
Normalized phone number when usable.
national_formatstring
National format of the number returned by Loqate.
countrystring
Country resolved for the number.
number_typestring
Number type detected by Loqate.
network_namestring
Network or carrier returned when available.
resultLoqate phone validation
Normalized Loqate response for the performed validation.

Behavior

Loqate interprets the supplied number, returns its normalized form, and routes according to the check result.

Limits and responsibilities

  • A valid number does not prove that the user controls it; an OTP step is still required for that proof.
  • Network information may not be available in every country.