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 that will 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 the 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.

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 in 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.