# Create a cart
curl -X POST "https://api.craveup.com/api/v1/locations/loc_123/carts" \
-H "X-API-Key: $CRAVEUP_API_KEY" \
-H "Content-Type: application/json" \
-d '{"marketplaceId": "loc_123", "currentCartId": ""}'
# Add an item
curl -X POST "https://api.craveup.com/api/v1/locations/loc_123/carts/cart_456/cart-item" \
-H "X-API-Key: $CRAVEUP_API_KEY" \
-H "Content-Type: application/json" \
-d '{"productId": "prod_margherita", "quantity": 2}'
# Schedule the order
curl -X PUT "https://api.craveup.com/api/v1/locations/loc_123/carts/cart_456/update-order-time" \
-H "X-API-Key: $CRAVEUP_API_KEY" \
-H "Content-Type: application/json" \
-d '{"pickupType": "LATER", "orderDate": "2024-10-11", "orderTime": "18:15"}'