Skip to content
Nizar Abubaker
Architecture

National Influx: pharmaceutical supply between licensed suppliers and Saudi pharmacies

A B2B marketplace for catalogue, quotes, orders, delivery and wallet payments, designed for ZATCA Phase 2, VAT and PDPL from the first day. Its API was later moved from .NET to Node without touching the live database.

Client
Innovation Pulse
Role
Technology lead: architecture, migration and app
Year
2025 — Present
Industry
Enterprise
Status
In progress
Compliance
ZATCA Phase 2, VAT, PDPL
Migration
.NET (ABP) to NestJS, same database
Rollout
Makkah pilot

01The challenge

Every order between an SFDA-licensed supplier and a Saudi pharmacy carries e-invoicing, VAT and personal-data obligations. A marketplace between them has to be compliant before it can be convenient.

02The approach

A bilingual marketplace with a Flutter app and a React admin panel.

  • Supplier catalogue and quotes
  • Orders and delivery tracking
  • Wallet payments
  • ZATCA Phase 2 e-invoicing, 15% VAT and PDPL compliance
  • AI drug matching, search rescue and a pharmacy assistant

03Architecture

Compliance shapes the data model, not the other way round: e-invoicing, tax and personal-data rules live in the schema. The API began on ASP.NET Core (ABP) and was migrated to NestJS and Prisma against the same database, so the server changed while the app kept running.

04My contribution

Led the platform architecture and the Flutter app, then the API migration from .NET to NestJS. Added the AI drug matching and the pharmacy assistant.

Outcome

Rolling out as a pilot in Makkah. The app beta ships through TestFlight and Firebase App Distribution.

National Influx, pharmaceutical supply
The supplier catalogue: products by therapeutic area, with price and maker, added to a cart in one tap
The pharmacy's own inventory: units, stock value and items nearing expiry
Order review: estimated prices until the supplier confirms, discount codes and wallet payment
Order history with status from request to delivery