Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

Stock /CreateStockBatches

Allows 150 calls per minute

Response: List<StockItemBatch>



Creates stock item batches

Parameters

NameTypeDescription
batchesList<StockItemBatch>

Permissions

GlobalPermissions.Inventory.Stock.StockWrite.ChangeStockLevelsNode

Example Request

The following request format is required for this method.

Endpoint URL

GET | POST https://eu-ext.linnworks.net/api/Stock/CreateStockBatches

Headers

Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

Request Body

This is an example of the request structure. Results will vary depending on your data.

batches=[
  {
    "BatchId": 1,
    "SKU": "sample string 2",
    "InventoryTrackingType": 3,
    "StockItemId": "09268e99-80d3-422c-821a-de1f7073375f",
    "BatchNumber": "sample string 5",
    "ExpiresOn": "2022-09-05T15:10:00.783036+03:00",
    "SellBy": "2022-09-05T15:10:00.783036+03:00",
    "Inventory": [
      {
        "BatchInventoryId": 1,
        "BatchId": 2,
        "StockLocationId": "34488506-2424-4b57-a82b-45eb22e2bd8e",
        "BinRack": "sample string 4",
        "PrioritySequence": 5,
        "Quantity": 6,
        "StockValue": 7.0,
        "StartQuantity": 8,
        "PickedQuantity": 9,
        "BatchStatus": "Available",
        "IsDeleted": true,
        "WarehouseBinrackStandardType": 1,
        "WarehouseBinrackTypeName": "sample string 12",
        "InTransfer": 1,
        "BinRackId": 1,
        "WarehouseBinrackTypeId": 1
      }
    ],
    "IsDeleted": true
  }
]

Response

This is an example of the response JSON. Results will vary depending on your data.

[
  {
    "BatchId": 1,
    "SKU": "sample string 2",
    "InventoryTrackingType": 3,
    "StockItemId": "85ee96f6-bc52-4b15-bcd6-ea768b7c6d53",
    "BatchNumber": "sample string 5",
    "ExpiresOn": "2022-09-05T15:10:03.7694675+03:00",
    "SellBy": "2022-09-05T15:10:03.7694675+03:00",
    "Inventory": [
      {
        "BatchInventoryId": 1,
        "BatchId": 2,
        "StockLocationId": "51e2045c-bf05-4572-baf8-c8b78bbae2bb",
        "BinRack": "sample string 4",
        "PrioritySequence": 5,
        "Quantity": 6,
        "StockValue": 7.0,
        "StartQuantity": 8,
        "PickedQuantity": 9,
        "BatchStatus": "Available",
        "IsDeleted": true,
        "WarehouseBinrackStandardType": 1,
        "WarehouseBinrackTypeName": "sample string 12",
        "InTransfer": 1,
        "BinRackId": 1,
        "WarehouseBinrackTypeId": 1
      }
    ],
    "IsDeleted": true
  }
]