Change an order
Change an eligible order using its current revision and a stable write key.
orders:write.
Read the workflow guide for setup, examples, and recovery behavior.
Authorizations
OAuth 2.0 client credentials.
Headers
A unique key for this logical write across the customer account. Reuse it only for retries of the same operation and request data.
8 - 255The current order revision inside double quotation marks. Preserve it when retrying the same logical write.
A caller-supplied request identifier for support.
1 - 255Path Parameters
The order identifier. Stable Bahn order identifier used in every order resource path.
^ord_[a-z0-9]+$Body
Order fields to change. Omitted fields keep their current values.
Replacement customer reference, or null to clear it.
1 - 255Changes only the supplied pickup fields.
Changes only the supplied delivery fields.
Replaces the primary vehicle input. Include its identifier and every fact to retain. A trade-in item remains unchanged.
1 elementReplacement transport and inspection service.
Adds uploaded files to the order. Existing order files remain attached.
Stable identifier for an uploaded or published order file.
^file_[a-z0-9-]+$Replacement order-level note, or null to clear it.
5000Response
The updated order.
Current state of one transport order.
Stable Bahn order ID. Store it after order creation.
^ord_[a-z0-9]+$Business the order was placed for, or null when it belongs to your own account.
Reference supplied by your system, or null when none was supplied.
Current overall order state.
accepted, in_transit, delivered, cancelled Current seller readiness for pickup.
pending, preparing, confirmed Time when Bahn accepted the order.
Time when Bahn last updated the order.
Current pickup location, contact, requested timing, agreed timing, ETA, and actual time.
Current delivery location, contact, requested timing, agreed timing, ETA, and actual time.
Primary vehicle and optional trade-in vehicle, each with its own state and handover condition.
1 - 2 elementsTransport and inspection service selected for this order.
Price accepted when the order was created, or null when unavailable.
Order-level note supplied by the customer.
Actions currently available to this credential. Use this list to enable order controls.
Operation the current credential can perform on the current order state.
update, cancel, get_files, get_inspection_report, get_tracking 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.
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.
x >= 0