GatewayPost.netSign in

Carrier API, version 1

For couriers, airlines, road and rail companies with their own booking and tracking system. GatewayPost calls your system. Partners set it up under My services → My API connection. No system of your own? Upload price lists and service sectors instead.

How it works

  1. Enter your API address, how we sign in, the services it covers and what it does: live prices, bookings, tracking.
  2. Press Test now: we call GET /ping, then ask for a sample price (Delhi 110057 to Mumbai 400001, 10 kg).
  3. After a good test press Ask to go live. GatewayPost checks it and puts it live; you get a message.
  4. Live: customers see your live prices next to other offers, bookings on your prices are sent to you, and tracking comes back (we ask every 30 minutes, or you push it).
  5. After 5 failed calls in a row the connection pauses itself and you are told. Fix it, test again and ask to go live again.

Changing the address, the sign-in or the key takes the connection off live until it is tested again.

Sign-in

ChoiceWhat we send
Key in a headerx-api-key: <key> (you choose the header name)
Bearer tokenAuthorization: Bearer <token>
User name and passwordAuthorization: Basic base64(user:password)
No sign-innothing

Keys are kept encrypted and never shown again. Only public internet addresses are called.

Calls we make

JSON bodies. Amounts in the currency given (INR by default), before GST. Answer prices within 4 seconds, bookings and tracking within 8.

GET /ping

Any 2xx answer, for example { "ok": true }.

POST /rates

We send:

{ "version": 1, "requestId": "Q000001234", "service": "COURIER_EXPRESS",
  "from": { "postalCode": "110057", "country": "IN" }, "to": { "postalCode": "400001", "country": "IN" },
  "pickupDate": "2026-11-25", "pieces": 1, "weightKg": 4, "chargeableKg": 4.8, "volumeCbm": 0.024,
  "packages": [{ "quantity": 1, "lengthCm": 40, "widthCm": 30, "heightCm": 20, "weightKg": 4 }],
  "declaredValue": 5000, "doorPickup": true, "doorDelivery": true }

You answer (an empty list means you do not serve it). ref is your price reference; it comes back with the booking. A price is valid for the shorter of your validUntil and 30 minutes. GatewayPost adds its commission or fee and GST.

{ "quotes": [
  { "ref": "MX-STD-1", "service": "standard", "amount": 986, "currency": "INR",
    "transitDays": { "min": 3, "max": 4 }, "validUntil": "2026-11-25T12:00:00+05:30",
    "charges": [{ "code": "fuel", "name": "Fuel surcharge", "amount": 120 }] } ] }

POST /bookings

Sent once the customer has booked (after any payment due):

{ "version": 1, "quoteRef": "MX-STD-1", "shipmentNumber": "GP000000123", "service": "COURIER_EXPRESS",
  "consignor": { "name": "…", "phone": "…", "line1": "…", "city": "New Delhi", "postalCode": "110057" },
  "consignee": { "name": "…", "phone": "…", "line1": "…", "city": "Mumbai", "postalCode": "400001" },
  "pickupDate": "2026-11-25", "pieces": 1, "weightKg": 4, "chargeableKg": 4.8, "packages": [] }

You answer with your reference: { "carrierRef": "MXB00001", "awb": "AWB123" }. A failed call is tried again after 10 minutes.

GET /tracking/{carrierRef}

{ "status": "in_transit",
  "events": [ { "at": "2026-11-25T10:00:00+05:30", "code": "picked_up", "place": "New Delhi" },
              { "at": "2026-11-25T18:00:00+05:30", "code": "in_transit", "place": "Jaipur hub" } ] }

Tracking you push to us

Make a push secret on your connection, then send POST /api/carrier-hooks/{connectionId}/tracking with the tracking body plus carrierRef, and the header X-GatewayPost-Signature: sha256=<hex HMAC-SHA256 of the exact body with your push secret>. A wrong signature gets 401, an unknown reference 404.

Status words

Understood: picked_up, in_transit, at_destination, out_for_delivery, delivered and our own status names. Add your own words on your connection (for example shipped = IN_TRANSIT). Shipments move forward step by step, never back, and each step's normal checks still apply.