Skip to main content

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.

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.

How the customer QR flow works

Every order contains a qrCode 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:
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

1

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.
2

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.
3

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.
4

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

  1. The app calls POST /orders/verify-qr with the scanned code (converted to uppercase)
  2. The backend validates the code and marks the matching order as COMPLETED
  3. The success overlay is shown for 1.8 seconds
  4. The scanner closes and control returns to the Orders screen
  5. The Orders list refreshes to reflect the completed order

Camera permissions

If you previously denied camera access, the in-app Permitir acceso button will open your device’s system settings where you can re-enable the permission for Panahashi Baker. The scanner cannot open the camera without this permission granted.
The app uses expo-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

Build docs developers (and LLMs) love