API Test Console

API Request

POST

API Response

Status: -
Time: -
Waiting for request...
                

Current Cart State

Loading cart state...
        

API Documentation

POST /api/add-to-cart

Add product to cart

{"product_id": "1", "name": "Product", "price": 29.99, "quantity": 1}

GET /api/cart

Get current cart contents

POST /api/update-cart

Update item quantity

{"product_id": "1", "quantity": 2}

POST /api/remove-from-cart

Remove item from cart

{"product_id": "1"}