v1

latestOpenAPI 3.0.02026-07-266521,3121.2 MB
Stock

CreateStockBatches

Creates stock item batches <b>Permissions Required: </b> GlobalPermissions.Inventory.Stock.StockWrite.ChangeStockLevelsNode <b>Rate limit: </b><span style="background-color:#0272d9;color:white;padding:4px 8px;text-align:center;border-radius:5px; font-size: small;"><b>150</b></span> / minute

post/api/Stock/CreateStockBatches

Request body

Example request

{
  "batches": [
    {
      "StockItemId": "00000000-0000-0000-0000-000000000000",
      "Inventory": [
        {
          "StockLocationId": "00000000-0000-0000-0000-000000000000"
        }
      ]
    }
  ]
}

Response

OK

BatchIdinteger

Batch ID

SKUstring

Product SKU

InventoryTrackingTypeinteger

0 - None, 1 - Order by sell by date, 2 - Ordered by priority sequence

StockItemIdstring uuid

Product ID

BatchNumberstring

Batch number

ExpiresOnstring date-time

Batch expiry date

SellBystring date-time

Batch sell by date

IsDeletedboolean

Is the batch deleted

Example response

[
  {
    "StockItemId": "00000000-0000-0000-0000-000000000000",
    "Inventory": [
      {
        "StockLocationId": "00000000-0000-0000-0000-000000000000"
      }
    ]
  }
]