Reallocate Entire Order Based on Zip Code

Move an entire order to the warehouse that serves the delivery zip code, without splitting.

Overview

The Reallocate Entire Order Based on Zip Code step attempts to move an entire order to a warehouse that can fulfill all items and serves the delivery zip code region. Unlike splitting steps, this keeps the order whole and only succeeds if a single warehouse can handle everything.

Identifier

PropertyValue
KeyReallocateEntireOrderBasedOnZipCode
GroupReallocate
Applicable StatusesNew

Configuration Properties

PropertyTypeRequiredDescription
ignoreZipCodeRangebooleanNoIf true, ignores warehouse zip code range restrictions
storeRolesstringNoFilter eligible warehouses by role

Behavior

What It Does

  1. Validates that the order exists and no specific shipment is targeted
  2. Finds warehouses that serve the delivery zip code based on configuration options
  3. Checks if any matching warehouse has all items in stock
  4. If found, reassigns all shipments to that warehouse

Prerequisites

  • Order must not be running at shipment level (shipment parameter must be null)
  • Warehouses must have zip code ranges configured
  • At least one warehouse must have all items in stock

Side Effects

  • Changes warehouse assignment on all shipments
  • Adds error to order if reallocation fails and StopOnError is enabled
  • Does not split the order under any circumstances

Business Cases

When to Use

  • Regional fulfillment: Route orders to the nearest regional warehouse
  • Delivery optimization: Minimize shipping distance and cost
  • Avoid order splitting: When you prefer delayed delivery over multiple shipments

Example Scenarios

Scenario 1: Regional Distribution Customer orders from zip code 90210. The step finds the Los Angeles warehouse serves this zip code and has all items in stock, so the order is allocated there instead of a default eastern warehouse.

Scenario 2: No Available Warehouse If no warehouse serving the zip code has all items, the step returns success without changes (unless StopOnError is configured).

Error Handling

ConditionResultContinues Workflow?
Order not foundErrorDepends on StopOnError
Shipment provided (shipment-level workflow)Success (not applicable)Yes
Successful reallocationSuccessYes
No suitable warehouse foundSuccess (no change)Yes
No suitable warehouse + StopOnErrorErrorNo (cancels workflow)
Exception during reallocationErrorDepends on StopOnError

On this page