PUT api/Inventory/Lines

Updates a list of existing inventory basis lines

Request Information

URI Parameters

None.

Body Parameters

A list of any parameters related to existing lines that needs to be updated

Collection of UpdateInventoryBasisLineRequest
NameDescriptionTypeAdditional information
Id

Row number of the inventory basis

integer

Required

InventoryBasisHeadId

Reference id to the related inventory basis

globally unique identifier

Required

StockId

Reference id to the affected stock

globally unique identifier

Required

ArticleId

Reference id to the given article of the line

globally unique identifier

Required

ArticleNo

Reference article number to the given article of the line

integer

Required

Description

The description of the referenced article

string

Max length: 50

Quantity

Inventoried quantity of the article
decimal(18, 2)

decimal number

None.

Unit

Unit of measurement (millimeters, liters, inches)

integer

None.

Cost

Purchase price of the article
decimal(19, 6)

decimal number

None.

Recyclefee

Fee of recycling the article
decimal(19, 6)

decimal number

Required

ReasonId

Id pointing to an existing InventoryReason

integer

None.

Inventoried

Flag used to signify if the line has been inventoried
Set to true if Quantity has been set

boolean

Required

StockBalance

Quantity of the article at the time of starting the inventory
decimal(18, 2)

decimal number

None.

SupplierArticleNo

Reference article number given by the article supplier

string

Max length: 128

ReservedQuantity

Quantity reserved by orders
decimal(18, 2)

decimal number

None.

InventoryPerson

Name of the person who inventoried the specific line

string

Max length: 255

Exclude

Excluded from final inventory

boolean

Required

PalletPlace

Name of the pallet place

string

Max length: 100

Remarks

None.

Example

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "InventoryBasisHeadId": "7fdf80c7-2c4b-4bb3-b30c-25a5f9c84b52",
    "StockId": "78a4d45c-527e-4482-8224-0118c0998d0d",
    "ArticleId": "817c1e58-5bb5-4f27-9126-1725e73e9c32",
    "ArticleNo": 5,
    "Description": "sample string 6",
    "Quantity": 1.0,
    "Unit": 1,
    "Cost": 1.0,
    "Recyclefee": 7.0,
    "ReasonId": 1,
    "Inventoried": true,
    "StockBalance": 1.0,
    "SupplierArticleNo": "sample string 9",
    "ReservedQuantity": 1.0,
    "InventoryPerson": "sample string 10",
    "Exclude": true,
    "PalletPlace": "sample string 12"
  },
  {
    "Id": 1,
    "InventoryBasisHeadId": "7fdf80c7-2c4b-4bb3-b30c-25a5f9c84b52",
    "StockId": "78a4d45c-527e-4482-8224-0118c0998d0d",
    "ArticleId": "817c1e58-5bb5-4f27-9126-1725e73e9c32",
    "ArticleNo": 5,
    "Description": "sample string 6",
    "Quantity": 1.0,
    "Unit": 1,
    "Cost": 1.0,
    "Recyclefee": 7.0,
    "ReasonId": 1,
    "Inventoried": true,
    "StockBalance": 1.0,
    "SupplierArticleNo": "sample string 9",
    "ReservedQuantity": 1.0,
    "InventoryPerson": "sample string 10",
    "Exclude": true,
    "PalletPlace": "sample string 12"
  }
]

application/xml, text/xml

Sample:
<ArrayOfUpdateInventoryBasisLineRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Stock">
  <UpdateInventoryBasisLineRequest>
    <ArticleId>817c1e58-5bb5-4f27-9126-1725e73e9c32</ArticleId>
    <ArticleNo>5</ArticleNo>
    <Cost>1</Cost>
    <Description>sample string 6</Description>
    <Exclude>true</Exclude>
    <Inventoried>true</Inventoried>
    <InventoryBasisHeadId>7fdf80c7-2c4b-4bb3-b30c-25a5f9c84b52</InventoryBasisHeadId>
    <InventoryPerson>sample string 10</InventoryPerson>
    <PalletPlace>sample string 12</PalletPlace>
    <Quantity>1</Quantity>
    <ReasonId>1</ReasonId>
    <Recyclefee>7</Recyclefee>
    <ReservedQuantity>1</ReservedQuantity>
    <StockBalance>1</StockBalance>
    <StockId>78a4d45c-527e-4482-8224-0118c0998d0d</StockId>
    <SupplierArticleNo>sample string 9</SupplierArticleNo>
    <Unit>1</Unit>
    <Id>1</Id>
  </UpdateInventoryBasisLineRequest>
  <UpdateInventoryBasisLineRequest>
    <ArticleId>817c1e58-5bb5-4f27-9126-1725e73e9c32</ArticleId>
    <ArticleNo>5</ArticleNo>
    <Cost>1</Cost>
    <Description>sample string 6</Description>
    <Exclude>true</Exclude>
    <Inventoried>true</Inventoried>
    <InventoryBasisHeadId>7fdf80c7-2c4b-4bb3-b30c-25a5f9c84b52</InventoryBasisHeadId>
    <InventoryPerson>sample string 10</InventoryPerson>
    <PalletPlace>sample string 12</PalletPlace>
    <Quantity>1</Quantity>
    <ReasonId>1</ReasonId>
    <Recyclefee>7</Recyclefee>
    <ReservedQuantity>1</ReservedQuantity>
    <StockBalance>1</StockBalance>
    <StockId>78a4d45c-527e-4482-8224-0118c0998d0d</StockId>
    <SupplierArticleNo>sample string 9</SupplierArticleNo>
    <Unit>1</Unit>
    <Id>1</Id>
  </UpdateInventoryBasisLineRequest>
</ArrayOfUpdateInventoryBasisLineRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'List`1'.

Response Information

Resource Description

A list of objects with the success status and ID of each affected line

Collection of InventoryBasisLineResponse
NameDescriptionTypeAdditional information
Id

Id of the affected line, created or updated

integer

None.

Errors

Specifies what went wrong in any faulty request

Collection of InventoryBasisLineErrorMessage

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.