POST Api/DigitalConsent/VerifyOtp

Request Information

URI Parameters

None.

Body Parameters

VerifyDigitalConsentOtpRequest
NameDescriptionTypeAdditional information
PresaleId

integer

Required

Range: inclusive between 1 and 2147483647

Otp

string

Required

Request Formats

application/json, text/json

Sample:
{
  "PresaleId": 1,
  "Otp": "sample string 1"
}

application/xml, text/xml

Sample:
<VerifyDigitalConsentOtpRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GoSwitch.CustomerTools.Models.DigitalConsent">
  <Otp>sample string 1</Otp>
  <PresaleId>1</PresaleId>
</VerifyDigitalConsentOtpRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResultOfVerifyDigitalConsentOtpResponse
NameDescriptionTypeAdditional information
Success

boolean

None.

Message

string

None.

ErrorMessage

Collection of string

None.

Value

VerifyDigitalConsentOtpResponse

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Message": "sample string 2",
  "ErrorMessage": [
    "sample string 1",
    "sample string 2"
  ],
  "Value": {
    "Verified": true
  }
}

application/xml, text/xml

Sample:
<ResultOfVerifyDigitalConsentOtpResponsevoWXilkT xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GoSwitch.CustomerTools.Models.Common.Returns">
  <ErrorMessage xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ErrorMessage>
  <Message>sample string 2</Message>
  <Success>true</Success>
  <Value xmlns:d2p1="http://schemas.datacontract.org/2004/07/GoSwitch.CustomerTools.Models.DigitalConsent">
    <d2p1:Verified>true</d2p1:Verified>
  </Value>
</ResultOfVerifyDigitalConsentOtpResponsevoWXilkT>