COD CONTROL · OPERATIONS PLATFORM

We build the software our brands run on.

AA Traders is an operator with an engineering team. COD Control is the platform we build in-house and run in production every day — the system that takes an order from a storefront, through a courier, to cash actually collected at the customer's door.

The Problem

Cash on delivery breaks every normal e-commerce metric.

In Pakistan most orders are paid in cash at the door. An order is not revenue when it is placed — it is revenue weeks later, if the parcel is delivered and the money is remitted. Orders get cancelled, parcels come back, couriers deduct charges. Standard e-commerce tooling reports the checkout and stops there.

3
Live storefronts
3
Courier networks
30+
Operational modules
24/7
Automated syncing
The Platform

One system, from checkout to collected cash.

COD Control is a single web application. Every team — dispatch, calling, warehouse, finance, media buying — works inside it, with permissions scoped to their role and an audit trail behind every change.

Orders & storefronts

Shopify and Daraz orders sync continuously, with tags, customer history and order edits written back to the storefront.

Dispatch & booking

Parcels are booked directly with the courier from inside the portal, labels printed in batches, and handovers recorded against a real proof of dispatch.

Courier integrations

PostEx, M&P and Leopards connected by API — booking, live status, load sheets, city coverage and per-city risk.

Reconciliation & settlements

Every courier remittance is matched parcel by parcel against what was booked, with charge audits that catch what was deducted and should not have been.

Returns & RTO

Returned parcels are scanned in, verified against their order, restocked automatically, and the reason for the return captured while it can still be acted on.

Calling & complaints

A confirmation and recovery queue with an integrated softphone, call logs, complaint tracking and claims against couriers.

Payments & statements

Bank statements are parsed and matched to courier remittances, so settled money is proved from a document rather than assumed.

Inventory & costing

Stock, cost of goods and packaging costs per product, so margin is known at the order line and not at the end of the month.

Advertising performance

Ad spend from each connected advertising account, joined to delivered cash-on-delivery revenue — the subject of the section below.

Advertising

Return on ad spend, measured on money actually collected.

This is the part of COD Control that connects to advertising platforms, and the reason we apply for API access.

What the platform reads

COD Control integrates the advertising platforms' own official marketing APIs — the Meta Marketing API, the Google Ads API and the TikTok Marketing API. For every advertising account a merchant connects and authorises, it reads daily and hourly performance: spend, impressions, clicks, and the names and status of campaigns, ad groups and ads.

It then does the thing a cash-on-delivery business actually needs: it joins that spend to delivered revenue from the couriers, after cancellations and after returns. A campaign that looks profitable at checkout and loses money at the doorstep is visible on the same screen, on the same day.

What the platform writes

From that same screen, our media buyers do their daily work without switching tools:

  • Campaign management — pause and resume campaigns and ad sets, and adjust daily budgets.
  • Creative management — upload and rotate creatives against the ads that are running.
  • Audience management — build and maintain the custom and lookalike audiences used for targeting.
  • Reporting — scheduled and on-demand reporting across accounts, campaigns and products.

On TikTok specifically, we use the TikTok Marketing API for campaign management, reporting, creative management and audience management on the advertiser accounts connected to the platform.

Meta Ads Live
Google Ads Live
TikTok Ads Approval pending

Data handling

  • Each advertising account is connected by its owner through the platform's own OAuth flow, and that access can be revoked at any time.
  • Each brand's data is isolated from every other brand's at the database level, and a team sees only the brands its role covers.
  • No advertising-platform data is sold, resold or shared with any third party, or used for any purpose other than managing our own advertising.
  • Access is role-based and scoped per brand, and every change to a campaign, budget or creative is written to an audit log with the person who made it.
  • COD Control is internal software. The advertising accounts connected to it are AA Traders' own, and we do not manage advertising for any third party.
Engineering

Built and operated by our own team.

COD Control is not a configured off-the-shelf tool. It is our own application, deployed continuously, with the people who run the brands sitting beside the people who build it.

Application
TypeScript on Next.js, server-rendered, deployed on Vercel.
Data
PostgreSQL with row-level security and per-store isolation.
Integrations
Shopify, Daraz, PostEx, M&P, Leopards, and the Meta, Google and TikTok advertising APIs.
Access control
Capability-based roles, scoped per store, with a full activity audit.
Synchronisation
Scheduled workers keep orders, parcel status, remittances and ad spend current through the day.
Operating market
Pakistan, with the company's commercial office in Dubai, UAE.

Questions about COD Control?

COD Control is the software our own teams run on every day. If you're a platform partner reviewing our integration, or a supplier or courier we work with, get in touch and we'll walk you through it.

Get in touch →