Skip to main content

dzship: The Free Shipping API and SDK for Algeria (Yalidine, ZR Express, Maystro, NOEST, Ecotrack in One Integration)

· 5 min read
DZBuild Team
We build the platform

Every developer who has built for Algerian e-commerce knows the pain: each delivery company ships its own API. Different authentication, different field names, statuses in French, Arabic or bare numbers, and documentation that ranges from thin to wrong. Integrating one courier takes days. Supporting five means maintaining five fragile integrations forever.

dzship is a free shipping API and SDK for Algeria. One request shape creates, tracks, prices, labels and cancels cash-on-delivery parcels with 101 couriers: Yalidine, ZR Express, Maystro, NOEST, Zimou, Osen Express, Terminal Delivery and every courier on the Ecotrack platform (DHD, Conexlog, MSM Go, World Express and 78 more).

No signup. No API key. No cost.

Updated 22 November 2026. dzship launched in July with five courier integrations. This article now describes the service as it runs today: 101 couriers, installable SDKs, a test courier, labels and cancels.

Why we made it free​

DZBuild moves real COD orders across all 58 wilayas every day, and our platform already speaks to 102+ delivery integrations. dzship packages that shipping engine as a public service, because Algerian tech grows when the boring, painful infrastructure is a solved problem for everyone and not only for our merchants.

A stronger developer ecosystem means more online stores, more tools and more business moving online. That is the mission: taking Algerian tech to the next level and making business life easier. Shipping is our contribution to the commons.

Install the SDK​

Pick your language. Each client is small, has no dependencies and talks to the same API:

npm install dzship # Node.js 18+, TypeScript types included
composer require dzbuild/dzship # PHP 7.2+, works with Laravel and WooCommerce
pip install git+https://github.com/DZBuild-com/dzship.git # Python 3.8+

Ruby is a single file to copy, and Google Sheets gets an Apps Script snippet for the classic "200 orders in a spreadsheet" workflow. The integration guide covers every path.

Send a parcel before you have a courier account​

Every courier asks for a merchant contract before you can send one request. The sandbox courier does not. It needs no credentials, checks your order the way a real courier does, and creates nothing:

import dzship from 'dzship';

const shipping = dzship('sandbox');

const { trackingNumber } = await shipping.createOrder({
recipient: { fullName: 'Amine Bouzid', phone: '0551234567', wilayaCode: 16, communeName: 'Bab Ezzouar' },
deliveryType: 'home',
productList: 'Sneakers Air x1',
codAmount: 4500,
});

const { status } = await shipping.track(trackingNumber);

When your courier account is ready, one line changes:

const shipping = dzship('yalidine', { apiId: process.env.YAL_ID, apiToken: process.env.YAL_TOKEN });

You bring your own courier credentials with each call. They go to that courier and are never stored. In TypeScript the courier key completes in your editor and the credentials are checked for that courier, so a missing field is a compile error and not a failed parcel.

One request, any courier​

The same thing works from any language over plain HTTP:

curl -X POST https://freeship.dzbuild.com/v1/orders \
-H 'Content-Type: application/json' -d '{
"courier": "yalidine",
"credentials": { "apiId": "YOUR_ID", "apiToken": "YOUR_TOKEN" },
"order": {
"recipient": {
"fullName": "Amine Bouzid",
"phone": "0551234567",
"wilayaCode": 16,
"communeName": "Bab Ezzouar"
},
"deliveryType": "home",
"productList": "Sneakers Air x1",
"codAmount": 4500
}
}'
# 200 { "trackingNumber": "yal-ABC123", "status": "created" }

Switching courier means switching the courier key and the credentials. The rest of your code does not change. Tracking returns one status vocabulary for all couriers (picked_up, in_transit, out_for_delivery, delivered…), so your dashboard never has to parse "Sorti en livraison" again.

What you can do with it​

CallWhat it does
POST /v1/ordersCreate a parcel on your courier account
POST /v1/trackStatus and full event history
POST /v1/ratesDelivery and return fees for a route
POST /v1/desksThe stop desks a courier runs in a wilaya
POST /v1/labelThe waybill, as a PDF or a link
POST /v1/cancelCancel a parcel before the courier collects it

Not every courier offers a label or a cancel through its own API. GET /v1/couriers says what each one offers, and a call the courier lacks answers with a clear NOT_SUPPORTED. When a courier refuses a parcel, you get its reason in the error message: a rejected token, an unknown commune, a duplicate order.

The repository also holds field guides for each courier: the traps we learned the expensive way, written down so you do not have to find them on a live parcel.

A free dataset too: every wilaya and commune​

Bad address data kills deliveries. The repo includes a public-domain (CC0) dataset of the 58 wilayas couriers deliver to and all 1,541 communes, with French and Arabic names, in JSON and CSV. It also carries the 69-wilaya division of 2026, with the code to ship each new wilaya under until couriers accept it. Use it in your checkout forms, no attribution needed:

const wilayas = await fetch(
'https://raw.githubusercontent.com/DZBuild-com/dzship/main/data/wilayas.json'
).then((r) => r.json());

Fair use, worldwide​

dzship is available worldwide and protected by fair-use limits (200 orders an hour per IP, 60 tracking calls a minute) so it stays fast and free for everyone. Full reference, error codes and limits: freeship.dzbuild.com/docs.

One security rule: call it from your server, never from a browser or a mobile app. Your courier credentials must stay secret.

When you need more than shipping​

dzship is the shipping layer. If you are building a whole store for an Algerian merchant, DZBuild is the rest: Arabic and French storefronts, landing pages, COD order management with confirmation workflows, 102+ couriers already connected, stock and analytics, live in minutes with no code.

Either way, ship something. That is the point.

Start here: freeship.dzbuild.com · github.com/DZBuild-com/dzship · npm install dzship