Developers

Plug QWTN into the rest of your business

A REST API for transfer notes, jobs, clients and invoices; signed webhooks when things change; payment links and CSV exports built in.

  • RESTJSON over HTTPS, cursor pagination
  • 11Resources, read and write
  • 8Webhook event types
  • 3.1OpenAPI spec, generated from the code

Your first request in two minutes

  1. In QWTN, go to Settings → API access and create a key (owner or admin). Copy it: it is shown once.
  2. Send it as a bearer token. Every response is JSON; every list is newest first.
curl https://qwtn.co.uk/api/v1/notes?limit=2 \
  -H "Authorization: Bearer $QWTN_API_KEY"
{
  "object": "list",
  "data": [{ "id": "0b15c088-…", "object": "note", "reference": "WTN-202610-F2BFBA", "status": "complete", … }],
  "has_more": true,
  "next_cursor": "eyJjIjoiMjAyNi0xMC0xMlQxMDo…"
}

Authentication and scopes

Keys look like qwtn_live_XXXXXXXX_…. The first part (the prefix) is shown in the app so you can tell keys apart; we store only a SHA-256 hash of the rest. Keys belong to the team, can expire, and can be revoked instantly. Requests with a missing, revoked or expired key get 401; a key without the right scope gets 403 insufficient_scope.

ScopeAllows
*Everything below
notes:readRead waste transfer notes and PDFs
notes:writeCreate and edit draft transfer notes
clients:readRead clients
clients:writeCreate, update and delete clients and their collection sites
sites:readRead sites
sites:writeCreate, update and delete sites
collections:readRead collections
collections:writeCreate, reschedule and cancel collections
containers:readRead containers
containers:writeCreate, update and delete containers
invoices:readRead invoices
quotes:readRead quotes
consignments:readRead hazardous consignment notes
weighbridge:readRead weighbridge tickets
weighbridge:writeCreate weighbridge tickets
audit:readRead the change history (audit trail)

A :write scope includes :read for the same records. GET /api/v1/me tells you which team and scopes a key has.

Requests and errors

Send JSON bodies with Content-Type: application/json. Unknown fields are rejected so typos never pass silently. Dates are YYYY-MM-DD, timestamps ISO 8601 UTC, money in pounds as numbers. Every response carries an X-Request-Id; quote it if you contact us.

Errors always have the same shape. Branch on code, not the message:

HTTP/1.1 422 Unprocessable Entity
{
  "error": {
    "type": "invalid_request_error",
    "code": "validation_failed",
    "message": "The request body has invalid fields",
    "request_id": "req_8b0153f6deef40de9fb0",
    "details": [{ "field": "ewc_codes", "message": "Required" }]
  }
}

Codes: unauthenticated, invalid_api_key, insufficient_scope, not_found, validation_failed, invalid_cursor, rate_limited, idempotency_conflict, idempotency_in_progress, internal_error.

Pagination

Lists return up to limit items (1–100, default 25), newest first. When has_more is true, pass next_cursor back as cursor. Cursors are stable while new records arrive, so you never skip or repeat a row. For incremental sync of notes use updated_after.

let cursor = null
do {
  const url = new URL('https://qwtn.co.uk/api/v1/collections')
  url.searchParams.set('status', 'completed')
  if (cursor) url.searchParams.set('cursor', cursor)
  const page = await fetch(url, { headers: { Authorization: `Bearer ${process.env.QWTN_API_KEY}` } }).then((r) => r.json())
  for (const job of page.data) handle(job)
  cursor = page.next_cursor
} while (cursor)

Idempotency

Send an Idempotency-Key header (any unique string, e.g. a UUID) on every POST and PATCH. If the network drops and you retry with the same key within 24 hours, you get the original response back with Idempotent-Replayed: true instead of a duplicate note or ticket. Reusing a key with a different body returns 422 idempotency_conflict.

curl -X POST https://qwtn.co.uk/api/v1/notes \
  -H "Authorization: Bearer $QWTN_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 6c0f2a1e-job-8812" \
  -d '{
    "waste_description": "Mixed construction and demolition waste",
    "ewc_codes": ["17 09 04"],
    "client_id": "e913a8a6-ffe2-47c4-9686-f25938ae9154",
    "weight_kg": 1200,
    "transfer_date": "2026-10-14"
  }'

Bulk create

Every POST create endpoint also takes { "data": [ … ] } with up to 100 records. Each item is validated and created on its own, so one bad row does not stop the rest. The response is 200 with a result per item, in order.

curl -X POST https://qwtn.co.uk/api/v1/client-locations \
  -H "Authorization: Bearer qwtn_live_…" -H "Content-Type: application/json" \
  -d '{ "data": [
        { "client_id": "…", "label": "Unit 4, Riverside", "postcode": "BS1 4DJ" },
        { "client_id": "…", "label": "Head office", "postcode": "M1 1AE", "is_default": true }
      ] }'

{ "object": "list", "created": 2, "failed": 0,
  "data": [ { "index": 0, "status": 201, "data": { "id": "…", "object": "client_location", … } },
            { "index": 1, "status": 201, "data": { … } } ] }

Send an Idempotency-Key with bulk requests so a retry after a timeout never creates duplicates.

Rate limits

120 requests per minute per key. Over the limit you get 429 rate_limited with a Retry-After header in seconds. Back off and retry; bulk jobs should page through lists rather than fetching records one by one.

Endpoints

Base URL https://qwtn.co.uk. Full field-level detail is in the OpenAPI 3.1 document (import it into Postman, Insomnia or a code generator).

Waste transfer notes

notes:read
  • GET/api/v1/notes
  • GET/api/v1/notes/{id}
  • POST/api/v1/notes
  • PATCH/api/v1/notes/{id}
  • GET/api/v1/notes/{id}/pdf

Filters: statusclient_idupdated_aftercreated_aftercreated_before

Clients

clients:read
  • GET/api/v1/clients
  • GET/api/v1/clients/{id}
  • POST/api/v1/clients
  • PATCH/api/v1/clients/{id}
  • DELETE/api/v1/clients/{id}

Filters: emailpostcodecreated_aftercreated_before

Client collection sites

clients:read
  • GET/api/v1/client-locations
  • GET/api/v1/client-locations/{id}
  • POST/api/v1/client-locations
  • PATCH/api/v1/client-locations/{id}
  • DELETE/api/v1/client-locations/{id}

Filters: client_idpostcodecreated_aftercreated_before

Sites

sites:read
  • GET/api/v1/sites
  • GET/api/v1/sites/{id}
  • POST/api/v1/sites
  • PATCH/api/v1/sites/{id}
  • DELETE/api/v1/sites/{id}

Filters: site_typecreated_aftercreated_before

Collections

collections:read
  • GET/api/v1/collections
  • GET/api/v1/collections/{id}
  • POST/api/v1/collections
  • PATCH/api/v1/collections/{id}

Filters: statusclient_idscheduled_fromscheduled_tocreated_aftercreated_before

Containers

containers:read
  • GET/api/v1/containers
  • GET/api/v1/containers/{id}
  • POST/api/v1/containers
  • PATCH/api/v1/containers/{id}
  • DELETE/api/v1/containers/{id}

Filters: statusclient_idcreated_aftercreated_before

Invoices

invoices:read
  • GET/api/v1/invoices
  • GET/api/v1/invoices/{id}

Filters: statusclient_idissued_fromcreated_aftercreated_before

Quotes

quotes:read
  • GET/api/v1/quotes
  • GET/api/v1/quotes/{id}

Filters: statusclient_idcreated_aftercreated_before

Hazardous waste consignment notes

consignments:read
  • GET/api/v1/consignment-notes
  • GET/api/v1/consignment-notes/{id}

Filters: statusclient_idcreated_aftercreated_before

Audit trail

audit:read
  • GET/api/v1/audit-events
  • GET/api/v1/audit-events/{id}

Filters: entity_typeentity_idclient_idactionsourcecreated_aftercreated_before

Weighbridge tickets

weighbridge:read
  • GET/api/v1/weighbridge-tickets
  • GET/api/v1/weighbridge-tickets/{id}
  • POST/api/v1/weighbridge-tickets

Filters: ticket_fromvehicle_regcreated_aftercreated_before

Everything else: the app API

Anything you can do in the QWTN app, you can do through the API. /api/v1/app/{path} reaches every app endpoint (197 today, from issuing and signing transfer notes to fleet checks, RAMS, Digital Waste Tracking, invoicing and team settings) with the same validation and side effects as the app.

  • Needs a full-access key (the * scope). Requests run as the person who created the key, with exactly their role and permissions, and are recorded in the audit log as theirs.
  • Same auth header, rate limit, Idempotency-Key support and error envelope as the rest of the API. [id] in a path is any record id.
  • Response bodies are the app’s own JSON. They are stable in practice but not versioned like the typed endpoints above, so prefer a typed endpoint where one exists.
  • GET /api/v1/app returns the live list of paths and methods.
  • The live board is readable and actionable through the API. GET /api/v1/app/ops/board?date=YYYY-MM-DD returns a day’s jobs and drivers. Add &since= with an ISO time for only what changed, and &derive=1 for each job’s state and timing. POST /api/v1/app/ops/board/assign, /problem and /message act with the key owner’s permissions, so the same compliance checks and driver notifications apply as in the app.
  • Bulk sends run as background jobs. POST /api/v1/app/invoices/bulk-reminders and POST /api/v1/app/notes/bulk-signature-requests answer 202 with a job id. Poll GET /api/v1/app/jobs/{id} for status and progress, and send "dryRun": true to count what would be sent without sending. Cancel and retry are POST calls on the same job, and a finished file job has a /download path that redirects to a short-lived link.
# Add a collection site to a client (geocoded from the postcode, like in the app)
curl -X POST https://qwtn.co.uk/api/v1/app/clients/CLIENT_ID/locations \
  -H "Authorization: Bearer qwtn_live_…" -H "Content-Type: application/json" \
  -d '{ "label": "Unit 4, Riverside", "postcode": "BS1 4DJ", "contact_name": "Sam Lee" }'

# Send a draft note for e-signature
curl -X POST https://qwtn.co.uk/api/v1/app/notes/NOTE_ID/request-signature \
  -H "Authorization: Bearer qwtn_live_…" -H "Content-Type: application/json" -d '{ "party": "transferor", "recipientEmail": "site@client.co.uk", "recipientName": "Sam Lee" }'
Clients and CRM14
  • GETPOST/v1/app/clients
  • PUTDELETE/v1/app/clients/[id]
  • GETPOST/v1/app/clients/[id]/activities
  • PATCHDELETE/v1/app/clients/[id]/activities/[itemId]
  • GET/v1/app/clients/[id]/analytics
  • GETPOST/v1/app/clients/[id]/contacts
  • PATCHDELETE/v1/app/clients/[id]/contacts/[itemId]
  • GETPOST/v1/app/clients/[id]/contracts
  • PATCH/v1/app/clients/[id]/crm
  • GETPOST/v1/app/clients/[id]/locations
  • PUTDELETE/v1/app/clients/[id]/locations/[locationId]
  • GETPOST/v1/app/clients/[id]/tasks
  • PATCHDELETE/v1/app/clients/[id]/tasks/[itemId]
  • GET/v1/app/clients/tasks
Collections4
  • GETPOST/v1/app/collections
  • GETDELETEPATCH/v1/app/collections/[id]
  • GETDELETEPOST/v1/app/collections/[id]/photos
  • POST/v1/app/collections/[id]/request-site-signature
Hazardous consignments5
  • GETPOST/v1/app/consignments
  • GETPATCHDELETE/v1/app/consignments/[id]
  • POST/v1/app/consignments/[id]/sign
  • GETPOST/v1/app/consignments/returns
  • POST/v1/app/consignments/round
Containers3
  • GETPOST/v1/app/containers
  • GETPUTDELETE/v1/app/containers/[id]
  • GETPOST/v1/app/containers/[id]/history
Credit notes1
  • GET/v1/app/credit-notes/[id]
Depots3
  • GETPOST/v1/app/depots
  • PATCH/v1/app/depots/[id]
  • GETPATCH/v1/app/depots/members
Digital Waste Tracking6
  • GETPOST/v1/app/dwt/pat
  • GETPOST/v1/app/dwt/receipts
  • GETPATCH/v1/app/dwt/receipts/[id]
  • POST/v1/app/dwt/receipts/[id]/submit
  • GETPUT/v1/app/dwt/settings
  • GET/v1/app/dwt/summary
Fleet11
  • GETPOST/v1/app/fleet/expenses
  • GETPATCHDELETE/v1/app/fleet/expenses/[id]
  • GETPOST/v1/app/fleet/maintenance
  • GETPATCH/v1/app/fleet/maintenance/[id]
  • GETPOSTPATCH/v1/app/fleet/o-licence
  • GETPOST/v1/app/fleet/vehicles
  • GETPATCHDELETE/v1/app/fleet/vehicles/[id]
  • GETPOST/v1/app/fleet/walkarounds
  • GETPATCH/v1/app/fleet/walkarounds/[id]
  • GETPOST/v1/app/fleet/weighbridge
  • GETPATCHDELETE/v1/app/fleet/weighbridge/[id]
Health and safety8
  • GETPOST/v1/app/hs/accidents
  • GETPUT/v1/app/hs/accidents/[id]
  • GET/v1/app/hs/analytics
  • GETPOST/v1/app/hs/near-miss
  • GETPUT/v1/app/hs/near-miss/[id]
  • GETPOST/v1/app/hs/rams
  • GETPUT/v1/app/hs/rams/[id]
  • POST/v1/app/hs/rams/[id]/sign
Incoming loads2
  • GETPOST/v1/app/incoming-loads
  • GETPATCHDELETE/v1/app/incoming-loads/[id]
Invoices8
  • GETPOST/v1/app/invoices
  • GETPUTPATCHDELETE/v1/app/invoices/[id]
  • GETPOST/v1/app/invoices/[id]/credit-notes
  • GETPOST/v1/app/invoices/[id]/payments
  • DELETE/v1/app/invoices/[id]/payments/[paymentId]
  • POST/v1/app/invoices/[id]/send
  • POST/v1/app/invoices/bulk-reminders
  • POST/v1/app/invoices/reminders
Background jobs5
  • GET/v1/app/jobs
  • GETPATCH/v1/app/jobs/[id]
  • POST/v1/app/jobs/[id]/cancel
  • GET/v1/app/jobs/[id]/download
  • POST/v1/app/jobs/[id]/retry
Transfer notes13
  • GETPOST/v1/app/notes
  • PUTDELETE/v1/app/notes/[id]
  • POST/v1/app/notes/[id]/amend
  • GET/v1/app/notes/[id]/chain
  • POST/v1/app/notes/[id]/request-signature
  • GETPOST/v1/app/notes/[id]/schedule
  • POST/v1/app/notes/[id]/share-email
  • GETPOST/v1/app/notes/[id]/share-link
  • GETPOST/v1/app/notes/[id]/sign
  • POST/v1/app/notes/bulk-signature-requests
  • GET/v1/app/notes/chain
  • GET/v1/app/notes/export
  • GET/v1/app/notes/held-waste
Notifications4
  • GET/v1/app/notifications
  • POST/v1/app/notifications/archive
  • GETPUT/v1/app/notifications/preferences
  • POST/v1/app/notifications/read
Live board4
  • GET/v1/app/ops/board
  • POST/v1/app/ops/board/assign
  • POST/v1/app/ops/board/message
  • POST/v1/app/ops/board/problem
Permits2
  • GETPOST/v1/app/permits
  • GETPUTDELETE/v1/app/permits/[id]
Platform18
  • GET/v1/app/platform/export
  • GETPOST/v1/app/platform/import/batches
  • GETPATCH/v1/app/platform/import/batches/[id]
  • POST/v1/app/platform/import/batches/[id]/chunk
  • GETPOST/v1/app/platform/import/batches/[id]/undo
  • POST/v1/app/platform/import/commit
  • GET/v1/app/platform/import/lookup
  • GETPOSTDELETE/v1/app/platform/import/mappings
  • POST/v1/app/platform/import/preview
  • GET/v1/app/platform/integrations
  • PUTDELETE/v1/app/platform/integrations/[provider]
  • POSTGET/v1/app/platform/invoices/[id]/payment-link
  • GETPOST/v1/app/platform/webhooks
  • PATCHDELETE/v1/app/platform/webhooks/[id]
  • POST/v1/app/platform/webhooks/[id]/rotate
  • POST/v1/app/platform/webhooks/[id]/test
  • GET/v1/app/platform/webhooks/deliveries
  • POST/v1/app/platform/webhooks/deliveries/[id]/replay
Producer hub13
  • GETPATCH/v1/app/producer
  • POST/v1/app/producer/audit
  • POSTGETDELETE/v1/app/producer/audit/evidence
  • POST/v1/app/producer/contractors
  • PATCHDELETE/v1/app/producer/contractors/[id]
  • GET/v1/app/producer/contractors/[id]/checks
  • POST/v1/app/producer/contractors/[id]/verify
  • POST/v1/app/producer/documents
  • GETPATCHDELETE/v1/app/producer/documents/[id]
  • POST/v1/app/producer/documents/[id]/extract
  • GETPOSTPATCH/v1/app/producer/links
  • POST/v1/app/producer/sites
  • PATCHDELETE/v1/app/producer/sites/[id]
Profile2
  • GETPUT/v1/app/profile
  • POST/v1/app/profile/ea
Quotes3
  • GETPOST/v1/app/quotes
  • GETPUTDELETE/v1/app/quotes/[id]
  • POST/v1/app/quotes/[id]/send
Recurring schedules2
  • GETPOST/v1/app/recurring-schedules
  • GETPUTDELETE/v1/app/recurring-schedules/[id]
Reports4
  • GET/v1/app/reports/annual-return
  • GET/v1/app/reports/dwt-export
  • GET/v1/app/reports/esg
  • GET/v1/app/reports/waste-summary
Roles2
  • GETPOST/v1/app/roles
  • PATCHDELETE/v1/app/roles/[id]
Routing4
  • POST/v1/app/routing/optimise
  • POST/v1/app/routing/optimise/apply
  • GETPOST/v1/app/routing/plan
  • POST/v1/app/routing/publish
Season tickets3
  • GET/v1/app/season-tickets
  • POST/v1/app/season-tickets/[id]/renew
  • GETPOSTDELETE/v1/app/season-tickets/[id]/transfers
Receiving sites2
  • GETPOST/v1/app/sites
  • GETPATCHDELETE/v1/app/sites/[id]
Team7
  • GETPOST/v1/app/team
  • GETPATCHDELETE/v1/app/team/[id]
  • GETPATCH/v1/app/team/audit-settings
  • DELETE/v1/app/team/invites/[id]
  • GET/v1/app/team/members
  • GETPATCH/v1/app/team/settings
  • GETPATCH/v1/app/team/vat-scheme
Telematics2
  • GETPOSTDELETE/v1/app/telematics
  • POST/v1/app/telematics/sync
Templates2
  • GETPOST/v1/app/templates
  • PUTDELETE/v1/app/templates/[id]
Load library2
  • GETPOST/v1/app/waste-loads
  • PUTDELETE/v1/app/waste-loads/[id]
activity1
  • GET/v1/app/activity
approvals3
  • GET/v1/app/approvals
  • POSTDELETE/v1/app/approvals/[id]
  • GETPUT/v1/app/approvals/rules
audit1
  • POST/v1/app/audit
audit-events3
  • GET/v1/app/audit-events
  • GET/v1/app/audit-events/export
  • POST/v1/app/audit-events/purge
audit-log1
  • GET/v1/app/audit-log
billing2
  • POST/v1/app/billing/preview
  • GETPOST/v1/app/billing/runs
brand-extract1
  • POST/v1/app/brand-extract
client-error1
  • POST/v1/app/client-error
companies-house1
  • GET/v1/app/companies-house
company-website1
  • GET/v1/app/company-website
compliance1
  • POST/v1/app/compliance/check
contracts1
  • PATCHDELETE/v1/app/contracts/[id]
dashboard1
  • GET/v1/app/dashboard
driver1
  • GET/v1/app/driver/offline-pack
ea2
  • GET/v1/app/ea
  • GET/v1/app/ea/check
ea-lookup1
  • POST/v1/app/ea-lookup
esg1
  • GET/v1/app/esg
favourites1
  • GET/v1/app/favourites
geocode1
  • POST/v1/app/geocode
job-photos1
  • GET/v1/app/job-photos
legal-hold1
  • GETPATCH/v1/app/legal-hold
list-export1
  • GETPOST/v1/app/list-export/[list]
notify1
  • GETPOST/v1/app/notify/collection
portal-requests3
  • GET/v1/app/portal-requests
  • PATCH/v1/app/portal-requests/[id]
  • GET/v1/app/portal-requests/[id]/photos
price-lists2
  • GETPOST/v1/app/price-lists
  • PATCHDELETE/v1/app/price-lists/[id]
search1
  • GET/v1/app/search
signing-tokens1
  • GETPOST/v1/app/signing-tokens
storage1
  • POST/v1/app/storage/logo-upload-url
waste-sites1
  • GET/v1/app/waste-sites

Webhooks

Add HTTPS endpoints in Settings → Webhooks and choose the events to receive. Each event is a JSON POST whose data.object is the record exactly as the REST API returns it.

EventSent when
note.signedA transferor or transferee signature was captured on a waste transfer note.
note.completedA transfer note became complete (or a season ticket became valid).
collection.completedA driver or office user marked a collection completed.
invoice.sentAn invoice was sent to the customer for the first time.
invoice.paidAn invoice was marked paid (manually or by payment link).
quote.acceptedA customer accepted a quote.
consignment.issuedA hazardous waste consignment note was issued.
compliance.expiringA vehicle MOT/tax/insurance, site permit or driver licence/CPC is within 30 days of expiry (sent at 30, 7 and 0 days).
POST /your/endpoint
QWTN-Signature: t=1760262000,v1=5f2b…c9
QWTN-Event-Id: evt_6a1f…
QWTN-Event-Type: invoice.paid

{ "id": "evt_6a1f…", "object": "event", "type": "invoice.paid", "api_version": "2026-10-01",
  "created_at": "2026-10-12T09:40:00Z", "data": { "object": { "id": "…", "object": "invoice", "status": "paid", … } } }

Verify the signature

Compute HMAC-SHA256 of `${t}.${rawBody}` with your endpoint secret and compare it, in constant time, with any v1 value. Reject timestamps more than five minutes old. During a secret rotation the header carries two v1 values for 24 hours.

import crypto from 'node:crypto'

app.post('/webhooks/qwtn', express.raw({ type: 'application/json' }), (req, res) => {
  const header = req.get('QWTN-Signature') ?? ''
  const t = Number(/t=(\d+)/.exec(header)?.[1])
  const expected = crypto.createHmac('sha256', process.env.QWTN_WEBHOOK_SECRET)
    .update(`${t}.${req.body}`).digest('hex')
  const ok = Math.abs(Date.now() / 1000 - t) < 300 &&
    [...header.matchAll(/v1=([0-9a-f]{64})/g)].some(([, sig]) =>
      crypto.timingSafeEqual(Buffer.from(sig, 'hex'), Buffer.from(expected, 'hex')))
  if (!ok) return res.status(400).end()
  const event = JSON.parse(req.body)
  // dedupe on event.id, then queue your work and reply fast
  res.sendStatus(204)
})

Delivery and retries

  • Reply with any 2xx within 10 seconds. Do slow work after replying.
  • Anything else is retried after 1m, 5m, 30m, 2h, 6h, 12h, 24h, 24h (with jitter), then marked failed. Retries are at-least-once: dedupe on id.
  • Replying 410 Gone disables the endpoint; 15 events in a row that exhaust their retries also disable it.
  • The delivery log in Settings shows every attempt, payload and response, and lets you replay any event or send a test ping.
  • Order is not guaranteed. Use created_at and fetch the record from the API if you need the latest state.

Built-in integrations

  • Stripe and GoCardless: pay-now links on invoices that settle into your own account; invoices are marked paid automatically.
  • CSV import and full export: clients, client sites, containers and vehicles in; every record type out as a ZIP of CSVs.

Versioning and support

This is API version 2026-10-01 (sent as the QWTN-Version response header). We add fields and endpoints without notice, so ignore fields you do not recognise. Breaking changes get a new version and at least six months’ notice by email to account owners. Questions: support@qwtn.co.uk.

Ready to connect your systems?

Create a key in Settings → API access, or create an account first.

No card needed to start.