← API reference
CANONICAL TYPE REFERENCE

PerformStockCountPayload

Result of performStockCount: the recounted stock, the adjustments raised for any discrepancies, or the validation errors that blocked them.

The stock records after the count, with their on-hand quantity set to the counted figure and lastCountedAt stamped — returned for every counted record, including those that matched. Null when validation failed.

Stock movements recording the discrepancies, one per record whose count differed from the system quantity by more than 0.001, with reason ADJUSTED, status COMPLETED and the absolute difference as the quantity. Null when every count matched (or when validation failed).

Per-field validation errors (paths such as "counts[0].countedQuantity"), including stock records not found at the given location. Empty on success; when non-empty nothing was adjusted.

View exact SDL
"""
Result of `performStockCount`: the recounted stock, the adjustments raised for any discrepancies, or the validation errors that blocked them.
"""
type PerformStockCountPayload {
  """
  The stock records after the count, with their on-hand quantity set to the counted figure and `lastCountedAt` stamped — returned for every counted record, including those that matched. Null when validation failed.
  """
  updatedStocks: [WarehouseStockState!]
  """
  Stock movements recording the discrepancies, one per record whose count differed from the system quantity by more than 0.001, with reason ADJUSTED, status COMPLETED and the absolute difference as the quantity. Null when every count matched (or when validation failed).
  """
  adjustments: [WarehouseTransferState!]
  """
  Per-field validation errors (paths such as "counts[0].countedQuantity"), including stock records not found at the given location. Empty on success; when non-empty nothing was adjusted.
  """
  errors: [FieldError!]!
}

One stable address across all schema views. Follow a field’s type to explore connections between domains.