ZeroRTO Docs v1.0.0
Main Website Pricing Plans Merchant Portal
Bangladesh Logistics • On-Demand Network

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.

Pathao Courier Aladdin Engine

On-Demand Doorstep Express • Dynamic Courier Ingestion

Aladdin API v1 api-hermes.pathao.com

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.

  1. Log in to your Pathao Merchant Dashboard.
  2. In the left sidebar, navigate to Developer Settings / API.
  3. If you do not have an API app created yet, click Create App.
  4. 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:

WordPress Admin > ZeroRTO > Courier Networks Tab
Step 1: Select Pathao
Pathao Courier (Selected) Active
Step 2: Paste Client ID
your_pathao_client_id_here
Step 3: Paste Client Secret
••••••••••••••••
Step 4: Copy Endpoint For Pathao
Dedicated Pathao Webhook Endpoint

Register this endpoint inside your Pathao Developer Console:

https://yourstore.com/wp-json/rescuedrop/v1/courier-webhook/pathao

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
  1. Copy your store's dedicated endpoint URL above.
  2. In your Pathao Merchant Dashboard, navigate to Developer > Webhook Settings.
  3. Paste the URL and enable events for Order Status Update / Delivery Failed.
  4. 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:

Signal: REATTEMPT
📅 Re-attempt Tomorrow

ZeroRTO queries Pathao's tracking API /aladdin/api/v1/orders/{awb}/track, logs re-attempt instructions, and updates WooCommerce order status.

Signal: EDIT_ADDRESS
📍 Address & Location

Captures location details or directions from WhatsApp chat, updating WooCommerce order notes so your dispatch team can guide the rider.

Signal: RTO
❌ Immediate Return (Cancel)

Flags order as cancelled immediately, preventing unnecessary re-trips and allowing you to restock inventory without penalty charges.