Getting started
Quick start
Four steps from nothing to a working call. Every example on this page uses made-up data: the references, names and registrations do not belong to real customers or vans.
-
Ask for a key
Tell us who you are, what you are building and which scopes you need (see Request access). We create the key and send it to you once: we keep only a fingerprint of it, so it cannot be shown again.
-
Keep it on your server
Put it in your secret manager or an environment variable. Never in a web page, a mobile app or a code repository.
shellexport GOVANTAGE_API_KEY="gvk_live_…" -
Make your first call
GET /partner/meconfirms the key works and lists what it may do. It is a good health check to run when you deploy.curl "https://app.govantage.uk/api/v1/partner/me" \ -H "Authorization: Bearer $GOVANTAGE_API_KEY"const res = await fetch('https://app.govantage.uk/api/v1/partner/me', { headers: { Authorization: `Bearer ${process.env.GOVANTAGE_API_KEY}`, }, }); const body = await res.json(); if (!res.ok) throw new Error(`${body.code}: ${body.title}`); console.log(body);import os import requests res = requests.get( "https://app.govantage.uk/api/v1/partner/me", headers={"Authorization": f"Bearer {os.environ['GOVANTAGE_API_KEY']}"}, timeout=30, ) body = res.json() if not res.ok: raise RuntimeError(f"{body['code']}: {body['title']}") print(body) -
Find a van and price it
A typical flow: list van classes and depots, check availability for a start date, price the hire, then request a booking. Our team confirms the request after the usual driver and payment checks.
Getting started
Authentication
Send the key as a bearer token on every request:
Authorization: Bearer gvk_live_a1B2c3D4_••••••••••••••••••••••••••••••••gvk_live_Kind of key. Every production key starts like this.
a1B2c3D4The prefix. Shown in our console and by Check a key, so it is safe to log.
••••••••The secret. Never log it, never send it anywhere but this API.
- Missing, mistyped, expired and revoked keys all answer
401 INVALID_API_KEY. Too many invalid keys from one address and that address is refused for ten minutes. - Rotating a key needs no downtime: ask for a second key, deploy it, then ask us to revoke the first. Both work in between.
- A key that has leaked: tell us straight away. Revoking it takes effect on the next request.
- Call from your server. The API gives no cross-origin permission to other websites, so a browser on another site cannot call it. That keeps keys out of web pages by design.
Getting started
Keys and scopes
There are two kinds of key. Which one you get depends on whose data you work with.
Account key
For a business that hires from us and wants its own data in its own systems. It belongs to one customer account and only ever sees that account's vans, bookings and invoices, with its negotiated prices.
Platform key
For partners such as telematics providers and fleet platforms. It sees the fleet without any customer detail, only the bookings it created, and never an account or its invoices. It books for a customer only with that customer's reference and email; 10 wrong pairs within an hour pause its booking requests until the hour is up.
| Scope | Allows | Account key | Platform key |
|---|---|---|---|
vehicles:read | Read vehicles and classesList van classes · List hire plans · List depots · List vans · Get one van | ||
availability:read | Check availability and quotesCheck availability · Price a hire | ||
bookings:read | Read bookingsList bookings · Get one booking | ||
bookings:write | Create booking requestsRequest a booking | ||
customers:read | Read customersGet the account | ||
invoices:read | Read invoicesList invoices · Get one invoice | ||
telematics:write | Push GPS / odometer readingsPush tracker readings · Push fault codes, driving and dashcam events | ||
moves:read | Read van moves (own account; moves marketplace) | ||
moves:write | Raise and cancel van moves (own account; moves marketplace) |
A key can also carry an expiry date and its own rate limit, agreed when we issue it. Ask for the fewest scopes that do the job; adding one later is quick.
Getting started
Environments
- Environment
- Production
- Base URL
- https://app.govantage.uk/api/v1
- Keys start with
- gvk_live_
There is no public sandbox. Every key works on live data, limited by its scopes and, for an account key, by its account. To build safely:
- Start with read scopes. Catalogue, availability and quotes change nothing.
- A booking request is only a request. Nothing is confirmed, charged or handed over until our team has checked it.
- Put
TESTin the notes of a test request and tell us: we cancel it for you.
Using the API
Requests and responses
- HTTPS and JSON
- Always HTTPS. Send
Content-Type: application/jsonwith a body of up to 1 MB; answers are UTF-8 JSON. - Money
- Whole pence as integers, VAT inclusive unless the field says otherwise, as
recurringExVatMinordoes. - Time
- Timestamps are ISO-8601 in UTC, like
2027-02-26T12:58:00.000Z. Dates areYYYY-MM-DD. - Identifiers
- Vans by registration, with spaces and case ignored. Bookings, rentals, invoices and customers by reference; plans, classes and depots by code. Internal ids never appear.
- New fields
- Fields, enum values and error codes are added without notice. Ignore what you do not recognise rather than failing on it.
- Request ids
- Every answer has
X-Request-Id. Send your own (8 to 80 letters, digits, dots, dashes or underscores) to tie our logs to yours. - Caching
- Data answers carry
Cache-Control: no-store. Keep them out of shared caches; cache the catalogue yourself for up to an hour. - Contract
- The OpenAPI 3.1 document describes every request, answer and error. Import it into Postman, Insomnia or a client generator.
Using the API
Errors
Every error is application/problem+json in the same shape. Branch on code, show title to people, log requestId and quote it to us. retryable is true only for 429 and 5xx answers, and type opens the entry for that code below.
{
"type": "https://app.govantage.uk/problems/validation-failed",
"code": "VALIDATION_FAILED",
"title": "The request did not match the contract. See fields for what to fix.",
"status": 422,
"requestId": "req_00000000000000000000",
"fields": [
{
"field": "startDate",
"message": "Use YYYY-MM-DD"
}
],
"retryable": false
} | Status | Code and meaning | What to do |
|---|---|---|
| 400 | IDEMPOTENCY_KEY_REQUIREDThis call creates something, so it needs an Idempotency-Key header of 8 to 120 characters. | Add the header |
| 401 | INVALID_API_KEYThe key is missing, mistyped, expired or revoked. | Check the key |
| 403 | SCOPE_REQUIREDThe key works but was not given the scope this call needs. | Ask for the scope |
| 403 | ACCOUNT_KEY_REQUIREDOnly a key limited to one customer account can call this. | Use an account key |
| 404 | NOT_FOUNDNothing with that reference exists, or it belongs to another account. The two are never told apart. | Check the reference |
| 409 | IDEMPOTENCY_KEY_REUSEDThat Idempotency-Key was already used with a different request body. | Use a new key |
| 409 | IN_PROGRESSThe first request with that Idempotency-Key is still being worked on. | Retry in a second |
| 413 | PAYLOAD_TOO_LARGEThe body is over 1 MB. Send telematics in smaller batches. | Send less |
| 422 | VALIDATION_FAILEDThe request did not match the contract. fields says which values to fix. | Fix the request |
| 422 | CUSTOMER_NOT_MATCHEDPlatform keys: no customer account has that reference and email together. | Check with the customer |
| 422 | NOT_AVAILABLENo van of that class can be promised for the dates asked for. | Try other dates |
| 429 | RATE_LIMITEDToo many requests this minute, or too many invalid keys from your address. Wait for Retry-After seconds. | After Retry-After |
| 500 | INTERNALSomething failed on our side. Nothing you sent was wrong; quote requestId if it keeps happening. | With backoff |
Using the API
Rate limits
Each key has a budget per minute: 120 requests unless we agreed more. The budget refills at the start of every minute, and heavier calls spend more of it.
| Cost | Calls |
|---|---|
| 1 | Check a key · List van classes · List hire plans · List depots · List vans · Get one van · List bookings · Get one booking · Get the account · List invoices · Get one invoice |
| 3 | Check availability · Price a hire |
| 5 | Request a booking · Push tracker readings · Push fault codes, driving and dashcam events |
| Header | Meaning |
|---|---|
X-RateLimit-Limit | Requests allowed per minute for this key |
X-RateLimit-Remaining | Left in the current minute |
X-RateLimit-Reset | Seconds until the minute ends |
Retry-After | On a 429: seconds to wait |
- On
429, wait theRetry-Afterseconds, then carry on. - On a
5xxor a dropped connection, retry with exponential backoff and jitter: about 1, 2, 4, 8 seconds, up to a minute. Writes are safe to retry with the same Idempotency-Key. - Do not retry other
4xxanswers until you have changed the request.
Using the API
Pagination
Lists return items and nextCursor. Pass nextCursor back as cursor until it is null. Pages hold 25 items by default and 100 at most. Cursors are opaque and stay valid while new items arrive, so nothing is skipped or repeated.
async function* allBookings() {
let cursor = null;
do {
const url = new URL('https://app.govantage.uk/api/v1/partner/bookings');
url.searchParams.set('limit', '100');
if (cursor) url.searchParams.set('cursor', cursor);
const res = await fetch(url, { headers: { Authorization: `Bearer ${process.env.GOVANTAGE_API_KEY}` } });
const page = await res.json();
if (!res.ok) throw new Error(`${page.code}: ${page.title}`);
yield* page.items;
cursor = page.nextCursor;
} while (cursor);
}
for await (const booking of allBookings()) console.log(booking.reference, booking.status); import os
import requests
def all_bookings():
cursor = None
while True:
params = {"limit": 100, **({"cursor": cursor} if cursor else {})}
res = requests.get("https://app.govantage.uk/api/v1/partner/bookings", params=params,
headers={"Authorization": f"Bearer {os.environ['GOVANTAGE_API_KEY']}"}, timeout=30)
page = res.json()
if not res.ok:
raise RuntimeError(f"{page['code']}: {page['title']}")
yield from page["items"]
cursor = page["nextCursor"]
if not cursor:
return
for booking in all_bookings():
print(booking["reference"], booking["status"]) Using the API
Retries and idempotency
Networks fail. A call that creates something, Request a booking, needs an Idempotency-Key header so a retry can never create a second one.
- Use any unique value of 8 to 120 characters; a UUID is ideal. Make one per booking, not per attempt.
- The same key with the same body within 24 hours returns the first answer, with the same reference.
- The same key with a different body answers
409 IDEMPOTENCY_KEY_REUSED. - While the first request is still being worked on, a repeat answers
409 IN_PROGRESS: wait a second and try again. - A request that was refused frees its key, so you can correct it and send it again with the same key.
- Telematics pushes need no header: a reading is stored once per van and instant, an event once per
externalId, so a batch can be replayed.
Using the API
Staying in sync
- Booking requests: follow each open request with Get one booking every few minutes until it is confirmed (it then names its rental and van) or cancelled.
- Invoices: invoices are issued weekly. Call List invoices with
fromset to the last issue date you stored. - Catalogue: plans, classes and depots change rarely. Refresh them hourly.
Event notifications (webhooks) are not part of the partner API yet. When they are, they will be announced in the changelog.
Policies
Versioning and deprecation
- The major version is in the path:
/api/v1. Version 1 is stable. - We add to it without notice: new endpoints, new optional request fields, new response fields, new enum values and new error codes.
- Within v1 we never remove or rename a field, change its type or meaning, or make an optional field required. The one exception is closing a security hole, and then we tell every affected key holder directly.
- Breaking changes come in a new major version. Version 1 then keeps working for at least 6 months, and key holders hear from us when the new version is released and again before the old one stops.
- The contract version (
info.versionin the OpenAPI document,apiVersionfrom Check a key) follows semantic versioning. This page documents 1.1.0.
Policies
Security
What we do
- Keys are shown once and stored only as a SHA-256 fingerprint.
- Scope and account limits are checked on every call. Anything outside a key's reach answers 404, exactly like something that does not exist.
- Calls are counted per key per day, and revoking a key takes effect on the next request.
- Answers with data are never cached by us or by the network.
What we ask of you
- Keep keys on your servers, one per integration, with the fewest scopes that work.
- Rotate a key when someone who had it leaves.
- Answers can hold personal data, such as driver names on an account key. Protect it as the UK GDPR requires and keep it no longer than you need.
Found a vulnerability?
Email [email protected] with “Security” in the subject. Please test only with your own key and data, and give us time to fix it before telling anyone else.
Policies
Changelog
-
1.1.0
Tighter rules for platform keys and a fuller contract.
- security A platform key requesting a booking must send customerEmail with customerReference, and both must match one customer account. A mismatch answers 422 CUSTOMER_NOT_MATCHED whether or not the reference exists; ten mismatches in an hour stop the key requesting bookings until the hour is up.
- security Platform keys no longer receive lastPosition for a van that is out on hire. Account keys still see it for their own vans.
- added The OpenAPI document describes every error a call can return, with examples, the X-Request-Id header and the rate-limit headers on every answer. It can be fetched from any origin.
- changed Request bodies are limited to 1 MB; a bigger one answers 413 PAYLOAD_TOO_LARGE. The largest batch the contract allows is well under it.
- changed Dates must be real calendar dates: 2027-02-31 now answers 422 instead of being read as 3 March.
- changed Examples use made-up data throughout.
-
1.0.0
First release.
- added Key check, catalogue, vans, availability, quotes, booking requests, account and invoices, tracker readings.
- added Push telematics events (fault codes, driving events, dashcam clips), and deviceId and batteryVolts on readings (2 October 2026).
API reference
Endpoints
Generated from the same contract the API checks every request against. Paths are relative to https://app.govantage.uk/api/v1.
Key
Check that a key works and what it is allowed to do.
GET /partner/me Check a key
Confirms the key works and shows what it may do. Use it as a health check when you deploy.
Works with any key. Counts as 1 request.
curl "https://app.govantage.uk/api/v1/partner/me" \
-H "Authorization: Bearer $GOVANTAGE_API_KEY" const res = await fetch('https://app.govantage.uk/api/v1/partner/me', {
headers: {
Authorization: `Bearer ${process.env.GOVANTAGE_API_KEY}`,
},
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.code}: ${body.title}`);
console.log(body); import os
import requests
res = requests.get(
"https://app.govantage.uk/api/v1/partner/me",
headers={"Authorization": f"Bearer {os.environ['GOVANTAGE_API_KEY']}"},
timeout=30,
)
body = res.json()
if not res.ok:
raise RuntimeError(f"{body['code']}: {body['title']}")
print(body) {
"key": {
"name": "Route planner",
"prefix": "a1B2c3D4",
"scopes": [
"vehicles:read",
"bookings:read"
],
"expiresAt": null,
"rateLimitPerMinute": 120
},
"account": {
"reference": "CUS-000000",
"name": "Acme Couriers Ltd"
},
"environment": "live",
"apiVersion": "1.1.0"
} Response fields
-
keyobject -
key.namestring -
key.prefixstringThe public part of the key, as shown in our console
-
key.scopesenum[]vehicles:readavailability:readbookings:readbookings:writecustomers:readinvoices:readtelematics:writemoves:readmoves:write -
key.expiresAtstring · or null -
key.rateLimitPerMinuteinteger -
accountobject · or nullThe customer account this key is limited to, or null for a platform key
-
account.referencestring -
account.namestring -
environmentenumlive for keys issued on the production service
testlive -
apiVersionstring
Catalogue
Van classes, hire plans and depots on public sale, and the vans a key may see.
GET /partner/vehicle-classes List van classes vehicles:read
The kinds of van that can be hired, with load space and the lowest weekly price.
Needs the vehicles:read scope. Counts as 1 request.
curl "https://app.govantage.uk/api/v1/partner/vehicle-classes" \
-H "Authorization: Bearer $GOVANTAGE_API_KEY" const res = await fetch('https://app.govantage.uk/api/v1/partner/vehicle-classes', {
headers: {
Authorization: `Bearer ${process.env.GOVANTAGE_API_KEY}`,
},
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.code}: ${body.title}`);
console.log(body); import os
import requests
res = requests.get(
"https://app.govantage.uk/api/v1/partner/vehicle-classes",
headers={"Authorization": f"Bearer {os.environ['GOVANTAGE_API_KEY']}"},
timeout=30,
)
body = res.json()
if not res.ok:
raise RuntimeError(f"{body['code']}: {body['title']}")
print(body) {
"items": [
{
"code": "MWB",
"name": "Medium van",
"category": "VAN",
"tagline": "The courier favourite",
"description": null,
"seats": 3,
"payloadKg": 1000,
"loadLengthMm": 2555,
"loadHeightMm": 1406,
"loadVolumeM3": 6,
"fuelType": "DIESEL",
"transmission": "MANUAL",
"exampleModels": [
"Ford Transit Custom",
"Vauxhall Vivaro"
],
"features": [
"Bluetooth",
"Ply-lined"
],
"imageUrl": null,
"depositMinor": 50000,
"fromWeeklyMinor": 15000
}
]
} Response fields
-
itemsobject[] -
items[].codestring -
items[].namestring -
items[].categorystring -
items[].taglinestring,null -
items[].descriptionstring,null -
items[].seatsinteger -
items[].payloadKginteger · or null -
items[].loadLengthMminteger · or null -
items[].loadHeightMminteger · or null -
items[].loadVolumeM3number,null -
items[].fuelTypestring -
items[].transmissionstring -
items[].exampleModelsstring[] -
items[].featuresstring[] -
items[].imageUrlstring,null -
items[].depositMinorintegerAmount in pence, VAT inclusive unless stated
-
items[].fromWeeklyMinorinteger · or nullLowest weekly price across public plans
GET /partner/plans List hire plans vehicles:read
Plans on public sale with the price of each van class.
Needs the vehicles:read scope. Counts as 1 request.
curl "https://app.govantage.uk/api/v1/partner/plans" \
-H "Authorization: Bearer $GOVANTAGE_API_KEY" const res = await fetch('https://app.govantage.uk/api/v1/partner/plans', {
headers: {
Authorization: `Bearer ${process.env.GOVANTAGE_API_KEY}`,
},
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.code}: ${body.title}`);
console.log(body); import os
import requests
res = requests.get(
"https://app.govantage.uk/api/v1/partner/plans",
headers={"Authorization": f"Bearer {os.environ['GOVANTAGE_API_KEY']}"},
timeout=30,
)
body = res.json()
if not res.ok:
raise RuntimeError(f"{body['code']}: {body['title']}")
print(body) {
"items": [
{
"code": "FLEX",
"name": "Flex",
"tagline": "Week to week",
"interval": "WEEK",
"minTermIntervals": 4,
"noticeDays": 7,
"mileageAllowance": 1000,
"excessMileageMinor": 12,
"insuranceIncluded": false,
"prices": [
{
"classCode": "MWB",
"priceMinor": 15000
}
]
}
]
} Response fields
-
itemsobject[] -
items[].codestring -
items[].namestring -
items[].taglinestring,null -
items[].intervalstringBilling interval, e.g. WEEK
-
items[].minTermIntervalsinteger -
items[].noticeDaysinteger -
items[].mileageAllowanceinteger · or nullMiles per interval, null when unlimited
-
items[].excessMileageMinorinteger · or null -
items[].insuranceIncludedboolean -
items[].pricesobject[] -
items[].prices[].classCodestring -
items[].prices[].priceMinorintegerAmount in pence, VAT inclusive unless stated
GET /partner/depots List depots vehicles:read
Where vans are collected and returned.
Needs the vehicles:read scope. Counts as 1 request.
curl "https://app.govantage.uk/api/v1/partner/depots" \
-H "Authorization: Bearer $GOVANTAGE_API_KEY" const res = await fetch('https://app.govantage.uk/api/v1/partner/depots', {
headers: {
Authorization: `Bearer ${process.env.GOVANTAGE_API_KEY}`,
},
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.code}: ${body.title}`);
console.log(body); import os
import requests
res = requests.get(
"https://app.govantage.uk/api/v1/partner/depots",
headers={"Authorization": f"Bearer {os.environ['GOVANTAGE_API_KEY']}"},
timeout=30,
)
body = res.json()
if not res.ok:
raise RuntimeError(f"{body['code']}: {body['title']}")
print(body) {
"items": [
{
"code": "BHM",
"name": "Birmingham",
"addressLine1": "Unit 1, Example Trade Park",
"addressLine2": null,
"city": "Birmingham",
"postcode": "B1 1AA",
"latitude": 52.4862,
"longitude": -1.8904,
"phone": "0121 496 0018",
"openingHours": {
"mon": [
"08:00",
"18:00"
],
"sat": [
"09:00",
"13:00"
]
}
}
]
} Response fields
-
itemsobject[] -
items[].codestring -
items[].namestring -
items[].addressLine1string -
items[].addressLine2string,null -
items[].citystring -
items[].postcodestring -
items[].latitudenumber -
items[].longitudenumber -
items[].phonestring,null -
items[].openingHoursmapDay key (mon…sun) to [opens, closes]; a missing day is closed
GET /partner/vehicles List vans vehicles:read
On an account key: the vans on hire to that account. On a platform key: the fleet, without any customer detail, and without the position of a van that is out on hire.
Needs the vehicles:read scope. Counts as 1 request.
Parameters
-
limitinteger · query · optionalItems per page Default
25. -
cursorstring · query · optionalnextCursor from the previous page
-
classCodestring · query · optionalVan class code, from List van classes
-
statusstring · query · optionalPlatform keys only, e.g. AVAILABLE or ON_RENT
curl "https://app.govantage.uk/api/v1/partner/vehicles?limit=25" \
-H "Authorization: Bearer $GOVANTAGE_API_KEY" const res = await fetch('https://app.govantage.uk/api/v1/partner/vehicles?limit=25', {
headers: {
Authorization: `Bearer ${process.env.GOVANTAGE_API_KEY}`,
},
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.code}: ${body.title}`);
console.log(body); import os
import requests
res = requests.get(
"https://app.govantage.uk/api/v1/partner/vehicles",
params={"limit": 25},
headers={"Authorization": f"Bearer {os.environ['GOVANTAGE_API_KEY']}"},
timeout=30,
)
body = res.json()
if not res.ok:
raise RuntimeError(f"{body['code']}: {body['title']}")
print(body) {
"items": [
{
"registration": "ZZ70 ABC",
"make": "Ford",
"model": "Transit Custom",
"variant": "280 L1 H1",
"colour": "White",
"year": 2020,
"fuelType": "DIESEL",
"transmission": "MANUAL",
"classCode": "MWB",
"className": "Medium van",
"depotCode": "BHM",
"status": "ON_RENT",
"mileage": 48210,
"mileageRecordedAt": "2027-02-26T07:41:00.000Z",
"motExpiresAt": "2027-09-14",
"taxDueAt": "2027-08-01",
"serviceDueAt": "2027-06-01",
"rental": {
"reference": "RN-2027-00000",
"startedAt": "2027-02-15T08:30:00.000Z",
"driverName": "Jo Bloggs"
},
"lastPosition": {
"latitude": 52.4862,
"longitude": -1.8904,
"recordedAt": "2027-02-26T12:58:00.000Z",
"speedMph": 0
}
}
],
"nextCursor": null
} Response fields
-
itemsobject[] -
items[].registrationstring -
items[].makestring -
items[].modelstring -
items[].variantstring,null -
items[].colourstring,null -
items[].yearinteger · or null -
items[].fuelTypestring -
items[].transmissionstring -
items[].classCodestring -
items[].classNamestring -
items[].depotCodestring,null -
items[].statusstring -
items[].mileageinteger -
items[].mileageRecordedAtstring · or null -
items[].motExpiresAtdate · or null -
items[].taxDueAtdate · or null -
items[].serviceDueAtdate · or null -
items[].rentalobject · or nullPresent on account keys while the van is on hire to that account
-
items[].rental.referencestring -
items[].rental.startedAttimestampISO-8601 timestamp in UTC
-
items[].rental.driverNamestring,null -
items[].lastPositionobject · or nullLatest tracker position. Account keys see it for the vans on hire to them; platform keys only while a van is not out on hire, so a driver is never followed through a platform key
-
items[].lastPosition.latitudenumber -
items[].lastPosition.longitudenumber -
items[].lastPosition.recordedAttimestampISO-8601 timestamp in UTC
-
items[].lastPosition.speedMphinteger · or null -
nextCursorstring,nullPass as `cursor` for the next page; null on the last page
GET /partner/vehicles/{registration} Get one van vehicles:read
Spaces and case in the registration are ignored. A van the key may not see answers 404, exactly like one that does not exist.
Needs the vehicles:read scope. Counts as 1 request.
Parameters
-
registrationstring · pathrequiredRegistration mark, e.g. ZZ70ABC.
curl "https://app.govantage.uk/api/v1/partner/vehicles/ZZ70ABC" \
-H "Authorization: Bearer $GOVANTAGE_API_KEY" const res = await fetch('https://app.govantage.uk/api/v1/partner/vehicles/ZZ70ABC', {
headers: {
Authorization: `Bearer ${process.env.GOVANTAGE_API_KEY}`,
},
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.code}: ${body.title}`);
console.log(body); import os
import requests
res = requests.get(
"https://app.govantage.uk/api/v1/partner/vehicles/ZZ70ABC",
headers={"Authorization": f"Bearer {os.environ['GOVANTAGE_API_KEY']}"},
timeout=30,
)
body = res.json()
if not res.ok:
raise RuntimeError(f"{body['code']}: {body['title']}")
print(body) {
"registration": "ZZ70 ABC",
"make": "Ford",
"model": "Transit Custom",
"variant": "280 L1 H1",
"colour": "White",
"year": 2020,
"fuelType": "DIESEL",
"transmission": "MANUAL",
"classCode": "MWB",
"className": "Medium van",
"depotCode": "BHM",
"status": "ON_RENT",
"mileage": 48210,
"mileageRecordedAt": "2027-02-26T07:41:00.000Z",
"motExpiresAt": "2027-09-14",
"taxDueAt": "2027-08-01",
"serviceDueAt": "2027-06-01",
"rental": {
"reference": "RN-2027-00000",
"startedAt": "2027-02-15T08:30:00.000Z",
"driverName": "Jo Bloggs"
},
"lastPosition": {
"latitude": 52.4862,
"longitude": -1.8904,
"recordedAt": "2027-02-26T12:58:00.000Z",
"speedMph": 0
}
} Response fields
-
registrationstring -
makestring -
modelstring -
variantstring,null -
colourstring,null -
yearinteger · or null -
fuelTypestring -
transmissionstring -
classCodestring -
classNamestring -
depotCodestring,null -
statusstring -
mileageinteger -
mileageRecordedAtstring · or null -
motExpiresAtdate · or null -
taxDueAtdate · or null -
serviceDueAtdate · or null -
rentalobject · or nullPresent on account keys while the van is on hire to that account
-
rental.referencestring -
rental.startedAttimestampISO-8601 timestamp in UTC
-
rental.driverNamestring,null -
lastPositionobject · or nullLatest tracker position. Account keys see it for the vans on hire to them; platform keys only while a van is not out on hire, so a driver is never followed through a platform key
-
lastPosition.latitudenumber -
lastPosition.longitudenumber -
lastPosition.recordedAttimestampISO-8601 timestamp in UTC
-
lastPosition.speedMphinteger · or null
Availability & price
What can be promised for a window, and what it costs, from the same engine as the website.
GET /partner/availability Check availability availability:read ×3
How many vans of each class can be promised from each depot for the whole window. Narrow it to one class at one depot and a sold-out answer also says when a van frees up.
Needs the availability:read scope. Counts as 3 requests.
Parameters
-
startDatedate · queryrequiredFirst day of hire
-
weeksinteger · query · optionalLength of hire; omit for open-ended
-
classCodestring · query · optionalVan class code, from List van classes
-
depotCodestring · query · optionalDepot code, from List depots
curl "https://app.govantage.uk/api/v1/partner/availability?startDate=2027-03-01&weeks=12&classCode=MWB" \
-H "Authorization: Bearer $GOVANTAGE_API_KEY" const res = await fetch('https://app.govantage.uk/api/v1/partner/availability?startDate=2027-03-01&weeks=12&classCode=MWB', {
headers: {
Authorization: `Bearer ${process.env.GOVANTAGE_API_KEY}`,
},
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.code}: ${body.title}`);
console.log(body); import os
import requests
res = requests.get(
"https://app.govantage.uk/api/v1/partner/availability",
params={"startDate": "2027-03-01", "weeks": 12, "classCode": "MWB"},
headers={"Authorization": f"Bearer {os.environ['GOVANTAGE_API_KEY']}"},
timeout=30,
)
body = res.json()
if not res.ok:
raise RuntimeError(f"{body['code']}: {body['title']}")
print(body) {
"items": [
{
"classCode": "MWB",
"className": "Medium van",
"depotCode": "BHM",
"depotName": "Birmingham",
"fleetSize": 14,
"available": 3,
"nextAvailableDate": null
}
]
} Response fields
-
itemsobject[] -
items[].classCodestring -
items[].classNamestring -
items[].depotCodestring -
items[].depotNamestring -
items[].fleetSizeinteger -
items[].availableintegerVans that can be promised for the whole window
-
items[].nextAvailableDatedate · or nullEarliest date a van frees up when none is available
GET /partner/quote Price a hire availability:read ×3
The same pricing engine the website and our team use, including promotions. Account keys get that account's negotiated rates.
Needs the availability:read scope. Counts as 3 requests.
Parameters
-
planCodestring · queryrequiredPlan code, from List hire plans
-
classCodestring · queryrequiredVan class code, from List van classes
-
depotCodestring · queryrequiredDepot code, from List depots
-
startDatedate · queryrequiredFirst day of hire
-
weeksinteger · query · optionalLength of hire; omit for open-ended
-
vehiclesinteger · query · optionalHow many vans Default
1. -
promoCodestring · query · optionalPromotion code, if the customer has one
curl "https://app.govantage.uk/api/v1/partner/quote?planCode=FLEX&classCode=MWB&depotCode=BHM&startDate=2027-03-01&weeks=12" \
-H "Authorization: Bearer $GOVANTAGE_API_KEY" const res = await fetch('https://app.govantage.uk/api/v1/partner/quote?planCode=FLEX&classCode=MWB&depotCode=BHM&startDate=2027-03-01&weeks=12', {
headers: {
Authorization: `Bearer ${process.env.GOVANTAGE_API_KEY}`,
},
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.code}: ${body.title}`);
console.log(body); import os
import requests
res = requests.get(
"https://app.govantage.uk/api/v1/partner/quote",
params={"planCode": "FLEX", "classCode": "MWB", "depotCode": "BHM", "startDate": "2027-03-01", "weeks": 12},
headers={"Authorization": f"Bearer {os.environ['GOVANTAGE_API_KEY']}"},
timeout=30,
)
body = res.json()
if not res.ok:
raise RuntimeError(f"{body['code']}: {body['title']}")
print(body) {
"planCode": "FLEX",
"classCode": "MWB",
"depotCode": "BHM",
"startDate": "2027-03-01",
"vehicles": 1,
"recurringMinor": 15000,
"recurringExVatMinor": 12500,
"vatMinor": 2500,
"depositMinor": 50000,
"upfrontMinor": 65000,
"termIntervals": 12,
"termTotalMinor": 180000,
"lines": [
{
"label": "Medium van — Flex",
"amountMinor": 15000
}
],
"rejectedPromo": null,
"available": 3
} Response fields
-
planCodestring -
classCodestring -
depotCodestring -
startDatedate -
vehiclesinteger -
recurringMinorintegerCharge per interval
-
recurringExVatMinorintegerAmount in pence, VAT inclusive unless stated
-
vatMinorintegerAmount in pence, VAT inclusive unless stated
-
depositMinorintegerAmount in pence, VAT inclusive unless stated
-
upfrontMinorintegerDue before collection: deposit plus the first interval
-
termIntervalsinteger · or null -
termTotalMinorinteger · or null -
linesobject[] -
lines[].labelstring -
lines[].amountMinorintegerAmount in pence, VAT inclusive unless stated
-
rejectedPromostring,null -
availableinteger · or null
Bookings
Booking requests and how they progress. A request is checked by our team before a van is promised.
GET /partner/bookings List bookings bookings:read
Newest first. Account keys see their own bookings; platform keys see the bookings they created.
Needs the bookings:read scope. Counts as 1 request.
Parameters
-
limitinteger · query · optionalItems per page Default
25. -
cursorstring · query · optionalnextCursor from the previous page
-
statusstring · query · optionalFor example AWAITING_REQUIREMENTS, CONFIRMED or CANCELLED
-
fromdate · query · optionalStart date on or after
-
todate · query · optionalStart date on or before
curl "https://app.govantage.uk/api/v1/partner/bookings?status=AWAITING_REQUIREMENTS" \
-H "Authorization: Bearer $GOVANTAGE_API_KEY" const res = await fetch('https://app.govantage.uk/api/v1/partner/bookings?status=AWAITING_REQUIREMENTS', {
headers: {
Authorization: `Bearer ${process.env.GOVANTAGE_API_KEY}`,
},
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.code}: ${body.title}`);
console.log(body); import os
import requests
res = requests.get(
"https://app.govantage.uk/api/v1/partner/bookings",
params={"status": "AWAITING_REQUIREMENTS"},
headers={"Authorization": f"Bearer {os.environ['GOVANTAGE_API_KEY']}"},
timeout=30,
)
body = res.json()
if not res.ok:
raise RuntimeError(f"{body['code']}: {body['title']}")
print(body) {
"items": [
{
"reference": "BK-2027-00000",
"status": "AWAITING_REQUIREMENTS",
"planCode": "FLEX",
"classCode": "MWB",
"className": "Medium van",
"depotCode": "BHM",
"startDate": "2027-03-01",
"termIntervals": 12,
"recurringMinor": 15000,
"depositMinor": 50000,
"customerReference": "CUS-000000",
"customerName": "Acme Couriers Ltd",
"vehicleRegistration": null,
"rentalReference": null,
"holdExpiresAt": "2027-02-25T13:00:00.000Z",
"notes": "Second van for the spring peak",
"createdAt": "2027-02-22T13:00:00.000Z"
}
],
"nextCursor": null
} Response fields
-
itemsobject[] -
items[].referencestring -
items[].statusstring -
items[].planCodestring -
items[].classCodestring -
items[].classNamestring -
items[].depotCodestring -
items[].startDatedate -
items[].termIntervalsinteger · or null -
items[].recurringMinorintegerAmount in pence, VAT inclusive unless stated
-
items[].depositMinorintegerAmount in pence, VAT inclusive unless stated
-
items[].customerReferencestring -
items[].customerNamestring -
items[].vehicleRegistrationstring,null -
items[].rentalReferencestring,null -
items[].holdExpiresAtstring · or nullA request is held until this time while it waits for confirmation
-
items[].notesstring,null -
items[].createdAttimestampISO-8601 timestamp in UTC
-
nextCursorstring,nullPass as `cursor` for the next page; null on the last page
GET /partner/bookings/{reference} Get one booking bookings:read
Follow a request through confirmation to the rental it becomes.
Needs the bookings:read scope. Counts as 1 request.
Parameters
-
referencestring · pathrequiredBooking reference, e.g. BK-2027-00000.
curl "https://app.govantage.uk/api/v1/partner/bookings/BK-2027-00000" \
-H "Authorization: Bearer $GOVANTAGE_API_KEY" const res = await fetch('https://app.govantage.uk/api/v1/partner/bookings/BK-2027-00000', {
headers: {
Authorization: `Bearer ${process.env.GOVANTAGE_API_KEY}`,
},
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.code}: ${body.title}`);
console.log(body); import os
import requests
res = requests.get(
"https://app.govantage.uk/api/v1/partner/bookings/BK-2027-00000",
headers={"Authorization": f"Bearer {os.environ['GOVANTAGE_API_KEY']}"},
timeout=30,
)
body = res.json()
if not res.ok:
raise RuntimeError(f"{body['code']}: {body['title']}")
print(body) {
"reference": "BK-2027-00000",
"status": "AWAITING_REQUIREMENTS",
"planCode": "FLEX",
"classCode": "MWB",
"className": "Medium van",
"depotCode": "BHM",
"startDate": "2027-03-01",
"termIntervals": 12,
"recurringMinor": 15000,
"depositMinor": 50000,
"customerReference": "CUS-000000",
"customerName": "Acme Couriers Ltd",
"vehicleRegistration": null,
"rentalReference": null,
"holdExpiresAt": "2027-02-25T13:00:00.000Z",
"notes": "Second van for the spring peak",
"createdAt": "2027-02-22T13:00:00.000Z"
} Response fields
-
referencestring -
statusstring -
planCodestring -
classCodestring -
classNamestring -
depotCodestring -
startDatedate -
termIntervalsinteger · or null -
recurringMinorintegerAmount in pence, VAT inclusive unless stated
-
depositMinorintegerAmount in pence, VAT inclusive unless stated
-
customerReferencestring -
customerNamestring -
vehicleRegistrationstring,null -
rentalReferencestring,null -
holdExpiresAtstring · or nullA request is held until this time while it waits for confirmation
-
notesstring,null -
createdAttimestampISO-8601 timestamp in UTC
POST /partner/bookings Request a booking bookings:write idempotent ×5
Creates a booking request priced by the pricing engine and holds a van of that class for 72 hours. Our team confirms it after the usual driver and payment checks — the API cannot put a van on the road by itself. An account key books for its own account. A platform key names the customer with customerReference and customerEmail; both must match one account, and repeated mismatches stop the key making requests for an hour.
Needs the bookings:write scope. Counts as 5 requests.
Headers
-
Idempotency-Keystring · headerrequired8 to 120 characters, unique per booking. See Retries and idempotency.
Body
-
planCodestringrequiredPlan code, from List hire plans
-
classCodestringrequiredVan class code, from List van classes
-
depotCodestringrequiredDepot code, from List depots
-
startDatedaterequiredFirst day of hire
-
weeksinteger · optionalLength of hire; omit for open-ended
-
customerReferencestring · optionalPlatform keys: the customer the booking is for. Ignored on an account key
-
customerEmailstring · optionalPlatform keys: the email address on that customer account (main or billing), as the customer gave it to you. Required with customerReference; ignored on an account key
-
usageProfileenum · optionalWhat the van will be used for
DELIVERY_COURIERTRADESREMOVALSBUSINESS_FLEETPERSONALOTHER -
promoCodestring · optionalPromotion code, if the customer has one
-
notesstring · optionalShown to staff with the request
curl -X POST "https://app.govantage.uk/api/v1/partner/bookings" \
-H "Authorization: Bearer $GOVANTAGE_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"planCode": "FLEX",
"classCode": "MWB",
"depotCode": "BHM",
"startDate": "2027-03-01",
"weeks": 12,
"notes": "Second van for the spring peak"
}' import { randomUUID } from 'node:crypto';
const res = await fetch('https://app.govantage.uk/api/v1/partner/bookings', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.GOVANTAGE_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': randomUUID(),
},
body: JSON.stringify({
"planCode": "FLEX",
"classCode": "MWB",
"depotCode": "BHM",
"startDate": "2027-03-01",
"weeks": 12,
"notes": "Second van for the spring peak"
}),
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.code}: ${body.title}`);
console.log(body); import os
import uuid
import requests
res = requests.post(
"https://app.govantage.uk/api/v1/partner/bookings",
headers={"Authorization": f"Bearer {os.environ['GOVANTAGE_API_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"planCode": "FLEX",
"classCode": "MWB",
"depotCode": "BHM",
"startDate": "2027-03-01",
"weeks": 12,
"notes": "Second van for the spring peak",
},
timeout=30,
)
body = res.json()
if not res.ok:
raise RuntimeError(f"{body['code']}: {body['title']}")
print(body) {
"reference": "BK-2027-00000",
"status": "AWAITING_REQUIREMENTS",
"planCode": "FLEX",
"classCode": "MWB",
"className": "Medium van",
"depotCode": "BHM",
"startDate": "2027-03-01",
"termIntervals": 12,
"recurringMinor": 15000,
"depositMinor": 50000,
"customerReference": "CUS-000000",
"customerName": "Acme Couriers Ltd",
"vehicleRegistration": null,
"rentalReference": null,
"holdExpiresAt": "2027-02-25T13:00:00.000Z",
"notes": "Second van for the spring peak",
"createdAt": "2027-02-22T13:00:00.000Z"
} Response fields
-
referencestring -
statusstring -
planCodestring -
classCodestring -
classNamestring -
depotCodestring -
startDatedate -
termIntervalsinteger · or null -
recurringMinorintegerAmount in pence, VAT inclusive unless stated
-
depositMinorintegerAmount in pence, VAT inclusive unless stated
-
customerReferencestring -
customerNamestring -
vehicleRegistrationstring,null -
rentalReferencestring,null -
holdExpiresAtstring · or nullA request is held until this time while it waits for confirmation
-
notesstring,null -
createdAttimestampISO-8601 timestamp in UTC
Account
One customer account: balance, payment details and invoices. Account keys only.
GET /partner/account Get the account customers:read account key
Balance, payment method and what is on hire for the account the key belongs to.
Needs the customers:read scope on an account key. Counts as 1 request.
curl "https://app.govantage.uk/api/v1/partner/account" \
-H "Authorization: Bearer $GOVANTAGE_API_KEY" const res = await fetch('https://app.govantage.uk/api/v1/partner/account', {
headers: {
Authorization: `Bearer ${process.env.GOVANTAGE_API_KEY}`,
},
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.code}: ${body.title}`);
console.log(body); import os
import requests
res = requests.get(
"https://app.govantage.uk/api/v1/partner/account",
headers={"Authorization": f"Bearer {os.environ['GOVANTAGE_API_KEY']}"},
timeout=30,
)
body = res.json()
if not res.ok:
raise RuntimeError(f"{body['code']}: {body['title']}")
print(body) {
"reference": "CUS-000000",
"name": "Acme Couriers Ltd",
"type": "BUSINESS",
"status": "ACTIVE",
"email": "[email protected]",
"phone": "0121 496 0000",
"paymentMethod": "DIRECT_DEBIT",
"paymentReference": "GV0000",
"balanceMinor": 30000,
"overdueMinor": 0,
"activeRentals": 2,
"vansOnHire": 2
} Response fields
-
referencestring -
namestring -
typestring -
statusstring -
emailstring -
phonestring,null -
paymentMethodstring,null -
paymentReferencestring,nullQuote on bank transfers
-
balanceMinorintegerAmount in pence, VAT inclusive unless stated
-
overdueMinorintegerAmount in pence, VAT inclusive unless stated
-
activeRentalsinteger -
vansOnHireinteger
GET /partner/invoices List invoices invoices:read account key
Issued invoices for the account, newest first, with their lines. Drafts are never shown.
Needs the invoices:read scope on an account key. Counts as 1 request.
Parameters
-
limitinteger · query · optionalItems per page Default
25. -
cursorstring · query · optionalnextCursor from the previous page
-
statusstring · query · optionalISSUED, PART_PAID, OVERDUE, PAID, VOID, WRITTEN_OFF, ARRANGED (on a payment plan) or CARRIED (moved onto later invoices)
-
fromdate · query · optionalIssued on or after
-
todate · query · optionalIssued on or before
curl "https://app.govantage.uk/api/v1/partner/invoices?status=ISSUED&from=2027-02-01" \
-H "Authorization: Bearer $GOVANTAGE_API_KEY" const res = await fetch('https://app.govantage.uk/api/v1/partner/invoices?status=ISSUED&from=2027-02-01', {
headers: {
Authorization: `Bearer ${process.env.GOVANTAGE_API_KEY}`,
},
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.code}: ${body.title}`);
console.log(body); import os
import requests
res = requests.get(
"https://app.govantage.uk/api/v1/partner/invoices",
params={"status": "ISSUED", "from": "2027-02-01"},
headers={"Authorization": f"Bearer {os.environ['GOVANTAGE_API_KEY']}"},
timeout=30,
)
body = res.json()
if not res.ok:
raise RuntimeError(f"{body['code']}: {body['title']}")
print(body) {
"items": [
{
"number": "INV-2027-00000",
"status": "ISSUED",
"issueDate": "2027-02-21",
"dueDate": "2027-02-27",
"periodStart": "2027-02-21",
"periodEnd": "2027-02-27",
"rentalReference": "RN-2027-00000",
"subtotalMinor": 12500,
"vatMinor": 2500,
"totalMinor": 15000,
"paidMinor": 0,
"balanceMinor": 15000,
"lines": [
{
"description": "Weekly hire — Medium van, week commencing 21 Feb 2027",
"quantity": 1,
"unitMinor": 12500,
"totalMinor": 15000,
"vehicleRegistration": "ZZ70 ABC"
}
]
}
],
"nextCursor": null
} Response fields
-
itemsobject[] -
items[].numberstring -
items[].statusstring -
items[].issueDatedate · or null -
items[].dueDatedate · or null -
items[].periodStartdate · or null -
items[].periodEnddate · or null -
items[].rentalReferencestring,null -
items[].subtotalMinorintegerNet of VAT
-
items[].vatMinorintegerAmount in pence, VAT inclusive unless stated
-
items[].totalMinorintegerAmount in pence, VAT inclusive unless stated
-
items[].paidMinorintegerAmount in pence, VAT inclusive unless stated
-
items[].balanceMinorintegerAmount in pence, VAT inclusive unless stated
-
items[].linesobject[] -
items[].lines[].descriptionstring -
items[].lines[].quantitynumber -
items[].lines[].unitMinorintegerNet unit price
-
items[].lines[].totalMinorintegerAmount in pence, VAT inclusive unless stated
-
items[].lines[].vehicleRegistrationstring,null -
nextCursorstring,nullPass as `cursor` for the next page; null on the last page
GET /partner/invoices/{number} Get one invoice invoices:read account key
One invoice by its number.
Needs the invoices:read scope on an account key. Counts as 1 request.
Parameters
-
numberstring · pathrequiredInvoice number, e.g. INV-2027-00000.
curl "https://app.govantage.uk/api/v1/partner/invoices/INV-2027-00000" \
-H "Authorization: Bearer $GOVANTAGE_API_KEY" const res = await fetch('https://app.govantage.uk/api/v1/partner/invoices/INV-2027-00000', {
headers: {
Authorization: `Bearer ${process.env.GOVANTAGE_API_KEY}`,
},
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.code}: ${body.title}`);
console.log(body); import os
import requests
res = requests.get(
"https://app.govantage.uk/api/v1/partner/invoices/INV-2027-00000",
headers={"Authorization": f"Bearer {os.environ['GOVANTAGE_API_KEY']}"},
timeout=30,
)
body = res.json()
if not res.ok:
raise RuntimeError(f"{body['code']}: {body['title']}")
print(body) {
"number": "INV-2027-00000",
"status": "ISSUED",
"issueDate": "2027-02-21",
"dueDate": "2027-02-27",
"periodStart": "2027-02-21",
"periodEnd": "2027-02-27",
"rentalReference": "RN-2027-00000",
"subtotalMinor": 12500,
"vatMinor": 2500,
"totalMinor": 15000,
"paidMinor": 0,
"balanceMinor": 15000,
"lines": [
{
"description": "Weekly hire — Medium van, week commencing 21 Feb 2027",
"quantity": 1,
"unitMinor": 12500,
"totalMinor": 15000,
"vehicleRegistration": "ZZ70 ABC"
}
]
} Response fields
-
numberstring -
statusstring -
issueDatedate · or null -
dueDatedate · or null -
periodStartdate · or null -
periodEnddate · or null -
rentalReferencestring,null -
subtotalMinorintegerNet of VAT
-
vatMinorintegerAmount in pence, VAT inclusive unless stated
-
totalMinorintegerAmount in pence, VAT inclusive unless stated
-
paidMinorintegerAmount in pence, VAT inclusive unless stated
-
balanceMinorintegerAmount in pence, VAT inclusive unless stated
-
linesobject[] -
lines[].descriptionstring -
lines[].quantitynumber -
lines[].unitMinorintegerNet unit price
-
lines[].totalMinorintegerAmount in pence, VAT inclusive unless stated
-
lines[].vehicleRegistrationstring,null
Telematics
Tracker, dashcam and engine-reader data flowing into the fleet record.
POST /partner/telematics/readings Push tracker readings telematics:write ×5
Send positions, odometer, ignition, fuel and battery readings in batches of up to 500. Name the device (IMEI or serial, as registered with us for that van) to keep its live position and health current. A reading already stored for the same van and instant is skipped, so a batch can be replayed safely. Odometer readings only ever move a van's mileage forward; a battery low at rest raises an alert for the fleet team. An account key may only report on the vans on hire to it.
Needs the telematics:write scope. Counts as 5 requests.
Body
-
readingsobject[]required -
readings[].registrationstringrequiredRegistration mark; spaces and case are ignored
-
readings[].recordedAttimestamprequiredWhen the tracker took the reading, ISO-8601
-
readings[].latitudenumber · optionalSend with longitude
-
readings[].longitudenumber · optional -
readings[].speedMphinteger · optional -
readings[].headinginteger · optional -
readings[].odometerMilesinteger · optional -
readings[].ignitionboolean · optional -
readings[].fuelPercentinteger · optional -
readings[].deviceIdstring · optionalThe device that took the reading: IMEI or serial, as registered with us for that van
-
readings[].batteryVoltsnumber · optionalThe van battery, in volts
curl -X POST "https://app.govantage.uk/api/v1/partner/telematics/readings" \
-H "Authorization: Bearer $GOVANTAGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"readings": [
{
"registration": "ZZ70 ABC",
"recordedAt": "2027-02-26T12:58:00Z",
"latitude": 52.4862,
"longitude": -1.8904,
"speedMph": 0,
"odometerMiles": 48225,
"ignition": false,
"deviceId": "490154203237518",
"batteryVolts": 12.6
}
]
}' const res = await fetch('https://app.govantage.uk/api/v1/partner/telematics/readings', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.GOVANTAGE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"readings": [
{
"registration": "ZZ70 ABC",
"recordedAt": "2027-02-26T12:58:00Z",
"latitude": 52.4862,
"longitude": -1.8904,
"speedMph": 0,
"odometerMiles": 48225,
"ignition": false,
"deviceId": "490154203237518",
"batteryVolts": 12.6
}
]
}),
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.code}: ${body.title}`);
console.log(body); import os
import requests
res = requests.post(
"https://app.govantage.uk/api/v1/partner/telematics/readings",
headers={"Authorization": f"Bearer {os.environ['GOVANTAGE_API_KEY']}"},
json={
"readings": [
{
"registration": "ZZ70 ABC",
"recordedAt": "2027-02-26T12:58:00Z",
"latitude": 52.4862,
"longitude": -1.8904,
"speedMph": 0,
"odometerMiles": 48225,
"ignition": False,
"deviceId": "490154203237518",
"batteryVolts": 12.6,
},
],
},
timeout=30,
)
body = res.json()
if not res.ok:
raise RuntimeError(f"{body['code']}: {body['title']}")
print(body) {
"accepted": 1,
"duplicates": 0,
"mileageUpdated": 1,
"rejected": []
} Response fields
-
acceptedinteger -
duplicatesintegerAlready stored for that van and instant
-
mileageUpdatedintegerVans whose odometer moved forward
-
rejectedobject[] -
rejected[].indexinteger -
rejected[].registrationstring -
rejected[].reasonstring
POST /partner/telematics/events Push fault codes, driving and dashcam events telematics:write ×5
Send engine fault codes, harsh driving, impacts, tamper alerts and dashcam clips in batches of up to 200. Give each event the vendor id as externalId and it is stored once however often it is sent. Warnings and critical events go straight to the fleet team.
Needs the telematics:write scope. Counts as 5 requests.
Body
-
eventsobject[]required -
events[].registrationstringrequiredRegistration mark; spaces and case are ignored
-
events[].deviceIdstring · optionalIMEI or serial of the device that saw it
-
events[].kindenumrequiredFAULT_CODEHARSH_BRAKEHARSH_ACCELHARSH_CORNERSPEEDINGIMPACTBATTERY_LOWTAMPERIDLINGDASHCAM_CLIPOTHER -
events[].severityenum · optionalWorked out from the kind when left out
INFOWARNINGCRITICAL -
events[].occurredAttimestamprequiredWhen it happened, ISO-8601
-
events[].latitudenumber · optional -
events[].longitudenumber · optional -
events[].speedMphinteger · optional -
events[].codestring · optionalEngine fault code (P0420) or the vendor event code
-
events[].titlestring · optional -
events[].detailstring · optional -
events[].clipUrlstring · optionalDashcam footage on the vendor storage (https)
-
events[].externalIdstring · optionalThe vendor id for the event; the same id is only stored once
curl -X POST "https://app.govantage.uk/api/v1/partner/telematics/events" \
-H "Authorization: Bearer $GOVANTAGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"events": [
{
"registration": "ZZ70 ABC",
"deviceId": "490154203237518",
"kind": "FAULT_CODE",
"code": "P0420",
"occurredAt": "2027-02-26T12:58:00Z",
"detail": "Catalyst system efficiency below threshold (bank 1)",
"externalId": "evt_0000"
}
]
}' const res = await fetch('https://app.govantage.uk/api/v1/partner/telematics/events', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.GOVANTAGE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"events": [
{
"registration": "ZZ70 ABC",
"deviceId": "490154203237518",
"kind": "FAULT_CODE",
"code": "P0420",
"occurredAt": "2027-02-26T12:58:00Z",
"detail": "Catalyst system efficiency below threshold (bank 1)",
"externalId": "evt_0000"
}
]
}),
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.code}: ${body.title}`);
console.log(body); import os
import requests
res = requests.post(
"https://app.govantage.uk/api/v1/partner/telematics/events",
headers={"Authorization": f"Bearer {os.environ['GOVANTAGE_API_KEY']}"},
json={
"events": [
{
"registration": "ZZ70 ABC",
"deviceId": "490154203237518",
"kind": "FAULT_CODE",
"code": "P0420",
"occurredAt": "2027-02-26T12:58:00Z",
"detail": "Catalyst system efficiency below threshold (bank 1)",
"externalId": "evt_0000",
},
],
},
timeout=30,
)
body = res.json()
if not res.ok:
raise RuntimeError(f"{body['code']}: {body['title']}")
print(body) {
"accepted": 1,
"duplicates": 0,
"rejected": []
} Response fields
-
acceptedinteger -
duplicatesintegerAlready stored
-
rejectedobject[] -
rejected[].indexinteger -
rejected[].registrationstring -
rejected[].reasonstring
Request access
Tell us what you are building
Keys are issued by our team, usually within two working days. A short email with the details on the right is all it takes.
- Your company and website
- What you are building
- Account key or platform key
- The scopes you need
- Requests a minute you expect
- A technical contact