POST api/TwoFactor/ValidateTwoFactorSmsOtp

Request Information

URI Parameters

None.

Body Parameters

ValidateTwoFactorSmsOtpRequest
NameDescriptionTypeAdditional information
UserId

globally unique identifier

None.

Email

string

None.

OtpId

integer

None.

OtpIdReference

string

None.

OtpCode

string

None.

IsReValidate

boolean

None.

IsReturnChangeRequestId

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": "ded3f132-7e79-4950-a390-618a13f40395",
  "Email": "sample string 2",
  "OtpId": 3,
  "OtpIdReference": "sample string 4",
  "OtpCode": "sample string 5",
  "IsReValidate": true,
  "IsReturnChangeRequestId": true
}

application/xml, text/xml

Sample:
<ValidateTwoFactorSmsOtpRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessLayer.Dto.Request">
  <Email>sample string 2</Email>
  <IsReValidate>true</IsReValidate>
  <IsReturnChangeRequestId>true</IsReturnChangeRequestId>
  <OtpCode>sample string 5</OtpCode>
  <OtpId>3</OtpId>
  <OtpIdReference>sample string 4</OtpIdReference>
  <UserId>ded3f132-7e79-4950-a390-618a13f40395</UserId>
</ValidateTwoFactorSmsOtpRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ValidateTwoFactorSmsOtpResponse
NameDescriptionTypeAdditional information
IsValid

boolean

None.

ExceptionMessage

string

None.

GsmNumber

string

None.

Code

ValidateTwoFactorSmsOtpResponseCode

None.

PasswordChangeRequestId

string

None.

UserType

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "IsValid": true,
  "ExceptionMessage": "sample string 2",
  "GsmNumber": "sample string 3",
  "Code": 6000,
  "PasswordChangeRequestId": "sample string 4",
  "UserType": 1
}

application/xml, text/xml

Sample:
<ValidateTwoFactorSmsOtpResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessLayer.Dto.Response">
  <Code>InvalidOtpCode</Code>
  <ExceptionMessage>sample string 2</ExceptionMessage>
  <GsmNumber>sample string 3</GsmNumber>
  <IsValid>true</IsValid>
  <PasswordChangeRequestId>sample string 4</PasswordChangeRequestId>
  <UserType>1</UserType>
</ValidateTwoFactorSmsOtpResponse>