GET /v1/me/merchantsList the merchants I belong to |
List the account's merchants for the switcher The owned businesses counted against the limit are the rows where the account is the owner. |
lib/screens/shell/shell_controller.dart:206
lib/data/repositories/auth_repository.dart:360 |
GET /v1/merchants/meGet my merchant (tier, storage usage) |
Owners only (`settings.manage`): the business's plan limits, `limits.effective.max_merchants`, for the Add business limit (PAN-98). A failure leaves Add business enabled and the server answers 409 MERCHANT_LIMIT if needed |
lib/screens/shell/shell_controller.dart:229
lib/domain/usecases/settings/settings_usecase.dart:12
lib/data/repositories/settings_repository.dart:14 |
POST /v1/auth/switch-merchantSwitch to another merchant of the same account |
Switch merchant (switcher tap) |
lib/widget/merchant_switcher.dart:228
lib/screens/shell/shell_controller.dart:276
lib/data/repositories/auth_repository.dart:316 |
GET /v1/merchants/me/onboardingGet onboarding state |
After a switch to a business the owner owns: the startup gate again, so a business whose setup is not finished opens /onboarding |
lib/screens/shell/shell_controller.dart:318
lib/core/navigation/onboarding_gate.dart:44
lib/domain/usecases/onboarding/onboarding_usecase.dart:12
lib/data/repositories/onboarding_repository.dart:16 |
GET /v1/meGet the signed-in account, its role here and the current merchant |
Enrich the session after a switch |
lib/data/repositories/auth_repository.dart:281
lib/data/repositories/auth_repository.dart:426 |
GET /v1/meGet the signed-in account, its role here and the current merchant |
Re-read the role and permission keys (PAN-88) when a call is answered permission_denied and when the app resumes; at most one per 2 seconds |
lib/screens/shell/shell_controller.dart:121
lib/data/repositories/auth_repository.dart:421 |
POST /v1/devices/fcmRegister this device's FCM token for kitchen queue nudges |
Re-register this browser's FCM token for the new merchant |
lib/screens/shell/shell_controller.dart:309
lib/data/push/kitchen_live_updates.dart:137
lib/data/push/fcm_device_api.dart:14 |
POST /v1/merchantsCreate another merchant for my account |
Add a business, then switch to it A 409 MERCHANT_LIMIT shows "You've reached the business limit for this plan." chosen by the error code, in English and Indonesian. |
lib/screens/shell/widgets/new_business_dialog.dart:68
lib/screens/shell/shell_controller.dart:348
lib/domain/usecases/auth/auth_usecase.dart:100
lib/data/repositories/auth_repository.dart:382 |
DELETE /v1/devices/fcmUnregister an FCM token (call on sign-out) |
Unregister the FCM token before sign-out |
lib/screens/shell/shell_controller.dart:369
lib/data/push/kitchen_live_updates.dart:121
lib/data/push/fcm_device_api.dart:22 |
POST /v1/auth/logoutRevoke this refresh token family |
Sign out (this device) |
lib/widget/merchant_switcher.dart:466
lib/screens/shell/shell_controller.dart:375
lib/data/repositories/auth_repository.dart:241 |
POST /v1/auth/logout-allRevoke all refresh tokens of the current account (all merchants) |
Sign out everywhere |
lib/widget/merchant_switcher.dart:467
lib/screens/shell/shell_controller.dart:373
lib/data/repositories/auth_repository.dart:255 |
POST /v1/auth/refreshRotate refresh token |
Silent refresh after a 401 on any call |
lib/core/network/session_refresher.dart:55 |
GET /v1/billingBilling status of the current business |
Read the plan lapse phase for the grace banner (PAN-116) |
lib/screens/shell/shell_controller.dart:179
lib/domain/usecases/billing/billing_usecase.dart:14
lib/data/repositories/billing_repository.dart:29 |
GET /v1/merchant-codes/{code}/availabilityCheck whether a business code is free (public) |
Add business: live business code check |
lib/screens/business_code/business_code_controller.dart:100
lib/domain/usecases/business_code/business_code_usecase.dart:14
lib/data/repositories/business_code_repository.dart:14 |