POST api/Otp/SendOtp

Request Information

URI Parameters

None.

Body Parameters

OtpViewModel
NameDescriptionTypeAdditional information
authkey

string

None.

tempid

string

None.

phoneno

string

None.

otpcode

string

None.

request_id

string

None.

status

boolean

None.

data

Object

None.

sender

string

None.

Request Formats

application/json, text/json

Sample:
{
  "authkey": "sample string 1",
  "tempid": "sample string 2",
  "phoneno": "sample string 3",
  "otpcode": "sample string 4",
  "request_id": "sample string 5",
  "status": true,
  "data": {},
  "sender": "sample string 8"
}

application/xml, text/xml

Sample:
<OtpViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/kantasotp_api.Models">
  <authkey>sample string 1</authkey>
  <data />
  <otpcode>sample string 4</otpcode>
  <phoneno>sample string 3</phoneno>
  <request_id>sample string 5</request_id>
  <sender>sample string 8</sender>
  <status>true</status>
  <tempid>sample string 2</tempid>
</OtpViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResultViewModel
NameDescriptionTypeAdditional information
status

boolean

None.

message

string

None.

data

Object

None.

errorCode

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "status": true,
  "message": "sample string 2",
  "data": {},
  "errorCode": 4
}

application/xml, text/xml

Sample:
<HttpResultViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/kantasotp_api.Models">
  <data />
  <errorCode>4</errorCode>
  <message>sample string 2</message>
  <status>true</status>
</HttpResultViewModel>