RESTful API

Integrate in
Minutes

Four simple REST endpoints to create bookings, track shipments, and manage support tickets. No SDK needed — just HTTP and JSON.

POST /booking/create
curl -X POST https://api.qnex.pk/booking/create \
  -H "Authorization: Bearer qnx_live_xxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "origin":      "Karachi",
    "destination": "Lahore",
    "weight":      1.5,
    "cod_amount":  2500,
    "recipient": {
      "name":  "Ahmed Hassan",
      "phone": "+923001234567"
    }
  }'

// Response
{ "tracking_number": "QNX-2024-789456" }
Endpoints

Four Endpoints.
Everything You Need.

All endpoints accept and return JSON. Authenticate using your API key in the Authorization header.

POST /booking/create
Create Booking

Create a single shipment booking and receive a tracking number and shipping label instantly.

POST /booking/bulk
Bulk Bookings

Create multiple shipment bookings in one request, ideal for high-volume e-commerce operations.

GET /tracking/{tracking_number}
Track Shipment

Retrieve real-time tracking status, location updates, and delivery history for any shipment.

POST /booking/{tracking_number}/ticket/create
Create Support Ticket

Raise a support ticket for any booking issue — delays, returns, or delivery disputes.

Live Tracking

Real-Time Status on Demand

A single GET call returns the current status, location history, and estimated delivery for any shipment.

booked
picked_up
in_transit
out_for_delivery
delivered
returned
GET /tracking/{tracking_number}
{
  "tracking_number": "QNX-2024-789456",
  "status":          "in_transit",
  "origin":          "Karachi",
  "destination":     "Lahore",
  "estimated_delivery": "2024-01-16",
  "events": [
    {
      "status":    "in_transit",
      "location":  "Multan Hub",
      "timestamp": "2024-01-15T11:00:00Z"
    },
    {
      "status":    "picked_up",
      "location":  "Karachi Hub",
      "timestamp": "2024-01-15T09:00:00Z"
    }
  ]
}
Why Our API

Built for Developers

RESTful JSON API

Clean, predictable REST endpoints with JSON request and response bodies — no SDK required.

API Key Auth

Simple API key authentication with rate limiting to keep your integration secure.

Fast Responses

Low-latency endpoints built for real-time booking creation and shipment tracking.

99.9% Uptime SLA

Enterprise-grade infrastructure with guaranteed availability for mission-critical operations.

Clear Docs

Detailed API reference with example requests and responses for every endpoint.

Bulk Operations

Submit hundreds of bookings in a single call to handle peak-volume shipping days.

Ready to Integrate?

Get your API key in minutes and create your first booking today.

Request API Access