Reference > Shop flow URLs > Order Management subsystem URLs > Orders URLs


OrderCancel URL

Cancel the specified order by changing its order state, reversing any inventory allocations, and canceling any backordered items. This URL does not remove the order from the database. OrderCancel can cancel orders with an order status of A, B, C, I, L, M, N.


URL structure

http:// host/ path/

The fully qualified name of the WebSphere Commerce Server and the configuration path.

Diagram of the URL structure: The URL starts with the fully qualified name of the WebSphere Commerce Server and the configuration path, followed by the URL name, OrderCancel , and the ? character. End the URL with a list of parameters in the form of name-value pairs. Separate each <a href=name-value pair with the & character. For a detailed description of the parameters and their values, see the list entitled Parameter values." />


Parameter values

langId

Sets or resets the preferred language for the duration of the session; the supported languages for a store are found in the STORELANG table.

forUser

The logon ID of the user on whose behalf the command runs; only a person with the authority to process orders can specify this parameter.

forUserId

Same as forUser, but identifying the user by the internal user ID as found in the USERS table.

URL

Required: The URL that is called when the command completes successfully.

storeId

The store that is associated with the order.

orderId

Required: The reference number of the order to cancel.

forcedCancel

Optional: This parameter is used by payment rule to perform a refund. If there are some deposit transactions for the order, the order cannot be canceled except when the parameter is made forcedCancel=true. The default value is false.


Example

The following example cancels an order with a reference number of 1 and displays the shopping cart.

    http://myhostname/webapp/wcs/stores/servlet/OrderCancel?
    orderId=1&URL=/webapp/commerce/InterestItemDisplay 


Behavior


Exception conditions

If the order ID specified is invalid or if the order status is not A, B, C, I, L, M, N, or W, then no processing occurs and the command execution fails.


Related concepts

Order Management subsystem

Related reference

Order Management subsystem URLs


+

Search Tips   |   Advanced Search