SWZ · API v1Developers
Ship from code.
Your merchants' systems create orders, get rates and follow parcels through one versioned REST API — documented in English and Arabic, with a live “Try it” on every endpoint.
curl -X POST https://api.yourcompany.com/v1/rates/calculate \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"destinationCountryId": "c0a8…",
"destinationCityId": "7f3e…",
"boxes": [{ "length": 30, "width": 20, "height": 15, "weight": 2.4 }],
"wantsInsurance": true,
"declaredValue": 350
}'
# 200 OK
{ "currency": "AED", "total": "27.80", "resolvedTier": 1,
"boxes": [{ "actualWeight": 2.4, "volumetricWeight": 1.8,
"chargeableWeight": 2.4 }] }curl -X POST https://api.yourcompany.com/v1/orders \
-H "Authorization: Bearer $TOKEN" \
-H "Idempotency-Key: order-10482" \
-H "Content-Type: application/json" \
-d @order.json
# 201 Created
{ "orderId": "SWZORDYFSADMR", "status": "pending", "isDemo": true }POST https://yourstore.com/hooks/shipping
X-Swiftazu-Event: order.status_changed
X-Swiftazu-Signature: 9f2c…
{ "event": "order.status_changed",
"occurredAt": "2026-11-18T09:12:00.000Z",
"data": { … } }
# Not 2xx? Retried after 1, 10 and 60 minutes.- 01
Demo and live
Demo orders are priced and get a DEMO air waybill, but are never charged and never raise a pickup.
- 02
Idempotency keys
Send an Idempotency-Key on writes, so a retry never creates a second order or charge.
- 03
Signed webhooks
Every status change can call your address, signed, with retries after 1, 10 and 60 minutes.
- 04
Bearer tokens
Each merchant application gets its own token, rate limit and allowed origins.
- 05
Never breaking
Version 1 never breaks. A breaking change would be a new version, side by side.
- 06
Same rules everywhere
The API uses the same pricing, status and money rules as the merchant portal.
API v1
What you can do
Rates
Price a shipment before it exists.
Orders
Create, bulk create, update, cancel and dispatch.
Tracking
By order, by AWB, or many at once.
Documents
Labels, commercial invoices, packing lists, proof of delivery.
Returns
Create and list returns.
Wallet
Balance, ledger and statements.
Settlements
COD collections and payouts.
Reference
Countries, states, cities, services, boxes, statuses.