Deprecated feature

OfferDelete URL

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

URL structure

http:// host_name/path/
The fully qualified name of your Transaction server and the configuration path.

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

  • If the OfferId is supplied, and:
    • the description language ID is supplied, then delete the offer description with the specified OfferId and descLanguageId.
    • the currency is supplied, then delete the offer price with the specified offerId and currency, and if no more offer price exists for that offerId, the offer will be deleted. The ListPriceDelete command is called with the currency and CatEntryId found in the offer.
    • the currency is generic (currency=*), then delete the offer and its price with the specified offerId. The ListPriceDelete command is called with the CatEntryId found in the offer.
  • If the CatEntryId is supplied, and:
    • the description language ID is supplied, then delete all offer descriptions with the specified language ID for that CatEntryId.
    • the currency is supplied, then for each offer with the specified CatEntryId, the offer price for that currency is deleted. Also calls ListPriceDelete for the specified CatEntryId and currency.
    • the currency is generic (currency=*), then all offers, offer descriptions, offer prices with the specified CatEntryId is deleted. The ListPriceDelete command is called with the CatEntryId found in the offer.

Exception conditions

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