WebSphere Commerce Enterprise

ContractSetInSession URL

This URL sets the contracts that are applied to a registered shopper while they are browsing the store front. A registered shopper can shop under more than one contract at the same time. A shopper must be logged in to a store before this URL can be used.

URL structure

http:// host_name/path/
The fully qualified name of your WebSphere Commerce Server and the configuration path. You can use either HTTP or HTTPS with this URL.

Parameter values

Required: The contract ID for the contract you want to shop under for this session. You can set multiple contract IDs, but at least one is required for this URL. This parameter can be repeated.
Required: The URL to be called when the command completes successfully.


This example shows the contract IDs 260369 and 212394 being assigned to the registered shopper:



This URL sets contract IDs to use in the current session. Contracts that are specified in this URL will be used in the shopping flow after this URL successfully completes. The ContractSetInSession command calls ContractListView when the ContractSetInSession command completes successfully.

Exception conditions

The following exceptions can be produced by this URL:

  • _ERR_DIDNT_LOGON can be produced if the user is not logged on to the store before this URL is issued.
  • _ERR_NOT_ENTITLE_TO_THIS_CONTRACT can be produced if the user in this session is not entitled to use one of the contracts that are specified in the command.