WebSphere Commerce Enterprise

ContractNewVersion URL

This URL creates a new version of a contract.

URL structure

http:// host_name/path/
The fully qualified name of your WebSphere Commerce Server and the configuration path.

Parameter values

contractId
Required: The contract ID of the contract for which you want to create a new version, as found in the CONTRACT database table.
majorVersion
An optional parameter specifying the version number of the contract. The major version number is the one before the period in a version number such as 1.2. If not specified, the system will increment the minor version number as stored in the database for the contract specified using the contractId parameter.
minorVersion
An optional parameter specifying the version number of the contract. The minor version number is the one after the period in a version number such as 1.2. If not specified, the system will increment the minor version number as stored in the database for the contract specified using the contractId parameter.
URL
Required: The URL to be called when the command completes successfully.

Example

This example creates a new version of contract 260369:


https://myhostname/webapp/wcs/stores/servlet/ContractNewVersion?contractId=260369&URL=StoreCatalogDisplay?storeId=512&catalogId=512

Behavior

This URL creates a new version of a contract.

Exception conditions

  • _ERR_CONTRACT_OBJECT_NOT_FOUND is thrown if a contract with the supplied contract ID is not found.