Pakistan Daraz Connector
Direct Daraz Pakistan Open Platform connector for Odoo — orders, COD, stock and price in one app
Connect Odoo straight to your Daraz Seller Center. Pull marketplace orders into Odoo sales, flag Cash-on-Delivery, keep stock and prices in sync by SellerSku, and drive the Daraz pack → ready-to-ship fulfilment flow — all signed with your own Daraz Open Platform App Key, App Secret and access token. No data leaves Odoo except to the Daraz gateway you configure.
Key Features
Order Import (pull)
A scheduled job and an on-demand button pull recent Daraz orders through /orders/get, paging by offset/limit and filtered by status and a configurable created-after window. Each order becomes an Odoo sale order with customer, shipping address and lines.
Order Items & Line Grouping
Line items are pulled from /order/items/get and resolved to your products by SellerSku, internal reference or barcode. Daraz returns one record per unit; the connector collapses identical SellerSkus into a single Odoo line with the summed quantity.
Cash on Delivery
COD is the dominant payment method in Pakistan. Every imported order carries the Daraz payment method, an explicit Cash on Delivery flag and the order total / shipping fee, with a one-click Daraz COD filter on the sales list.
Stock & Price Sync (push)
Push sellable quantity and price to Daraz by SellerSku — per product, in bulk from the product list via a wizard, or with hourly crons. The connector builds the exact Daraz /product/price_quantity/update XML payload and batches it.
Pack & Ready To Ship
Drive the Daraz fulfilment state machine from the sale order: Pack on Daraz (/order/pack) assigns a package and captures the tracking number; Ready To Ship (/order/rts) hands it to the chosen shipping provider.
HMAC-SHA256 Request Signing
Every call is signed exactly to the Daraz / Lazada Open Platform scheme: sorted parameter concatenation prefixed with the API path, HMAC-SHA256 with your App Secret, upper-case hex. System parameters (app_key, timestamp, sign_method, access_token) are added automatically.
Unified API Log
Every call is logged with operation, HTTP method, status code, Daraz error code, duration and error excerpt — with an Errors only filter and group-by for fast troubleshooting.
Resilient Transport
Automatic retry on 5xx for idempotent verbs with exponential backoff, 30s timeouts, and a Daraz JSON-envelope validator that surfaces the upstream code / message as a clear error.
Daraz endpoints used
| Capability | Daraz Open Platform endpoint |
|---|---|
| List orders (windowed, paged) | GET /orders/get |
| Single order header | GET /order/get |
| Order line items | GET /order/items/get |
| Pack items into a package | POST /order/pack |
| Mark Ready To Ship | POST /order/rts |
| Cancel an order item | POST /order/cancel |
| Update price & quantity by SellerSku | POST /product/price_quantity/update |
| Seller profile (connection test) | GET /seller/get |
BYOK — bring your own keys
This is a BYOK connector. You paste the App Key, App Secret and access token from your own
Daraz Open Platform app (Daraz Seller Center → Open Platform). The App Secret is used
only locally to sign your requests and is never transmitted. The Pakistan gateway
(https://api.daraz.pk/rest) is shipped as an editable default so you can point at
a regional gateway or a proxy without code changes. This app is not affiliated with or
certified by Daraz; it talks to the public Open Platform on your behalf.
Requirements
- Odoo 18.0 or 19.0 (Community or Enterprise).
- The Python
requestslibrary (bundled with standard Odoo deployments). - An active Daraz Seller Center account with an Open Platform app (App Key, App Secret, access token).
Screenshots
Api Log
Settings
Sync Price Stock
Update date: 2026-07-02