| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Inventory (stock)
• Sales (sale_management) • Discuss (mail) • Invoicing (account) |
| Lines of code | 1353 |
| Technical Name |
mp_daraz_pk |
| License | OPL-1 |
| Website | https://gencbaris.com/odoo_plugins/ |
| Versions | 18.0 19.0 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Inventory (stock)
• Sales (sale_management) • Discuss (mail) • Invoicing (account) |
| Lines of code | 1353 |
| Technical Name |
mp_daraz_pk |
| License | OPL-1 |
| Website | https://gencbaris.com/odoo_plugins/ |
| Versions | 18.0 19.0 |
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
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module