When building ecommerce, the shopping cart management is one of the key steps, as it bridges the gap between browsing and buying, driving the customer to the checkout process.
A sample product page with shopping cart summary
This guide will walk you through all the actions that you typically want to implement on your shopping cart, like adding a new line item, updating quantities, or displaying a cart summary to the customer.
We will assume all the example requests to be authenticated through a valid access token for a sales channel application. See the Authentication section of our documentation if you need more information on how to get an access token for your application.