Pathao Courier Integration Aladdin API v1
Connect Pathao Courier to automate delivery failure recovery across Dhaka, Chittagong, and all 64 districts in Bangladesh with instant WhatsApp self-service and Aladdin OAuth API tracking.
2. How to Retrieve Pathao Client ID & Secret
You need two OAuth credentials generated inside your official Pathao Merchant Developer portal:
1. Pathao Client ID
Your unique application identifier found under Developer > API Credentials in your Pathao Merchant Console.
2. Pathao Client Secret
Confidential OAuth secret used by ZeroRTO to securely generate client_credentials access tokens via Hermes API.
- Log in to your Pathao Merchant Dashboard.
- In the left sidebar, navigate to Developer Settings / API.
- If you do not have an API app created yet, click Create App.
- Copy both your Client ID and Client Secret.
3. Exactly Where to Paste in the ZeroRTO Plugin
Open your WordPress Admin > click ZeroRTO > open the Courier Networks tab:
4. Register Webhook with Pathao
Pathao pushes real-time parcel updates when a rider cannot complete delivery:
https://yourstore.com/wp-json/rescuedrop/v1/courier-webhook/pathao
- Copy your store's dedicated endpoint URL above.
- In your Pathao Merchant Dashboard, navigate to Developer > Webhook Settings.
- Paste the URL and enable events for
Order Status Update/Delivery Failed. - When an attempt fails due to Customer Not Reachable or Customer Requested Postpone, ZeroRTO immediately intercepts the parcel and delivers the WhatsApp alert!
5. How ZeroRTO Syncs with Pathao Aladdin
When a customer responds on WhatsApp, ZeroRTO updates the delivery lifecycle via Aladdin API:
📅 Re-attempt Tomorrow
ZeroRTO queries Pathao's tracking API /aladdin/api/v1/orders/{awb}/track, logs re-attempt instructions, and updates WooCommerce order status.
📍 Address & Location
Captures location details or directions from WhatsApp chat, updating WooCommerce order notes so your dispatch team can guide the rider.
❌ Immediate Return (Cancel)
Flags order as cancelled immediately, preventing unnecessary re-trips and allowing you to restock inventory without penalty charges.