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: trueExclude locations assigned to another open count. Existing assignments in this count are always excluded.
deviatingFromStockCountIdIDSelect locations with a non-zero quantity difference in this completed stock count.
excludedOrganizationIds[ID!]excludedProductIds[ID!]modeStockCountSelectionModeDefault: LOCATION_TOTALControls matching only. Every selected location is counted in full.
INDIVIDUAL_STOCKLOCATION_TOTALnotCountedSinceDateTimeTzSelect locations that have not been counted at or after this timestamp.
organizationIds[ID!]Select locations containing stock for at least one of these organizations.
pickableBooleanFilter locations by pickability. Omit or pass null to include both.
productIds[ID!]quantityMaxIntInclusive maximum quantity, measured across the location or on the matching stock record.
quantityMinIntInclusive 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.
limitIntMaximum locations to add, after exclusions. Omit to add all eligible locations.
priorityStockCountSelectionPriorityDefault: OLDEST_COUNTEDDetermines which locations fit within the limit; never changes task ordering.
OLDEST_COUNTEDRANDOMrandomSeedStringStable 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
completedAtDateTimeTzWhen the stock count was completed.
countedLocationsCountInt!Number of assigned locations that have been counted.
createdAtDateTimeTz!When the stock count was created.
descriptionStringAdditional 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.
recountOfStockCountThe completed stock count this recount was created from.
typeStockCountType!Whether this is a regular count or a recount of a completed count.
AD_HOCRECOUNTREGULARupdatedAtDateTimeTz!When the stock count was last updated.
field[String!]messageString!