Create a cart

Integration flowIntegration flow

Integration flow

To create a cart simply send a POST to the endpoint /api/v3/carts

curl -X POST \
  https://api.musement.com/api/v3/carts \
  -H 'Authorization: Bearer ValidAccessToken' \
  -H 'Cache-Control: no-cache' \
  -H 'Content-Type: application/json' \
  -H 'X-Musement-Currency: USD' \
  -d '{}'

The response is an empty cart. The only thing you need is the cart uuid. We will later refer to this value using [CART_UUID]

{
    "uuid": "[CART_UUID]",
    "items": [],
    "full_price": {
        "currency": "USD",
        "value": 0,
        "formatted_value": "$ 0.00"
    },
    "discount": {
        "currency": "USD",
        "value": 0,
        "formatted_value": "$ 0.00"
    },
    "retail_price": {
        "currency": "USD",
        "value": 0,
        "formatted_value": "$ 0.00"
    },
    "service_fee": {
        "currency": "USD",
        "value": 0,
        "formatted_value": "$ 0.00"
    }
}