When a customer arrives to collect their order, Panahashi Baker lets you complete the handoff by scanning the unique QR code displayed in their app. The scanner opens the device’s rear camera, animates a scan line across a viewfinder, and processes the code the moment it is detected — no button press required.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/AndrewwCO/Pana-Baker/llms.txt
Use this file to discover all available pages before exploring further.
How the customer QR flow works
Every order contains aqrCode value generated by the backend when the order is created. The customer presents this code (displayed in their own app) at pickup. You scan it with Panahashi Baker and the order moves to COMPLETED automatically.
The QR code is tied to your bakery. Scanning a QR code from a different bakery’s order returns an error — the API validates that the code belongs to one of your orders.
Opening the scanner
You can open the QR scanner from two places:- From the Orders screen
- From an order detail
Tap the QR code button (amber square icon) in the top-right corner of the Orders screen header. After a successful scan the orders list refreshes automatically and a “¡Orden completada!” toast appears.
Using the scanner
Grant camera permission
The first time you open the scanner, iOS or Android will ask for camera access. Tap Permitir acceso on the in-app permission screen, then confirm in the system dialog. Without camera permission the scanner cannot function.
Aim at the customer's QR code
Point your device’s rear camera at the QR code on the customer’s screen. The viewfinder shows four corner brackets and the hint “Apunta al código QR del cliente” below it.
Wait for the scan line
An amber animated line sweeps continuously from top to bottom of the viewfinder while the scanner is active. You do not need to tap anything — the app detects the QR code as soon as it is in frame.
Read the result
As soon as the code is detected, the scan line stops and the viewfinder fills with a result overlay:
- Success: green overlay with a checkmark icon and “¡Completado!” — the screen closes automatically after 1.8 seconds
- Error: red overlay with an X icon and the error message (e.g. “QR inválido o no corresponde a tu panadería”) — the scanner resets after 2.5 seconds so you can try again
What happens on a successful scan
- The app calls
POST /orders/verify-qrwith the scanned code (converted to uppercase) - The backend validates the code and marks the matching order as COMPLETED
- The success overlay is shown for 1.8 seconds
- The scanner closes and control returns to the Orders screen
- The Orders list refreshes to reflect the completed order
Camera permissions
The app usesexpo-camera and requests only the camera permission — no microphone or storage access is required for scanning.
Orders
Manage the full order lifecycle before using the QR scanner
Bakery Profile
Make sure your bakery is open before customers start placing orders