Flovi B2B Partner API v2
Welcome to the Flovi Partner Reservation API v2 documentation. Flovi is a professional car relocation logistics platform that connects car dealers, leasing companies, rental firms, and garages with a network of vetted drivers to manage vehicle transfers. This API allows B2B partners to seamlessly request real-time pricing quotes, check vehicle delivery schedules, and book relocation jobs—such as home deliveries, inter-branch transfers, service/maintenance transport, or collections of purchased vehicles—with absolute pricing certainty.
Seamless Logistics Integration: The Flovi Partner API provides a unified, RESTful interface for all your vehicle transport and relocation needs. From fetching office locations to requesting binding price quotes and confirming reservations, the API is designed to be easily embedded directly into your existing ERP, booking systems, or customer portals.
Quick Start: How to Create a Reservation
Our B2B API leverages a guaranteed 2-step reservation workflow designed to eliminate pricing friction, handle electric vehicle schedules accurately, and secure slots before confirming. For details on how to authenticate your integration, please refer to the Authentication section.
Step 1: Request a Guaranteed Quote
Send the pickup location, dropoff location, ready time, and
vehicle characteristics to
POST /customers/v2/reservation/quote. Partner offices can be queried dynamically from
GET /customers/v2/offices. Providing the registration number enables automatic
charging-break checks and heavy truck license checks.
Step 2: Present Options to Customer
The response contains a unique quoteId valid
for 15 minutes and multiple binding
delivery options. Each option includes its own
optionId, binding total price, and the exact
earliest/latest pickup and delivery timestamps.
Step 3: Confirm the Reservation
Once the customer picks their preference, send the chosen
quoteId (which uniquely locks in both the price
and chosen schedule option), vehicle details, and contact
names/phone numbers to
POST /customers/v2/reservation. This locks in the price and schedule, writing them
directly to the Flovi database.
Warning:
In Production, this creates a real transport job dispatched
to freelance drivers immediately!
Authentication
How to Obtain your API Key
All B2B v2 requests require authentication via a secure Partner API Key. You can generate and retrieve your key directly from the stage.customer.flovi.io/profile dashboard (for Staging) or customer.flovi.io/profile dashboard (for Production). Keep this key strictly confidential, as it grants full programmatic access to your Flovi account.
API Base URL & Environments
Depending on your environment, prepend all endpoint paths with one of the following base URLs:
| Environment | Base URL | Description |
|---|---|---|
| Staging |
https://stage.customer-api.flovi.dev
|
Staging environment for testing and integration. |
| Production |
https://customer-api.flovi.io
|
Live production API gateway. |
Required HTTP Header
You must include your API Key in the HTTP headers of every request:
| Header Key | Type | Description |
|---|---|---|
| x-api-key | string |
Your secure B2B partner API key (e.g.
flo_partner_...).
|
Service Providers: Acting on Behalf of a Customer
A service provider is a third-party portal that orders Flovi drives for its own users, who are also Flovi customers. Flovi issues the provider a single API key. Each customer then connects to the provider from the Flovi customer portal, with no key handling of their own, and can disconnect there at any time.
With a provider key, every request names the customer it acts for in one extra header. The request is then answered exactly as that customer's own key would answer it, with two differences: reads and changes are limited to the reservations the provider placed itself, and every reservation and audit entry records the provider as its source.
| Header Key | Type | Description |
|---|---|---|
| x-api-key | string | Your service provider API key. |
| x-customer-business-id | string |
The business ID of the customer you are acting for
(e.g. 1234567-8), as returned by
GET /customers/v2/connected-customers. Not needed on that endpoint itself.
|
A provider request without the customer header is answered
400. A customer that has not connected to you,
has disconnected, or whose business ID is unknown is answered
403 with the same message in every case, so the
header cannot be used to look customers up. A disconnect
takes effect on the very next request.
Service Providers: Status-Only Keys
Some providers onboard customers who then book with their own
customer API key. Flovi links those customers to the provider
and issues the provider a status-only key,
sent as x-api-key. It opens
GET /customers/v2/customer-status
and nothing else: on every other endpoint, including
GET /customers/v2/connected-customers, it is
answered 403. To book for a customer, use the
customer's own key, which Flovi sends you once the account is
active.
Errors & Validation
The API uses standard HTTP response status codes to indicate the success or failure of requests. When an error occurs, the response body contains a JSON object with structured details to help you diagnose and handle the problem.
Correlation ID: Every error response includes
a unique correlationId. Please include this ID
when contacting support to help us trace and debug the request
instantly.
Error Response Structure
Every error payload adheres to the following consistent structure:
| Property | Type | Description |
|---|---|---|
| statusCode | number |
The HTTP status code matching the response header (e.g.
400).
|
| errorCode | string |
A machine-readable string key representing the error
category (e.g. VALIDATION_ERROR).
|
| timestamp | string | ISO 8601 formatted timestamp of when the error occurred. |
| path | string | The API request URL path that triggered the error. |
| correlationId | string | A unique UUID generated for request tracing and support references. |
| message | string | array | A descriptive error message. For request validation failures, this is a JSON array listing the exact constraints that failed. |
Standard Error Codes
Here are the typical machine-readable error codes you should handle in your integration:
| HTTP Status | errorCode | When it is returned |
|---|---|---|
400 Bad Request
|
VALIDATION_ERROR | The request payload is invalid. For example, a required parameter is missing, has an incorrect type, or vehicle specs could not be resolved from Traficom. |
401 Unauthorized
|
UNAUTHORIZED |
The x-api-key header is missing, expired, or
invalid.
|
403 Forbidden
|
FORBIDDEN | The API key is valid but you do not have permission to access the requested resource or customer store. |
404 Not Found
|
NOT_FOUND | The requested resource (e.g. office, quote option, or reservation ID) does not exist. |
409 Conflict
|
CONFLICT |
A conflict occurs, such as when a reservation is already
created using the specified quoteId or an
option ID has expired.
|
422 Unprocessable
|
UNPROCESSABLE_ENTITY | The request is syntactically valid but business rules prevent its execution (e.g., trying to book too close to pickup time). |
429 Too Many Requests
|
RATE_LIMITED | You have exceeded the rate limit threshold. Please implement back-off and retry strategies. |
500 Internal Error
|
INTERNAL_ERROR | An unexpected internal error occurred on the Flovi platform. |
503 Service Unavailable
|
INTERNAL_ERROR | Flovi, or a service it depends on, could not handle the request right now. Retry with back-off. Retrying a reservation with the same quote is safe: a quote can be booked only once, so a retry cannot create a second reservation. |
Retrieves all active offices (stores) belonging to the
authenticated B2B customer (partner). These office IDs (e.g.
off_1, off_2) are compatible with the
origin/destination officeId fields in quotes and
bookings.
Response Properties
Returns a JSON array of office objects with the following fields:
| Field | Type | Description |
|---|---|---|
| id | string |
The Office ID (e.g. off_5) to be used as
officeId in quotes/bookings.
|
| name | string | The descriptive name of the office (e.g. "Helsinki HQ"). |
| street | string | The street address of the office. |
| zip | string | Postal code (e.g. "00100"). |
| city | string | City (e.g. "Helsinki"). |
| country | string | Country (e.g. "FI"). |
| lat | number | Latitude coordinate. |
| lng | number | Longitude coordinate. |
| isCostCenter | boolean | Whether this office can be used as a valid cost center. |
Calculates the binding, guaranteed price and delivery schedule. It verifies if the vehicle is electric (dynamically adding charging breaks if needed) and locks the resulting terms for 15 minutes.
Request Parameters
| Field | Type | Description |
|---|---|---|
| reservationType | string |
Type of transport. Must be one of:
officeToOffice,
homeDelivery,
serviceDrive,
purchaseCar,
replacementCar,
import.
|
| costCenter | string |
Billing cost center reference. Must be a valid
preconfigured office/store ID fetched from the
GET /customers/v2/offices
endpoint (e.g. 1234).
|
| origin | object |
Pickup location. Must contain EITHER an
officeId
OR structured address fields. Any
address is fine; if one happens to match an office of
yours, it is recognised as that office and comes back
with its officeId.
Show Allowed Schemas (Choice)
Option 1: Office
Option 2: Custom Address
|
| destination | object |
Dropoff location. Must contain EITHER an
officeId
OR structured address fields. Any
address is fine; if one happens to match an office of
yours, it is recognised as that office and comes back
with its officeId.
Show Allowed Schemas (Choice)
Option 1: Office
Option 2: Custom Address
|
| pickupTime | string (ISO Date) |
Earliest pickup timestamp in ISO format (e.g.
2026-06-20T09:00:00Z). If the vehicle is
immediately ready for pickup, you can use the timestamp of the
next quarter hour. A time up to 15 minutes in the past (the time
a quote stays valid) is quoted from the moment of the request,
so re-quoting with the pickup
time of an earlier quote keeps working; the options'
schedule shows the window
actually quoted. A time further in the past is refused with
400.
|
| deliveryTime | string (ISO Date) |
Optional latest delivery timestamp in ISO format (e.g.
2026-06-20T15:00:00Z). Provide it when the
delivery has a deadline: the first option
in the response is then scheduled from the requested
pickupTime to the requested
deliveryTime, is the
default one, and its price
is calculated for the speed that window requires. The
route's other speed options follow it, as they are without
deliveryTime, so their
prices can be compared: only those priced differently from
the first option, so neither its own speed nor any other at
its price is repeated. They are not bound by
deliveryTime and can arrive
after it: check each option's
schedule.arriveAtLatest
before choosing it.
|
| afterHoursPickup | boolean |
Allow the pickup to happen outside the origin office's
opening hours (key drop or a similar arrangement). The
scheduler is then free to place
departAtEarliest and
departAtLatest outside
those hours, which usually widens the window and can bring
the delivery deadline earlier.
|
| afterHoursDelivery | boolean |
The same for the destination office: allow the delivery to
happen outside its opening hours, letting the scheduler
place
arriveAtEarliest and
arriveAtLatest outside
them.
|
| carInspection | boolean |
Quote a vehicle inspection alongside the transport. The
price comes back as a
carInspection line in
the breakdown, and the same flag must be sent to
POST /customers/v2/reservation
to actually order it — a reservation cannot add an
inspection the quote did not price. Defaults to
false.
|
| carCheck | boolean |
Whether a purchaseCar gets a car check
before the drive. It comes back as a
check line in the breakdown and a
checkCar task; send false to
leave it out. Markets without a car check on purchases
(Sweden) never add one. Ignored for other reservation
types. Defaults to true.
|
| obdCheck | boolean |
Order an OBD check on a purchaseCar: the
driver reads the car's fault codes on collection and
sends the report to the orderer. It is quoted in the
check line with an obdCheck
task, and it includes the vehicle inspection, as if
carInspection were sent. Offered only in
markets that have it (Sweden) and on accounts it is
enabled for; anywhere else the quote is refused with
400. Defaults to false.
|
| purchaseProtocol | boolean |
Order the purchase protocol on a
purchaseCar: the standard inspection
protocol the driver fills in on collection, as the
portal orders it. It is quoted in the
check line with a
purchaseProtocol task, and it includes the
vehicle inspection, as if carInspection
were sent. An obdCheck already includes the
protocol, so with both only the OBD check is quoted.
Offered only in markets that have it (Sweden); anywhere
else the quote is refused with 400.
Defaults to false.
|
| vehicle | object |
Vehicle characteristics. Providing this block with at
least the registration number (regNo) is required to calculate accurate EV/C1 specs, binding
schedule windows, and prices.
Show object schema
|
| returnDrive | object |
Optional return drive details. If provided, details for a
return trip transport will be included.
Show object schema
|
Response Properties
Returns a JSON object with the following fields:
| Field | Type | Description |
|---|---|---|
| expiresAt | string (ISO Date) | The absolute timestamp when the generated quote options expire (guaranteed for 15 minutes). An option booked after its pickup window has opened gets a window that starts at the time of booking; one booked after the window has closed is refused, and a new quote is needed. |
| reservationType | string |
The type of reservation requested (must be one of:
officeToOffice, homeDelivery,
serviceDrive, purchaseCar,
replacementCar, import).
|
| origin | object |
Resolved details of the origin pickup location.
Show object schema
|
| destination | object |
Resolved details of the destination dropoff location.
Show object schema
|
| route | object |
Calculated optimal route characteristics.
Show object schema
|
| options | array (object) |
Available binding transport and speed schedule options. If
the request included a
deliveryTime, the first
option matches the requested window and is the default; the
route's other speeds follow it, only those priced
differently from it.
Show item schema
|
| vehicle | object |
Resolved specifications of the transport vehicle.
Show object schema
|
| warnings | array (object) |
Non-blocking issues with the request. The quote was given
regardless; the field is present only when there is
something to report. Show the
message to the person
ordering.
Show item schema
|
| returnDrive | object |
Present only when the request had a
returnDrive: the return
leg's locations and route. Each option then carries its
own returnDrive.schedule.
|
| tasks | array | null | Checklist tasks the driver will perform before or after the drive, as priced into the options. |
Vaporizes booking friction by turning your guaranteed
quoteId into a confirmed job. The details specified
in the quote must match the booking parameters.
PRODUCTION DISPATCH WARNING
Calling this endpoint in the
Production environment
(https://customer-api.flovi.io)
creates a live, binding transport order. The job is
immediately dispatched to real freelance drivers!
All integration development and testing MUST be conducted
exclusively in the Staging environment
(https://stage.customer-api.flovi.dev).
Request Parameters
| Field | Type | Description |
|---|---|---|
| quoteId | string | The active, unexpired quote UUID obtained from the `/quote` endpoint. |
| contactInfo | object |
Operational contact at pickup site. When the phone
number or email belongs to one of your portal users, the
reservation is linked to that account and appears on
their "My" list.
Show object schema
|
| recipientContactInfo | object (Optional) |
Contact at dropoff site.
Show object schema
|
| orderer | object (Optional) |
The person who placed the order, i.e. the user logged in
to your system. Unlike contactInfo, the
driver never sees or calls this person. Matched to a
portal user of your organisation the same way as the
contact: email first, then phone number. A match is
recorded as the reservation's orderer. When nothing
matches, the reservation is still created and the
response carries an ORDERER_NOT_FOUND
warning.
Show object schema
|
| contactBeforeDeparture | boolean (Optional) |
Ask the driver to call the pickup contact before
departing. The instruction is added to the driver notes.
Defaults to false.
|
| contactBeforeDelivery | boolean (Optional) |
Ask the driver to call the dropoff contact (or the end
customer) before delivering the vehicle. The instruction
is added to the driver notes. Defaults to
false.
|
| publicNotes | string (Optional) | Public notes visible to all drivers searching for gigs. |
| privateNotes | string (Optional) | Driver instructions (keys, parking info, etc.) visible only after the driver has accepted the gig. |
| deliveryTimeWindow | object (Optional) |
Precise delivery time window. Overrides the time window
from the quote. Must fall entirely within the original
quote time window, must be at least 1 hour long, and will
be automatically rounded to the nearest 15 minutes. The
pickup window moves by the same amount. Cannot be
combined with pickupTimeWindow.
Show object schema
|
| pickupTimeWindow | object (Optional) |
Precise pickup time window. Overrides the pickup window
from the quote. Must fall entirely within the quote's
pickup window, must be at least 1 hour long, and will be
automatically rounded to the nearest 15 minutes. The
delivery window moves by the same amount, so the quoted
drive duration is kept. Cannot be combined with
deliveryTimeWindow.
Show object schema
|
| carInspection | boolean (Optional) |
Order a vehicle inspection. The driver is shown the
inspection checklist for the car, and you read what they
found from
GET /customers/v2/reservation/{id}/inspection. Which questions are asked depends on the drive type and
country, and is configured by Flovi — you do not
choose the checklist here. Defaults to
false; without it the driver is never shown
one.
|
| equipmentChecks | string[] (Optional) |
Equipment the driver verifies is in the vehicle before
departing. Each item becomes its own checkbox on the
driver's pre-drive checklist, translated once at booking
time into your organisation's language. Does not affect
the price.
Show accepted values
|
| returnEquipmentChecks | string[] (Optional) | The same values, applied to the return drive instead. Ignored when the quote has no return drive. |
| accessCodes | object (Optional) |
Codes the driver needs to get to the vehicle or its keys,
e.g. a key box pincode or a release number. The driver
sees them once the drive has started, the same way as
codes added in the customer portal. Give only the ones
you have. A code given as a file (a release permit, a
photo of the key box) is added after booking with
POST /customers/v2/reservation/:id/attachments
and type=accessCode.
Show object schema
|
| externalId | string (Optional) | External identifier from your system. Use this to link the reservation to your own records (e.g. order ID, work order number). Returned in all reservation responses and webhook payloads. |
Response Properties
Returns a JSON object with the following fields:
| Field | Type | Description |
|---|---|---|
| reservationId | string | The unique system ID generated for the confirmed transport order. |
| reservationType | string |
The type of reservation requested (must be one of:
officeToOffice, homeDelivery,
serviceDrive, purchaseCar,
replacementCar, import).
|
| status | string | The booking status, always confirmed. |
| externalId | string | null | External identifier from your system, if provided when creating the reservation. |
| quoteId | string | The exact speed-profile quote ID confirmed from the quote calculation. |
| price | number | The final binding cost billed for the transport order. |
| currency | string |
Three-letter ISO currency code (e.g. EUR).
|
| schedule | object |
The definitive pickup and dropoff schedule window.
Show object schema
|
| vehicle | object |
The transport vehicle specs confirmed.
Show object schema
|
| warnings | object[] (Optional) |
Non-blocking issues with the request; the reservation
was created regardless. Present only when there is
something to report. Each item has a
code and a human-readable
message.
Show codes
|
| createdAt | string | ISO timestamp of the reservation's creation. |
| priceBreakdown | array |
The items price is made
of, as in
GET /customers/v2/reservation/{id}.
|
| route | object |
distanceMeters and
durationSeconds of the
whole reservation, return drive included.
|
| origin | object |
The pickup location as booked: address,
lat/lng
and, for one of your offices, its
officeId.
|
| destination | object |
The dropoff location, in the same shape as
origin.
|
| tasks | array | Checklist tasks the driver performs before or after the drive. |
| returnDrive | object | Present only when the quote had a return drive: its locations, schedule and vehicle. |
Adds a file to a reservation you have created. Call it once per file; files can be added until the
reservation is completed or cancelled. type says what the file is:
-
document(the default): a document the driver needs, such as a power of attorney or key instructions. The driver sees it in the driver app at pickup, at drop-off, or both. -
accessCode: an access code given as a file, such as a release permit or a photo of the key box, in place of a text code. The driver sees it with the drive's other codes once the drive has started. It replaces the code the slot held, and can be added until the drive departs.
Request Body (multipart/form-data)
| Field | Type | Description |
|---|---|---|
| file | file | One file of at most 30 MB: a PDF, PNG, JPEG or DOCX for a document, a PDF, PNG or JPEG for an access code. The type is read from the file's content, not from its name. The name you give the file is kept and shown to the driver. |
| Field | Type | Description |
|---|---|---|
| type | string (Optional) |
document (the default) or
accessCode.
|
| showAt | string (Optional) |
For a document: where the driver needs it, pickup,
dropOff, or both, comma separated
(pickup,dropOff) or as a repeated field. Defaults to both.
Not allowed for an access code.
|
| accessCode | string (Optional) |
Required with type=accessCode: which code the file is.
release (getting the vehicle at pickup),
return (leaving it at the destination), or the return
drive's returnDrive.release /
returnDrive.return.
|
Response Fields
| Field | Type | Description |
|---|---|---|
| attachmentId | string |
Id of the file. For an access code it is also the code's
value in
GET /customers/v2/reservation/:id.
|
| type | string | document or accessCode. |
| fileName | string | The name the file was uploaded with, as the driver sees it. |
| showAt | string[] |
Where the driver is shown the file. For an access code:
pickup for a release code,
dropOff for a return code.
|
| accessCode | string | null | The code slot for an access code, otherwise null. |
| Status | Description |
|---|---|
| 201 Created | Attached. |
| 400 Bad Request |
No file in the request, the file is empty, or the fields do not fit the type: an unknown
value, type=accessCode without
accessCode, accessCode
on a document, or showAt on an access code.
|
| 404 Not Found | No reservation with the given ID exists for your partner account, or an access code is for a return drive the reservation does not have. |
| 409 Conflict | The reservation is cancelled or completed, it already has 20 documents, or the drive of an access code has departed. |
| 413 Payload Too Large | The file is over 30 MB. |
| 415 Unsupported Media Type | The file is not a PDF, PNG, JPEG or DOCX file (for an access code: not a PDF, PNG or JPEG). |
Allows editing basic reservation details after creation. Details like contact info, recipient contact info, and public notes can be modified. Note that any changes that affect the quote (e.g. locations, schedules) cannot be updated via this endpoint and require a reschedule.
Request Parameters
| Field | Type | Description |
|---|---|---|
| contactInfo | object (Optional) |
Operational contact at pickup site. Sent as a whole:
the account the reservation is linked to moves with it,
and a field left out is cleared rather than kept.
Show object schema
|
| recipientContactInfo | object (Optional) |
Contact name and phone number at dropoff site.
Show object schema
|
| contactBeforeDeparture | boolean (Optional) | Ask the driver to call the pickup contact before departing. Omit the field to leave the current setting untouched. |
| contactBeforeDelivery | boolean (Optional) | Ask the driver to call the dropoff contact (or the end customer) before delivering the vehicle. Omit the field to leave the current setting untouched. |
| publicNotes | string (Optional) | Public notes visible to all drivers searching for gigs. |
| privateNotes | string (Optional) | Driver instructions (keys, parking info, etc.) visible only after the driver has accepted the gig. |
| vehicle | object (Optional) |
Vehicle details to update. Note that modifying quote-affecting fields (isElectric/fuelType, fastCharge, testPlates, requiresC1) will return a Bad Request validation error.
Show object schema
|
| returnDrive | object (Optional) |
Optional return drive update details.
Show object schema
|
NOT YET SUPPORTED
This endpoint is not yet supported in the backend. Currently, calling this returns a placeholder stub response.
Cancels the reservation and every drive still open on it. The assigned driver is released, open offers are withdrawn and the gigs are taken off the driver app.
Cancelling can cost money
A cancellation fee is charged once a driver has been assigned, and it grows as the pickup time
approaches. Call
GET /customers/v2/reservation/:id/cancellation-quote
first to see the exact figure before confirming. Cancelling is not reversible — a new
reservation has to be created instead.
Request Parameters
| Field | Type | Description |
|---|---|---|
| cancellationReason | string |
Why the reservation is cancelled. Required, and one of the four values below —
anything else returns 400 Bad Request. In countries
priced with cancellation fee tiers (currently Spain) the value also decides who carries
the cost.
Show accepted values
|
| additionalInformation | string (Optional) |
Free-text detail stored alongside the reason, max 1000 characters. Required when the
reason is other.
|
Responses
| Status | Description |
|---|---|
| 200 OK |
Cancelled. Returns id,
status,
cancelledAt, the reason as stored, and
cancellationFee — what was actually charged
(amount and currency),
which is 0 when no driver had been assigned or the
cancellation came early enough to cost nothing.
|
| 400 Bad Request |
The cancellation reason is missing or not one of the accepted values, or
additionalInformation is missing when the reason is
other.
|
| 404 Not Found | No reservation with the given ID exists for your partner account. |
| 409 Conflict | The reservation can no longer be cancelled: it is already cancelled, already completed, or its drives have departed. |
What cancelling would cost right now. Read-only — it changes nothing and can be called as often as needed, and it answers with the same figure the cancel call would charge, because it runs the same calculation.
The amount can still move before you act on it: assigning a driver raises it, and it grows as the pickup time approaches. Quote it again if the decision takes a while.
Response Fields
| Field | Type | Description |
|---|---|---|
| amount | number |
What cancelling would cost, in currency.
0 when no driver has been assigned yet, or when the
cancellation would still come early enough to cost nothing.
|
| currency | string | Currency of the amount. |
Retrieves all reservations (and their associated drives/trips) belonging to the authenticated B2B customer (partner), sorted by ID in descending order (newest first). Supports cursor-based pagination.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| start | string | Optional | The reservation ID cursor to start fetching after. If omitted, retrieves the first page. |
| limit | number | Optional |
Maximum number of items to return. Default is
20, maximum is 100.
|
| status | string | Optional |
Filter reservations by simplified status. Possible values:
confirmed, sealed,
cancelled, driving.
|
| regNo | string | Optional |
Filter reservations by vehicle registration number (e.g.
ABC-123).
|
Response Properties
Returns a paginated JSON object containing the reservations:
| Property | Type | Description |
|---|---|---|
| data | array |
An array of reservation objects, containing the following
fields:
Show Reservation Fields
|
| nextStart | string | null |
The cursor ID to pass as the start query
parameter to retrieve the next page of results. Null when
there are no more pages.
|
Retrieves the full details and real-time status of a specific B2B reservation by its unique ID.
Add ?include=photos to get the
photos the driver took of the car at pickup and on delivery, as
permanent public links you can store. They are left out unless
asked for, so a status check stays light.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | The unique reservation ID. |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| include | string | No |
Parts left out of the answer unless asked for, comma
separated. photos adds
the departure and delivery photos:
photos for the drive and
returnDrive.photos for
a return drive. Any other value is refused with
400.
|
Response Properties
Returns the full reservation object, identical to the response format of creating a reservation.
| Field | Type | Description |
|---|---|---|
| reservationId | string | Unique reservation ID. |
| reservationType | string |
The type of reservation (must be one of:
officeToOffice,
homeDelivery,
serviceDrive, purchaseCar,
replacementCar, import).
|
| createdAt | string | ISO timestamp of reservation creation. |
| status | string |
The reservation status. Possible values:
confirmed, sealed,
cancelled.
|
| price | number | Billed reservation price. |
| currency | string | Currency code (e.g. EUR). |
| priceBreakdown | array |
Detailed cost breakdown items.
Show object schema
|
| route | object |
Route details.
Show object schema
|
| origin | object |
Pickup location details.
Show object schema
|
| destination | object |
Dropoff location details.
Show object schema
|
| schedule | object |
Schedule details.
Show object schema
|
| vehicle | object |
Vehicle details.
Show object schema
|
| returnDrive | object | null |
Return drive details if configured.
Show object schema
|
| externalId | string | null |
Your own reference for the reservation, as sent in
externalId when it was
booked; null if none was given.
|
| tasks | array | Checklist tasks the driver performs before or after the drive. |
| publicNotes | string | null | Notes visible to all drivers searching for gigs. |
| privateNotes | string | null | Driver instructions (keys, parking info, etc.), shown only after a driver has accepted the gig. |
| contactInfo | object | null |
The pickup contact: name,
phone and
email (or
null).
|
| recipientContactInfo | object | null |
The dropoff contact, in the same shape as
contactInfo.
|
| contactBeforeDeparture | boolean | Whether the driver is asked to call the pickup contact before departing. |
| contactBeforeDelivery | boolean | Whether the driver is asked to call the dropoff contact before delivering the vehicle. |
| accessCodes | object |
The access codes given at booking, in the same shape as
the request: release and
return, each
{ type, value } or
null, and
returnDrive with the
same two, or null when the reservation has
no return drive. A file code has
type: "file", the
file's id as value and
its fileName. A key box
code added in the customer portal reads as
null.
|
| photos | object |
Only with ?include=photos:
the photos the driver took of this drive's car, as
permanent public links. A return drive's photos are in
returnDrive.photos, in
the same shape.
Show example
|
Returns what the driver found when they inspected the car: the whole checklist, every answer, the photos they took, and a count of anything that needs attention. Read-only — asking for a report never creates one.
An inspection happens only if you
ordered one with the booking. Send
carInspection: true in
POST /customers/v2/reservation; without it the driver is never shown a checklist and this
endpoint reports inspected: false.
Read needsAttention, not status
The checklist is not uniformly polarised, so the answer alone
does not tell you whether the car is fine. "Two keys?" is a
problem when the answer is no; "cracks in the
windshield?" is a problem when the answer is yes.
status reports what was answered —
passed is yes and failed is no — so a
flawless windshield reads as failed.
needsAttention is the verdict, and the only field
that carries the polarity.
Path Parameter
| Field | Type | Description |
|---|---|---|
| id | string |
The reservation id returned by
POST /customers/v2/reservation — the same id
the other v2 reservation endpoints take. A decimal
string, because reservation ids are 64-bit.
|
Response Properties
One report per drive on the reservation. A booking with a return leg has two, and each is inspected separately.
| Field | Type | Description |
|---|---|---|
| reservationId | string |
The reservation you asked for, as a decimal string —
matching what POST /customers/v2/reservation
returns. Reservation ids are 64-bit and would lose
precision as a JSON number.
|
| drives | array | One inspection report per drive, described below. |
| drives[].driveId | number | The drive this report belongs to. |
| drives[].driveType | string |
e.g. purchaseCar, returnDrive.
|
| drives[].vehicle | object |
regNo, make, model.
|
| drives[].inspected | boolean | Whether anyone actually inspected the car. False is not the same as "found nothing" — it means nobody has looked yet. |
| drives[].inspectedAt | string | null | When the last answer was submitted (ISO 8601, UTC). |
| drives[].checklist | object | null |
Which checklist was used: name,
version, driveType,
publishedAt. A report always renders from the
version the car was inspected under, so a report you
stored last month still reads the same after the checklist
is edited.
|
| drives[].summary | object |
Counts over the whole checklist: total,
passed, failed,
pending, informational, and
findings. Check
findings first — it is the number of answers
that mean something is wrong with the car.
|
| drives[].categories | array |
The checklist's sections, each with a
key, a label and its
items.
|
Checklist Item
| Field | Type | Description |
|---|---|---|
| key | string |
Stable identifier for the question, e.g.
windshield_cracks. Match on this rather than
on the label.
|
| label | string | null |
The question as the driver saw it. English by default;
send a preferred-locale header for another
language, falling back to English.
|
| status | string |
What was answered:
passed (yes), failed (no),
pending (not answered yet), or
informational (the question takes no yes/no
answer — an odometer reading, general photos). Not a
verdict; see the note above.
|
| needsAttention | boolean | Whether this answer means something is wrong with the car. This is the field to branch on. |
| value | boolean | null | The raw answer. Null when unanswered. |
| comment | string | null | The driver's note, where one was required or given. |
| submittedAt | string | null | When this answer was submitted (ISO 8601, UTC). |
| photos | array | Urls of the photos taken for this question. Empty when none were required or none were taken. |
Status Codes
| Code | Meaning |
|---|---|
| 200 | The inspection report, one entry per drive on the reservation. |
| 400 | The reservation id is not a number. |
| 401 | Missing or unknown API key. |
| 404 | No reservation with that id belongs to your account. |
For service providers. Lists every customer
that has connected to you in the Flovi portal and has not
disconnected since, oldest connection first. Each row carries the
customer's business ID, which is the value you send in the
x-customer-business-id header to act for that
customer on the other endpoints (see
Authentication).
The list is answered from your service provider key alone, so no
x-customer-business-id header is needed here. A
customer that disconnects drops off this list and is refused on
the next request at the same moment. A customer's own API key
gets 403: a customer has no connections to list.
Response Properties
The same envelope as List Reservations, so paging can be switched on later without a contract change:
| Property | Type | Description |
|---|---|---|
| data | array |
The connected customers, one object each:
Show Customer Fields
|
| nextStart | string | null |
Reserved for paging; always null today.
Treat a non-null value as a cursor for a later page.
|
Example
{
"data": [
{
"businessId": "1234567-8",
"name": "Example Oy",
"connectedAt": "2026-10-28T08:21:41.000Z"
},
{
"businessId": "556123-4567",
"name": "Exempel AB",
"connectedAt": "2026-11-02T12:05:09.000Z"
}
],
"nextStart": null
}
Status Codes
| Code | Meaning |
|---|---|
| 200 | The customers connected to you, possibly none. |
| 401 | Missing or unknown API key. |
| 403 | The key is a customer key, or a status-only service provider key. |
For service providers. Tells you whether a
customer Flovi onboarded for you is still
pending or already active. You name the
customer by the email of a user on its account, normally the
owner's email you sent Flovi when you asked for the account. A
new account stays pending
until the customer has signed its contract with Flovi and Flovi
has activated it. After that it is active, and
Flovi sends you the customer's own API key for booking.
Only the customers linked to you are answered. An email Flovi
does not know and one that belongs to a customer not linked to
you both get the same 404, so this endpoint cannot
be used to look customers up. It is answered from your service
provider key alone. A status-only key (see
Authentication)
opens this endpoint and nothing else.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| string | Required |
The email of a user on the customer account, normally the
owner's, as you sent it to Flovi. Not case-sensitive.
URL-encode it (a
+ in the address becomes %2B).
|
Response Properties
| Property | Type | Description |
|---|---|---|
| string | The matched user's email, as Flovi has it. | |
| status | string |
pending until Flovi activates the customer
account, active from then on.
|
Example
curl "https://customer-api.flovi.io/customers/v2/customer-status?email=owner%40workshop.pl" \
-H "x-api-key: YOUR_SERVICE_PROVIDER_KEY"
Example
{
"email": "owner@workshop.pl",
"status": "pending"
}
Status Codes
| Code | Meaning |
|---|---|
| 200 | The customer's status. |
| 400 | email is missing or not an email address. |
| 401 | Missing or unknown API key. |
| 403 | The key is a customer key, not a service provider key. |
| 404 | No customer with this email is linked to you. |
| 429 | More than 30 checks a minute with your key. Wait a minute and try again. |
Webhooks
Flovi supports webhooks to notify your application in real-time about important events. This allows your system to react to changes automatically without polling the API.
Creating Webhooks
Go to https://customer.flovi.io/organisation/settings, click on Webhooks -> Add. Enter your desired URL and choose the events you want to subscribe to.
The
reservation_status_change webhook
is triggered whenever the status of a reservation is updated.
Supported Events
This webhook may be triggered for the following events:
-
created- A reservation has been created. -
taken– All the drives in reservation has assigned. -
driving– A drive of the reservation has started. A reservation with more than one drive, such as an outbound drive and a return drive, sends it once per drive; each drive'sdeparted_atshows which have left. -
sealed– The reservation is completed and sealed. -
final_costs- After two weeks of reservation sealing webhook is called to inform total costs. Format is the same as state: sealed, but also includes vehicles information. -
cancelled- The reservation is cancelled.
Drives Data
Every webhook payload includes a
drives array. This array contains
one or more drive objects that represent the actual legs of the
reservation.
| Field | Type | Description |
|---|---|---|
|
driver
|
object | null
|
Driver information.
null if the driver has not been assigned yet.
Fields
|
|
origin
|
object
|
Pickup location details.
Fields
|
|
destination
|
object
|
Drop-off location details. Same structure as
origin.
|
|
vehicle
|
object | null
|
Vehicle information.
null if no license plate is assigned.
Fields
|
|
distance
|
integer
|
Estimated or actual distance in meters.
|
|
duration
|
integer
|
Estimated or actual duration in seconds.
|
|
departed_at
|
string | null
|
Actual departure timestamp in UTC (ISO 8601).
|
|
arrived_at
|
string | null
|
Actual arrival timestamp in UTC (ISO 8601).
|
|
schedule
|
object | null
|
Time windows for the drive.
Fields
|
Cancelled event also adds
cancellation_reason field.
Possible reasons are:
DOUBLE_BOOKING,
NO_DRIVER_WAS_FOUND,
DRIVER_CANCELED_OR_NOT_ARRIVED, SCHEDULE_ISSUE,
DRIVER_WAS_FOUND_THROUGH_ANOTHER_WAY,
UNTRANSPORTABLE_VEHICLE and
OTHER_REASON
Webhook Security
To ensure the authenticity of incoming webhook requests, each request includes a signature header that can be used to verify the request was sent by Flovi.
Secret & Signature
When you configure a webhook endpoint, you'll receive a webhook secret. This secret is used to sign each payload using HMAC SHA256.
-
Header:
x-hub-signature - Signature Method: HMAC SHA256
- Secret: Provided in the Flovi Dashboard
Calculating Signature
To verify that a webhook request is legitimate, you can compute the HMAC SHA256 signature of the request body using your webhook secret. Here's how to calculate the signature:
-
Obtain the webhook secret
You can find your secret in the Flovi Dashboard. Keep it safe and never expose it publicly. -
Extract the request body
Read the raw request body exactly as it was received, without any modifications. -
Compute the HMAC SHA256 hash
Use the webhook secret as the key and the raw request body as the message. The output should be a lowercase hexadecimal string. -
Compare with the
x-hub-signatureheader
The signature sent by Flovi is included in thex-hub-signatureheader. Compare it against your computed hash to confirm authenticity.
Example (in Node.js)
Example Headers
Model Context Protocol (MCP)
Connect Claude to your company's Flovi account with the Model Context Protocol (MCP). Claude can then list your offices, price a transfer, and book and list reservations for you in plain language.
You sign in with your own Flovi customer portal account, which must be an administrator of your company. No API key is needed. Access lasts 30 days, and ends as soon as your account is closed or is no longer an administrator.
Connect Claude
1. Copy the connector URL
2. Add it to Claude
- claude.ai and Claude Desktop: open Customize → Connectors (the Plugins page in newer versions of Claude), choose Add → Add custom connector, give it a name, paste the URL and click Add. Sign in to the Flovi portal when the window opens. On a Claude Team or Enterprise plan, an owner of your Claude organization adds the connector first under Organization settings → Connectors; you then find it on your connectors page and click Connect.
-
Claude Code: run the
command below, then type
/mcpin Claude Code and choose flovi to sign in.
3. Try it
Ask Claude, for example:
- "List our Flovi offices."
- "How much would it cost to move a car from our Vantaa office to Tampere tomorrow at 10?"
- "Show our reservations for this week."
A booking made through Claude is binding like any other: check the details before you tell Claude to book.
Exposed AI Tools
The Flovi MCP server exposes the following tools directly to the AI model:
-
list_offices
Retrieve the list of active B2B offices / cost centers for the authenticated partner. Use these IDs to specify origin/destination offices and cost centers in quotes and reservations. -
calculate_quote
Calculate guaranteed price options and alternative schedules for a transport order before booking. Accepts either office IDs or custom address fields. -
create_reservation
Confirm and book a live, binding transport order using a guaranteed quoteId. Supports an optionalexternalIdto link the reservation to your own system, andequipmentChecksto put equipment the driver must verify on the pre-drive checklist. WARNING: In production, this is immediately binding, dispatches to real drivers, and incurs real costs. Even cancelling the reservation afterwards may incur cancellation fees and costs. -
list_reservations
Retrieve all reservations and associated drives/trips belonging to the authenticated partner.
For integrations: connect with an API key
Use an API key for integrations where nobody is there to sign in, and for
clients that do not support the OAuth sign-in. The key belongs to your
company rather than to a person, and does not expire on its own. Add the
following block to your client's configuration file (e.g.
claude_desktop_config.json).
Staging Environment
Testing / SandboxProduction Environment
Live / Real CarsDocs for AI Assistants
This whole reference is also available as a single Markdown file, in the llms.txt format. Give it to an AI coding assistant (Claude Code, Cursor, Copilot, Codex or similar) when you build your integration, so it writes requests against the real endpoints and fields instead of guessing them.
-
/customers/v2/docs/llms-full.txtThe full reference: every endpoint, field, status code and the webhooks. -
/llms.txtA short index pointing to the full file, for tools that look for llms.txt.
How to Use It
1. Give the URL to a coding assistant
Most coding assistants can fetch a URL themselves. Include the
llms-full.txt URL in your prompt, for
example: "Read the Flovi API reference at <URL> and write a
client for the quote and reservation endpoints." In Cursor you can
also add it once under @Docs and refer to it from any
chat.
2. Keep a copy in your repository
Save the file in your project, e.g. as
docs/flovi-api.md, and point to it from
your agent instructions (AGENTS.md,
CLAUDE.md or a Cursor rule): "The Flovi
API is documented in docs/flovi-api.md." The assistant then reads it
when it works on the integration, without the whole reference being
loaded into every request. Download it again when the API changes.
3. Chat assistants
For Claude Projects, ChatGPT projects or Custom GPTs, click Copy Markdown and add the content as a project file or knowledge, rather than pasting it into the instructions.
Use a staging key while the assistant works. Code an
assistant writes or runs with a production key creates real,
binding reservations that are dispatched to drivers. Develop and test
against https://stage.customer-api.flovi.dev.
B2B Flow Sandbox
Step through real B2B integration scenarios: get a quote, then confirm a reservation.
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...