The Cart API manages a per-user shopping cart stored in Firestore. Each cart is tied to a single bakery — adding an item from a different bakery automatically clears the existing cart first. The cart is automatically cleared when a successful order is placed.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/AndrewwCO/Panahashi-Backend/llms.txt
Use this file to discover all available pages before exploring further.
Cart object
Firebase UID of the cart owner.
ID of the bakery this cart is for.
Name of the bakery.
List of items in the cart.
Last updated epoch ms.
GET /api/v1/cart
Returns the authenticated customer’s current cart. Auth required: Yes — CUSTOMERPOST /api/v1/cart/items
Adds an item to the cart or increments its quantity if already present. Auth required: Yes — CUSTOMERBakery the product belongs to.
Product ID to add.
Quantity to add.
PATCH /api/v1/cart/items
Updates the quantity of an existing cart item. Setqty to 0 to remove the item.
Auth required: Yes — CUSTOMER
Product ID to update.
New quantity. Use
0 to remove the item from the cart.