Create a cart

To create a cart, make the following request:

Copy
Copied
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:

Copy
Copied
{
	"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.

Copyright © TUI Musement. All rights reserved.