POST api/values/ImportOperatorGoods
Выборка товаров Оператора
Request Information
URI Parameters
None.
Body Parameters
OperatorGoodImportRequestName | Description | Type | Additional information |
---|---|---|---|
Partner |
Идентификатор партнера |
integer |
None. |
Goods |
Список товаров |
Collection of Good |
None. |
Request Formats
application/json, text/json
Sample:
{ "Partner": 1, "Goods": [ { "Id": 1, "Code": "sample string 2", "Name": "sample string 3", "PartnerName": "sample string 4" }, { "Id": 1, "Code": "sample string 2", "Name": "sample string 3", "PartnerName": "sample string 4" } ] }
application/xml, text/xml
Sample:
<OperatorGoodImportRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request"> <Goods xmlns:d2p1="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models"> <d2p1:Good> <d2p1:Code>sample string 2</d2p1:Code> <d2p1:Id>1</d2p1:Id> <d2p1:Name>sample string 3</d2p1:Name> <d2p1:PartnerName>sample string 4</d2p1:PartnerName> </d2p1:Good> <d2p1:Good> <d2p1:Code>sample string 2</d2p1:Code> <d2p1:Id>1</d2p1:Id> <d2p1:Name>sample string 3</d2p1:Name> <d2p1:PartnerName>sample string 4</d2p1:PartnerName> </d2p1:Good> </Goods> <Partner>1</Partner> </OperatorGoodImportRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
OperatorGoodImportResponseName | Description | Type | Additional information |
---|---|---|---|
ImportedRows |
Кол-во импортированных строк |
integer |
None. |
ErrorCode |
Код ошибки |
integer |
None. |
Message |
Сообщение об ошибке |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "ImportedRows": 1, "ErrorCode": 2, "Message": "sample string 3" }
application/xml, text/xml
Sample:
<OperatorGoodImportResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response"> <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> <ImportedRows>1</ImportedRows> </OperatorGoodImportResponse>