The orders resource lets authenticated users place pickup orders, browse their history, and inspect individual order records. All endpoints require Firebase authentication.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.
POST /orders — createOrder({...})
Places a new pickup order on behalf of the authenticated user.
Request parameters
ID of the bakery to order from.
Array of items to include in the order.
Desired pickup time in
HH:mm format (e.g. "09:30").Optional instructions for the bakery (e.g. dietary preferences).
Payment method for the order. One of
CASH_ON_PICKUP, CREDIT_CARD, DEBIT_CARD, or PSE. Defaults to CASH_ON_PICKUP.ID of a promotion to apply to this order. Optional.
Response fields
Unique identifier for the newly created order.
Current order status (e.g.
PENDING, CONFIRMED, READY, COMPLETED).QR code value the bakery scans to confirm pickup.
Example
GET /orders/me — fetchMyOrders(page, pageSize)
Returns a paginated list of all orders placed by the authenticated user.
Request parameters
Page number to retrieve. Defaults to
1.Number of orders per page. Defaults to
20.Response fields
Returns a paginated array of order objects. Each object has the same shape as the response fromcreateOrder(), plus any additional metadata the backend includes (e.g. createdAt, bakeryName).
Example
GET /orders/:id — fetchOrderById(id)
Returns the full details of a single order.
Request parameters
The unique identifier of the order to fetch.
Response fields
Returns a single order object with the same shape as the response fromcreateOrder().