Request Information

Method updates price list item.

Example URL:
v2.0/PriceListItems/{id}
NameDescriptionTypeAdditional information
id

Price list item Id

integer

Required

id

Price list item Id

integer

Required

Price list item for update

PriceListPatchModel
NameDescriptionTypeAdditional information
Amount

Sales amount

decimal number

None.

BarCode

Price list item BarCode

string

Length: between 0 and 20 inclusive

Code

Price list item code

string

Length: between 0 and 20 inclusive

CurrencyId

Currency id

integer

None.

DateLastChange

date

Readonly

HasStockMovement

Keep track of stock movements

boolean

None.

Id

Resource identifier

integer

Readonly

Name

Item name

string

Required

Length: between 0 and 200 inclusive

Price

Unit price

decimal number

None.

PriceType

Price type

PriceType

None.

Unit

Unit of measure

string

Length: between 0 and 20 inclusive

VatCodeId

Vat code id

integer

None.

VatRateType

Vat rate type

VatRateType

None.

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

Response Information

PriceListApiModel
NameDescriptionTypeAdditional information
Amount

Sales amount

decimal number

None.

BarCode

Price list item BarCode

string

Length: between 0 and 20 inclusive

Code

Price list item code

string

Length: between 0 and 20 inclusive

CurrencyId

Currency id

integer

None.

DateLastChange

date

Readonly

HasStockMovement

Determines whether the item has stock enabled, not whether it has stock movements

boolean

None.

Id

Resource identifier

integer

Readonly

InitialDateStockBalance

Date of the initial stock movement

date

None.

InitialStockBalance

Initial stock balance

decimal number

None.

Name

Item name

string

Required

Length: between 0 and 200 inclusive

Note

Note for stock movement

string

Length: between 0 and 100 inclusive

Price

Unit price

decimal number

None.

PriceType

Price type

PriceType

None.

StockBalance

Current stock balance

decimal number

Readonly

Unit

Unit of measure

string

Length: between 0 and 20 inclusive

VatCodeId

Vat code id

integer

None.

VatRateType

Vat rate type

VatRateType

None.

Sample:
{
  "Amount": 1.0,
  "BarCode": "sample string 1",
  "Code": "sample string 2",
  "CurrencyId": 1,
  "DateLastChange": "2024-11-19T10:11:46.4709073+00:00",
  "HasStockMovement": true,
  "InitialDateStockBalance": "2024-11-19T10:11:46.4709073+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
}
Sample:
<PriceListApiModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="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:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Doklad.Api.ApiModels.BaseModels">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Links>
  <Amount>1</Amount>
  <BarCode>sample string 1</BarCode>
  <Code>sample string 2</Code>
  <CurrencyId>1</CurrencyId>
  <DateLastChange>2024-11-19T10:11:46.4709073+00:00</DateLastChange>
  <HasStockMovement>true</HasStockMovement>
  <InitialDateStockBalance>2024-11-19T10:11:46.4709073+00:00</InitialDateStockBalance>
  <InitialStockBalance>5</InitialStockBalance>
  <Name>sample string 6</Name>
  <Note>sample string 7</Note>
  <Price>1</Price>
  <PriceType>0</PriceType>
  <StockBalance>8</StockBalance>
  <Unit>sample string 9</Unit>
  <VatCodeId>1</VatCodeId>
  <VatRateType>0</VatRateType>
</PriceListApiModel>