POST api/site/LeaveMessage
Отправка сообщения по электронной почте
Request Information
URI Parameters
None.
Body Parameters
LeaveMessageRequest| Name | Description | Type | Additional information |
|---|---|---|---|
|
адрес электронной почты участника программы лояльности |
string |
None. |
|
| Subject |
тема письма |
string |
None. |
| Text |
тело письма |
string |
None. |
| Operator |
идентификатор Оператора программы лояльности |
integer |
None. |
| Client |
идентификатор Клиента |
integer |
None. |
| PosCode |
код торговой точки |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Email": "sample string 1",
"Subject": "sample string 2",
"Text": "sample string 3",
"Operator": 4,
"Client": 1,
"PosCode": "sample string 5"
}
application/xml, text/xml
Sample:
<LeaveMessageRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models"> <Client>1</Client> <Email>sample string 1</Email> <Operator>4</Operator> <PosCode>sample string 5</PosCode> <Subject>sample string 2</Subject> <Text>sample string 3</Text> </LeaveMessageRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
LeaveMessageResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| ErrorCode |
код ошибки |
integer |
None. |
| Message |
сообщение об ошибке |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"ErrorCode": 1,
"Message": "sample string 2"
}
application/xml, text/xml
Sample:
<LeaveMessageResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models"> <ErrorCode>1</ErrorCode> <Message>sample string 2</Message> </LeaveMessageResponse>