v1

latestOpenAPI 3.0.02026-07-266521,3121.2 MB
Stock

UpdateStockLevelsBySKU

Change the stock level of a list of stock items by the provided value <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/UpdateStockLevelsBySKU

Request body

changeSourcestring

Example request

{
  "stockLevels": [
    {
      "LocationId": "00000000-0000-0000-0000-000000000000"
    }
  ]
}

Response

OK

StockLevelinteger

Stock level

StockValuenumber double

Stock value

MinimumLevelinteger

Minimum level

InOrderBookinteger

Currently in open orders

Dueinteger

Due to come in purchase orders

JITboolean

Stock Item Just In Time (JIT) status

InOrdersinteger

Currently in open orders

Availableinteger

StockLevel - InOrders

UnitCostnumber double

if( Quantity == 0 ) dbo.StockItem.PurchasePrice Else CurrentStockValue / Quantity

SKUstring

Product SKU

AutoAdjustboolean

If level is auto adjusted

LastUpdateDatestring date-time

Last time stock level was adjusted

LastUpdateOperationstring

Name of last update operation

rowidstring uuid

dbo.StockLevel.rowid

PendingUpdateboolean

dbo.StockLevel.PendingUpdate

StockItemPurchasePricenumber double

Stock item purchase price. It's used to calculate UnitCost

StockItemIdstring uuid

Stock Item Id

StockItemIntIdinteger

Stock Item interger Id

Example response

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