Skip to Content
OrdersSplit Rules

Split Rules

Split rules automatically divide orders into multiple child orders based on configurable criteria. This is useful when different line items need to ship from different warehouses or via different methods.

How Splitting Works

  1. An order comes in with multiple line items
  2. Split rules evaluate each line item against conditions
  3. If items match different rules, the order is split into child orders
  4. Each child order contains only the relevant line items
  5. The parent order tracks the overall status

Configuring Split Rules

Navigate to Settings > Split Rules in the portal, or use the API:

POST /api/split-rules Content-Type: application/json { "name": "Split by warehouse", "priority": 1, "conditions": { "field": "lineItems.sku", "operator": "starts_with", "value": "WH-EAST-" }, "action": { "type": "split", "assignTo": "east-warehouse" } }

Split Criteria

You can split orders based on:

CriteriaDescriptionExample
SKU prefixItems with specific SKU patternsWH-EAST-* goes to East warehouse
Product tagItems tagged with specific valuesfrozen items to cold storage
Weight thresholdItems above/below a weightHeavy items via freight
QuantityItems above a quantity thresholdBulk orders to wholesale fulfillment
Custom metadataAny metadata fieldfulfillmentType: dropship

Parent-Child Relationship

When an order is split:

  • The parent order retains the original order number and customer info
  • Child orders get a suffixed order number (e.g., #1234-A, #1234-B)
  • Each child order is independently fulfillable
  • The parent order status reflects the combined status of all children

Managing via API

GET /api/split-rules # List all rules POST /api/split-rules # Create a rule PATCH /api/split-rules/:id # Update a rule DELETE /api/split-rules/:id # Delete a rule

See API Reference: Split Rules for details.