Panly API docsstaging

Screens

Every panly-app screen and the API calls it makes, traced from the app source at elmermj/panly-app @ pre-staging-test (72aaffd). Nothing here is inferred from names: each call lists the lines that make it.

ScreenApp routesAccess (permission keys)Calls
Bootstrap (app start)/any3
Sign in and join/sign-in /joinguest5
Forgot password (staff)/forgot-passwordguest1
Staff setup link/staff-setupguest (token in the link)2
Staff password reset link/staff-resetguest (token in the link)2
Onboarding (new-owner setup)/onboardingsettings.manage8
Premium (owner paywall)/premiumowner, signed in (outside the shell)4
Business paused (staff)/business-pausedsigned-in staff (outside the shell)none
App shell (every signed-in page)all shell pagesany signed-in person14
More (phone)/moreany page key in the More listnone
Dashboard/dashboardreports.sales, reports.cashflow6
Orders (POS)/orders /orders/new /orders/new/cart /orders/id/:orderId /orders/id/:orderId/cartorders.create (new order), orders.view13
Split bill/orders/id/:orderId/splitorders.complete4
All orders/orders/all /orders/all/:orderIdorders.view4
Order receipt/orders/all/:orderId/receiptorders.view2
Order queue (kitchen)/order-queueorders.queue3
No access/no-accessany signed-in personnone
Order items/order-itemsitems.managenone
Items (menu catalogue)/itemsitems.manage3
Item editor/items/new /items/:iditems.manage19
Recipes/recipesitems.view1
Recipe editor/recipes/new /recipes/:iditems.manage (new), items.view (open)6
Stock/stockstock.view3
Shopping list/stock/shopping-listshopping.manage5
Stock in/stock/instock.manage5
Write-off/stock/write-offstock.manage3
Stock count/stock/countstock.manage2
Stock count result/stock/count/resultstock.managenone
Expenses/expenses /expenses/new /expenses/:id/edit /expenses/:id/historyexpenses.view11
Reports/reportsreports.sales, reports.cashflow4
Payroll/payrollpayroll.manage15
Payroll settings/payroll/settingspayroll.manage2
Users/usersstaff.manage7
Roles/rolesroles.manage7
Settings/settingssettings.manage, items.manage, stock.manage, expenses.manage5
Business profile/settings/businesssettings.manage, items.manage, stock.manage, expenses.manage2
Language/settings/languagesettings.manage, items.manage, stock.manage, expenses.manage1
Change password/settings/passwordany signed-in person1
Notifications/notificationsany signed-in person3
Charges/settings/chargessettings.manage2
Charge editor/settings/charges/new /settings/charges/:idsettings.manage3
Plan and storage/settings/plansettings.manage4
Add-ons/settings/plan/add-onssettings.manage4

Live endpoints no screen calls (42)

Served by the API and documented, but not used by any screen at 72aaffd (health and features the app has not built yet).

Traced by hand from the app source at app_commit: screen -> controller -> use case -> repository/datasource. Update this file when the app changes. Access is by permission key since PAN-88: the Access column lists the keys that open a page (any one of them is enough), taken from the app's route table; the keys held by each role come from GET /v1/roles. PAN-61 fields the app uses: status=restock (Shopping list), par_quantity and last_supplier. The PAN-65 shift API (locked_reason, DELETE /v1/shifts/{shiftId}, PATCH started_at) is used by Payroll. PAN-70/72/76/80/83: payroll settings, DELETE of a draft run, add and edit employees and the pay run preview are used by Payroll and Payroll settings. PAN-74: the optional cancel note on POST /v1/orders/{orderId}/cancel is used. PAN-73: recipe_cost is shown only in the desktop Items pane. PAN-78/79/80: onboarding (GET and PATCH /v1/merchants/me/onboarding, apply, complete), GET /v1/plans and POST and DELETE /v1/merchants/me/plan-selection are used by Onboarding and Plan and storage. PAN-85/87: POST /v1/stock-check and the Ready and Served ticks are used by Orders and the Order queue. PAN-89: GET and POST /v1/roles, PATCH and DELETE /v1/roles/{roleId} and GET /v1/permissions are used by Roles. PAN-93: PATCH /v1/me (language). PAN-107/112/120/121: staff logins (GET, POST, PATCH, DELETE /v1/staff, reset, id-availability) and the employee sign-in, setup, reset, forgot and change password endpoints; business codes. PAN-114/116/117/119/123: GET /v1/billing, GET /v1/config, checkout and confirm, and the add-ons endpoints. PAN-129: charges. PAN-126: expense amend and history. PAN-135: split bill. PAN-141: split by amount. PAN-128: 409 category_exists on a new category. PAN-137: stale expense cursor reloads page one. PAN-136: refined restyle across every page (FIXLIST items 1–51: Reports Sales and Items tabs, phone nav drawer, stock more menu); the app no longer offers a Free plan or invite links. Not used by the app at this commit: every invitations endpoint, GET and PATCH /v1/members/{membershipId}, GET /v1/staff/{staffId}, GET /v1/employees/{employeeId}, the ingredient image endpoints, GET /v1/menu-items/{menuItemId}, reading, renaming or deleting a menu category, POST /v1/expenses/{expenseId}/ingredient-lines and the stock-audits endpoints. PAN-142: payments_by_method on GET /v1/reports/sales (Reports), the close method on POST /v1/orders/{orderId}/close (Orders) and recipe_cost on the Recipes list. PAN-142/145/146 (app #97): the Reports Payments by method card shows the API's fifth payments_by_method entry other as Method not recorded when present; KPI tiles wrap; 390px P1 fixes. PAN-148 (app #98): the Notifications page (81u) uses GET /v1/notifications (cursor pages), GET /v1/notifications/unread-count (the badge in the shell, More and Settings) and POST /v1/notifications/read with ids or all. PAN-149/150 (app #99): read rows carry no dot; one back arrow on the phone Notifications page; the phone header and nav survive a language change. PAN-151 (app #100): GET /v1/notifications/unread-count is also called at sign-in and each time More opens; More shows a calm row (no subtitle, no dot) until the count arrives; read rows stay under Earlier after Mark all read on phone; one back arrow on every phone sub-page. PAN-155 (app #101): the Reports daily financials table reads GET /v1/reports/cashflow rows as Sales, Refunds and Net sales (only when refunds exist), Cost of sales, Gross profit with gross margin, waste_cost as its own Waste column, Operating expenses and Net profit with net margin; every header has a tooltip; phone widths show one card per period.