Skip to content
Update: No vans available to be rented at the moment, please register interest here
GOVANTAGE

Partner API · v1.1.0

Build on the GOVANTAGE fleet

Check availability, price a hire, request bookings, pull invoices into your accounts system and feed tracker data back to us, through one small and predictable REST API.

Endpoints
16
Scopes
9
Standard limit
120/min
Updated
curl "https://app.govantage.uk/api/v1/partner/me" \
  -H "Authorization: Bearer $GOVANTAGE_API_KEY"
200 OK · application/json
{
  "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"
}
Base URL https://app.govantage.uk/api/v1
  • HTTPS only
  • JSON
  • Bearer keys
  • Amounts in pence
  • Times in UTC
Contents

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.

  1. 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.

  2. 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.

    shell
    export GOVANTAGE_API_KEY="gvk_live_…"
  3. Make your first call

    GET /partner/me confirms 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"
  4. 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.

a1B2c3D4

The 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.

ScopeAllowsAccount keyPlatform 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 TEST in 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/json with 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 recurringExVatMinor does.
Time
Timestamps are ISO-8601 in UTC, like 2027-02-26T12:58:00.000Z. Dates are YYYY-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.

422 · application/problem+json
{
  "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
}
StatusCode and meaningWhat 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.

CostCalls
1Check 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
3Check availability · Price a hire
5Request a booking · Push tracker readings · Push fault codes, driving and dashcam events
HeaderMeaning
X-RateLimit-LimitRequests allowed per minute for this key
X-RateLimit-RemainingLeft in the current minute
X-RateLimit-ResetSeconds until the minute ends
Retry-AfterOn a 429: seconds to wait
  • On 429, wait the Retry-After seconds, then carry on.
  • On a 5xx or 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 4xx answers 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);

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 from set 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.version in the OpenAPI document, apiVersion from 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.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.
  2. 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"
200 OK · response
{
  "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.prefixstring

    The 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 null

    The customer account this key is limited to, or null for a platform key

  • account.referencestring

  • account.namestring

  • environmentenum

    live for keys issued on the production servicetestlive

  • 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"
200 OK · response
{
  "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[].depositMinorinteger

    Amount in pence, VAT inclusive unless stated

  • items[].fromWeeklyMinorinteger · or null

    Lowest 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"
200 OK · response
{
  "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[].intervalstring

    Billing interval, e.g. WEEK

  • items[].minTermIntervalsinteger

  • items[].noticeDaysinteger

  • items[].mileageAllowanceinteger · or null

    Miles per interval, null when unlimited

  • items[].excessMileageMinorinteger · or null

  • items[].insuranceIncludedboolean

  • items[].pricesobject[]

  • items[].prices[].classCodestring

  • items[].prices[].priceMinorinteger

    Amount 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"
200 OK · response
{
  "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[].openingHoursmap

    Day 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 · optional

    Items per page Default 25.

  • cursorstring · query · optional

    nextCursor from the previous page

  • classCodestring · query · optional

    Van class code, from List van classes

  • statusstring · query · optional

    Platform 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"
200 OK · response
{
  "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 null

    Present on account keys while the van is on hire to that account

  • items[].rental.referencestring

  • items[].rental.startedAttimestamp

    ISO-8601 timestamp in UTC

  • items[].rental.driverNamestring,null

  • items[].lastPositionobject · or null

    Latest 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.recordedAttimestamp

    ISO-8601 timestamp in UTC

  • items[].lastPosition.speedMphinteger · or null

  • nextCursorstring,null

    Pass 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 · pathrequired

    Registration mark, e.g. ZZ70ABC.

curl "https://app.govantage.uk/api/v1/partner/vehicles/ZZ70ABC" \
  -H "Authorization: Bearer $GOVANTAGE_API_KEY"
200 OK · response
{
  "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 null

    Present on account keys while the van is on hire to that account

  • rental.referencestring

  • rental.startedAttimestamp

    ISO-8601 timestamp in UTC

  • rental.driverNamestring,null

  • lastPositionobject · or null

    Latest 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.recordedAttimestamp

    ISO-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 · queryrequired

    First day of hire

  • weeksinteger · query · optional

    Length of hire; omit for open-ended

  • classCodestring · query · optional

    Van class code, from List van classes

  • depotCodestring · query · optional

    Depot 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"
200 OK · response
{
  "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[].availableinteger

    Vans that can be promised for the whole window

  • items[].nextAvailableDatedate · or null

    Earliest 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 · queryrequired

    Plan code, from List hire plans

  • classCodestring · queryrequired

    Van class code, from List van classes

  • depotCodestring · queryrequired

    Depot code, from List depots

  • startDatedate · queryrequired

    First day of hire

  • weeksinteger · query · optional

    Length of hire; omit for open-ended

  • vehiclesinteger · query · optional

    How many vans Default 1.

  • promoCodestring · query · optional

    Promotion 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"
200 OK · response
{
  "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

  • recurringMinorinteger

    Charge per interval

  • recurringExVatMinorinteger

    Amount in pence, VAT inclusive unless stated

  • vatMinorinteger

    Amount in pence, VAT inclusive unless stated

  • depositMinorinteger

    Amount in pence, VAT inclusive unless stated

  • upfrontMinorinteger

    Due before collection: deposit plus the first interval

  • termIntervalsinteger · or null

  • termTotalMinorinteger · or null

  • linesobject[]

  • lines[].labelstring

  • lines[].amountMinorinteger

    Amount 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 · optional

    Items per page Default 25.

  • cursorstring · query · optional

    nextCursor from the previous page

  • statusstring · query · optional

    For example AWAITING_REQUIREMENTS, CONFIRMED or CANCELLED

  • fromdate · query · optional

    Start date on or after

  • todate · query · optional

    Start date on or before

curl "https://app.govantage.uk/api/v1/partner/bookings?status=AWAITING_REQUIREMENTS" \
  -H "Authorization: Bearer $GOVANTAGE_API_KEY"
200 OK · response
{
  "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[].recurringMinorinteger

    Amount in pence, VAT inclusive unless stated

  • items[].depositMinorinteger

    Amount in pence, VAT inclusive unless stated

  • items[].customerReferencestring

  • items[].customerNamestring

  • items[].vehicleRegistrationstring,null

  • items[].rentalReferencestring,null

  • items[].holdExpiresAtstring · or null

    A request is held until this time while it waits for confirmation

  • items[].notesstring,null

  • items[].createdAttimestamp

    ISO-8601 timestamp in UTC

  • nextCursorstring,null

    Pass 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 · pathrequired

    Booking reference, e.g. BK-2027-00000.

curl "https://app.govantage.uk/api/v1/partner/bookings/BK-2027-00000" \
  -H "Authorization: Bearer $GOVANTAGE_API_KEY"
200 OK · response
{
  "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

  • recurringMinorinteger

    Amount in pence, VAT inclusive unless stated

  • depositMinorinteger

    Amount in pence, VAT inclusive unless stated

  • customerReferencestring

  • customerNamestring

  • vehicleRegistrationstring,null

  • rentalReferencestring,null

  • holdExpiresAtstring · or null

    A request is held until this time while it waits for confirmation

  • notesstring,null

  • createdAttimestamp

    ISO-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 · headerrequired

    8 to 120 characters, unique per booking. See Retries and idempotency.

Body

  • planCodestringrequired

    Plan code, from List hire plans

  • classCodestringrequired

    Van class code, from List van classes

  • depotCodestringrequired

    Depot code, from List depots

  • startDatedaterequired

    First day of hire

  • weeksinteger · optional

    Length of hire; omit for open-ended

  • customerReferencestring · optional

    Platform keys: the customer the booking is for. Ignored on an account key

  • customerEmailstring · optional

    Platform 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 · optional

    What the van will be used forDELIVERY_COURIERTRADESREMOVALSBUSINESS_FLEETPERSONALOTHER

  • promoCodestring · optional

    Promotion code, if the customer has one

  • notesstring · optional

    Shown 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"
}'
201 Created · response
{
  "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

  • recurringMinorinteger

    Amount in pence, VAT inclusive unless stated

  • depositMinorinteger

    Amount in pence, VAT inclusive unless stated

  • customerReferencestring

  • customerNamestring

  • vehicleRegistrationstring,null

  • rentalReferencestring,null

  • holdExpiresAtstring · or null

    A request is held until this time while it waits for confirmation

  • notesstring,null

  • createdAttimestamp

    ISO-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"
200 OK · response
{
  "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,null

    Quote on bank transfers

  • balanceMinorinteger

    Amount in pence, VAT inclusive unless stated

  • overdueMinorinteger

    Amount 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 · optional

    Items per page Default 25.

  • cursorstring · query · optional

    nextCursor from the previous page

  • statusstring · query · optional

    ISSUED, PART_PAID, OVERDUE, PAID, VOID, WRITTEN_OFF, ARRANGED (on a payment plan) or CARRIED (moved onto later invoices)

  • fromdate · query · optional

    Issued on or after

  • todate · query · optional

    Issued on or before

curl "https://app.govantage.uk/api/v1/partner/invoices?status=ISSUED&from=2027-02-01" \
  -H "Authorization: Bearer $GOVANTAGE_API_KEY"
200 OK · response
{
  "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[].subtotalMinorinteger

    Net of VAT

  • items[].vatMinorinteger

    Amount in pence, VAT inclusive unless stated

  • items[].totalMinorinteger

    Amount in pence, VAT inclusive unless stated

  • items[].paidMinorinteger

    Amount in pence, VAT inclusive unless stated

  • items[].balanceMinorinteger

    Amount in pence, VAT inclusive unless stated

  • items[].linesobject[]

  • items[].lines[].descriptionstring

  • items[].lines[].quantitynumber

  • items[].lines[].unitMinorinteger

    Net unit price

  • items[].lines[].totalMinorinteger

    Amount in pence, VAT inclusive unless stated

  • items[].lines[].vehicleRegistrationstring,null

  • nextCursorstring,null

    Pass 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 · pathrequired

    Invoice number, e.g. INV-2027-00000.

curl "https://app.govantage.uk/api/v1/partner/invoices/INV-2027-00000" \
  -H "Authorization: Bearer $GOVANTAGE_API_KEY"
200 OK · response
{
  "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

  • subtotalMinorinteger

    Net of VAT

  • vatMinorinteger

    Amount in pence, VAT inclusive unless stated

  • totalMinorinteger

    Amount in pence, VAT inclusive unless stated

  • paidMinorinteger

    Amount in pence, VAT inclusive unless stated

  • balanceMinorinteger

    Amount in pence, VAT inclusive unless stated

  • linesobject[]

  • lines[].descriptionstring

  • lines[].quantitynumber

  • lines[].unitMinorinteger

    Net unit price

  • lines[].totalMinorinteger

    Amount 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[].registrationstringrequired

    Registration mark; spaces and case are ignored

  • readings[].recordedAttimestamprequired

    When the tracker took the reading, ISO-8601

  • readings[].latitudenumber · optional

    Send with longitude

  • readings[].longitudenumber · optional

  • readings[].speedMphinteger · optional

  • readings[].headinginteger · optional

  • readings[].odometerMilesinteger · optional

  • readings[].ignitionboolean · optional

  • readings[].fuelPercentinteger · optional

  • readings[].deviceIdstring · optional

    The device that took the reading: IMEI or serial, as registered with us for that van

  • readings[].batteryVoltsnumber · optional

    The 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
    }
  ]
}'
200 OK · response
{
  "accepted": 1,
  "duplicates": 0,
  "mileageUpdated": 1,
  "rejected": []
}
Response fields
  • acceptedinteger

  • duplicatesinteger

    Already stored for that van and instant

  • mileageUpdatedinteger

    Vans 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[].registrationstringrequired

    Registration mark; spaces and case are ignored

  • events[].deviceIdstring · optional

    IMEI or serial of the device that saw it

  • events[].kindenumrequired

    FAULT_CODEHARSH_BRAKEHARSH_ACCELHARSH_CORNERSPEEDINGIMPACTBATTERY_LOWTAMPERIDLINGDASHCAM_CLIPOTHER

  • events[].severityenum · optional

    Worked out from the kind when left outINFOWARNINGCRITICAL

  • events[].occurredAttimestamprequired

    When it happened, ISO-8601

  • events[].latitudenumber · optional

  • events[].longitudenumber · optional

  • events[].speedMphinteger · optional

  • events[].codestring · optional

    Engine fault code (P0420) or the vendor event code

  • events[].titlestring · optional

  • events[].detailstring · optional

  • events[].clipUrlstring · optional

    Dashcam footage on the vendor storage (https)

  • events[].externalIdstring · optional

    The 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"
    }
  ]
}'
200 OK · response
{
  "accepted": 1,
  "duplicates": 0,
  "rejected": []
}
Response fields
  • acceptedinteger

  • duplicatesinteger

    Already 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