OfferDelete command

This command deletes an offer, and its description and price. This command is called by the Product Management tools in the WebSphere Commerce Accelerator.

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

offerId
(Required) The reference number of the offer. You must specify either offerId or catentryId.
catentryId
(Required) The reference number of the catalog entry. You must specify either catentryId or offerId.
descLangId
The description of the language's reference number.
currency
The currency of the offer.
URL
The URL to be called when the command completes successfully.

Example 1

The following example deletes the offer price for offer 10003 in the CAD currency:

http://host_name/webapp/wcs/stores/servlet/OfferDelete?
offerId=10003&currency=CAD&URL=LogonForm

Example 2

The following example deletes offer 10004 and all its offer price and offer descriptions:

http://host_name/webapp/wcs/stores/servlet/OfferDelete?
offerId=10004&currency=*&URL=LogonForm

Example 3

The following example deletes all the offers associated with catalog entry 765001, including all offer prices and descriptions:

http://host_name/webapp/wcs/stores/servlet/OfferDelete?
catentryId=765001&currency=*&URL=LogonForm

Behavior

Exception conditions

If the offer being deleted is the order item, then an error will be thrown and the order will not be deleted.