All cart endpoints require Firebase authentication. The cart is associated with the logged-in user and persists across sessions. Each user may have at most one active cart at a time, and all items in a cart must belong to the same bakery.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/AndrewwCO/Panahashi/llms.txt
Use this file to discover all available pages before exploring further.
GET /cart — fetchCart()
Returns the current user’s cart, including all items and the associated bakery.
Response fields
ID of the bakery all cart items belong to.
Display name of the bakery.
Array of items currently in the cart.
Example
POST /cart/items — addToCartApi(bakeryId, productId, qty)
Adds a product to the cart, or increments its quantity if already present.
Request parameters
ID of the bakery the product belongs to. All items in a cart must share the same bakery.
ID of the product to add.
Quantity to add. Defaults to
1.Response fields
Returns the updated cart object with the same shape asfetchCart().
Example
PATCH /cart/items — updateCartItemApi(productId, qty)
Updates the quantity of an existing cart item. Set qty to 0 to remove the item entirely.
Request parameters
ID of the product to update.
New quantity for the product. Pass
0 to remove the item from the cart.Response fields
Returns the updated cart object with the same shape asfetchCart().