Business REST API
Integrate fleet checks with your HR or compliance systems. Pay-as-you-go per check — no lock-in. Drivers never pay.
Authentication
Send Authorization: Bearer edl_live_… on every request. Create keys in the business portal. Keys are rate-limited to 60 requests per minute.
Pricing
Each check costs $2.00 (NZD). Your business credit balance is debited when a check runs. Insufficient credit returns HTTP 402.
What a check returns
A check confirms whether licence number, version, name, and date of birth match the NZTA record (via DLVS). It does not return licence class or suspension status.
POST /api/v1/checks
Run a check for an active driver mandate. Body must include mandateId (UUID). A credit is consumed when the check completes.
curl -sS -X POST https://edl.org.nz/api/v1/checks \
-H "Authorization: Bearer edl_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"mandateId":"MANDATE_UUID"}'Success (200): {"ok":true,"check":{...}} — the check object includes match flags for licence number, card version, names, and date of birth.
GET /api/v1/mandates
List non-revoked mandates with last check summary and ISO nextDue.
curl -sS https://edl.org.nz/api/v1/mandates \ -H "Authorization: Bearer edl_live_YOUR_KEY"
Success (200): {"mandates":[{ "id", "frequencyDays", "expiresAt", "lastCheck", "nextDue", ... }]}
GET /api/v1/checks/{id}
Fetch one check result by id (must belong to your business).
curl -sS https://edl.org.nz/api/v1/checks/CHECK_UUID \ -H "Authorization: Bearer edl_live_YOUR_KEY"
Errors
- 400 — missing
mandateId, inactive mandate, or check could not run ({"error":"..."}) - 401 — missing or invalid API key
- 402 — insufficient credit
- 404 — mandate or check not found for your business
- 429 — more than 60 requests per minute on this API key