Skip to main content
The initialize method creates a WebSession object. Call this method before presenting your HOA-based Web order form to your customer. The call returns the new WebSession object with a populated VID attribute. Embed that VID in the order form as a hidden form element with the name vin_WebSession_vid to make it available to HOA at form submission. You only need to pass in the Subscribe API object attributes that you have collected thus far in the customer’s flow. Remaining attributes can be passed in with the WebSession.finalize call. To create a WebSession object, set the values for its data members (see WebSession Data Members) and then call initialize() to store the changes in the Vindicia database. Do not set a value for VID because Subscribe automatically generates that when you call initialize().

Input

srd: sparse response description, a SOAP string (which must be a JSON object), in which you specify the elements you want returned.This parameter enables the calling system to constrain a method call to return only components you specify. This gives you greater control over returned content, and improves response time within the Vindicia platform by reducing the processing needed for the call. Some fields are required, either practically or in the WSDL, and will be returned regardless of the srd. A null srd returns the complete response. session : the WebSession object to create.

Output

return: an object of type Return that indicates the success or failure of the call. session: the WebSession object that contains the data that you passed, the VID, and the expireTime value assigned by Subscribe.

Returns

In addition to those listed in The Return Object, this call returns:

Example

Parent topic:WebSession Methods