POST api/service/AddServicePriceAction
Получение данных справочников, из которых складывается конечная стоимость доп. услуг и услуг комплекса услуг, с пагинацией, фильтрами, а также с возможностью изменения активности и стоимости услуги
Request Information
URI Parameters
None.
Body Parameters
AddServicePriceActionRequestName | Description | Type | Additional information |
---|---|---|---|
ActionType |
Тип действия (Update, Info) |
string |
None. |
AddServicePriceId |
Идентификатор записи для изменения |
integer |
None. |
Price |
Фильтр или новая цена в записи |
decimal number |
None. |
InComplex |
Фильтр или добавление признака записи - "НЕ входит в комплекс услуг" |
boolean |
None. |
NoInComplex |
Фильтр или добавление признака записи - "входит в комплекс услуг" |
boolean |
None. |
NoActive |
Фильтр или добавление признака неактивности записи |
boolean |
None. |
Active |
Фильтр или добавление признака активности записи |
boolean |
None. |
ComplexTires |
Фильтр: иденитфикатор комплекса услуг |
integer |
None. |
TireType |
Фильтр: иденитфикатор типа шин |
byte |
None. |
AddService |
Фильтр: иденитфикатор услуги |
integer |
None. |
Start |
Пагинация: последовательный номер записи от которой нужно возвращать данные (1, 10, 20, 30 и т.д.) |
integer |
None. |
Length |
Пагинация: количество записей, которые нужно вернуть |
integer |
None. |
Operator |
Идентификатор оператора программы лояльности |
integer |
None. |
Token |
Токен пользователя, который инициирует данный запрос |
integer |
None. |
SiteCode |
Уникальный код виджета по продаже подарочных сертификатов, который инициирует запрос |
string |
None. |
Request Formats
application/json, text/json
{ "ActionType": "sample string 1", "AddServicePriceId": 1, "Price": 1.0, "InComplex": true, "NoInComplex": true, "NoActive": true, "Active": true, "ComplexTires": 1, "TireType": 64, "AddService": 1, "Start": 1, "Length": 1, "Operator": 1, "Token": 1, "SiteCode": "sample string 2" }
application/xml, text/xml
<AddServicePriceActionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request.ServiceRequest"> <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 2</SiteCode> <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token> <ActionType>sample string 1</ActionType> <Active>true</Active> <AddService>1</AddService> <AddServicePriceId>1</AddServicePriceId> <ComplexTires>1</ComplexTires> <InComplex>true</InComplex> <Length>1</Length> <NoActive>true</NoActive> <NoInComplex>true</NoInComplex> <Price>1</Price> <Start>1</Start> <TireType>64</TireType> </AddServicePriceActionRequest>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
AddServicePriceActionResponseName | Description | Type | Additional information |
---|---|---|---|
TotalRows |
Количество записей, которые попали в выборку |
integer |
None. |
TotalRowsSelect |
Количество записей, которые вернулись в массиве ответа на запрос |
integer |
None. |
Data |
Основной массив данных |
Collection of AddServicePriceActionDataRow |
None. |
CarTypeData |
Типы машин |
Collection of AddServicePriceActionCarTypeDataRow |
None. |
ComplexData |
Количество колёс |
Collection of AddServicePriceActionComplexDataRow |
None. |
DiscWheelData |
Диски/товары |
Collection of AddServicePriceActionDiscWheelDataRow |
None. |
TiresTypeData |
Типы шины |
Collection of AddServicePriceActionTiresTypeDataRow |
None. |
ErrorCode |
Код ошибки |
integer |
None. |
Message |
Сообщение об ошибке |
string |
None. |
Response Formats
application/json, text/json
{ "TotalRows": 1, "TotalRowsSelect": 1, "Data": [ { "Id": 1, "AddServicePriceId": 1, "AddService": 1, "AddServiceName": "sample string 1", "DiscWheel": 64, "DiscWheelName": "sample string 2", "TiresType": 64, "TiresTypeName": "sample string 3", "ComplexTires": 1, "ComplexTiresName": "sample string 4", "Price": 1.0, "InComplex": true }, { "Id": 1, "AddServicePriceId": 1, "AddService": 1, "AddServiceName": "sample string 1", "DiscWheel": 64, "DiscWheelName": "sample string 2", "TiresType": 64, "TiresTypeName": "sample string 3", "ComplexTires": 1, "ComplexTiresName": "sample string 4", "Price": 1.0, "InComplex": true } ], "CarTypeData": [ { "Id": 64, "CarTypeId": 64, "Name": "sample string 1", "Icon": "sample string 2" }, { "Id": 64, "CarTypeId": 64, "Name": "sample string 1", "Icon": "sample string 2" } ], "ComplexData": [ { "Id": 64, "ComplexTiresId": 1, "Name": "sample string 1", "Comment": "sample string 2" }, { "Id": 64, "ComplexTiresId": 1, "Name": "sample string 1", "Comment": "sample string 2" } ], "DiscWheelData": [ { "Id": 64, "DiscWheelId": 64, "Name": "sample string 1", "GoodId": 1 }, { "Id": 64, "DiscWheelId": 64, "Name": "sample string 1", "GoodId": 1 } ], "TiresTypeData": [ { "Id": 64, "TiresTypeId": 64, "Title": "sample string 1", "Description": "sample string 2", "Comment": "sample string 3" }, { "Id": 64, "TiresTypeId": 64, "Title": "sample string 1", "Description": "sample string 2", "Comment": "sample string 3" } ], "ErrorCode": 1, "Message": "sample string 2" }
application/xml, text/xml
<AddServicePriceActionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response.ServiceResponse"> <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</ErrorCode> <Message xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">sample string 2</Message> <CarTypeData> <AddServicePriceActionResponse.AddServicePriceActionCarTypeDataRow> <CarTypeId>64</CarTypeId> <Icon>sample string 2</Icon> <Id>64</Id> <Name>sample string 1</Name> </AddServicePriceActionResponse.AddServicePriceActionCarTypeDataRow> <AddServicePriceActionResponse.AddServicePriceActionCarTypeDataRow> <CarTypeId>64</CarTypeId> <Icon>sample string 2</Icon> <Id>64</Id> <Name>sample string 1</Name> </AddServicePriceActionResponse.AddServicePriceActionCarTypeDataRow> </CarTypeData> <ComplexData> <AddServicePriceActionResponse.AddServicePriceActionComplexDataRow> <Comment>sample string 2</Comment> <ComplexTiresId>1</ComplexTiresId> <Id>64</Id> <Name>sample string 1</Name> </AddServicePriceActionResponse.AddServicePriceActionComplexDataRow> <AddServicePriceActionResponse.AddServicePriceActionComplexDataRow> <Comment>sample string 2</Comment> <ComplexTiresId>1</ComplexTiresId> <Id>64</Id> <Name>sample string 1</Name> </AddServicePriceActionResponse.AddServicePriceActionComplexDataRow> </ComplexData> <Data> <AddServicePriceActionResponse.AddServicePriceActionDataRow> <AddService>1</AddService> <AddServiceName>sample string 1</AddServiceName> <AddServicePriceId>1</AddServicePriceId> <ComplexTires>1</ComplexTires> <ComplexTiresName>sample string 4</ComplexTiresName> <DiscWheel>64</DiscWheel> <DiscWheelName>sample string 2</DiscWheelName> <Id>1</Id> <InComplex>true</InComplex> <Price>1</Price> <TiresType>64</TiresType> <TiresTypeName>sample string 3</TiresTypeName> </AddServicePriceActionResponse.AddServicePriceActionDataRow> <AddServicePriceActionResponse.AddServicePriceActionDataRow> <AddService>1</AddService> <AddServiceName>sample string 1</AddServiceName> <AddServicePriceId>1</AddServicePriceId> <ComplexTires>1</ComplexTires> <ComplexTiresName>sample string 4</ComplexTiresName> <DiscWheel>64</DiscWheel> <DiscWheelName>sample string 2</DiscWheelName> <Id>1</Id> <InComplex>true</InComplex> <Price>1</Price> <TiresType>64</TiresType> <TiresTypeName>sample string 3</TiresTypeName> </AddServicePriceActionResponse.AddServicePriceActionDataRow> </Data> <DiscWheelData> <AddServicePriceActionResponse.AddServicePriceActionDiscWheelDataRow> <DiscWheelId>64</DiscWheelId> <GoodId>1</GoodId> <Id>64</Id> <Name>sample string 1</Name> </AddServicePriceActionResponse.AddServicePriceActionDiscWheelDataRow> <AddServicePriceActionResponse.AddServicePriceActionDiscWheelDataRow> <DiscWheelId>64</DiscWheelId> <GoodId>1</GoodId> <Id>64</Id> <Name>sample string 1</Name> </AddServicePriceActionResponse.AddServicePriceActionDiscWheelDataRow> </DiscWheelData> <TiresTypeData> <AddServicePriceActionResponse.AddServicePriceActionTiresTypeDataRow> <Comment>sample string 3</Comment> <Description>sample string 2</Description> <Id>64</Id> <TiresTypeId>64</TiresTypeId> <Title>sample string 1</Title> </AddServicePriceActionResponse.AddServicePriceActionTiresTypeDataRow> <AddServicePriceActionResponse.AddServicePriceActionTiresTypeDataRow> <Comment>sample string 3</Comment> <Description>sample string 2</Description> <Id>64</Id> <TiresTypeId>64</TiresTypeId> <Title>sample string 1</Title> </AddServicePriceActionResponse.AddServicePriceActionTiresTypeDataRow> </TiresTypeData> <TotalRows>1</TotalRows> <TotalRowsSelect>1</TotalRowsSelect> </AddServicePriceActionResponse>