OrderQuotationRequest command

This command transmits requests for quotation orders to one or more quote-enabled stores for items in specified orders. Any existing quotation orders for the specified orders from any of the specified fulfillment centers are deleted. (Use the OrderQuotationCheck controller command to check to see if all the requested quotation orders have been received.)

Command structure

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

Diagram of the command structure: the command starts with the fully qualified name of your WebSphere Commerce Server and the configuration path, followed by the command name, OrderQuotationRequest  and the ? character. End the command with a list of parameters in the form of name value pairs. Separate each name value pair with the & character. For a detailed description of the parameters and their values, refer to the list entitled Parameter values.

Parameter values

quotationType
Specifies the type of quotation requested, "initial" or "final". The default value of this parameter is "initial".
orderId
Specifies the shopcart for which quotations are to be requested.  The default value of this parameter is ".".  This parameter can be repeated.
deleteOrderQuotationRelId
Specifies the OrderQuotationRel objects to be deleted (along with their child orders) if their type is "initial", "final", or "selection" and if their parent orders are one of the shopcarts specified in the orderId parameter. The default value of this parameter is "*n".  This parameter can be repeated.
quotationStoreId_i
Specifies a store from which quotations are to be requested. Stores that are not quote-enabled under the contract specified by the quotationContractId_i parameter for the current user in the current store are ignored.
quotationContractId_i
Specifies a contract containing a ReferralInterfaceTC that indicates a PolicyCommand to be used to obtain a quotation. A system exception is thrown if a specified contract does not contain such a ReferralInterfaceTC or is not deployed in the store indicated in quotationStoreId_i.  This parameter is ignored if quotationStoreId_i is not specified.
quotationUserId_i
Specifies the user ID to be sent with the quotation request sent to the store indicated by storeId_i for the contract indicated by quotationContract_i. This parameter is ignored if quotationStoreId_i is not specified.
quotationPassword_i
Specifies a password for the user ID specified by the quotationUserId_i parameter. This parameter is ignored if quotationStoreUserId_i is not specified.
outOrderQuotationRelIdName
Specifies the names of name-value pairs that should be added to the redirection URL. The values of the added name-value pairs are the identifiers of the OrderQuotationRel objects created by this command invocation.  This parameter can be repeated.
URL
Specifies the redirection URL that is returned when the command successfully completes.

Example 1

The following example requests initial quotations for the current shopping cart in store 1111 from referral stores 2222 and 3333. All existing initial, final, and selection orders for the shopping cart are deleted before the requests are sent. After the requests are sent, it re-directs to a URL that waits for the quotation responses to arrive. 

     http://myhostname/webapp/wcs/stores/servlet/OrderQuotationRequest?storeId=1111
          &orderId=.
          &quotationType=initial
          &quotationStoreId_1=2222&quotationStoreId_2=3333
          &deleteOrderQuotationRelId=*parent.
          &URL=WaitForInitialQuotations

Example 2

The following example requests final quotations for the selection orders for the current shopping cart in store 1111 from referral stores 2222 and 3333. After the requests are sent, it re-directs to a URL that waits for the quotation responses to arrive. 

     http://myhostname/webapp/wcs/stores/servlet/OrderQuotationRequest?storeId=1111
          &orderId=.
          &quotationType=final
          &quotationStoreId_1=2222&quotationStoreId_2=3333
          &URL=WaitForFinalQuotations

Behavior

Exception conditions