Postman collection
Orders Write

pixiRequestPartialDelivery

Enables or disables partial delivery for an order and sets the related cancel and multi-partial-delivery flags, unless the order is closed or on hold.

Changes the partial delivery settings in the header of one order.

  1. The overall state of the order is determined from its order lines:
    • CLOSED – all lines are in a final state, or the order has no order lines at all (this also applies to order numbers that do not exist).
    • HOLD – every line is either in status HAL, in status MIN or in a final state.
    • OPEN – otherwise.
  2. Only if the state is neither CLOSED nor HOLD, the order header with OrderNr = @OrderNr is updated:
    • ForceToPicklistIfNotFULL is set to 1 if @PartialDeliveryActive is 1; if it is 0 or NULL, the field is set to NULL (partial delivery off). This value is always written.
    • OHCancelAfterForcedShipOut is set to @CancelUnavailableItems; if the parameter is omitted or NULL, the current value is kept.
    • OHMultiForceToPicklist is set to @PartialDeliveryForRemaining; if the parameter is omitted or NULL, the current value is kept.
  3. The number of affected rows is returned in the column RowsUpdated (1 if the order header was updated).

Notes

  • No error is raised if the order is closed, on hold or does not exist; the call simply performs no update. Check RowsUpdated to see whether the change was applied.
  • RowsUpdated is read from @@ROWCOUNT after the conditional update. If the update is skipped, the value is not explicitly set to 0 but taken from SQL Server's row count handling of the preceding statements; do not rely on it alone to distinguish states – query the order state separately if exact feedback is needed.
  • Unlike the other two flags, @PartialDeliveryActive has no keep-current fallback: passing NULL switches partial delivery off.
  • The order state is determined with NOLOCK reads on order lines, so concurrently changing lines may lead to a slightly outdated state check.
  • No explicit transaction is used.

Tables used

OrderHeader · Write Orderlines · Read OrderStates · Read
SQL object:
dbo.pipiRequestPartialDelivery
Updated at 2026-10-30