POST api/OTP?isStaff={isStaff}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
isStaff

boolean

Required

Body Parameters

OTPDTO
NameDescriptionTypeAdditional information
GUID

globally unique identifier

None.

Mobile

string

None.

Email

string

None.

OTP

integer

None.

OTP_Encrypted

string

None.

ExpiryInMinutes

integer

None.

ExpiryDate

date

None.

IsValidated

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "GUID": "361b41ed-505c-4bb1-908c-54b8f15e53b5",
  "Mobile": "sample string 3",
  "Email": "sample string 4",
  "OTP": 5,
  "OTP_Encrypted": "sample string 7",
  "ExpiryInMinutes": 1,
  "ExpiryDate": "2026-11-05T12:27:38.784908+00:00",
  "IsValidated": true
}

text/xml

Sample:
<OTPDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Timepeaker.WebApi.DTO">
  <Email>sample string 4</Email>
  <ExpiryDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2026-11-05T12:27:38.784908Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </ExpiryDate>
  <ExpiryInMinutes>1</ExpiryInMinutes>
  <GUID>361b41ed-505c-4bb1-908c-54b8f15e53b5</GUID>
  <ID>1</ID>
  <IsLicenceSpecific>true</IsLicenceSpecific>
  <IsValidated>true</IsValidated>
  <LicenceKey>9576cefa-de94-430a-b130-3d8dc949fa39</LicenceKey>
  <Mobile>sample string 3</Mobile>
  <OTP>5</OTP>
  <OTP_Clear>6</OTP_Clear>
  <OTP_Encrypted>sample string 7</OTP_Encrypted>
  <ValidateConsumerEmail>true</ValidateConsumerEmail>
</OTPDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

OTPResultDTO
NameDescriptionTypeAdditional information
IsSuccessful

boolean

None.

IsExpired

boolean

None.

OTPObject

OTPDTO

None.

ConsumerGUID

globally unique identifier

None.

Email

string

None.

OTP_GUID

globally unique identifier

None.

Response Formats

application/json, text/json

Sample:
{
  "IsSuccessful": true,
  "IsExpired": true,
  "OTPObject": {
    "GUID": "0b509129-fe60-40ce-ac49-15a0c7bbe214",
    "Mobile": "sample string 3",
    "Email": "sample string 4",
    "OTP": 5,
    "OTP_Encrypted": "sample string 7",
    "ExpiryInMinutes": 1,
    "ExpiryDate": "2026-11-05T12:27:38.784908+00:00",
    "IsValidated": true
  },
  "ConsumerGUID": "f7852337-cde2-4cfb-afb0-a166406b6429",
  "Email": "sample string 3",
  "OTP_GUID": "3054519e-9182-4cd3-a533-abab378710b9"
}

text/xml

Sample:
<OTPResultDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Timepeaker.WebApi.DTO">
  <ConsumerGUID>f7852337-cde2-4cfb-afb0-a166406b6429</ConsumerGUID>
  <Email>sample string 3</Email>
  <IsExpired>true</IsExpired>
  <IsSuccessful>true</IsSuccessful>
  <OTPObject>
    <Email>sample string 4</Email>
    <ExpiryDate xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2026-11-05T12:27:38.784908Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
    </ExpiryDate>
    <ExpiryInMinutes>1</ExpiryInMinutes>
    <GUID>0b509129-fe60-40ce-ac49-15a0c7bbe214</GUID>
    <ID>1</ID>
    <IsLicenceSpecific>true</IsLicenceSpecific>
    <IsValidated>true</IsValidated>
    <LicenceKey>732b1848-99b3-43a8-b91c-6e03bb7d9f67</LicenceKey>
    <Mobile>sample string 3</Mobile>
    <OTP>5</OTP>
    <OTP_Clear>6</OTP_Clear>
    <OTP_Encrypted>sample string 7</OTP_Encrypted>
    <ValidateConsumerEmail>true</ValidateConsumerEmail>
  </OTPObject>
  <OTP_GUID>3054519e-9182-4cd3-a533-abab378710b9</OTP_GUID>
</OTPResultDTO>