Shopify
LiveOrders arrive automatically. A cancellation in the store reaches the delivery company.
Orders can arrive from your store, a spreadsheet or your own code. You see what we send back.
job.createdAttempt 1, answered 200Deliveredjob.picked_upAttempt 2, answered 200Deliveredjob.deliveredAttempt 1, no answer. Next try in about 1 minuteRetryingExample data
Four steps. Use a test key first.
Keys start with fk_test_ or fk_live_. A key is shown once, so store it safely.
Send the order with an Idempotency-Key header so a retry never makes a duplicate.
We post each change to your URL, as the order moves from accepted to delivered.
Check X-Fleet-Signature before you trust the body.
Seven ways in and out, from a spreadsheet to a signed webhook.
Orders arrive automatically. A cancellation in the store reaches the delivery company.
Orders arrive automatically. A cancellation in the store reaches the delivery company.
Upload a spreadsheet of orders and they go straight to the board.
Create, list, change and cancel orders from your own system.
Signed messages to your system when an order changes.
Maps and routing are free by default. Add your own Google key and switch it on per feature.
Customers get updates by SMS and can stop them with one reply.
Send the order to us with your API key. If your system retries, send the same idempotency key and you get the same order back, not a second one.
curl -X POST https://api.fleettech.io/v1/jobs \
-H "Authorization: Bearer <your API key>" \
-H "Idempotency-Key: <unique value>" \
-H "Content-Type: application/json" \
-d '{
"merchantRef": "ORD-1042",
"branchId": "<branch uuid>",
"customer": {
"name": "Fatima Al-Thani",
"phone": "+97455501234"
},
"dropoff": {
"lat": 25.2854,
"lng": 51.531,
"zoneNo": 38,
"streetNo": 950,
"buildingNo": 21
},
"payment": {
"type": "cod",
"codAmountMinor": "8500"
},
"otpRequired": true
}'const res = await fetch("https://api.fleettech.io/v1/jobs", {
method: "POST",
headers: {
"Authorization": "Bearer <your API key>",
"Idempotency-Key": "<unique value>",
"Content-Type": "application/json"
},
body: JSON.stringify({
merchantRef: "ORD-1042",
branchId: "<branch uuid>",
customer: { name: "Fatima Al-Thani", phone: "+97455501234" },
dropoff: { lat: 25.2854, lng: 51.531, zoneNo: 38, streetNo: 950, buildingNo: 21 },
payment: { type: "cod", codAmountMinor: "8500" },
otpRequired: true
})
});
const order = await res.json();Example data. Full reference in your dashboard.
A few rules that save you a support call.
The value "8500" in codAmountMinor means 85.00 Qatari riyals. Amounts are whole minor units, sent as a string.
It is your own order reference, and it is your replay key. Send the same one again and you get the same order.
Either the blue plate (zone, street, building) or an address text, plus a pin on the map.
Use the Idempotency-Key header on every create, so a retry after a timeout never makes a duplicate.
The same API key works on all of them.
| Method | Path | What it does |
|---|---|---|
POST | /v1/jobs/multi-drop | Create 2 to 5 drops from one branch. |
GET | /v1/jobs | List your orders. |
GET | /v1/jobs/{id} | Read one order. |
POST | /v1/jobs/{id}/cancel | Cancel an order. |
POST | /v1/jobs/{id}/address/preview | Check a new address. Nothing changes. |
PATCH | /v1/jobs/{id}/address | Change the address. |
PATCH | /v1/jobs/{id}/schedule | Change the schedule. |
POST | /v1/jobs/{id}/reattempt | Ask for another delivery attempt. |
GET | /v1/jobs/{id}/webhook-deliveries | See what we sent you for this order. |
GET | /v1/serviceability | Check whether a place is inside the delivery company's zones. |
GET | /v1/slots/available | List the delivery slots that are open. |
GET | /v1/invoices | List your invoices. |
GET | /v1/credit-notes | List your credit notes. |
GET | /v1/cod-statement | Read your cash on delivery statement. |
Each event is a signed POST to your URL. These are the ones most companies use. The full list, with sample payloads, is at GET /v1/events.
| Event | When it is sent |
|---|---|
job.created | An order was created, by API, dashboard, CSV, a recurring template or a connected store. |
job.assigned | A driver was assigned to the order. |
job.accepted | A driver accepted the order. |
job.picked_up | The driver picked the order up. |
job.delivered | The order was delivered. |
job.failed | The delivery failed. |
job.cancelled | The order was cancelled. |
job.cash_collected | The driver collected the cash on delivery. |
job.address_updated | The drop-off address of the order was changed. |
job.reattempt_scheduled | A failed order was scheduled for another delivery attempt. |
Every delivery carries an X-Fleet-Signature header. It holds a timestamp t and one or more v1 values. Each v1 is an HMAC-SHA256 of the timestamp, a dot and the raw request body, using your webhook secret, as hex.
POST /your-webhook-url
Content-Type: application/json
User-Agent: FleetTech-Webhooks/1
X-Fleet-Event-Id: 0b1c2d3e-4f50-4a61-8b72-9c83d4e5f606
X-Fleet-Signature: t=1764150000,v1=<64 hex characters>
{
"id": "0b1c2d3e-4f50-4a61-8b72-9c83d4e5f606",
"type": "job.delivered",
"createdAt": "2026-11-26T10:00:00.000Z",
"data": {
"job": {
"id": "<order uuid>",
"number": "10234",
"merchantRef": "ORD-1042",
"status": "delivered"
}
}
}Example data. The real job object has more fields.
import { createHmac, timingSafeEqual } from "node:crypto";
export function verify(header, rawBody, secret, toleranceS = 300) {
let t = null;
const sigs = [];
for (const part of header.split(",")) {
const i = part.indexOf("=");
const k = part.slice(0, i).trim();
const v = part.slice(i + 1).trim();
if (k === "t") t = Number(v);
if (k === "v1") sigs.push(v);
}
if (!t || sigs.length === 0) return false;
if (Math.abs(Date.now() / 1000 - t) > toleranceS) return false;
const expected = createHmac("sha256", secret)
.update(`${t}.${rawBody}`, "utf8")
.digest();
return sigs.some(
(s) =>
/^[0-9a-f]{64}$/.test(s) &&
timingSafeEqual(expected, Buffer.from(s, "hex"))
);
}Every webhook is signed. Answer with any 2xx status and the delivery is done. Failed deliveries are retried, and every delivery attempt is visible to you.
A redirect is not followed. An endpoint that keeps failing is switched off after 20 failed attempts in a row.
Each key belongs to one merchant and is checked on every request. You can revoke a key instantly. Test keys and live keys are separate.
A key is shown once when it is created. After that it cannot be shown again, so store it safely.