Create Handling Class
Creates a Warehouse-scoped Handling Class. When code is omitted or blank, ShipStream
generates one from the name. Classification is scheduled after the save commits. Add
fields=conditions,conditions_readable to include canonical conditions in the created
resource.
Authorizations
Generate a JWT access token through a Custom Global Integration and provide it with each request in the Authorization header prefixed with "Bearer" and then a single space.
Query Parameters
Select fields of the HandlingClass object. See the
selecting fields page for more information.
Specify fields of the HandlingClass object to include in the response.
all, name, code, sort_order, warehouses, conditions, referenced_product_profiles, conditions_readable, matched_count, classification, created_at, updated_at Specify fields of the referenced Warehouse objects to include under included.Warehouse. type and id are always returned. See the selecting fields page for more information.
Specify additional fields of the Warehouse object to be included in the response.
basic, all, id, name, is_active, abbreviation Specify fields of the referenced ProductProfile objects to include under included.ProductProfile. type and id are always returned. See the selecting fields page for more information.
Specify fields of an included ProductProfile object.
basic, all, name, code, conditions, conditions_readable, matched_count, classification, created_at, updated_at Body
Human-readable Handling Class name.
1 - 255"Heavy Bulky"
Evaluation precedence within every selected Warehouse.
0 <= x <= 100000020
Warehouses where the Handling Class is evaluated.
1A reference to a Warehouse by id.
A one-level OR-of-AND condition tree. The server accepts the {"and": [...]} shorthand
for a single group and always returns the canonical {"or": [{"and": [...]}]} form.
OpenAPI validates the structural envelope. ShipStream remains authoritative for available
Product fields, field/operator compatibility, option values, measurement units, raw CEL
validity, normalization, the limit of 64 condition rows across all groups, and the
65,535-byte compiled-expression limit. Editor clients can
load the applicable Product field catalogue from
GET /api/global/v1/inventory/product-profiles/condition-fields or
GET /api/global/v1/inventory/handling-classes/condition-fields.
- Option 1
- Option 2
Optional stable code; blank or omitted values are generated from the name.
64^[A-Za-z0-9_]*$"heavy_bulky"
Response
Handling Class created and Warehouse classification scheduled.
A Warehouse-scoped Product classification used by Slotting and Replenishment. Classification
is asynchronous: after conditions or Warehouse assignments change, poll the resource until
classification.status is up_to_date. Product changes flow through a separate asynchronous
changelog and may not appear immediately in materialized classification.
Related Warehouses and Product Profiles requested through nested fields:* parameters.