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": "bf4bfd64-bbe0-4e75-b69c-a1b4f0393c5d",
  "Mobile": "sample string 3",
  "Email": "sample string 4",
  "OTP": 5,
  "OTP_Encrypted": "sample string 7",
  "ExpiryInMinutes": 1,
  "ExpiryDate": "2026-11-05T11:41:51.1393227+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-05T11:41:51.1393227Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </ExpiryDate>
  <ExpiryInMinutes>1</ExpiryInMinutes>
  <GUID>bf4bfd64-bbe0-4e75-b69c-a1b4f0393c5d</GUID>
  <ID>1</ID>
  <IsLicenceSpecific>true</IsLicenceSpecific>
  <IsValidated>true</IsValidated>
  <LicenceKey>f43c807c-5791-4c9c-9a1f-537939f1e0d1</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": "71110f7e-6ad5-4587-8a3a-af9848342f75",
    "Mobile": "sample string 3",
    "Email": "sample string 4",
    "OTP": 5,
    "OTP_Encrypted": "sample string 7",
    "ExpiryInMinutes": 1,
    "ExpiryDate": "2026-11-05T11:41:51.1549254+00:00",
    "IsValidated": true
  },
  "ConsumerGUID": "8aa456aa-ba7b-4dcd-909e-454923d23025",
  "Email": "sample string 3",
  "OTP_GUID": "ec3272ba-d587-4af6-9a48-99c72d2a3822"
}

text/xml

Sample:
<OTPResultDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Timepeaker.WebApi.DTO">
  <ConsumerGUID>8aa456aa-ba7b-4dcd-909e-454923d23025</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-05T11:41:51.1549254Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
    </ExpiryDate>
    <ExpiryInMinutes>1</ExpiryInMinutes>
    <GUID>71110f7e-6ad5-4587-8a3a-af9848342f75</GUID>
    <ID>1</ID>
    <IsLicenceSpecific>true</IsLicenceSpecific>
    <IsValidated>true</IsValidated>
    <LicenceKey>fadef461-5fa7-4333-ae41-801f40d6dabf</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>ec3272ba-d587-4af6-9a48-99c72d2a3822</OTP_GUID>
</OTPResultDTO>