Skip to main content

reassignFulfillmentWarehouse

Reassigns the warehouse on a pre-send fulfillment order.

Changes the warehouse associated with a fulfillment that is in a pre-send state (draft, allocated, or failed_to_fulfill). If the fulfillment has inventory allocated, inventory is atomically deallocated from the old warehouse and reallocated at the new one.

Requirements

  • User must have reassign_fulfillment_warehouse permission
  • Valid brand context must be provided (via argument or X-Brand-Id header)
  • Fulfillment must exist and be in a pre-send state (draft, allocated, or failed_to_fulfill)
  • New warehouse must exist and be managed by Endless Commerce

Arguments

  • fulfillment_id (required): The ID of the fulfillment to reassign
  • order_id (required): The ID of the order the fulfillment belongs to
  • warehouse_id (required): The ID of the new warehouse to assign
reassignFulfillmentWarehouse(
input: ReassignFulfillmentWarehouseInput!
): OrderFulfillment!

Arguments

reassignFulfillmentWarehouse.input ● ReassignFulfillmentWarehouseInput! non-null input common

Parameters for ReassignFulfillmentWarehouse

Type

OrderFulfillment object orders

This type represents an order fulfillment. An order can have multiple fulfillments, each one associated with a warehouse and a party that fulfilled the order.