Class VerifyRequestBase
Base class for verification requests, containing common properties shared by VerifyRequest and Psd2Request.
public class VerifyRequestBase
- Inheritance
-
VerifyRequestBase
- Derived
- Inherited Members
Properties
CodeLength
The length of the verification code to generate. Must be either 4 or 6 digits.
[JsonProperty("code_length")]
public int CodeLength { get; set; }
Property Value
Country
The two-character country code (ISO 3166-1 alpha-2) to use for formatting the phone number. If you do not provide number in international format, specify this to let Vonage format the number correctly.
[JsonProperty("country")]
public string Country { get; set; }
Property Value
Lg
The language code (BCP-47 format) for the SMS or text-to-speech message. By default, the language matches the phone number's country. Examples: "en-us", "es-es", "fr-fr".
[JsonProperty("lg")]
public string Lg { get; set; }
Property Value
NextEventWait
The wait time in seconds between attempts to deliver the verification code. Must be between 60 and 900 seconds.
[JsonProperty("next_event_wait")]
public int NextEventWait { get; set; }
Property Value
Number
The mobile or landline phone number to verify. Unless you are setting country explicitly, this number must be in E.164 format (e.g., "447700900000").
[JsonProperty("number")]
public string Number { get; set; }
Property Value
PinExpiry
How long the generated verification code is valid for, in seconds. Must be an integer multiple of NextEventWait. If not, it defaults to equal NextEventWait.
[JsonProperty("pin_expiry")]
public int PinExpiry { get; set; }