Cart API
2/7/25Less than 1 minute
Cart API
Description
The Cart API provides endpoints for managing a user's shopping cart. Users can add, update, remove, and list items in their cart. The API supports both authenticated users and guest users.
Authentication Requirements
- Authenticated Users: Must provide a valid JWT token in the
Authorization
header. - Guest Users: Must provide a
sessionId
to track their cart. - The
X-MerchantApiKey
header is mandatory for all requests.
Available Endpoints
- Generate Cart Session (For guest users)
- Add Item to Cart
- List Cart Items
- Increment Cart Item Quantity
- Decrement Cart Item Quantity
- Remove Item from Cart
- Clear Cart