Users
0
Admin-managed account records.
A clean control surface for the backend routes already in the app: users, businesses, package types, packages, orders, and USSD data.
Users
0
Admin-managed account records.
Packages
0
Sellable data bundle definitions.
Package Types
0
Telecom-specific bundle groups.
Businesses
0
Accounts tied to a user owner.
Current routes exposed by the backend.
/api/usersLists all users for admin sessions.
/api/usersCreates a new user with hashed password storage.
/api/packagesFetches all data packages and their relationships.
/api/packagesCreates a package record.
/api/packagetypesReturns package types tied to telecom companies.
/api/packagetypesCreates a package type entry.
/api/businessReturns registered businesses.
/api/businessCreates a business record for a user.
/api/orderCreates an order and starts the payment/topup flow.
/api/ussdReturns saved USSD codes.
User records exposed by `/api/users`.
| ID | Name | Mobile | State |
|---|---|---|---|
| user-001 | Amina | 0612345678 | ACTIVE |
| user-002 | Yusuf | 0611223344 | ACTIVE |
A compact record view using the shared field components.
Shows how order states can be rendered from `/api/order`.
Package cards are rendered as a structured table with size and validity cues.
| ID | Name | Price | Validity |
|---|---|---|---|
| pkg-001 | Daily Social | 1.00 | DAY |
| pkg-002 | Weekly Combo | 5.00 | UNLIMITED |
Example package payload
{
"name": "Daily Social",
"amount": "1.00",
"validity": 1,
"validityType": "DAY",
"packageTypeId": "type-001"
}Example order payload
{
"userId": "user-001",
"packageId": "pkg-001",
"dataNumber": "0612345678",
"paymentNumber": "0612345678",
"telecomCompany": "Somtel",
"amount": "5.00"
}