POST api/Email/SendOTP
Request Information
URI Parameters
None.
Body Parameters
OtpRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| DealerCode | string |
None. |
|
| Receiver | string |
None. |
|
| Subject | string |
None. |
|
| Closing | string |
None. |
|
| Body | string |
None. |
|
| AttachmentPath | string |
None. |
|
| ShowStatus | boolean |
None. |
|
| Priority | integer |
None. |
|
| HtmlFilePath | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"DealerCode": "sample string 1",
"Receiver": "sample string 2",
"Subject": "sample string 3",
"Closing": "sample string 4",
"Body": "sample string 5",
"AttachmentPath": "sample string 6",
"ShowStatus": true,
"Priority": 8,
"HtmlFilePath": "sample string 9"
}
application/xml, text/xml
Sample:
<OtpRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Models"> <AttachmentPath>sample string 6</AttachmentPath> <Body>sample string 5</Body> <Closing>sample string 4</Closing> <DealerCode>sample string 1</DealerCode> <HtmlFilePath>sample string 9</HtmlFilePath> <Priority>8</Priority> <Receiver>sample string 2</Receiver> <ShowStatus>true</ShowStatus> <Subject>sample string 3</Subject> </OtpRequestModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
OtpResponseModel| Name | Description | Type | Additional information |
|---|---|---|---|
| OTP | string |
None. |
|
| Success | boolean |
None. |
|
| Error | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"OTP": "sample string 1",
"Success": true,
"Error": "sample string 3"
}
application/xml, text/xml
Sample:
<OtpResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Models"> <Error>sample string 3</Error> <OTP>sample string 1</OTP> <Success>true</Success> </OtpResponseModel>