Skip to content
Swiftazu

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.

POST /v1/rates/calculate
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 }] }
  • 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.