Case study
Building-cleaning subscriptions platform
A building-cleaning company runs on monthly subscriptions: cleaners visit each building on fixed weekdays, and each customer is invoiced every month. I designed and built the two systems it runs on every day, a billing portal and an operations app, linked by events and deployed on AWS.
- Industry
- Building cleaning services
- Country
- Saudi Arabia
- My role
- Design and development: two linked systems, WhatsApp and Qoyod integrations, AWS deployment
- Django
- Django REST Framework
- Python
- PostgreSQL
- Celery
- Redis
- HTMX
- Alpine.js
- Tailwind CSS
- WhatsApp Cloud API
- Qoyod API
- AWS ECS Fargate
- RDS
- S3
- CloudFront
- SNS
- SQS
- Terraform
- GitHub Actions
01The brief
The company cleans residential buildings in Saudi Arabia on monthly subscriptions. Its cleaners visit each building on fixed weekdays, and each customer, an individual or a real-estate office managing many buildings, is invoiced every month.
It needed a billing system that issues invoices on its own and tracks what each customer owes, in step with the accounting system; payment reminders over WhatsApp with no manual work; a daily operations system showing who goes to which building, what was done and what was missed; a clear approval path for office requests such as a revisit, extra work or a stop; and customers able to see their visits and videos without calling.
02The challenge
Money and field work had to agree. A building's subscription drives both its invoices and its visit schedule, and a suspension or a change of owner has to reach both without anyone typing it twice.
Payments arrive as requests with a receipt image, so each one needs a person to check it before it is applied, and then it must land on the right invoices and in the accounting system. External services fail: Qoyod or WhatsApp can be unavailable, and nothing may be lost or sent twice. In the field, cleaners upload videos from phones whose connection can drop, and supervisors must see only their own regions.
03Key decisions
Billing and operations are two Django systems, each serving its own staff. They are linked by events over SNS and SQS, with a periodic reconciliation that finds and fixes any drift between them.
Celery and Redis handle the scheduled and background work: monthly invoices on a fixed day, nightly visit generation, the Qoyod sync with retries, and WhatsApp messages. WhatsApp goes through Meta's official Cloud API with approved templates and a second provider to switch to, and its credentials are encrypted.
Every action lands in an audit trail: who, when, from which device, and the values before and after.
The operations app has a JSON API for a native iOS and Android cleaner app with push notifications. Everything runs on AWS (ECS Fargate, RDS, S3, CloudFront), defined in Terraform and deployed by GitHub Actions.
04The screens
The billing portal opens on a dashboard of collected and due, month by month. The customer list shows amounts due, automatic reminders and WhatsApp; a customer's page holds invoices, payments and receipts. The invoices page gives the collection rate, overdue amounts and ageing, with Excel export. A payment request is reviewed beside its receipt image, and the WhatsApp log shows sent, delivered and read. In the operations app, the building board has a column per weekday and a card per building, filtered by region; the cleaner sees today's visits on a phone; each building has its own chat; and customers open a calendar of their visits and videos from a private link.







05Outcome
Both systems are in daily use at the company. Invoices go out on their own each month, payment reminders and confirmations go over WhatsApp, and customers, invoices and receipts reach Qoyod without being typed in again. Operations staff work from one board, with 45 permissions in 12 groups and supervisors limited to their regions, and customers can check their own visits and videos instead of calling the office. The screenshots in this case study use invented data.
