POST api/values/GetSmsSentMessage
Получение списка SMS-отправлений
Request Information
URI Parameters
None.
Body Parameters
GetSmsSentMessageRequestName | Description | Type | Additional information |
---|---|---|---|
PartnerId |
идентификатор Партнера программы лояльности |
integer |
None. |
Pos |
код торговой точки |
integer |
None. |
PosName |
Точка продажи |
string |
None. |
Phone |
Номер телефона клиента |
string |
None. |
Rectime |
Дата и время отправки СМС |
string |
None. |
Text |
Текст СМС-сообщения |
string |
None. |
Status |
Статус отправки |
string |
None. |
Price |
Стоимость отправки |
string |
None. |
Page |
Позиция с которой отображать выборку |
integer |
None. |
PageSize |
Сколько объектов отображать |
integer |
None. |
DateStart |
Показывать операции с |
string |
None. |
DateEnd |
Показывать операции по |
string |
None. |
Operator |
Идентификатор оператора программы лояльности |
integer |
None. |
Token |
Токен пользователя, который инициирует данный запрос |
integer |
None. |
SiteCode |
Уникальный код виджета по продаже подарочных сертификатов, который инициирует запрос |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "PartnerId": 1, "Pos": 2, "PosName": "sample string 3", "Phone": "sample string 4", "Rectime": "sample string 5", "Text": "sample string 6", "Status": "sample string 7", "Price": "sample string 8", "Page": 9, "PageSize": 10, "DateStart": "sample string 11", "DateEnd": "sample string 12", "Operator": 1, "Token": 1, "SiteCode": "sample string 13" }
application/xml, text/xml
Sample:
<GetSmsSentMessageRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models"> <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 13</SiteCode> <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token> <DateEnd>sample string 12</DateEnd> <DateStart>sample string 11</DateStart> <Page>9</Page> <PageSize>10</PageSize> <PartnerId>1</PartnerId> <Phone>sample string 4</Phone> <Pos>2</Pos> <PosName>sample string 3</PosName> <Price>sample string 8</Price> <Rectime>sample string 5</Rectime> <Status>sample string 7</Status> <Text>sample string 6</Text> </GetSmsSentMessageRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
GetSmsSentMessageResponseName | Description | Type | Additional information |
---|---|---|---|
ErrorCode |
код ошибки |
integer |
None. |
Message |
сообщение об ошибке |
string |
None. |
PageCount |
количество страниц |
integer |
None. |
RecordTotal |
количество записей |
integer |
None. |
RecordFilterd | integer |
None. |
|
SmsSentMessageData | Collection of SmsSentMessage |
None. |
Response Formats
application/json, text/json
Sample:
{ "ErrorCode": 1, "Message": "sample string 2", "PageCount": 3, "RecordTotal": 4, "RecordFilterd": 5, "SmsSentMessageData": [ { "PosName": "sample string 1", "Phone": 2, "Rectime": "2023-03-28T07:49:30.8611551+03:00", "Text": "sample string 4", "Status": "sample string 5", "Price": 6.0 }, { "PosName": "sample string 1", "Phone": 2, "Rectime": "2023-03-28T07:49:30.8611551+03:00", "Text": "sample string 4", "Status": "sample string 5", "Price": 6.0 } ] }
application/xml, text/xml
Sample:
<GetSmsSentMessageResponse 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> <PageCount>3</PageCount> <RecordFilterd>5</RecordFilterd> <RecordTotal>4</RecordTotal> <SmsSentMessageData> <SmsSentMessage> <Phone>2</Phone> <PosName>sample string 1</PosName> <Price>6</Price> <Rectime>2023-03-28T07:49:30.8611551+03:00</Rectime> <Status>sample string 5</Status> <Text>sample string 4</Text> </SmsSentMessage> <SmsSentMessage> <Phone>2</Phone> <PosName>sample string 1</PosName> <Price>6</Price> <Rectime>2023-03-28T07:49:30.8611551+03:00</Rectime> <Status>sample string 5</Status> <Text>sample string 4</Text> </SmsSentMessage> </SmsSentMessageData> </GetSmsSentMessageResponse>