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


OrderCreate URL

This URL creates an order without any order items.


Controller command

OrderCreateCmd


Implementation class

OrderCreateCmdImpl


Commands called

SetOrderOrganizationCmd

StoreAndValidatePaymentCmd

RaiseOrderEventCmd


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, OrderCreate , 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

URL

Redirection URL.

description

Text description of the order.

outOrderName

The name-value pair to be added to the redirection URL.

The default name is "outOrderId" The value of the name-value pair is the reference number (order ID) of the created order.


Example

The following example creates an order without any order items:

    
http://myhostname/webapp/wcs/stores/servlet/OrderCreate?URL=OrderDisplay
    
&description=OrderwithoutOrderItems&outOrderName=OrderName 


Behavior

Create a new order record and update it with the following information:

Call SetOrderOrganizationCmd to set the organization information for the order

Call StoreAndValidatePaymentCmd (EDP command) to create the payment container

Call RaiseOrderEventCmd to raise the ORDER_CREATION_EVENT


Exception conditions

None.


Related concepts

Order Management subsystem

Related reference

Order Management subsystem URLs


+

Search Tips   |   Advanced Search