Skip to content
Last updated

Create a cart

To create a cart, make the following request:

curl -X POST '{baseUrl}/carts' \
-H 'X-Musement-Application: {applicationValue}' \
-H 'X-Musement-Version: 3.4.0' \
-H 'Authorization: Bearer {accessToken}' \
-H 'Content-Type: application/json' \
--data-raw '{}'

The response will return an empty cart:

{
	"uuid": "cc6fcf36-2ec6-41b8-b715-1072d4e441e4",
	"items": [],
	[...]
}

Hold onto the cart's uuid property. You'll need it whenever you need to add products, update customer details or create an order.

Abandoned carts

Carts without an order are automatically removed after three months.