Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.
openapi: 3.2.0
info:
title: Fleetkeep Co Uk Costs API
version: 0.8.0
contact:
name: Fleetkeep partner integration
url: https://fleetkeep.co.uk/contact
email: hello@fleetkeep.co.uk
license:
name: Proprietary
url: https://fleetkeep.co.uk/legal/terms
description: 'Operations tagged Costs across 2 of this provider''s published API definitions: openapi.json, fleetkeep-co-uk-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://fleetkeep.co.uk
description: Production
security:
- oauth2:
- vehicles:read
tags:
- name: Costs
paths:
/api/v1/costs:
get:
operationId: getRunningCosts
summary: Recorded GBP costs by vehicle, with missing service amounts and excluded…
security:
- oauth2:
- operations:read
parameters:
- name: from
in: query
schema:
type: string
format: date
- name: to
in: query
schema:
type: string
format: date
responses:
'200':
description: Vehicle totals and latest 250 additional costs. Date range is limited to one year. Not proof of payment.
tags:
- Costs
post:
operationId: recordFleetExpense
summary: Record a GBP expense. Keep the same UUID and payload on retries
security:
- oauth2:
- operations:write
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- id
- vehicleId
- incurredOn
- category
- description
- amount
properties:
id:
type: string
format: uuid
vehicleId:
type: string
format: uuid
incurredOn:
type: string
format: date
category:
enum:
- fuel
- insurance
- repair
- parking
- other
description:
type: string
maxLength: 240
amount:
type: string
description: GBP decimal amount, up to two decimal places; negative for refunds.
responses:
'200':
description: Recorded expense
'409':
description: Submission UUID already used with different details
tags:
- Costs
servers:
- url: https://fleetkeep.co.uk
description: Production
components:
securitySchemes:
oauth2:
type: oauth2
description: OAuth 2.1 authorisation-code flow with PKCE (S256). End-user delegates per-vehicle access to a partner client. Access tokens expire after 1 hour; refresh tokens (granted with the offline_access scope) live for 30 days.
flows:
authorizationCode:
authorizationUrl: https://fleetkeep.co.uk/auth/oauth2/authorize
tokenUrl: https://fleetkeep.co.uk/auth/oauth2/token
refreshUrl: https://fleetkeep.co.uk/auth/oauth2/token
scopes:
vehicles:read: Read the authorised user's vehicles and compliance dates.
vehicles:write: Add, update, delete and bulk-add vehicles on the authorised user's behalf.
maintenance:read: Read the authorised user's maintenance tasks and completed history.
maintenance:write: Create, update, complete and cancel the authorised user's maintenance tasks.
operations:read: Read the authorised user's tracking snapshots, Wex route data and operational defect records.
operations:write: Report and complete defects on the authorised user's behalf.
tolls:read: Read the authorised user's toll and clean-air account records, charges and statement previews.
tolls:write: Create toll and clean-air records and apply confirmed statement imports on the authorised user's behalf.
documents:read: List and download the authorised user's private vehicle documents.
documents:write: Create private vehicle document records and uploads on the authorised user's behalf.
reminders:read: Read reminder settings and contacts.
reminders:write: Manage reminder settings and contacts, and explicitly confirm verification sends.
profile:read: Read the authorised user's Fleetkeep account profile.
guidance:read: Read the authorised user's approved driver guidance and private guidance document.
exports:read: Download the authorised user's private account and fleet spreadsheet exports.
offline_access: Issue a refresh token so the partner can refresh access without re-prompting the user.
x-refined-from:
- openapi.json
- fleetkeep-co-uk-openapi.json
x-provenance:
method: harvested
publisher: Fleetkeep
source: https://fleetkeep.co.uk/openapi.json
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)