Administrator Manual
Platform Administrator & Governance Manual
Operational oversight, carrier accreditation, tariff approvals, delivery-verified settlement batch execution, zero-drift general ledger accounting, and consequential action runbooks.
/admin/finance
Settlement batch processing
/admin/providers
KYC & tariff approvals
/admin/operations
Booking lifecycle & overrides
/admin/settings
User roles & token revocations
1. Carrier Governance & Tariff Approval
Every carrier provider must undergo statutory KYC verification prior to receiving booking dispatches or financial settlements. Administrators verify Commercial Registration (CR), Tax Identification (TIN), and Arab Transit Agreement transport permits.
Verified against national registry databases for active corporate freight licensing.
Validated for automated e-invoicing Phase 2 clearance and VAT reporting.
Checking 1:5000 volumetric divisor, port fees, and fuel surcharges before live publication.
2. Delivery-Verified Settlement Batch Engine
Cardinal Financial Guardrail:
Carrier freight payouts can ONLY be generated for consignments with confirmed 'delivered' shipmentStatus and 'eligible_for_settlement' status, verified via biometric glass signature.
Weekly Batch Disbursement Runbook:
- Scan Eligible Consignments: Navigate to /admin/finance and click 'Scan Eligible Consignments'. System filters for delivered bookings awaiting payout.
- Aggregate Batches: The engine groups eligible consignments by carrier organization, calculates minor unit totals using Decimal.js, and issues a formal batch ID.
- Authorize & Post Journal Entry: Click 'Authorize Payout'. NestJS wraps execution in a database transaction, posts balanced journal lines, and shifts booking settlement status to settled.
3. Chart of Accounts & Zero-Drift Trial Balance
| Account Code | Normal Balance | Classification | Description |
|---|---|---|---|
| CUSTOMER_RECEIVABLE | Debit | Asset (1000s) | Amounts invoiced to enterprise shippers prior to gateway capture or during net-30 terms. |
| CASH_GATEWAY_CLEARING | Debit | Asset (1000s) | Customer funds captured through payment gateway and held in ring-fenced escrow accounts. |
| PROVIDER_PAYABLE | Credit | Liability (2000s) | Net freight earned by accredited carriers for completed, delivery-verified consignments. |
| PLATFORM_REVENUE | Credit | Revenue (4000s) | Platform freight brokerage commissions (typically 10-15%) and managed customs clearance fees. |
| GATEWAY_FEE_EXPENSE | Debit | Expense (5000s) | Interchange fees and merchant transaction charges deducted by payment processors. |
| COD_MERCHANDISE_LIABILITY | Credit | Liability (2000s) | Cash-on-Delivery funds collected from consignees by drivers, payable back to shippers. |
node scripts/reconcile-database.js4. Consequential Actions & Emergency Runbooks
Cancelling a Paid Booking
!Escrow funds must be refunded to customer; carrier fleet reservation is released back to capacity pool.
Open /admin/operations, select booking, and click Cancel & Refund. The system generates an adjusting REFUND journal entry, debiting PROVIDER_PAYABLE and crediting CASH_GATEWAY_CLEARING.
Emergency Account Lockout
!User session is instantly terminated; all API requests with existing JWTs are rejected with 401 Unauthorized.
Navigate to /admin/settings -> Users. Toggle isActive = false. The NestJS JwtAuthGuard immediately blocks subsequent requests.
Carrier Suspension on Regulatory Breach
!Carrier cannot bid on spot auctions or accept new bookings; active shipments are reassigned to backup fleets.
In /admin/providers, set organization status to SUSPENDED. Review active manifests under /admin/operations for emergency reassignment.
Double-Entry Ledger Discrepancy
!Batch settlement payouts are locked automatically to prevent over-disbursement or fiscal drift.
Execute `node scripts/reconcile-database.js` to locate the unbalanced journal line. Post an offsetting adjusting journal entry via /admin/finance.