Request Information

Updates price list items. Batch operation.

Example URL:
v2.0/PriceListItems/Batch

None.

Price list items for update

BatchModelOfPriceListPatchModel
NameDescriptionTypeAdditional information
Items

Individual batch items have the same meaning as in the non-batch version.

Collection of PriceListPatchModel

Collection with length within range 1 and 50.

Sample:
{
  "Items": [
    {
      "BarCode": "sample string 1",
      "Amount": 1.0,
      "Code": "sample string 2",
      "CurrencyId": 1,
      "DateLastChange": "2024-11-07T00:20:07.9750176+00:00",
      "HasStockMovement": true,
      "Name": "sample string 3",
      "Price": 1.0,
      "PriceType": 0,
      "Unit": "sample string 4",
      "VatCodeId": 1,
      "VatRateType": 0,
      "Id": 5
    }
  ]
}
Sample:
<BatchModelOfPriceListPatchModelaIKNNKNr xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Doklad.Api.ApiModels.BaseModels">
  <Items xmlns:d2p1="http://schemas.datacontract.org/2004/07/Doklad.Api.ApiModels.PatchModels">
    <d2p1:PriceListPatchModel>
      <Id>5</Id>
      <Links xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>sample string 1</d4p1:Key>
          <d4p1:Value>sample string 2</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
      </Links>
      <Amount xmlns="http://schemas.datacontract.org/2004/07/Doklad.Api.ApiModels">1</Amount>
      <Code xmlns="http://schemas.datacontract.org/2004/07/Doklad.Api.ApiModels">sample string 2</Code>
      <CurrencyId xmlns="http://schemas.datacontract.org/2004/07/Doklad.Api.ApiModels">1</CurrencyId>
      <DateLastChange xmlns="http://schemas.datacontract.org/2004/07/Doklad.Api.ApiModels">2024-11-07T00:20:07.9750176+00:00</DateLastChange>
      <HasStockMovement xmlns="http://schemas.datacontract.org/2004/07/Doklad.Api.ApiModels">true</HasStockMovement>
      <Name xmlns="http://schemas.datacontract.org/2004/07/Doklad.Api.ApiModels">sample string 3</Name>
      <Price xmlns="http://schemas.datacontract.org/2004/07/Doklad.Api.ApiModels">1</Price>
      <PriceType xmlns="http://schemas.datacontract.org/2004/07/Doklad.Api.ApiModels">0</PriceType>
      <Unit xmlns="http://schemas.datacontract.org/2004/07/Doklad.Api.ApiModels">sample string 4</Unit>
      <VatCodeId xmlns="http://schemas.datacontract.org/2004/07/Doklad.Api.ApiModels">1</VatCodeId>
      <VatRateType xmlns="http://schemas.datacontract.org/2004/07/Doklad.Api.ApiModels">0</VatRateType>
      <d2p1:BarCode>sample string 1</d2p1:BarCode>
    </d2p1:PriceListPatchModel>
  </Items>
</BatchModelOfPriceListPatchModelaIKNNKNr>

Response Information

BatchResultOfPriceListApiModel
NameDescriptionTypeAdditional information
Results

Operation results. The order of results is the same as the order of items in the batch.

Collection of BatchItemResultOfPriceListApiModel

None.

Status

Overall result of the batch operation.

BatchResultType

None.

Sample:
{
  "Results": [
    {
      "IsSuccess": true,
      "Data": {
        "Amount": 1.0,
        "BarCode": "sample string 1",
        "Code": "sample string 2",
        "CurrencyId": 1,
        "DateLastChange": "2024-11-07T00:20:07.9750176+00:00",
        "HasStockMovement": true,
        "InitialDateStockBalance": "2024-11-07T00:20:07.9750176+00:00",
        "InitialStockBalance": 5.0,
        "Name": "sample string 6",
        "Note": "sample string 7",
        "Price": 1.0,
        "PriceType": 0,
        "StockBalance": 8.0,
        "Unit": "sample string 9",
        "VatCodeId": 1,
        "VatRateType": 0,
        "Id": 10
      },
      "Message": "sample string 2",
      "StatusCode": 3
    }
  ],
  "Status": 0
}
Sample:
<BatchResultOfPriceListApiModel5BFZeHoS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/">
  <Results>
    <BatchItemResultOfPriceListApiModel5BFZeHoS>
      <Data xmlns:d4p1="http://schemas.datacontract.org/2004/07/Doklad.Api.ApiModels">
        <Id xmlns="http://schemas.datacontract.org/2004/07/Doklad.Api.ApiModels.BaseModels">10</Id>
        <Links xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Doklad.Api.ApiModels.BaseModels">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>sample string 1</d5p1:Key>
            <d5p1:Value>sample string 2</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </Links>
        <d4p1:Amount>1</d4p1:Amount>
        <d4p1:BarCode>sample string 1</d4p1:BarCode>
        <d4p1:Code>sample string 2</d4p1:Code>
        <d4p1:CurrencyId>1</d4p1:CurrencyId>
        <d4p1:DateLastChange>2024-11-07T00:20:07.9750176+00:00</d4p1:DateLastChange>
        <d4p1:HasStockMovement>true</d4p1:HasStockMovement>
        <d4p1:InitialDateStockBalance>2024-11-07T00:20:07.9750176+00:00</d4p1:InitialDateStockBalance>
        <d4p1:InitialStockBalance>5</d4p1:InitialStockBalance>
        <d4p1:Name>sample string 6</d4p1:Name>
        <d4p1:Note>sample string 7</d4p1:Note>
        <d4p1:Price>1</d4p1:Price>
        <d4p1:PriceType>0</d4p1:PriceType>
        <d4p1:StockBalance>8</d4p1:StockBalance>
        <d4p1:Unit>sample string 9</d4p1:Unit>
        <d4p1:VatCodeId>1</d4p1:VatCodeId>
        <d4p1:VatRateType>0</d4p1:VatRateType>
      </Data>
      <IsSuccess>true</IsSuccess>
      <Message>sample string 2</Message>
      <StatusCode>3</StatusCode>
    </BatchItemResultOfPriceListApiModel5BFZeHoS>
  </Results>
</BatchResultOfPriceListApiModel5BFZeHoS>