POST api/sendpulse/SendEmail
Отправка E-mail по заданному идентификатору шаблона
Request Information
URI Parameters
None.
Body Parameters
SendEmailRequestName | Description | Type | Additional information |
---|---|---|---|
MessageId |
Идентификатор сообщения в таблице в БД |
integer |
None. |
ServiceParams |
SendPulse сервис |
SendEmailServiceParams |
None. |
Operator |
Идентификатор оператора программы лояльности |
integer |
None. |
Token |
Токен пользователя, который инициирует данный запрос |
integer |
None. |
SiteCode |
Уникальный код виджета по продаже подарочных сертификатов, который инициирует запрос |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "MessageId": 1, "ServiceParams": { "Url": "sample string 1", "Jwt": "sample string 2" }, "Operator": 1, "Token": 1, "SiteCode": "sample string 1" }
application/xml, text/xml
Sample:
<SendEmailRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request.SendPulseRequest"> <Operator xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Operator> <SiteCode xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">sample string 1</SiteCode> <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token> <MessageId>1</MessageId> <ServiceParams> <Jwt>sample string 2</Jwt> <Url>sample string 1</Url> </ServiceParams> </SendEmailRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
SendEmailResponseName | Description | Type | Additional information |
---|---|---|---|
Id |
Идентификатор |
string |
None. |
Result |
Результат |
boolean |
None. |
ErrorCode |
Код ошибки |
integer |
None. |
Message |
Сообщение об ошибке |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Id": "sample string 1", "Result": true, "ErrorCode": 2, "Message": "sample string 3" }
application/xml, text/xml
Sample:
<SendEmailResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response.SendPulseResponse"> <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">2</ErrorCode> <Message xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">sample string 3</Message> <Id>sample string 1</Id> <Result>true</Result> </SendEmailResponse>