Allocate to Warehouse

Assign all order shipments to a specific warehouse using a configured warehouse code.

Overview

The Allocate to Warehouse step assigns all shipments in an order to a specific warehouse defined in the workflow step configuration. This is useful when you want to force orders to be fulfilled from a particular location regardless of inventory distribution.

Identifier

PropertyValue
KeyAllocateToWarehouse
GroupReallocate
Applicable StatusesNew

Configuration Properties

PropertyTypeRequiredDescription
WarehouseCodestringYesThe warehouse code to assign to all shipments
SkipForManualOrderbooleanNoSkip this step for orders created manually (orders with a CartId)
SkipForShipmentstringNoComma-separated list of shipping method names to skip

Behavior

What It Does

  1. Checks if the step is available for the order's market
  2. Checks if the shipping method should be skipped (via SkipForShipment)
  3. Checks if manual orders should be skipped (via SkipForManualOrder)
  4. Retrieves the target warehouse code from configuration
  5. Assigns the configured warehouse to all shipments in the order

Prerequisites

  • Order must have at least one shipment
  • The WarehouseCode property must be configured

Side Effects

  • Updates WarehouseCode on all shipments in the order
  • Does not validate inventory availability at the target warehouse

Business Cases

When to Use

  • Centralized fulfillment: Route all orders to a central distribution center
  • Market-specific warehouses: Use market restrictions to route orders from specific markets to designated warehouses
  • Special handling: Route certain shipping methods to specific facilities

Example Scenarios

Scenario 1: Central Warehouse Configure with WarehouseCode = "CENTRAL" to route all standard orders to your central warehouse.

Scenario 2: Store Pickup Exception Configure with SkipForShipment = "ClickAndCollect,StorePickup" to allow store pickup orders to retain their store assignment while routing other orders centrally.

Scenario 3: Skip Manual Orders Configure with SkipForManualOrder = true when store staff manually create orders that should ship from their location rather than being reallocated.

Error Handling

ConditionResultContinues Workflow?
Market not availableWarningYes
Shipping method in skip listSuccess (skipped)Yes
Manual order with skip enabledSuccess (skipped)Yes
Missing WarehouseCode propertyErrorDepends on StopOnError
No shipments on orderNo action takenYes

On this page