The reconciliation problem
A customer places an order for ৳1,200. They pay ৳1,200 to your bKash merchant. Pathao delivers and remits ৳1,150 to you (৳50 COD fee). Your supplier cost is ৳720. Real margin: ৳430. Most sellers don't know that number for any single order. We compute it per order, per SKU, per courier — daily.
bKash adapter
We surface bKash Tokenized Checkout and Merchant Account webhooks through a single /webhooks/bkash endpoint. Signature verified with your bKash app secret. The event is matched to the order_id you encoded in the bKash invoiceNumber field.
COD handoff
When you create an order with payment_method=cod, we forward to Pathao/RedX/Steadfast as a COD shipment. On settlement, the courier's payout webhook lands on us — we mark the order paid and emit order.cod_collected for your downstream systems.