Reference > Shop flow URLs > Trading subsystem URLs > Account and contract URLs
ContractNewVersion URL
This URL creates a new version of a contract.
URL structure
- http:// host_name/path/
- The fully qualified name of the WebSphere Commerce Server and the configuration path.
name-value pair with the & character. For a detailed description of the parameters and their values, see the list entitled Parameter values." />
Parameter values
- contractId
- Required: The contract ID of the contract for which 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.