OrderItemDelete URL

Delete an order item from a pending order.



Controller command


Implementation class


Commands called

URL structure

http:// host_name/ path/
The fully qualified name of your WebSphere Commerce Server and the configuration path.

This diagram displays the structure for the OrderItemDelete URL.

Parameter values

The logon ID of the user on whose behalf the command will be run; only a person with the authority to process orders can specify this parameter.
Same as forUser, but identifying the user by the internal user ID, as found in the USERS table.
Sets or resets the preferred language for the duration of the session; the supported languages for a store are found in the STORELANG table.
The store reference number.
Required: The URL to be called when the command completes successfully.
Required: The reference numbers of the items to be deleted from the orders. This parameter is required only if catEntryId is not specified. This parameter can be repeated.
The catalog entry ID of the item to be deleted from the order.
Specifies zero or more orders, using order reference numbers or one of the special abbreviations ".", "*", ".t", "*t". See the Order abbreviations for a description of these abbreviations. If this parameter is omitted, it defaults to ".".
Specifies the name-value pairs to add to the redirection URL. The values of the added name-value pairs are the reference numbers of the input orders.
The default value is 0. If it is 1, OrderCalculateCmd is called to calculate the charges and discounts for the order. If the value is 0, Order charges and discounts will not be calculated in this command.

Example 1

The following example deletes the items that are associated with an order item ID of 2 from the customer's order, and then calls the OrderItemDisplay command to re-display the items in the customer's order:


Example 2

The following example deletes the items with catalog entry ID of 2 from the customer's current pending orders. The reference numbers of the current pending orders are passed to the OrderItemDisplay command using the orderId parameter.



Check if the order is locked by the current CSR. If the order is not locked and called by a CSR, or if it is locked by another CSR, an exception is thrown.

Call DoInventoryActionCmd to reverse the update to the inventory for the deleted order item.

Delete the components of the order item if it is a kit or a package

Delete the order item

Call PrepareShipInfoCmd to delete the orphaned shipping information records

Call ResolveOrderItemPriceCmd to calculate the best price and update the order total

Call EventService to raise ORDERITEM_UPDATE_EVENT

If the flag calculateOrder is set:
  • Call OrderCalculateCmd to re-calculate any discounts

Exception conditions

If there are no products or orders match the specified parameters, the command execution fails.