Cart API Guide

The Cart API allows you to handle cart operations, such as automatically processing a customer's shopping cart.

In this guide, you can find information to help you understand and integrate the following Cart API resources:

Process Cart

POST /cart/processcart

The Process Cart endpoint processes an order automatically. The customer does not need to use a browser, interact with cleverbridge, or enter new payment information. Instead, cleverbridge uses the customer's most recent payment details to process the order.

If the order cannot be processed automatically, the API will return a unique URL that can be sent to the customer in order to complete their transaction on the cleverbridge-hosted website.

Warning

Frequently calling the /processcart resource can cause a lot of server traffic. Before using this resource, contact Client Experience for more information.

Generate Cart Preview

POST /cart/generatecartpreview

The Generate Cart Preview endpoint creates a cart preview that is populated with product and price information. It also allows you to obtain the cleverbridge cart as an 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. Additionally, you have the option to display the information returned by this resource to the customer as either read-only or editable by the customer.

Warning

Frequently calling the /generatecartpreview resource can cause a lot of server traffic. Before using this resource, contact Client Experience for more information.