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


AdvancedOrderEditBegin URL

Sets up an order for editing or changes and begins an edit session. It attaches an editor ID to the order. This URL checks whether the order and order items are editable, and if it so, changes the status to E. Meanwhile, if the order and order items are in a shopping cart, no status change is made. Orders that have already been submitted can be changed before they are released to fulfillment.

Editor IDs can be overwritten with a new value when some other user runs the command. The editing control is designed to be loose at the server side so that orders can be open for change by using a user interface. The full history of the changes made to an order by using this URL are not tracked.

After an order is in EDT state, as in the NEW state, normal changes can be made to the order. For example, you can:

After an order becomes editable, you can use the most common commands to take further action. For example, commands in the following API packages can be used (not a comprehensive list):

You should not use other methods to edit the order. For example, you should not do direct edits on the OrderBean object.


URL structure

http:// host_name/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, AdvancedOrderEditBegin , 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

orderId

Required: The identifier of the order to edit or change.


Example

The following example sets up order 112233 to be edited (the assumption is that the order is in PRC state already):

http://host_name/webapp/wcs/stores/servlet/AdvancedOrderEditBegin?orderId=112233

The member ID of the WebSphere Commerce user issuing the command is attached to the order specified, and the order is moved to EDT state.


Behavior

Important! Orders that have been moved from PRC to EDT state by using this URL are not protected from external access. Customers cannot access the order in the storefront, but they can still access and manipulate the order by using direct use of the URL to the standard set of order capture commands. For example, a customer, Mike, shops at a store and submits an order for one coffee maker, and later decides to add a new item to the order. Mike calls the call center and asks the CSR to change the order. The CSR uses the IBM Sales Center and puts the order into EDT state. While on the phone with the CSR, Mike stalls the CSR and modifies the order by issuing a URL query from his browser to increase the quantity to 100 (for example, http://www. company.com/webapp/wcs/stores/servlet/OrderItemUpdate?orderItemId=1000122$quantity=100). He then informs the CSR that he no longer wanted to change the order. The CSR resubmits the order. In reality, the subsequent processing done by OrderPrepare and OrderProcess would know the quantity of the item that was changed and act accordingly. This situation is unlikely, but it could occur and the order could be modified externally by a customer.


Exception conditions


Related concepts

Order Management subsystem

Related reference

Order Management subsystem URLs


+

Search Tips   |   Advanced Search