A bilingual Android application designed to streamline affiliate-driven product sales and delivery operations. The system supports multiple roles with distinct permissions, real-time order tracking, commission management, and API integration with delivery services.
- Android mobile application
- Full support for Arabic and English
- Role-based interface customization
- Full system access
- Product management (Add/Edit/Delete)
- Manual commission assignment per product
- Affiliate management
- Order oversight
- Delivery API integration
- Approval of commission withdrawal requests
- Review and confirm/reject orders
- No access to commission or system settings
- Submit new orders (customer + product info)
- Track order status in real-time
- View commissions (total, confirmed, pending)
- Request commission withdrawals
- Receive order-related notifications
- Receives confirmed orders via API
- Assigns orders to drivers
- Updates order status via delivery system
- Views only assigned orders
- Updates order status: In Transit, Delivered, Rejected, No Response
- Contacts customers via in-app call button
- Updates order status: Confirmed, Rejected, No Response
- Affiliate submits order
- Assistant Admin reviews and confirms/rejects
- Confirmed orders sent to Delivery Office via API
- Delivery Office assigns driver
- Driver updates delivery status
- Affiliate sees live status and commission updates
- Fixed commission per product (set by Admin)
- Commission is earned only if:
- Order is successfully delivered
- No cancellation, return, or damage
- Affiliate dashboard shows:
- Total commissions
- Confirmed commissions
- Pending commissions
- Withdrawal methods: Cash or Postal Transfer
- Affiliate submits withdrawal request
- Admin approves before payout
- Full withdrawal history tracking
- In-app call button for direct customer contact
- Order status updated post-call:
- Confirmed
- Rejected
- No Response
- Per-affiliate reports:
- Top-selling products
- Orders by status
- Commission breakdown (total, pending, paid)
- Notifications:
- Affiliate: Order received / canceled
- Admin/Assistant: New order / delayed processing
- Arabic 🇸🇦
- English 🇬🇧
- Toggle available within the app
- Admin can Add/Edit/Delete products:
- Type, Price, Commission, Quantity, Description
- Products shown to affiliates during order creation
- Integration with a single delivery company
- API handles:
- Auto-assignment of orders
- Syncing delivery status (Delivered, In Transit, Rejected)
- Driver app connected to delivery system
AMSystem/ ├── .gitignore ├── AMSystem.sln ├── src/ # Main application code └── tests/ # Unit and integration tests
This project is licensed under the MIT License.
- Clone the repo
- Open in Android Studio
- Configure API keys and connection strings
- Build and run on emulator or device
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.