Create Cart

Cart creation initializes a new cart. If no request body, or an empty request body, is passed to this endpoint an empty cart will be created.

An optional request body containing your preferred base currency, skus, and referral_id can be provided to create a cart with initial values.

Optional Query Parameters:

app_order_id - use this parameter to map the order in Violet to an order record within your system.

curl -X POST https://sandbox-api.violet.io/v1/checkout/cart \
-H "X-Violet-App-Id: your-app-id-here" \
-H "X-Violet-App-Secret: your-app-secret-here" \
-H "X-Violet-Token: your-token-here" \
-H "Content-type: application/json" \
-d '{"base_currency": "USD", "skus": [{"sku_id": 999, "quantity": 1}]}'