Cart

A cart in Brink contains every piece of product data that you need to render a cart overview in the front-end.

A Brink Commerce API cart

It contains:

  • The products added to the cart
  • Prices
  • Amounts
  • Discounts
  • Store information
  • Potential rules that has been applied to it.

It is also possible to add discount codes and a shipping option, but it's recommended to do this in the checkout.

Create cart

To create a cart, you need to have a store and products already created. They are needed to populate the cart.

The jwtToken is needed for further communication with Brink Commerce Cart and Order API.