The Products API exposes the bakery product catalog. Customers browse available products by bakery; bakers manage their full catalog including out-of-stock items.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.
Product object
Unique product ID.
ID of the owning bakery.
Product name.
Price in local currency.
Display emoji for the product (e.g. ”🥐”).
One of:
READY_NOW, READY_IN_20, READY_IN_60, ADVANCE_ORDER_ONLY, OUT_OF_STOCK.Current stock count.
Category label (e.g. “Panes”, “Pasteles”).
Product description.
Firebase Storage image URL.
Whether the product is available for ordering. Automatically
false when stock reaches 0.Minutes of advance notice required for ADVANCE_ORDER_ONLY items.
Availability status values
| Status | Meaning |
|---|---|
READY_NOW | In stock and ready immediately |
READY_IN_20 | Ready in approximately 20 minutes |
READY_IN_60 | Ready in approximately 60 minutes |
ADVANCE_ORDER_ONLY | Must be ordered in advance |
OUT_OF_STOCK | Temporarily unavailable |
GET /api/v1/products
Returns all available products for a bakery (available = true).
Auth required: No
ID of the bakery to fetch products for.
GET /api/v1/products/
Returns a single product by ID. Auth required: Yes (any role)Product ID.
GET /api/v1/products/my
Returns all products for the authenticated baker’s bakery, including out-of-stock items. Auth required: Yes — BAKERGET /api/v1/products/admin/all
Returns all products across every bakery on the platform. Auth required: Yes — ADMINPOST /api/v1/products
Creates a new product for the authenticated baker’s bakery. Auth required: Yes — BAKERProduct name.
Price.
Display emoji.
One of the availability status values.
Initial stock count.
Category label.
Product description.
Image URL (use the Upload API to get this).
Whether immediately available. Overridden to
false if stock is 0.Required advance minutes for ADVANCE_ORDER_ONLY.
PATCH /api/v1/products/
Updates a product. Baker must own the product’s bakery. Auth required: Yes — BAKERProduct ID.
PATCH /api/v1/products//stock
Updates only the stock count. Setting stock to0 automatically sets available = false.
Auth required: Yes — BAKER
Product ID.
New stock count.
When stock reaches 0,
available is automatically set to false. Set a positive stock value to re-enable availability.DELETE /api/v1/products/
Deletes a product. Baker must own the product’s bakery. Auth required: Yes — BAKERProduct ID.