Mutations

See the Queries page for a presentation of this resource.

Available mutations

CreateStockCount

Creates a new stock count.

Parameters:

ParameterTypeDescription
inputStockCountCreateInputInitialization data.

Example:

mutation {
  CreateStockCount(input: {
    label: "SC-2026-001",
    location: { id: 100001 }
  }) {
    id
    label
    status
  }
}

UpdateStockCount

Updates an existing stock count.

Parameters:

ParameterTypeDescription
idID!ID of the stock count.
inputStockCountUpdateInputUpdated data.

StockCountScanBarcode

Adds a line item or increments its quantity by scanning a barcode.

Parameters:

ParameterTypeDescription
idID!ID of the stock count.
barcodeString!The scanned barcode.

StockCountSetQuantity

Sets the counted quantity of a line item within a stock count.

Parameters:

ParameterTypeDescription
idID!ID of the stock count line item.
quantityFloatThe new quantity.

GenerateStockCountNumber

Generates the next available stock count label.

mutation {
  GenerateStockCountNumber
}


Input data types

StockCountCreateInput data type

label
Label of the stock count
dated_at
Date of the stock count
location
Location to count (required)
notes
Notes attached to the stock count
bin_location_filter
Optional filter on bin locations during count

StockCountUpdateInput data type

label
Label of the stock count
dated_at
Date of the stock count
notes
Notes attached to the stock count
status
Status of the stock count


Enums

StockCountStatus enum

ValueDescription
in_progressCount is in progress.
stock_update_in_progressStock is being updated.
completedCount completed and stock updated.
cancelledDocument voided.