Generate Cart Preview

Creates a cart preview that is populated with product and price information and allows you to obtain the Cleverbridge cart as a JSON or XML file. You can use this resource to access what customers see when they use a certain IP address or language. You can also use the response to populate your web page with product and pricing information stored in the Cleverbridge platform. This circumvents the need to maintain duplicate product and pricing information in both your database and on the Cleverbridge platform. In addition, you have the option of generating a session URL (SURL). For more information, see Generate User Session URL.
For XML examples and schemas, see the Additional Examples - Generate Cart Preview.

Body Params
string
Defaults to de; q=1.0, en; q=0.5

The Accept-Language Header as submitted by the customer's browser.

boolean
Defaults to true

Set to true to receive a session URL (SURL) in the response. A session URL is only valid for one purchase or 72 hours after the last web hit for that session has been requested from the Cleverbridge web servers.

string
required
Defaults to 4.2.2.2

The IPv4-Address that corresponds with the country, state, etc. of the customer.

string
required
Defaults to https://www.cleverbridge.com/8/?scope=cart&cart=1455

The URL you would use to redirect the customer to the checkout process. If the API request is sent in XML, the URL must be encoded. For more information, see the HTML URL Encoding Reference.

Headers
string
enum
Defaults to application/json

Expected response format.

Allowed:
string
enum
Defaults to application/json

Format of the HTTP post body.

Allowed:
Responses

Language
Credentials
Basic
base64
:
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json