All cart endpoints require authentication with
auth:sanctum.Get Cart Summary
Response
Formatted subtotal price
Formatted total tax
Formatted shipping cost
Formatted discount amount
Formatted grand total
Grand total numeric value
Applied coupon code
Whether coupon is applied
Example
Get Cart Count
Response
Get Cart List
Response
Formatted grand total
Array of shops with cart items
Example
Add to Cart
Request
Product ID
Product variant (e.g., “Red-Large”)
Quantity to add
Cost verification matrix
Response
Example
The API validates:
- Minimum order quantity
- Stock availability
- Auction products cannot be mixed with regular products
- Digital products are handled specially
Change Quantity
Request
Cart item ID
New quantity
Response
Example
Process Cart
Request
Comma-separated cart item IDs (e.g., “1,2,3”)
Comma-separated quantities matching cart_ids (e.g., “2,1,3”)
Response
Remove from Cart
Path Parameters
Cart item ID
Response
Example
Coupon Management
Apply Coupon
Coupon code to apply
Remove Coupon
Get Coupon List
Get Coupon Products
Shipping Management
Get Delivery Info
Calculate Shipping Cost
Shipping address ID
Update Address in Cart
Address ID to use
Update Shipping Type
Shipping type:
home_delivery, pickup_point, or carrier