Request Information

Creates new stock movements. The movements can be for different pricelist items. To decrease stock balance, use a negative amount.

Example URL:
v2.0/StockMovements/Batch

None.

List of stock movements.

BatchModelOfStockMovementApiModelPost
NameDescriptionTypeAdditional information
Items

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

Collection of StockMovementApiModelPost

Collection with length within range 1 and 50.

Sample:
{
  "Items": [
    {
      "PriceListItemId": 1,
      "Amount": 2.0,
      "Note": "sample string 3",
      "DateOfMovement": "2021-05-08T06:27:44.8999067+00:00"
    }
  ]
}
Sample:
<BatchModelOfStockMovementApiModelPostJO41exbO 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.StockMovement">
    <d2p1:StockMovementApiModelPost>
      <d2p1:Amount>2</d2p1:Amount>
      <d2p1:DateOfMovement>2021-05-08T06:27:44.8999067+00:00</d2p1:DateOfMovement>
      <d2p1:Note>sample string 3</d2p1:Note>
      <d2p1:PriceListItemId>1</d2p1:PriceListItemId>
    </d2p1:StockMovementApiModelPost>
  </Items>
</BatchModelOfStockMovementApiModelPostJO41exbO>

Response Information

BatchResultOfStockMovementApiModelGet
NameDescriptionTypeAdditional information
Results

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

Collection of BatchItemResultOfStockMovementApiModelGet

None.

Status

Overall result of the batch operation.

BatchResultType

None.

Sample:
{
  "Results": [
    {
      "IsSuccess": true,
      "Data": {
        "Amount": 1.0,
        "DateCreated": "2021-05-08T06:27:44.9155331+00:00",
        "DateLastChange": "2021-05-08T06:27:44.9155331+00:00",
        "DateOfMovement": "2021-05-08T06:27:44.9155331+00:00",
        "Id": 5,
        "Note": "sample string 6",
        "PriceListItemId": 7
      },
      "Message": "sample string 2",
      "StatusCode": 3
    }
  ],
  "Status": 0
}
Sample:
<BatchResultOfStockMovementApiModelGetJO41exbO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/">
  <Results>
    <BatchItemResultOfStockMovementApiModelGetJO41exbO>
      <Data xmlns:d4p1="http://schemas.datacontract.org/2004/07/Doklad.Api.ApiModels.StockMovement">
        <d4p1:Amount>1</d4p1:Amount>
        <d4p1:DateCreated>2021-05-08T06:27:44.9155331+00:00</d4p1:DateCreated>
        <d4p1:DateLastChange>2021-05-08T06:27:44.9155331+00:00</d4p1:DateLastChange>
        <d4p1:DateOfMovement>2021-05-08T06:27:44.9155331+00:00</d4p1:DateOfMovement>
        <d4p1:Id>5</d4p1:Id>
        <d4p1:Note>sample string 6</d4p1:Note>
        <d4p1:PriceListItemId>7</d4p1:PriceListItemId>
      </Data>
      <IsSuccess>true</IsSuccess>
      <Message>sample string 2</Message>
      <StatusCode>3</StatusCode>
    </BatchItemResultOfStockMovementApiModelGetJO41exbO>
  </Results>
</BatchResultOfStockMovementApiModelGetJO41exbO>