Retrieve Department
Beta/v1/operations/departments/{id}This endpoint is idempotent. Learn more
Returns a department by ID.
idstringID of the department to retrieve.
include[]optional arrayenumValues:locationscanning_stationsmachinesSub-objects to expand in the response. When omitted, sub-objects are returned as null.
idstringDepartment ID.
objectstringenumValues:departmentResource type identifier.
namestringDisplay name of the department.
Unique within the account.
notesstringnullableFree-form notes about the department.
locationlocationExpandablenullableThe storage location where this department operates.
idstringLocation ID.
objectstringenumValues:locationResource type identifier.
namestringDisplay name of the location.
typeobjectThis location's level in the storage hierarchy.
The levels run from largest to smallest: building, section, aisle, rack, shelf, bin. They are descriptive labels rather than a rule — a location's parent is not required to be the next level up.
null in this endpoint.parentlocationnullableThe location directly above this one in the storage hierarchy.
Absent for top-level locations.
null in this endpoint.The locations directly below this one in the storage hierarchy.
null in this endpoint.created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last-updated timestamp.
Scanning stations in this department.
objectstringenumValues:listResource type identifier.
page_infoobjectPagination metadata.
next_page_urlstringnullableRelative URL that fetches the next page of results.
previous_page_urlstringnullableRelative URL that fetches the previous page of results.
has_next_pagebooleanWhether more results exist after this page.
has_prev_pagebooleanWhether results exist before this page.
dataarray of scanning_stationResources in this page.
idstringScanning station ID.
objectstringenumValues:scanning_stationResource type identifier.
namestringDisplay name of the scanning station.
Unique within the account.
notesstringnullableFree-form notes about the scanning station.
typestringenumValues:init_batchmerge_batchmove_batchScanning station type, determining which batch operation an operator performs when they scan here.
init_batch: starts a new batch at the beginning of a production flow.merge_batch: combines several scanned batches into one.move_batch: advances a batch through a production step connected to this station.split_batch: divides a batch into several batches.
Fixed when the station is created.
label_sizestringnullableenumValues:1x11x31x4Size of the labels printed at this station, given as width-by-height (for example, 1x1).
label_typestringnullableenumValues:tagtravelerType of label printed at this station.
tag: a label attached to the physical product.traveler: a routing sheet that accompanies the batch through every production step.
operator_requirementstringenumValues:nonematerial_checkWhether operators must perform a material check at this station.
none: no additional operator check is required.material_check: a material check is expected before the operation.
The department this scanning station belongs to.
Assigned when the station is created and cannot be reassigned afterward.
null in this endpoint.Production steps connected to this station.
A production step can be connected to at most one scanning station, so connecting a step here disconnects it from any other station. Manage the connections with Connect Production Steps to Scanning Station.
null in this endpoint.created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
Machines in this department.
objectstringenumValues:listResource type identifier.
page_infoobjectPagination metadata.
next_page_urlstringnullableRelative URL that fetches the next page of results.
previous_page_urlstringnullableRelative URL that fetches the previous page of results.
has_next_pagebooleanWhether more results exist after this page.
has_prev_pagebooleanWhether results exist before this page.
dataarray of machineResources in this page.
idstringMachine ID.
objectstringenumValues:machineResource type identifier.
namestringDisplay name of the machine.
Unique within the account.
serial_numberstringSerial number of the machine.
notesstringnullableFree-form notes about the machine.
The department this machine belongs to.
Set when the machine is created; a machine cannot be moved to another department afterwards.
null in this endpoint.created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
labor_rateratenullableHourly labor rate for work done in this department, such as a changeover technician.
Production scheduling costs changeovers with the constraint department's rate when one is set, falling back to the account-wide changeover labor rate setting.
idstringRate ID.
objectstringenumValues:rateResource type identifier.
valuestring (decimal)Decimal value of the rate, as a string to preserve precision.
Expressed as the amount of the numerator unit per one denominator unit.
Unit of the rate's numerator (e.g. the currency of a price).
Unit of the rate's denominator (the per-unit basis, e.g. kilograms for a price per kilogram).
display_valuestringHuman-readable formatted value (e.g. "$25.50 / kg" or "100 kg / hr").
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last update timestamp.
Responses
Successful response for Retrieve Department