API Docs

Book and follow jobs from your own system.

The Couriffic API lets a client's or partner's system price a job, book it and follow it, with nobody typing it in. Webhooks tell your system the moment something happens.

Keys and Sign-In

The address is your courier's Couriffic address followed by /api/v1, for example https://app.couriffic.com/api/v1. Every request needs an API key, sent as a header:

Authorization: Bearer cf_…
  • Keys are made by the courier's owner or manager in Settings ▸ Connections ▸ API Keys & Webhooks. A key is shown once; Couriffic keeps only a fingerprint of it.
  • A key can be limited to one client. It then books jobs only for that client and sees only that client's jobs. A key given to a client should always be limited.
  • A key can be turned off at any time; anything using it stops working at once.
  • Send JSON with Content-Type: application/json. Requests are limited to 1 MB.

Errors

Errors come back as JSON with an error message written for people:

StatusWhenExample
400Something in the request is missing or wrong.{"error":"pickup.address and delivery.address are required."}
401No key, or a key that's wrong or turned off.{"error":"Send your API key as: Authorization: Bearer cf_…"}
404No such job (or not one this key may see), or an unknown address.{"error":"No such job."}
POST/api/v1/quote

Price a Job

Prices a job by the courier's own rules without booking it. Takes the same fields as booking a job.

curl https://app.couriffic.com/api/v1/quote \
  -H "Authorization: Bearer cf_…" -H "Content-Type: application/json" \
  -d '{"service": "BIKE", "pickup": {"name": "Front Desk", "address": "350 5th Ave"}, "delivery": {"name": "Legal Dept", "address": "250 Broadway", "contact": "Ana", "phone": "212-555-0142"}}'

Answer (200). priced is false when there's no price for that service and zone yet.

{
  "price": 15,
  "lines": [
    {
      "label": "Base (zone 1)",
      "amount": 15
    }
  ],
  "zone": 1,
  "priced": true
}
POST/api/v1/jobs

Book a Job

Books the job. It appears on the courier's dispatch board at once, marked as sent in through the API.

curl https://app.couriffic.com/api/v1/jobs \
  -H "Authorization: Bearer cf_…" -H "Content-Type: application/json" \
  -d '{"client": "1", "service": "BIKE", "reference": "PO 552", "pickup": {"name": "Front Desk", "address": "350 5th Ave"}, "delivery": {"name": "Legal Dept", "address": "250 Broadway", "contact": "Ana", "phone": "212-555-0142"}, "due": "15:00"}'
FieldWhat it is
clientYour client number. Ignored when the key is limited to one client: that client is always used.
serviceA service code from Settings ▸ Pricing ▸ Services (for example BIKE). Blank means the first service.
pickup, delivery{name, address, cross_street, contact, phone}. address is required for both. name is up to 20 characters.
stopsExtra drop-offs before the delivery, each {name, address, cross_street, contact, phone}.
dayYYYY-MM-DD. Blank means today; a past day is refused.
ready, dueTimes as HH:MM (24-hour). Anything else is ignored.
referenceYour reference or PO number (up to 60 characters).
callerWho booked it (up to 60 characters). Blank means API.
pieces, weightHow many pieces (blank means 1) and the weight.
instructionsInstructions for the messenger (up to 500 characters).

Answer (201): the job.

{
  "no": 100000,
  "day": "2026-10-16",
  "status": "open",
  "client": "1",
  "reference": "PO 552",
  "service": "BIKE",
  "pickup": {
    "name": "Front Desk",
    "address": "350 5th Ave",
    "cross_street": "",
    "contact": "",
    "phone": ""
  },
  "delivery": {
    "name": "Legal Dept",
    "address": "250 Broadway",
    "cross_street": "",
    "contact": "Ana",
    "phone": "212-555-0142"
  },
  "stops": [],
  "ready": "",
  "due": "15:00",
  "pieces": 1,
  "picked_up_at": null,
  "delivered_at": null,
  "cancelled_at": null,
  "signed_by": "",
  "price": 15,
  "tracking_url": "https://app.couriffic.com/pod/5e51f472974a1aff99010684"
}
FieldWhat it is
noThe job number.
statusopen (waiting for a messenger), assigned, picked, delivered or cancelled.
day, ready, dueThe job's day and times.
picked_up_at, delivered_at, cancelled_atWhen it happened (ISO 8601), or null.
signed_byThe name of the person who took the delivery.
stopsExtra stops: {name, address, delivered, signed_by}.
priceThe job's price as the courier's rules work it out (null when it can't be priced yet).
tracking_urlA page anyone with the link can open to follow the job and see the proof of delivery.
GET/api/v1/jobs/:no

One Job

The job with that number: its status, times, who signed and the tracking link. Same answer as booking a job.

curl https://app.couriffic.com/api/v1/jobs/100000 -H "Authorization: Bearer cf_…"
GET/api/v1/jobs

Jobs Changed Since

Jobs changed since a time, oldest change first, up to 500 at a time. since is an ISO 8601 time; without it, the last 24 hours. To keep up, ask again with the time of your last call.

curl "https://app.couriffic.com/api/v1/jobs?since=2026-10-16T09:00:00-04:00" -H "Authorization: Bearer cf_…"
{"jobs": [ {…a job, as above…} ]}

Webhooks

The courier pastes one web address in Settings ▸ Connections ▸ API Keys & Webhooks. From then on Couriffic sends every event below to it as a POST with a JSON body.

  • The address must be a public https:// address.
  • Answer with any 2xx status within 10 seconds. Redirects aren't followed.
  • An event that doesn't get through is tried again, up to 5 times, a few seconds apart, then marked Failed. The courier sees each delivery under Recent Deliveries.
  • Each request carries X-Couriffic-Event (the event's name) and X-Couriffic-Signature.

A real job.created body:

{
  "event": "job.created",
  "job": {
    "no": 100000,
    "day": "2026-10-16",
    "status": "open",
    "client": "1",
    "reference": "PO 552",
    "service": "BIKE",
    "pickup": {
      "name": "Front Desk",
      "address": "350 5th Ave",
      "cross_street": "",
      "contact": "",
      "phone": ""
    },
    "delivery": {
      "name": "Legal Dept",
      "address": "250 Broadway",
      "cross_street": "",
      "contact": "Ana",
      "phone": "212-555-0142"
    },
    "stops": [],
    "ready": "",
    "due": "15:00",
    "pieces": 1,
    "picked_up_at": null,
    "delivered_at": null,
    "cancelled_at": null,
    "signed_by": "",
    "price": 15,
    "tracking_url": "https://app.couriffic.com/pod/5e51f472974a1aff99010684"
  },
  "sent_at": "2026-10-16T13:49:17.474Z"
}

Events

EventWhenBody
job.createdA job is booked (in the office, the portal, the API, a standing order or a store order).{"event":"job.created","job":{…the job, as above…},"sent_at":"…"}
job.statusA job's status changes: assigned, picked up, delivered or cancelled.{"event":"job.status","job":{…},"sent_at":"…"}
job.portalA client books a job in the client portal (sent as well as job.created).{"event":"job.portal","job":{…},"sent_at":"…"}
job.deliveredA job is delivered (sent as well as job.status).{"event":"job.delivered","job":{…},"sent_at":"…"}
job.lateA job is past its due time and not delivered yet (once per job). Its tracking_url is null.{"event":"job.late","job":{…},"sent_at":"…"}
invoice.createdAn invoice is made.{"event":"invoice.created","invoice":{"no":5001,"client":"1","client_name":"Smith & Co.","date":"2026-10-16","due":"2026-11-15","total":120,"balance":120,"jobs":[100000,100001]},"sent_at":"…"}
payment.receivedA payment is recorded on an invoice (by hand, or paid by card online).{"event":"payment.received","payment":{"invoice":5001,"client":"1","client_name":"Smith & Co.","date":"2026-10-20","amount":120,"ref":"Check 1042","balance":0},"sent_at":"…"}
invoice.paidAn invoice is paid in full.{"event":"invoice.paid","invoice":{"no":5001,"client":"1","client_name":"Smith & Co.","total":120},"sent_at":"…"}
client.createdA new client is added.{"event":"client.created","client":{"no":"1","name":"Smith & Co.","contact":"","phone":"","email":"","address":"350 5th Ave"},"sent_at":"…"}

Each job event carries the whole job, in the same shape as the API's answers.

A new online order, a job running late and a payment received also reach the phones of office staff who turned on alerts in the owner app. Those alerts aren't webhooks and need nothing set up here.

Checking the Signature

When the address is first saved, Couriffic shows a webhook secret once (the courier can make a new one later). Every request is signed with it:

X-Couriffic-Signature: sha256=<HMAC-SHA256 of the raw body, with the webhook secret, in hex>

Work it out from the body exactly as it arrived, before parsing it, and compare. In Node.js:

const crypto = require("crypto");
function fromCouriffic(rawBody, header, secret){
  const want = "sha256=" + crypto.createHmac("sha256", secret).update(rawBody).digest("hex");
  return typeof header === "string" && header.length === want.length &&
    crypto.timingSafeEqual(Buffer.from(header), Buffer.from(want));
}

In Python:

import hmac, hashlib
def from_couriffic(raw_body: bytes, header: str, secret: str) -> bool:
    want = "sha256=" + hmac.new(secret.encode(), raw_body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(want, header or "")

Zapier and Make

No programming needed:

  1. In Zapier, make a Zap that starts with Webhooks by Zapier ▸ Catch Hook (in Make: Webhooks ▸ Custom webhook) and copy the address it gives you.
  2. Paste it in Settings ▸ Connections ▸ API Keys & Webhooks and save.
  3. Book a test job so Zapier sees an example, then add the next step: a Google Sheets row, an email, a text, your CRM.
  4. To send jobs into Couriffic (say, from a web form), use an API key with Webhooks by Zapier ▸ POST to /api/v1/jobs, with the Authorization header above.