COD and Courier Integration in Pakistan
Design order-to-shipment workflows, cash-on-delivery reconciliation and exception handling for Pakistani online stores.
Discuss your project ↗Agree on the courier relationship first
Confirm the merchant account, pickup coverage, supported services, COD settlement schedule, return charges and API access directly with the chosen courier. Platform integration does not automatically grant a courier account or a negotiated rate. Start manually if account approval or technical access is not ready.
Separate order, shipment and money states
- Order: pending confirmation, confirmed, cancelled or completed.
- Shipment: not booked, booked, in transit, delivered or returned.
- Payment: unpaid, collected, remitted, refunded or disputed.
These are illustrative states. Map them to the courier and store systems, and do not equate a delivery callback with bank settlement.
Protect against duplicate bookings
Assign a stable internal shipment reference before requesting a courier booking. Store the provider tracking number only after a confirmed response. If the request times out, check the provider record before retrying. A repeated webhook must not create a new shipment or send another customer notification.
Reconcile a COD example
Suppose an order has PKR 3,000 collectible COD. The courier statement shows PKR 3,000 collected, PKR 250 agreed fees and PKR 2,750 remitted. Match the order ID, tracking number, collection amount, deductions and settlement reference. These are hypothetical figures, not courier rates. Investigate differences rather than silently adjusting sales.
Test exceptions before live integration
Test invalid service areas, failed booking, cancellation before pickup, delivery refusal, duplicate callback, missing tracking and partial remittance. Limit API credentials to authorised staff or services and use secure storage. Keep a manual exception queue.
Prepare the integration brief
Provide the existing store platform, courier account status, daily order volume, packaging process and settlement records. Decide whether booking, labels, tracking or reconciliation are required. Review WooCommerce COD guidance and Shopify manual payment guidance when relevant.