POST api/TwoFactor/ValidateTwoFactorSmsOtoByReferenceId

Request Information

URI Parameters

None.

Body Parameters

ValidateTwoFactorSmsOtpByRefIdRequest
NameDescriptionTypeAdditional information
UserId

globally unique identifier

None.

OtpIdReference

string

None.

DeleteGsmFromOtherCustomers

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": "429abb6b-4428-4027-9290-4e7bf73f3eaa",
  "OtpIdReference": "sample string 2",
  "DeleteGsmFromOtherCustomers": true
}

application/xml, text/xml

Sample:
<ValidateTwoFactorSmsOtpByRefIdRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessLayer.Dto.Request">
  <DeleteGsmFromOtherCustomers>true</DeleteGsmFromOtherCustomers>
  <OtpIdReference>sample string 2</OtpIdReference>
  <UserId>429abb6b-4428-4027-9290-4e7bf73f3eaa</UserId>
</ValidateTwoFactorSmsOtpByRefIdRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ValidateTwoFactorSmsOtpByRefIdResponse
NameDescriptionTypeAdditional information
IsValid

boolean

None.

ExceptionMessage

string

None.

Code

ValidateTwoFactorSmsOtpResponseCode

None.

Response Formats

application/json, text/json

Sample:
{
  "IsValid": true,
  "ExceptionMessage": "sample string 2",
  "Code": 6000
}

application/xml, text/xml

Sample:
<ValidateTwoFactorSmsOtpByRefIdResponse 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>
  <IsValid>true</IsValid>
</ValidateTwoFactorSmsOtpByRefIdResponse>