EZtms API
Add deliveries from your online shop, warehouse or ERP, and read back their status, proof of delivery and tracking link. It is part of the Pro plan. Keys made before 22 November 2026 keep working on any plan until 31 March 2027.
Keys
An owner or admin makes keys in Settings, API. A key is shown once, so copy it into your system then; we keep only a fingerprint of it. A company can have 5 keys. Delete a key to stop it at once.
Send the key on every request: Authorization: Bearer ezt_…. Keep it on your server. Never put it in a web page or an app people download.
Endpoints
Base address https://eztms.com.au/api/v1. Requests and answers are JSON.
| Request | What it does |
|---|---|
POST /jobs | Add one job, or up to 100 as { "jobs": [ … ] }. |
GET /jobs?date=YYYY-MM-DD | The jobs of one delivery date, 100 at a time. Add status= to filter. When next is not null, ask again with after= that value. |
GET /jobs/{ref} | One job by your order number. |
DELETE /jobs/{ref} | Cancel a job that is not yet with a driver. After that, ask dispatch to recall it. |
Add a job
curl https://eztms.com.au/api/v1/jobs \
-H "Authorization: Bearer ezt_your_key" \
-H "Content-Type: application/json" \
-d '{
"ref": "SO-1001",
"date": "2026-11-18",
"recipient": { "name": "Jane Lee", "phone": "0412 345 678", "email": "jane@example.com" },
"address": { "line1": "1 George St", "suburb": "Sydney", "state": "NSW", "postcode": "2000" },
"timeWindow": { "start": "09:00", "end": "12:00" },
"parcels": 2,
"weightKg": 8,
"instructions": "Leave with reception"
}'201 Created
{ "ref": "SO-1001", "trackingUrl": "https://eztms.com.au/t/…" }| Field | Notes |
|---|---|
ref | Required. Your order number, unique in your company. The same number twice answers 409, so retrying is safe. |
date | Required. Delivery date, today or later in your company’s time zone. |
dateTo | Optional deliver-by date, up to 14 days after date. The job may then go on any day in between; once it is on a run, date is that day. |
recipient | name (required unless a saved location gives one), phone, email, lang (en or ko, for emails), notify (both, sms, email, none). |
address | line1, line2, suburb, state (NSW, VIC…), postcode. Optional lat and lng; without them the address is placed on the map when you plan. |
location | The short name or name of a saved location (Settings, Locations). It fills in the address, contact, receiving hours and unloading time you leave out. |
type, priority | delivery, pickup or task (a visit with nothing to carry; no parcels unless you send them); normal or high. |
timeWindow, timeWindow2 | { "start": "09:00", "end": "12:00" }, 24-hour. The second is a later window the same day; they may not overlap. |
parcels | A number of boxes (labels ref-1, ref-2…), or a list of { "barcode", "weightKg" } for your own labels. With a number, weightKg is the whole job’s weight. |
volumeM3, pallets, serviceMinutes | Room on the vehicle, and minutes at the stop (default 3). |
requires | What the vehicle or driver needs, for example ["tail lift"]. |
atl, instructions | Authority to leave (true or false), and a note for the driver. |
custom | Your custom fields by key (Settings, Custom fields), for example { "invoice_no": "INV-9" }. |
With a list, the answer is { "created": [ … ], "errors": [ { "index", "ref", "errors" } ] }: 201 when all were added, 207 when some were, 422 when none were.
Read a job
{
"ref": "SO-1001",
"date": "2026-11-18",
"status": "delivered",
"type": "delivery",
"source": "api",
"recipient": { "name": "Jane Lee" },
"address": { "line1": "1 George St", "suburb": "Sydney", "state": "NSW", "postcode": "2000" },
"timeWindow": { "start": "09:00", "end": "12:00" },
"plannedArrival": "10:20",
"attempts": 1,
"trackingUrl": "https://eztms.com.au/t/…",
"delivered": { "at": "2026-11-18T10:24:51.000Z", "receivedBy": "Jane", "leftAtDoor": false, "photos": 1, "signed": true }
}status is one of created, planned, dispatched, loaded, en_route, delivered, failed, returned, cancelled. A failed attempt has failed with a code and a reason in plain words. Phone numbers, email addresses, photos and signatures stay in EZtms.
Webhooks
Instead of asking for a job’s status again and again, let EZtms tell your system. Add a public https:// address in Settings, API, Webhooks and pick the events. You get the signing secret once, when you add it.
job.created | A job was added (entered, imported, through the API or from Shopify). |
job.dispatched | Its run was sent to the driver’s app. |
job.out_for_delivery | The driver started the run. Also sent again when a delivery is undone. |
job.delivered | Delivered, with who received it and whether it was left at the door. |
job.failed | The attempt failed; data.job.failed has the reason. |
job.returned | A failed job was brought back to the depot. |
job.cancelled | The job was cancelled. |
Each event is a POST with a JSON body. data.job is the job exactly as Read a job shows it. id is the same on every retry of one event, so you can skip an event you already handled.
POST https://shop.example.com/eztms
EZtms-Signature: t=1763700000,v1=5f2b9c…
Content-Type: application/json
{
"id": "evt_8KqL2…",
"type": "job.delivered",
"createdAt": "2026-11-18T03:12:44.120Z",
"data": {
"job": {
"ref": "SO-1001", "date": "2026-11-18", "status": "delivered", "type": "delivery", "source": "api",
"recipient": { "name": "Jane Lee" },
"address": { "line1": "1 George St", "suburb": "Sydney", "state": "NSW", "postcode": "2000" },
"attempts": 1,
"trackingUrl": "https://eztms.com.au/t/…",
"delivered": { "at": "2026-11-18T03:12:40.000Z", "receivedBy": "Jane", "leftAtDoor": false, "photos": 1, "signed": true }
}
}
}Check the EZtms-Signature header before you trust the body. It looks like t=1763700000,v1=5f2b…: compute the HMAC-SHA256 of t, a dot and the raw body with your secret, compare it with v1, and refuse times more than five minutes old.
// Node.js (Express): keep the raw body for the signature
import { createHmac, timingSafeEqual } from 'node:crypto';
app.post('/eztms', express.raw({ type: 'application/json' }), (req, res) => {
const header = req.get('EZtms-Signature') ?? '';
const { t, v1 } = Object.fromEntries(header.split(',').map((p) => p.split('=')));
const mine = createHmac('sha256', process.env.EZTMS_WEBHOOK_SECRET).update(`${t}.${req.body}`).digest('hex');
const fresh = Math.abs(Date.now() / 1000 - Number(t)) < 300;
if (!fresh || !v1 || !timingSafeEqual(Buffer.from(mine), Buffer.from(v1))) return res.status(400).end();
const event = JSON.parse(req.body);
res.status(200).end(); // answer first
handle(event); // then do the work, skipping an event.id you already saw
});Answer any 2xx within 10 seconds; do the slow work afterwards. Anything else, a redirect or no answer is tried again after 1 min, 5 min, 30 min, 2 h, 6 h, 12 h. After 10 events in a row that never got through, the webhook is switched off; turn it on again in Settings. Send test there posts a ping event at once.
Errors and limits
422 Unprocessable Entity
{
"error": "invalid",
"message": "Some fields are not valid.",
"errors": [{ "field": "address.postcode", "message": "4 digits" }]
}400 | The request is not readable, or a query value is wrong. |
401 | No key, or the key was deleted. |
404 | No job has this order number. |
409 | The order number exists already, or the job can no longer be cancelled. |
422 | Fields are not valid; errors names each one. |
429 | More than 120 requests a minute with one key. Wait a minute. |
Jobs added through the API show API as their source in EZtms, and their history names the key. Recipients get the same messages as for jobs you enter yourself.
Questions: info@sthumans.com · Support