Warehouse / Stock

stockCountLocationSelectionPreview

Preview location selection without changing the stock count. Eligibility is checked again when adding.

Arguments

idID!
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

matchingLocationsCountInt!

Eligible locations after exclusions and before the limit.

selectedLocationsCountInt!

Locations that would be added after applying the limit.