POST api/Notifications/SendEmail
Request Information
URI Parameters
None.
Body Parameters
Email| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| TRAN_TYPE | string |
None. |
|
| TO_ADDRESS | string |
None. |
|
| CC_ADDRESS | string |
None. |
|
| SUBJECT | string |
None. |
|
| OTP_CODE | string |
None. |
|
| EXPIRES_IN | string |
None. |
|
| STATUS_ID | integer |
None. |
|
| CREATED_BY | string |
None. |
|
| CREATED_ON | string |
None. |
|
| BODY | string |
None. |
|
| RESPONSE | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"ID": 1,
"TRAN_TYPE": "sample string 2",
"TO_ADDRESS": "sample string 3",
"CC_ADDRESS": "sample string 4",
"SUBJECT": "sample string 5",
"OTP_CODE": "sample string 6",
"EXPIRES_IN": "sample string 7",
"STATUS_ID": 8,
"CREATED_BY": "sample string 9",
"CREATED_ON": "sample string 10",
"BODY": "sample string 11",
"RESPONSE": "sample string 12"
}
application/xml, text/xml
Sample:
<Email xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EventMubarakAPI.Models"> <BODY>sample string 11</BODY> <CC_ADDRESS>sample string 4</CC_ADDRESS> <CREATED_BY>sample string 9</CREATED_BY> <CREATED_ON>sample string 10</CREATED_ON> <EXPIRES_IN>sample string 7</EXPIRES_IN> <ID>1</ID> <OTP_CODE>sample string 6</OTP_CODE> <RESPONSE>sample string 12</RESPONSE> <STATUS_ID>8</STATUS_ID> <SUBJECT>sample string 5</SUBJECT> <TO_ADDRESS>sample string 3</TO_ADDRESS> <TRAN_TYPE>sample string 2</TRAN_TYPE> </Email>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ResponseOfEmail| Name | Description | Type | Additional information |
|---|---|---|---|
| ResponseCode | integer |
None. |
|
| ResponseMessage | string |
None. |
|
| Data | Collection of Email |
None. |
Response Formats
application/json, text/json
Sample:
{
"ResponseCode": 1,
"ResponseMessage": "sample string 2",
"Data": [
{
"ID": 1,
"TRAN_TYPE": "sample string 2",
"TO_ADDRESS": "sample string 3",
"CC_ADDRESS": "sample string 4",
"SUBJECT": "sample string 5",
"OTP_CODE": "sample string 6",
"EXPIRES_IN": "sample string 7",
"STATUS_ID": 8,
"CREATED_BY": "sample string 9",
"CREATED_ON": "sample string 10",
"BODY": "sample string 11",
"RESPONSE": "sample string 12"
},
{
"ID": 1,
"TRAN_TYPE": "sample string 2",
"TO_ADDRESS": "sample string 3",
"CC_ADDRESS": "sample string 4",
"SUBJECT": "sample string 5",
"OTP_CODE": "sample string 6",
"EXPIRES_IN": "sample string 7",
"STATUS_ID": 8,
"CREATED_BY": "sample string 9",
"CREATED_ON": "sample string 10",
"BODY": "sample string 11",
"RESPONSE": "sample string 12"
}
]
}
application/xml, text/xml
Sample:
<ResponseOfEmail_SzSEHSlJ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EventMubarakAPI.Models">
<Data>
<Email>
<BODY>sample string 11</BODY>
<CC_ADDRESS>sample string 4</CC_ADDRESS>
<CREATED_BY>sample string 9</CREATED_BY>
<CREATED_ON>sample string 10</CREATED_ON>
<EXPIRES_IN>sample string 7</EXPIRES_IN>
<ID>1</ID>
<OTP_CODE>sample string 6</OTP_CODE>
<RESPONSE>sample string 12</RESPONSE>
<STATUS_ID>8</STATUS_ID>
<SUBJECT>sample string 5</SUBJECT>
<TO_ADDRESS>sample string 3</TO_ADDRESS>
<TRAN_TYPE>sample string 2</TRAN_TYPE>
</Email>
<Email>
<BODY>sample string 11</BODY>
<CC_ADDRESS>sample string 4</CC_ADDRESS>
<CREATED_BY>sample string 9</CREATED_BY>
<CREATED_ON>sample string 10</CREATED_ON>
<EXPIRES_IN>sample string 7</EXPIRES_IN>
<ID>1</ID>
<OTP_CODE>sample string 6</OTP_CODE>
<RESPONSE>sample string 12</RESPONSE>
<STATUS_ID>8</STATUS_ID>
<SUBJECT>sample string 5</SUBJECT>
<TO_ADDRESS>sample string 3</TO_ADDRESS>
<TRAN_TYPE>sample string 2</TRAN_TYPE>
</Email>
</Data>
<ResponseCode>1</ResponseCode>
<ResponseMessage>sample string 2</ResponseMessage>
</ResponseOfEmail_SzSEHSlJ>