performStockCount

Topics: Logistics

Perform a stock count, adjusting quantities and recording differences. Requires warehouseStock:write.

Returns

PerformStockCountPayload!

Arguments

The warehouse location being counted and the quantity physically found for each of its stock records.

Examples

Count Logistics Stock

mutation CountLogisticsStock($input: PerformStockCountInput!) {
  performStockCount(input: $input) {
    updatedStocks { id quantity lastCountedAt }
    adjustments { id quantity reason notes }
    errors { path message }
  }
}

Variables

{
  "input": {
    "locationId": "wlc_000000448h848r248h248h248h",
    "counts": [
      {
        "warehouseStockId": "wst_000000848h848r248h248h248h",
        "countedQuantity": 2980
      }
    ]
  }
}
Exact field SDL
"""
Perform a stock count, adjusting quantities and recording differences. Requires warehouseStock:write.
"""
performStockCount(
  """
  The warehouse location being counted and the quantity physically found for each of its stock records.
  """
  input: PerformStockCountInput!
): PerformStockCountPayload! @topic(names: ["logistics"]) @topic_example(names: ["logistics.count-stock"])

Declared on Mutation. Access is checked by the platform for each operation.