Arnab Basak

National Board of Revenue · 2023 to 2024

Customs Agent Management System

One national register for customs agent licences in Bangladesh: C&F agents, freight forwarders and shipping agents, their owners and representatives, from application to cancellation.

Client
National Board of Revenue
My role
End-to-end delivery lead
Scale
800,000+ customs agents, 19 customs offices
Stack
Node.js, Hapi, Angular, PostgreSQL, JasperReports; ASYCUDA World

The problem

Customs agent licences were handled separately by each custom house and commissionerate, largely on paper. Nobody had a single view of who held a valid licence, who the owners and representatives behind it were, or which cases were open against an agent, and the clearance system could not see licence status directly.

The licence lifecycle

We modelled every state a licence can be in, and who can move it from one state to the next, then built the system around that model.

ApplicationLicenceDraftSubmittedActiveSuspendedCancelledsubmitapproveRevertedRejectededit andresubmitAmendmentapproved changeskeep it activereactivatedcancelledreactivated within licence validitycascades to owners,representatives andreference licences
The licence lifecycle as a state flow. An Initiator at a customs office drafts and submits; an Approver approves, sends it back or rejects it. Every status change records a reason and an effective date, and the agent is notified by SMS.

What the system covers

  • Licensing: applications with documents for three agent types and three licence types (general, reference and self-clearance), a two-level approval, amendments, and suspension, cancellation and reactivation.
  • People: owners and representatives (customs and jetty sarkars) linked to each licence, with their own status and printable ID cards.
  • Integration: connected to ASYCUDA World, the customs clearance system, and to an external SMS gateway that notifies agents as their applications and licences change status.
  • Verification: business identification numbers checked against the NBR VAT system, plus an agent portal for linking customs and VAT registrations, reviewed in three steps.
  • Enforcement: cases and show-cause notices tracked from the custom house through to the courts.
  • Oversight: dashboards for each office and across all 19 offices, and agent, owner, representative and verification reports.

My part

  • Led delivery end to end: requirements with the National Board of Revenue, design, build and rollout across custom houses and commissionerates.
  • Designed the role model (initiator, approver, operations manager, office admin, super admin) so each office runs its own approvals while headquarters sees everything.
  • Migrated the legacy C&F agent records into the new register.

How we delivered

About 1,100 commits across the API and web app over nearly two years. GitLab CI deployed every change to a development environment automatically, and production releases were a deliberate, manual step. The web app is an installable progressive web app, and licences, ID cards and reports are generated from report templates in a separate service.

Outcomes

800k+
customs agents on one register
19
custom houses and commissionerates
90%
less manual processing time