Reference > Shop flow URLs > Catalog subsystem URLs > Offers


OfferUpdate URL

This URL updates 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, OfferUpdate , 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 combined with identifier.

catentryId

Required: The reference number of the catalog entry. You must specify either catentryId combined with identifier, or offerId.

identifier

Required: The external identifier of the catalog group. You must specify either identifier combined with catentryId, or offerId.

field1

A customizable field.

field2

A customizable field.

flags

Indicates whether a shipping address is required.

maxQuantity

The maximum quantity that can be purchased in a single order under this offer.

minQuantity

The minimum quantity that can be purchased in a single order under this offer.

precedence

When more than one offer is effective at a particular time, the one with the highest precedence is used.

published

Indicates whether the offer is not published (0), published (1), or marked for deletion (2).

qtyunitId

The unit of measure for the minimum and maximum quantities.

desc

The description of the offer.

descLangId

The description of the language's reference number.

compareprice

Reserved for IBM internal use.

currency

The currency of the offer.

price

The price of the offer.

startDate

The start of the time range during which this offer is effective.

endDate

The end date of the offer.

URL

The URL to be called when the command completes successfully.


Example

The following example provides offer 10005 with identifier 1 and applies the offer to catalog entry 10001:

http://host_name/webapp/wcs/stores/servlet/OfferUpdate?
offerId=10005&catentryId=10001&identifier=1&descLangId=-2
&currency=HKD&price=3.3&field1=Hello&field2=b
&flags=0&maxQuantity=99&minQuantity=10&&precedence=0
&published=1&qtyunitId=C62&&desc=an offer
description 3
&comparePrice=99&URL=LogonForm


Behavior


Exception conditions

None.


Related concepts

Catalog subsystem

Related reference

OfferAdd URL

OfferDelete URL

Catalog subsystem URLs


+

Search Tips   |   Advanced Search