Skip to main content
POST
Required scope: orders:write. Send a new Idempotency-Key for each booking. After a timeout or a server error, retry with the same key and request data. Supply pickup, delivery, one primary vehicle, and service_options. Start with the Minimal booking request example, then select the example that matches your order.
  • Pickup needs available_from, requested_windows, or both.
  • The primary vehicle needs a VIN or a registration number. A cross-border order needs the VIN.
  • Send height_mm and tires on the primary vehicle when you know them. They decide the van surcharge and the winter-tire terms; see Vehicle height and tires.
  • A private pickup or an end_customer delivery needs a contact name and phone number. Pickup must then start on the next calendar day or later in Helsinki.
  • A trade-in route must stay inside Finland and cannot start at a private pickup.
  • Each file_ids value must be a file that your account uploaded.
A 201 response contains the order with its id, revision, and allowed_actions. Bahn also sends com.bahn.order.created.v1. Read Create and find orders for the rules and examples, Pickup and delivery times for the window rules, and Quickstart for a complete sandbox call.

Platform orders

An ordering channel can supply ordered_for to assign the order to another Bahn customer. Omit it for orders on your own account. See Platform ordering.
Normally, Bahn invoices the platform, which invoices its customer. Only platforms enabled by Bahn staff may supply invoice_recipient for direct billing of the end business. Omit it for normal billing. The order remains on the platform account; do not combine it with ordered_for.Supply business_id, vat_id, name, contact_name, email, and address. The address requires street_address, city, postal_code, and country_code. Optional e_invoicing requires both its Finvoice address and operator code. Expand invoice_recipient under Body for the exact definitions.The recipient must be VAT-registered in the EU. Its VAT number and invoice address must identify the same country. Production checks registration through VIES. Finnish recipients use normal Finnish VAT (currently 25.5%); other EU recipients use zero VAT under reverse charge.Select Finnish end-customer invoice or End-customer invoice (EU reverse charge) for a complete request. The returned invoicing object contains the accepted recipient, vat_treatment, and billing progress. See End-customer invoicing for setup, status meanings, and recovery.

Authorizations

Authorization
string
header
required

OAuth 2.0 client credentials.

Scopes

orders:write

Check prices, upload files, and change customer orders.

Headers

Idempotency-Key
string
required

A unique key for this logical write across the customer account. Reuse it only for retries of the same operation and request data.

Required string length: 8 - 255
X-Request-Id
string

A caller-supplied request identifier for support.

Required string length: 1 - 255

Body

application/json

Complete transport request that creates an order in the selected environment.

pickup
object
required

Pickup location and handover details. Send available_from, one or more requested_windows, or both.

delivery
object
required

Delivery location, handover details, and requested windows.

items
(Primary vehicle · object | Trade-in vehicle · object)[]
required

Exactly one item must have the primary role.

Required array length: 1 - 2 elements

One vehicle in an order. Use primary for the transported vehicle and trade_in for the return vehicle.

service_options
object
required

Transport and inspection service for the order.

customer_reference
string | null

Your reference for matching the Bahn order to your system. It does not need to be unique.

Required string length: 1 - 255
file_ids
string[]

IDs returned by POST /v2/files. Use a customer_document file for a pickup release document.

Stable identifier for an uploaded or published order file.

Pattern: ^file_[a-z0-9-]+$
customer_note
string | null

Order-level note for Bahn. Use item.note for vehicle-specific instructions.

Maximum string length: 5000
ordered_for
object

Optional. Send it only when an ordering-channel credential orders for another business. Omit it to order for your own account.

invoice_recipient
object

Optional. Requires an ordering-channel credential for a platform account with end-customer invoicing enabled by Bahn staff. When supplied, Bahn invoices this business directly. When omitted, Bahn invoices the platform under its normal billing arrangement. The order stays on the platform account. Cannot be combined with ordered_for. Production verifies VAT registration through VIES.

Response

Bahn created the order.

Current state of one transport order.

id
string
required

Stable Bahn order ID. Store it after order creation.

Pattern: ^ord_[a-z0-9]+$
ordered_for
object | null
required

Business the order was placed for, or null when it belongs to your own account.

customer_reference
string | null
required

Reference supplied by your system, or null when none was supplied.

status
enum<string>
required

Current overall order state.

Available options:
accepted,
driver_assigned,
in_transit,
delivered,
cancelled
pickup_readiness
enum<string>
required

Current seller readiness for pickup.

Available options:
pending,
preparing,
confirmed
created_at
string<date-time>
required

Time when Bahn accepted the order.

updated_at
string<date-time>
required

Time when Bahn last updated the order.

pickup
object
required

Current pickup location, contact, requested timing, agreed timing, ETA, and actual time.

delivery
object
required

Current delivery location, contact, requested timing, agreed timing, ETA, and actual time.

items
object[]
required

Primary vehicle and optional trade-in vehicle, each with its own state and handover condition.

Required array length: 1 - 2 elements
service_options
object
required

Transport and inspection service selected for this order.

price
object | null
required

Current accepted price, or null when automatic pricing is not available. An order change can calculate a new price.

customer_note
string | null
required

Order-level note supplied by the customer.

editable_fields
enum<string>[]
required

Fields accepted by PATCH at this transport stage. Pickup and delivery entries use dotted paths. Contact entries permit partial name, phone, and email updates. Empty after primary delivery or cancellation. Other validation and credential scopes still apply.

Available options:
customer_reference,
customer_note,
file_ids,
items,
service_options,
pickup.address,
pickup.type,
pickup.available_from,
pickup.requested_windows,
delivery.address,
delivery.type,
delivery.requested_windows,
pickup.release_code,
pickup.contact,
delivery.contact
allowed_actions
enum<string>[]
required

Actions that the current order state permits. The list does not check the scopes of your credential. Use this list to enable controls, and handle rejected writes because the order can change before the request completes.

Operation that the current order state permits. It does not check the scopes of your credential.

Available options:
update,
cancel,
get_files,
get_inspection_report,
get_tracking
revision
string
required

An opaque order revision. Use this value in the If-Match header for an order change. A live ETA update does not change this value. Booking, unbooking and changes to displayed driver assignments also change this value.

driver_assignments
object[]
required

Drivers with a booking on this order, one entry for each driver and vehicle. Drivers who finished their part stay in the list. A booking can cover only part of the route, and it does not start location tracking. Replace the displayed list each time you read the order.

cancellation_unavailable_reason
string | null
required

Text that explains why you cannot cancel or change the order, or null when both actions are available. Show the text as written; its wording can change. An order that returns to accepted after a driver unbooks stays closed.

distance_meters
integer | null

The driving distance in meters that the price calculation used. The field appears only in the creation response. Bahn does not store the value on the order.

Required range: x >= 0
invoicing
null | object

Accepted end-customer billing details and export progress. Null for normal account billing. Read this order to refresh progress. Exported means accepted by Netvisor, not sent or paid. Internal Netvisor identifiers are not exposed.