POST api/pos/PosGoodsUpdate

Обновление цен товаров по точке продаж

Request Information

URI Parameters

None.

Body Parameters

PosGoodsUpdateRequest
NameDescriptionTypeAdditional information
Operator

Идентификатор оператора

integer

None.

Partner

Идентификатор партнера

integer

None.

Poscode

Название точки продаж

string

None.

Dateupdate

Дата обновления списка

date

None.

GoodsDate

Массив данных по товарам строкой

string

None.

GoodsDateList

Массив объектов данных по товарам типа GoodsDate

Collection of GoodsDate

None.

Request Formats

application/json, text/json

Sample:
{
  "Operator": 1,
  "Partner": 2,
  "Poscode": "sample string 3",
  "Dateupdate": "2022-08-16T21:36:13.3533102+03:00",
  "GoodsDate": "sample string 5",
  "GoodsDateList": [
    {
      "Id": 1,
      "Code": "sample string 1",
      "Price": 2.0
    },
    {
      "Id": 1,
      "Code": "sample string 1",
      "Price": 2.0
    }
  ]
}

application/xml, text/xml

Sample:
<PosGoodsUpdateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request">
  <Dateupdate>2022-08-16T21:36:13.3533102+03:00</Dateupdate>
  <GoodsDate>sample string 5</GoodsDate>
  <GoodsDateList xmlns:d2p1="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Data">
    <d2p1:GoodsDate>
      <d2p1:Code>sample string 1</d2p1:Code>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Price>2</d2p1:Price>
    </d2p1:GoodsDate>
    <d2p1:GoodsDate>
      <d2p1:Code>sample string 1</d2p1:Code>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Price>2</d2p1:Price>
    </d2p1:GoodsDate>
  </GoodsDateList>
  <Operator>1</Operator>
  <Partner>2</Partner>
  <Poscode>sample string 3</Poscode>
</PosGoodsUpdateRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

DefaultResponse
NameDescriptionTypeAdditional 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:
<DefaultResponse 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">1</ErrorCode>
  <Message xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">sample string 2</Message>
</DefaultResponse>