Reference > Shop flow URLs > Catalog subsystem URLs > Offers


OfferDelete URL

This URL deletes an offer, and its description and price.


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

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.


Related concepts

Catalog subsystem

Related reference

OfferAdd URL

OfferUpdate URL

Catalog subsystem URLs


+

Search Tips   |   Advanced Search