Work About ع

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.

Internal system, in daily use
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.

The billing dashboard and its 18-month chart.
Collected, due and expected, month by month, from invoices issued on their own.
A payment request with its transfer receipt and the approve and reject choices.
Each payment request is checked beside its receipt before it reaches the invoices and the accounts.
The building board, filtered to one region.
Operations work from one board: a column per weekday, a card per building.
A customer's page in the billing portal.
A customer's page holds their invoices, payments and receipts.
The invoices list with its totals.
The invoices page: collection rate, overdue amounts and ageing.
The WhatsApp message log.
Reminders and confirmations go over WhatsApp's official API; the log shows sent, delivered and read.
The audit log of staff activity.
Every action lands in an audit trail: who, when, and the values before and after.

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.

The billing dashboard on a laptop, with the client's logo blurred.
The billing portal's dashboard. All data shown is invented.

More work

All case studies

Travel and visas2026

ZHO Travel & Tourism

Bilingual website and CRM for a travel agency in Al Madinah: 30 destinations, 109 hotels, 30 packages, ten visas, and an office that follows each visa application.

Live

Real estate2026

Alhussaini Real Estate

A new bilingual website for an Al Khobar real estate agency: property search beside a live map, a four-step property finder, and a back office for listings and leads.

Contact

Have a system to build?

Tell me what the business needs to run on. I reply within a day, in English or Arabic.