Creates an RFQ.
Command structure
- http://host_name/path/
- The fully qualified name of your WebSphere Commerce Server and the configuration path.
Parameter values
- name
- (required) The name of the new RFQ.
- shortdesc
- (optional) The short description for the new RFQ.
- longdesc
- The long description for the new RFQ.
- endresult
- Indicates what happens to the RFQ:
0=RFQ results in a contract
1=RFQ results in an order - startdate
- The date the RFQ was posted or activated.
- starttime
- The time the RFQ was posted or activated.
- ruletype
- RFQ closing rules:
1=RFQ closes at a fixed end time
2=RFQ closes if a specified number of responses are received
3=RFQ closes based on logical OR of 1 and 2
4=RFQ closes based on logical AND of 1 and 2 - enddate
- The date the RFQ was closed.
- endtime
- The time the RFQ was closed.
- numResponses
- This RFQ will be closed when this number of the responses have been received.
- accessType
- Indicates to what the RFQ is targeted:
0=RFQ is targeted to public
1=RFQ is targeted to private - account_id
- The account id used for this RFQ.
- catentryid_i
- The internal reference number of the CatalogEntry for the nth product included in this RFQ.
- price_i
- The requested price for the nth product included in this RFQ.
- currency_i
- The type of currency in which the price has been specified for the nth product included in this RFQ.
- quantity_i
- The quantity requested for the nth product included in this RFQ.
- quantityunit_i
- The unit of measure for the quantity requested for the nth product included in this RFQ.
Example 1
The following example creates RFQ with one product and will result in contract.
http://myhostname/webapp/wcs/stores/servlet/RFQCreate?name=RFQ1000&shortdesc=RFQ &endresult=0&startdate=2003-04-15&starttime=08:00&ruletype=1&enddate=2003-04-15&endtime=08:00 &numResponses=1&accessType=1&acoount_id=10001&catentryid_1=10006&price_1=12¤cy_1=USD &quantity_1=10&quantityunit_1=C62&URL=/
Example 2
The following example creates RFQ with one product and will result in order.
http://myhostname/webapp/wcs/stores/servlet/RFQCreate?name=RFQ1000&shortdesc=RFQ &endresult=1&startdate=2003-04-15&starttime=08:00&ruletype=1&enddate=2003-04-15&endtime=08:00 &numResponses=1&accessType=1&acoount_id=10001&catentryid_1=10006&price_1=12&¤cy_1=USD &quantity_1=10&quantityunit_1=C62&URL=/
Behavior
- Checks if the supplied RFQ name already exists in the database.
- Calls the CreateRFQBasicInfo task command to create basic RFQ Information.
- Calls the CreateRFQCatentryRel task command to add the product in the RFQ.
- Calls the CreateOrderCommentsTCCmd task command to create freeform terms and conditions for the RFQ.
- Calls the CreateOrderItemPAttributeTCCmd task command to add personalized attributes for each item in the RFQ.
Exception conditions
- The parameter name must be specified.
- The parameter ownerId must be specified.
- The parameter languageId must be specified.
- The parameter ruletype must be specified.