Skip to content
Odoo support plans from $425 a month · Installation and setup: Onboarding Pack, $350 one-offSee plans →Get a quote
PokutsoftPokutsoft
GlobalSales/Sales
Pakistan Daraz Connector icon

Pakistan Daraz Connector

Daraz Pakistan marketplace connector: order import, COD, stock and price sync via the seller Open Platform keys (BYOK)

Odoo 20.0Odoo 19.0Odoo 18.0

Want Pakistan Daraz Connector installed and configured for you? Onboarding Pack: $350 one-off

Support plans from $425 a month
Compatible: Odoo 18.0 · 19.0 · 20.0
OPL-1 license · Community & Enterprise · BYOK (your own Daraz keys)

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, keeping every unit’s order-item id so fulfilment still addresses each one.

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.

Fulfilment per unit

Daraz reports one record per ordered unit and the connector still shows one Odoo line per SellerSku — but every unit’s order-item id is kept on that line. Pack, Ready-to-Ship and Cancel therefore cover the whole quantity, not the first unit of it.

Buyer matching you can trust

Daraz masks buyer contact details. A masked order is no longer matched to an earlier buyer on a placeholder name, so three masked orders from one city become three customers with three addresses — and a matched buyer receives the delivery address that came with the order rather than keeping a stale one. Named buyers are matched on name plus phone, or on name plus the full address.

Stock source you choose

Publish free to promise (on hand minus reserved), plain on-hand, or forecast, with an optional safety buffer. Upgrading an existing database keeps publishing exactly what it publishes today until you choose otherwise. These figures are company-wide, not warehouse-scoped.

Prices published in PKR

The price is taken from the product, or from a pricelist you nominate, and converted into PKR before it is sent. A company kept in another currency no longer publishes the unconverted figure, and the push is refused rather than sent wrong if PKR cannot be resolved. Daraz’s shipping fee is booked as an order line, and the amount the buyer actually paid is what is booked for each unit.

Tokens that renew themselves

Exchange your Daraz authorization code for an access and refresh token pair, and the access token is then renewed automatically — on a schedule, and once on any call Daraz answers with 401. A missing token reports itself as a configuration problem instead of an API failure.

Unified API Log

Every call is logged — successes as well as failures, and the interactive buttons as well as the crons — with operation, HTTP method, status code, Daraz error code, duration, a truncated request payload and a response excerpt, with an Errors only filter and group-by for fast troubleshooting. Log rows are scoped to the company whose credentials made the call. A reply that is not a Daraz JSON envelope is recorded as the failure it is, not as a silent success.

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

CapabilityDaraz Open Platform endpoint
List orders (windowed, paged)GET /orders/get
Single order headerGET /order/get
Order line itemsGET /order/items/get
Pack items into a packagePOST /order/pack
Mark Ready To ShipPOST /order/rts
Cancel an order itemPOST /order/cancel
Cancellation reasons Daraz accepts for the itemsGET /order/reverse/cancel/validate
Update price & quantity by SellerSkuPOST /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, 19.0 or 20.0 (Community or Enterprise).
  • The Python requests library (bundled with standard Odoo deployments).
  • An active Daraz Seller Center account with an Open Platform app (App Key, App Secret, access token).
Daraz and the Daraz logo are trademarks of their respective owners. This connector is an independent integration and is not endorsed by Daraz.

Screenshots

Api Log

Api Log

Settings

Settings

Sync Price Stock

Sync Price Stock

Upgrading an existing database

The published stock figure does not change on upgrade: the connector keeps sending what it already sends until you pick a stock source in Settings. Prices do change for a company not kept in PKR, because they are now converted before they are sent — check one listing before your first price sync.

Orders imported from now on book the amount the buyer paid rather than the pre-discount price, so a voucher-discounted order will read lower than the same order did before. Orders already imported are not rewritten.

Pushing prices and stock, cancelling items and refreshing order status now require the Daraz Pakistan / User group. Grant it to the people who already do that work; it carries no accounting or inventory rights of its own. If you have been pasting an access token by hand, exchange an authorization code once in Settings and the token will renew itself from then on.

Update date: 2026-10-23

User guides (PDF)

Related modules