Demo Accounts
Use these accounts to test the API. In demo mode, any password is accepted.
| Username | Password | Role | Warehouse | Access Level |
|---|---|---|---|---|
admin | admin | BOD (Ban Giรกm ฤแปc) | All | Full access (Level 4) |
manager_hn | manager_hn | Warehouse Manager | HN-W01 | Warehouse + HR (Level 3) |
leader_hn_1 | leader_hn_1 | Warehouse Leader | HN-W01 | Operations (Level 2) |
hr_team | hr_team | HR (Nhรขn Sแปฑ) | All | HR functions (Level 3) |
manager_hcm | manager_hcm | Warehouse Manager | HCM-W01 | Warehouse + HR (Level 3) |
Login Exampleโ
# Login as BOD (full access)
curl -X POST https://boxme-levelling.pages.dev/api/auth/login \
-H "Content-Type: application/json" \
-d '{"username": "admin", "password": "admin"}'
# Login as warehouse manager
curl -X POST https://boxme-levelling.pages.dev/api/auth/login \
-H "Content-Type: application/json" \
-d '{"username": "manager_hn", "password": "manager_hn"}'
tip
Different roles have different access levels. Use the BOD account (admin) for full access, or use specific role accounts to test permission-based access control.