Warehouse / Stock

stockCountAddLocations

Add locations to an open stock count by ID, code, filter criteria, or any combination of them. Existing assignments are left unchanged.

Arguments

idID!

The open stock count ID.

stockCountIds[ID!]
stockLocationIds[ID!]
stockLocationTypeIds[ID!]
zoneStockLocationIds[ID!]
excludeOpenCountsBooleanDefault: true

Exclude locations assigned to another open count. Existing assignments in this count are always excluded.

deviatingFromStockCountIdID

Select locations with a non-zero quantity difference in this completed stock count.

excludedOrganizationIds[ID!]
excludedProductIds[ID!]
modeStockCountSelectionModeDefault: LOCATION_TOTAL

Controls matching only. Every selected location is counted in full.

INDIVIDUAL_STOCKLOCATION_TOTAL
notCountedSinceDateTimeTz

Select locations that have not been counted at or after this timestamp.

organizationIds[ID!]

Select locations containing stock for at least one of these organizations.

pickableBoolean

Filter locations by pickability. Omit or pass null to include both.

productIds[ID!]
quantityMaxInt

Inclusive maximum quantity, measured across the location or on the matching stock record.

quantityMinInt

Inclusive minimum quantity, measured across the location or on the matching stock record.

stockLocationTypeIds[ID!]

Select locations with one of these stock location types.

zoneStockLocationIds[ID!]

Select these zones and all of their descendant locations.

limitInt

Maximum locations to add, after exclusions. Omit to add all eligible locations.

priorityStockCountSelectionPriorityDefault: OLDEST_COUNTED

Determines which locations fit within the limit; never changes task ordering.

OLDEST_COUNTEDRANDOM
randomSeedString

Stable seed required for random selection when a limit is provided.

stockLocationCodes[String!]

Warehouse stock location codes to add. Locations already assigned are ignored.

stockLocationIds[ID!]

Warehouse stock location IDs to add. Locations already assigned are ignored.

Returns

completedAtDateTimeTz

When the stock count was completed.

countedLocationsCountInt!

Number of assigned locations that have been counted.

createdAtDateTimeTz!

When the stock count was created.

descriptionString

Additional context or instructions for the stock count.

idID!

Unique primary key.

locationsCountInt!

Total number of locations assigned to this stock count.

nameString!

Name of the stock count.

recountOfStockCount

The completed stock count this recount was created from.

Current lifecycle status of the stock count.

COMPLETEDOPEN

Whether this is a regular count or a recount of a completed count.

AD_HOCRECOUNTREGULAR
updatedAtDateTimeTz!

When the stock count was last updated.

field[String!]
messageString!