Entur Developer
Partner
REST
Entur shared mobility router API

AddressTO

streetAddress
​string · required
areaReference
​string · required

city or town, principal subdivision such as province, state or county, could match Content-Language

street
​string | null

street, consistent with streetAddress

houseNumber
​integer | null · int32

house number, consistent with streetAddress

houseNumberAddition
​string | null

the additional part of the house number (f.x. 13bis, where 'bis' is the additional part), consistent with streetAddress

addressAdditionalInfo
​string | null

additional information to find the address (f.x. just around the corner)

city
​string | null

specified city or town, consistent with areaReference

province
​string | null

province or region, consistent with areaReference

state
​string | null

state, consistent with areaReference

postalCode
​string | null
country
​string | null

two-letter country codes according to ISO 3166-1

AssetPropertiesEcoLabelInnerTO

countryCode
​string | null

two-letter country codes according to ISO 3166-1

ecoSticker
​string | null

AssetPropertiesTO

name
​string | null

name of asset (type), required in either assetType or asset, should match Content-Language

​PlaceTO | null
brand
​string | null

brand of the asset

model
​string | null
buildingYear
​integer | null · int32
colour
​string | null

colour of the asset, should match Content-Language

maxSpeed
​integer | null · int32

the maximum allowed speed for this asset (in km/h)

wheelCount
​integer | null · int32

the number of wheels

image
​string | null

Link to an image of the asset

icon
​string | null

Link to an icon of the asset

accessMethods
​array | null

access method for trip execution. Data will be delivered in the response of /booking/{id}/events - COMMIT or /leg/{id}/events - PREPARE (preferred) or GET /bookings/{id}.

Enum values:
DEEPLINK
QR
AZTEC
TOMP-API
AXA-EKEY-OTP
PHYSICAL-KEY
BARCODE
PDF
fuel
​string | null · enum
Enum values:
NONE
GASOLINE
DIESEL
ELECTRIC
HYBRID_GASOLINE
HYBRID_DIESEL
HYBRID_GAS
HYDROGEN
propulsion
​string | null · enum

way in which the asset is powered

Enum values:
MUSCLE
ELECTRIC
GASOLINE
DIESEL
HYBRID
LPG
HYDROGEN
energyLabel
​string | null · enum

Energy efficiency

Enum values:
A
B
C
D
E
co2PerKm
​number | null · float
gears
​integer | null · int32

number of gears of the asset

gearbox
​string | null · enum

type of gearbox

Enum values:
MANUAL
AUTOMATIC
SEMIAUTOMATIC
airConditioning
​boolean | null

airconditioning available

cabrio
​boolean | null

cabrio model

towingHook
​boolean | null

towing hook available

winterTires
​boolean | null

winter tires applied

nrOfDoors
​integer | null · int32

the number of doors of the vehicle. Return only when applicable

nrOfHelmets
​integer | null · int32

the number of available helmets. Return only when applicable

navigation
​boolean | null

navigation available

cruiseControl
​boolean | null

cruise control available

persons
​integer | null · int32

number of persons able to use the asset

infantSeat
​boolean | null

true indicates infant seat is supplied

pets
​boolean | null

true indicates pets are allowed on asset

smoking
​boolean | null

true indicates smoking is allowed on asset

easyAccessibility
​string | null · enum

describes if asset is or needs to be easily accessible

Enum values:
LIFT
ESCALATOR
GROUND_LEVEL
SIGHTIMPAIRMENT
HEARINGIMPAIRMENT
WHEELCHAIR
​array | null
regionId
​string | null

the region where this asset or assetType is used.

cargo
​string | null

describes options to carry cargo, should match Content-Language

cargoVolume
​integer | null · int32

the volume in liters of the cargo

cargoLoad
​integer | null · int32

the weight in kilograms of the cargo

travelAbroad
​boolean | null

true indicates asset is allowed to travel abroad

undergroundParking
​boolean | null

true indicates underground parking is allowed with asset

helmetRequired
​boolean | null

is a helmet required to operate this asset

defaultReserveTime
​integer | null · int32

Maximum time in minutes that a vehicle can be reserved before a rental begins. When a vehicle is reserved by a user, the vehicle remains locked until the rental begins. During this time the vehicle is unavailable and cannot be reserved or rented by other users. The vehicle status in free_bike_status.json MUST be set to is_reserved = true. If the value of default_reserve_time elapses without a rental beginning, the vehicle status MUST change to is_reserved = false. If default_reserve_time is set to 0, the vehicle type cannot be reserved.

other
​string | null

free text to describe asset, should match Content-Language

​object | null

this object can contain extra information about the type of asset. For instance values from the 'Woordenboek Reizigerskenmerken'. [https://github.com/efel85/TOMP-API/issues/17]. These values can also be used in the planning.

AssetTO

id
​string · required

Identifier of an asset. Whenever used in Operator Information changed after every trip (GDPR).

isReserved
​boolean | null

true indicates the bike is currently reserved for someone else

isReservedFrom
​string | null · date-time

optional addition to determine if an asset is reserved in the future

isReservedTo
​string | null · date-time

optional addition to determine when asset is available in the future

isDisabled
​boolean | null

true indicates the asset is currently disabled (broken)

availableUntil
​string | null · date-time

The date and time when any rental of the vehicle must be completed. The vehicle must be returned and made available for the next user by this time. If this field is empty, it indicates that the vehicle is available indefinitely. This field SHOULD be published by carsharing or other mobility systems where vehicles can be booked in advance for future travel.

mileage
​number | null · float

the current mileage of the asset

stateOfCharge
​integer | null · int32

percentage of charge available

maxRange
​integer | null · int32

maximum range in meters

licensePlate
​string | null

the usage of this field requires a secure environment. When assets are published in available-assets, this field can be used to track assets. Be aware of this.

stationId
​string | null

reference to station_id in /operator/stations, station where it is located

homeStationId
​string | null

reference to station_id in /operator/stations, station where it is assigned to

​array | null

List of known vehicle damages.

​AssetPropertiesTO | null

AssetTypeTO

id
​string · required

Unique identifier of an asset type,

stationId
​string | null

If stationId is present, the nrAvailable is expected to find the availability at that particular station

nrAvailable
​integer | null · int32
​array | null

use this field only in the map-oriented scenario or in the committed bookings. Don't use it in public data (to prevent GDPR issues).

assetClass
​string | null · enum
Enum values:
AIR
BUS
TROLLEYBUS
TRAM
COACH
RAIL
INTERCITYRAIL
URBANRAIL
assetSubClass
​string | null

a more precise classification of the asset, like 'cargo bike', 'public bus', 'coach bus', 'office bus', 'water taxi', 'segway'. This is mandatory when using 'OTHER' as class.

​AssetPropertiesTO | null
​array | null

pricing plans that can be applicable for this assetType. Business logic to determine the final pricing plan is not exposed. Just call the plannings endpoint (v1.2) or the inquiries endpoint (v.1.3)

​SystemPricingPlanTO | null
conditions
​array | null

extra information about the asset type, making it possible to f.x. specifying that booking this car requires a driver license.

ConditionDepositTO

conditionType
​string · required
id
​string | null

An identifier for this condition that can be used to refer to this condition

amount
​number | null · float

This should be in the base unit as defined by the ISO 4217 currency code with the appropriate number of decimal places and omitting the currency symbol. e.g. if the price is in US Dollars the price would be 9.95. This is inclusive VAT

amountExVat
​number | null · float
currencyCode
​string | null

ISO 4217 currency code

vatRate
​number | null · float

value added tax rate (percentage of amount)

vatCountryCode
​string | null

two-letter country codes according to ISO 3166-1

ConditionPayWhenFinishedTO

conditionType
​string · required
id
​string | null

An identifier for this condition that can be used to refer to this condition

ConditionPostponedCommitTO

conditionType
​string · required
ultimateResponseTime
​string · date-time · required
id
​string | null

An identifier for this condition that can be used to refer to this condition

ConditionRequireBookingDataTO

conditionType
​string · required
requiredFields
​string[] · required
Enum values:
FROM_ADDRESS
TO_ADDRESS
BIRTHDATE
EMAIL
PERSONAL_ADDRESS
PHONE_NUMBERS
LICENSES
BANK_CARDS
id
​string | null

An identifier for this condition that can be used to refer to this condition

claims
​array | null

when in the 'requiredFields' array 'BLOCKCHAIN_CLAIMS' is specified, in this array claims can be specified. On the WIKI page, the known ones are enlisted, but this list isn't finalized yet. https://github.com/TOMP-WG/TOMP-API/wiki/Blockchain---Verifiable-credentials

ConditionRequireEvidenceTO

conditionType
​string · required
evidenceTypes
​string[] · required
Enum values:
PARKED
HELMET_IN_BASKET
CHARGING
id
​string | null

An identifier for this condition that can be used to refer to this condition

ConditionRequireOffboardingStepsTO

conditionType
​string · required
​OffBoardingStepTO[] · required
id
​string | null

An identifier for this condition that can be used to refer to this condition

ConditionRequireOnboardingStepsTO

conditionType
​string · required
​OnBoardingStepTO[] · required
id
​string | null

An identifier for this condition that can be used to refer to this condition

ConditionRequirePausingStepsTO

conditionType
​string · required
​PausingStepTO[] · required
id
​string | null

An identifier for this condition that can be used to refer to this condition

ConditionRequireResumingStepsTO

conditionType
​string · required
​ResumingStepTO[] · required
id
​string | null

An identifier for this condition that can be used to refer to this condition

ConditionReturnAreaTO

conditionType
​string · required
id
​string | null

An identifier for this condition that can be used to refer to this condition

stationId
​string | null

station to which the asset should be returned

returnArea
​array | null

geojson representation of a polygon. First and last point must be equal. See also https://geojson.org/geojson-spec.html#polygon and example https://geojson.org/geojson-spec.html#id4. The order should be lon, lat [[[lon1, lat1], [lon2,lat2], [lon3,lat3], [lon1,lat1]]], the first point should match the last point.

​CoordinatesTO | null
​array | null

the return hours of the facility (if different from operating-hours)

ConditionTO

conditionType
​string · required
id
​string | null

An identifier for this condition that can be used to refer to this condition

ConditionUpfrontPaymentTO

conditionType
​string · required
id
​string | null

An identifier for this condition that can be used to refer to this condition

CoordinatesTO

lng
​number · float · required
lat
​number · float · required
alt
​number | null · float

altitude, in meters above sea level

DamageTO

vehicleComponent
​string · enum · required

Part/Component of the vehicle affected. If OTHER is specified the description needs to provide more detail as to what part/component is affected.

Enum values:
FRONT
REAR
LEFT
RIGHT
TOP
BOTTOM
INTERIOR
TIRE
description
​string · required

Description of the damage.

pictures
​array | null

URL where pictures of the damage can be accessed. Any special characters in the URL must be correctly escaped.

FarePartTO

amount
​number · float · required

This should be in the base unit as defined by the ISO 4217 currency code with the appropriate number of decimal places and omitting the currency symbol. e.g. if the price is in US Dollars the price would be 9.95. This is inclusive VAT

amountExVat
​number | null · float
currencyCode
​string | null

ISO 4217 currency code

vatRate
​number | null · float

value added tax rate (percentage of amount)

vatCountryCode
​string | null

two-letter country codes according to ISO 3166-1

type
​string | null · enum

type of fare part. If there is only one farepart and this field is missing, it should be assumed it is 'FIXED'. In all other situations this field is mandatory.

Enum values:
FIXED
FLEX
MAX
kind
​string | null · enum

is this the default price or is this an additional part (discount, price surge). In case of a DISCOUNT, the amount must always be negative and in case of SURGE it must be positive. This also means, that when you're working with discounts or surges, you have to deliver 2 fareparts, one for the default price and one for the discount/surge. This can be used in combination with as well the fixed price parts as with the flex price parts.

Enum values:
DEFAULT
DISCOUNT
SURGE
unitType
​string | null · enum

in case of 'FLEX' mandatory, otherwise not allowed. E.g. 0.5 EUR per HOUR

Enum values:
KM
SECOND
MINUTE
HOUR
MILE
PERCENTAGE
units
​number | null · float

the number of km, seconds etc. Mandatory when the type is 'FLEX', otherwise not allowed. In case of 0.5 EUR per 15 MINUTES, units should contain 15 and unitType MINUTES.

scaleFrom
​number | null · float

in case of scaling, this is the bottom value (f.x. in the first hour 3 CAD, the scaleFrom should contain 0 and the scaleType HOUR). When scaleTo is used, but this field is missing, it should be assumed it is a 0.

scaleTo
​number | null · float

the upper value of the scale (f.x. 3 CAD in the first hour, this field should contain 1, scaleFrom 0 and scaleType HOUR)

scaleType
​string | null · enum
Enum values:
KM
MILE
HOUR
MINUTE
name
​string | null

an optional description of this fare part.

class
​string · enum

class of this fare part. Could be FARE or ANCILLARY

Enum values:
FARE
ANCILLARY
minimumAmount
​number | null · float

The minimum price, in the same currency as amount. Place in amount the most likely value.

maximumAmount
​number | null · float

The minimum price, in the same currency as amount. Place in amount the most likely value.

assetState
​string | null · enum

in case the fare is dependent on being in use or being paused, this field must be used. Default IN_USE

Enum values:
IN_USE
PAUSED
​object | null

FareTO

estimated
​boolean · required

is this fare an estimation?

​FarePartTO[] · required
description
​string | null

user friendly description of the fare (e.g. 'full fare'), should match Content-Language

class
​string

in the future we'll set up an enumeration of possible "fare classes". For now it's free format.

InformationTO

type
​string | null · enum

the type of the information provided

Enum values:
URL
IMAGE
PLAIN_TEXT
HTML
url
​string | null

the internet location of the information, used in case or type URL or IMAGE

goal
​string | null · enum

the purpose of the information

Enum values:
INSTRUCTIONS
SALES
text
​string | null

free format text or HTML, depending on the type. Not to use in combination with URL or IMAGE

LegTO

​PlaceTO · required
id
​string | null

The unique identifier (TO) of this leg

​PlaceTO | null
departureTime
​string | null · date-time

The departure time of this leg. Or, in case of a parking, the start of the usage.

arrivalTime
​string | null · date-time

The intended arrival time at the to place. Or, in case of a parking, the end of the usage.

actualArrivalTime
​string | null · date-time

the 'arrivalTime' can be used as 'plannedArrivalTime' whenever the leg has ended. Use this field to ease searching for discrepances between planned and actual arrival times

actualDepartureTime
​string | null · date-time

the 'departureTime' can be used as 'plannedDepartureTime' whenever the leg has started. Use this field to ease searching for discrepances between planned and actual departure times

travelerReferenceNumbers
​array | null

reference to the travelers field of the request. If missing, it is refering to the first (if any). it is an array to facilitate multiple users on one leg (e.g. using a car). If multiple access informations are needed, please create a leg per used asset.

​AssetTypeTO | null
legSequenceNumber
​integer | null · int32

The order of the leg in the booking. There can be multiple legs with the same sequence (different user or parallel usage (eg. parking lot and a bike)).

​AssetTO | null
​FareTO | null
​SuboperatorTO | null
conditions
​array | null

The conditions that apply to this leg, there may be more conditions in a parent booking and planning object (if this is returned as part of those)

state
​string | null · enum
Enum values:
NOT_STARTED
PREPARING
IN_USE
PAUSED
FINISHING
FINISHED
ISSUE_REPORTED
CANCELLED
departureDelay
​integer | null · int32

A duration of some time (relative to a time) in milliseconds

arrivalDelay
​integer | null · int32

A duration of some time (relative to a time) in milliseconds

distance
​integer | null · int32

The estimated distance travelled in the leg (in meters)

progressGeometry
​array | null

An array of WGS84 coordinate pairs

​TokenTO | null
​TokenTO | null
​array | null
​array | null

Additional information a TO can send to a customer (instructions, sales info, ...)

memo
​string | null

OffBoardingStepTO

type
​string | null · enum

the type of the information provided

Enum values:
URL
IMAGE
PLAIN_TEXT
HTML
url
​string | null

the internet location of the information, used in case or type URL or IMAGE

goal
​string | null · enum

the purpose of the information

Enum values:
INSTRUCTIONS
SALES
TERMS_CONDITIONS
text
​string | null

free format text or HTML, depending on the type. Not to use in combination with URL or IMAGE

action
​string | null · enum

these actions are available
SEND_START_FINISHING - the TO needs to be informed the leg is about to finish
PARK_ASSIST - user action to park (stop) using the asset
UNLOCK_LOCKER - user action, could be triggered by the START_FINISH event
CONNECT_CHARGER - user action
LOCK_ASSET - user action, could be triggered by the FINISH event
SEND_OPEN_TRUNK - the TO opens the trunk remotely
UNLOCK_TRUNK - user action
STOW_HELMET - user action
LOCK_TRUNK - user action
LOCK_LOCKER - user action
SEND_FINISH - the TO wants to be informed about the end of the leg
SEND_EVIDENCE_PARKED - the TO requires parking evidence
SEND_EVIDENCE_HELMET - the TO requires evidence of storing the helmet
SEND_EVIDENCE_CHARGER - the TO requires evidence of correct usage of the charger

Enum values:
SEND_START_FINISHING
PARK_ASSIST
UNLOCK_LOCKER
CONNECT_CHARGER
LOCK_ASSET
SEND_OPEN_TRUNK
UNLOCK_TRUNK
STOW_HELMET

OnBoardingStepTO

type
​string | null · enum

the type of the information provided

Enum values:
URL
IMAGE
PLAIN_TEXT
HTML
url
​string | null

the internet location of the information, used in case or type URL or IMAGE

goal
​string | null · enum

the purpose of the information

Enum values:
INSTRUCTIONS
SALES
TERMS_CONDITIONS
text
​string | null

free format text or HTML, depending on the type. Not to use in combination with URL or IMAGE

action
​string | null · enum

The possible steps are described here
SEND_PREPARE - indicate the leg is going to start
UNLOCK_LOCKER - user action - optionally triggered by the PREPARE event
DISCONNECT_CHARGER - requested user action
SHOW_DAMAGES - show known damages to end user
UNLOCK_ASSET - requested user action or triggered by SET_IN_USE event
START_ASSET - requested user action
SEND_OPEN_TRUNK - request TO to open trunk/helmet case remotely
UNLOCK_TRUNK - requested user action
TAKE_HELMET - requested user action
SEND_SET_IN_USE - request to start leg
SEND_ASSIGN_ASSET - request to assign the specified asset to the leg
LOCK_LOCKER - requested user action

Enum values:
SEND_PREPARE
UNLOCK_LOCKER
DISCONNECT_CHARGER
SHOW_DAMAGES
UNLOCK_ASSET
START_ASSET
SEND_OPEN_TRUNK
UNLOCK_TRUNK

PausingStepTO

type
​string | null · enum

the type of the information provided

Enum values:
URL
IMAGE
PLAIN_TEXT
HTML
url
​string | null

the internet location of the information, used in case or type URL or IMAGE

goal
​string | null · enum

the purpose of the information

Enum values:
INSTRUCTIONS
SALES
TERMS_CONDITIONS
text
​string | null

free format text or HTML, depending on the type. Not to use in combination with URL or IMAGE

action
​string | null · enum

allowed actions
SEND_PAUSE - send leg event PAUSE to inform the TO
PARK_ASSIST - user action, the end user can be informed how and where to park
LOCK_ASSET - user action, can be triggered by the PAUSE event
SEND_OPEN_TRUNK - request TO to open the trunk remotely
UNLOCK_TRUNK - user action
STOW_HELMET - user action
LOCK_TRUNK - user action

Enum values:
SEND_PAUSE
PARK_ASSIST
LOCK_ASSET
SEND_OPEN_TRUNK
UNLOCK_TRUNK
STOW_HELMET
LOCK_TRUNK

PlaceTO

​CoordinatesTO · required
name
​string | null

Human readable name of the place, could match Content-Language

​array | null
stationId
​string | null

reference to /operator/stations

​AddressTO | null
​object | null

RequirementTO

category
​string · required

references to the first column of the specification initial values [ HR, AV, HV, AB, AER, K, ZR, RR ]

number
​string · required

references to the second column of the specification

source
​string | null
type
​string | null

conditionally extra information, referencing to the 3th column

memo
​string | null

extra field for detailed information, not standardized

variable-number
​integer · int32

in some requirements there is references to '[variable number]' e.g. of meters (like ZR06)

applicable-days
​string[]

days of week that are applicable

Enum values:
MO
TU
WE
TH
FR
SA
SU

ResumingStepTO

type
​string | null · enum

the type of the information provided

Enum values:
URL
IMAGE
PLAIN_TEXT
HTML
url
​string | null

the internet location of the information, used in case or type URL or IMAGE

goal
​string | null · enum

the purpose of the information

Enum values:
INSTRUCTIONS
SALES
TERMS_CONDITIONS
text
​string | null

free format text or HTML, depending on the type. Not to use in combination with URL or IMAGE

action
​string | null · enum

possible values
UNLOCK_ASSET - user action, could be triggered by SET_IN_USE event
SEND_OPEN_TRUNK - request TO to open trunk remotely
UNLOCK_TRUNK - user action
TAKE_HELMET - user action
LOCK_TRUNK - user action
START_ASSET - user action
SEND_SET_IN_USE - the TO wants to be informed that the leg is resumed. Optionally triggers the unlock of the vehicle

Enum values:
UNLOCK_ASSET
SEND_OPEN_TRUNK
UNLOCK_TRUNK
TAKE_HELMET
LOCK_TRUNK
START_ASSET
SEND_SET_IN_USE

StopReferenceTO

type
​string · enum · required

type of external reference (GTFS, CHB).

Enum values:
GTFS_STOP_ID
GTFS_STOP_CODE
GTFS_AREA_ID
CHB_STOP_PLACE_CODE
CHB_QUAY_CODE
NS_CODE
id
​string · required

this field should contain the complete ID. E.g. NL:S:13121110 or BE:S:79640040

country
​string · required

two-letter country codes according to ISO 3166-1

SuboperatorTO

name
​string · required

Name of the operator, could match Content-Language

maasId
​string | null

the maasId from the operator

description
​string | null

short description of the operator, should match Content-Language

contact
​string | null

contact information, should match Content-Language

SystemHoursTO

startTime
​string · required
endTime
​string · required
days
​string[] · required

An array of abbreviations (first 3 letters) of English names of the days of the week that this hour object applies to (i.e. ["mon", "tue"]). Each day can only appear once within all of the hours objects in this feed.

Enum values:
MON
TUE
WED
THU
FRI
SAT
SUN
userType
​string | null · enum

This indicates that this set of rental hours applies to either members or non-members only.

Enum values:
MEMBER
NON_MEMBERS
stationId
​string | null

If this parameter is present, it means that startTime and endTime correspond to the opening and closing hours of the station. (GET /operator/stations)

regionId
​string | null

If this parameter is present, it means that startTime and endTime correspond to the opening and closing hours for the region. (GET /operator/regions)

SystemPricingPlanTO

planId
​string · required

a unique identifier for this plan in the system

name
​string · required

name of this pricing scheme, could match Content-Language

​FareTO · required
isTaxable
​boolean · required

false indicates that no additional tax will be added (either because tax is not charged, or because it is included) true indicates that tax will be added to the base price

description
​string · required

Text field describing the particular pricing plan in human readable terms. This should include the duration, price, conditions, etc. that the publisher would like users to see. This is intended to be a human-readable description and should not be used for automatic calculations, should match Content-Language

url
​string | null

a fully qualified URL where the customer can learn more about this particular scheme

stationId
​string | null

pricing plan for a specific station

regionId
​string | null

pricing plan for a specific region

surgePricing
​boolean | null

Is there currently an increase in price in response to increased demand in this pricing plan? If this field is empty, it means there is no surge pricing in effect.

TokenDataTO

tokenType
​string · required

TokenDeeplinkTO

tokenType
​string · required
url
​string | null

the base deeplink url for the MP app. Can be extended by the 'knownParamaters'. Including the scheme.

knownParameters
​array | null

TokenDefaultTO

tokenType
​string · required
url
​string | null

download url for html/pdf

TokenEKeyAllOfEkeyTO

key
​string | null

certificate

passkey
​string | null

one time pass key

TokenEKeyAllOfLockTO

bdAddress
​string | null

physical address

deviceName
​string | null

how it advertises itself

TokenEKeyTO

tokenType
​string · required
​TokenEKeyAllOfEkeyTO · required
​TokenEKeyAllOfLockTO · required

TokenQRTO

tokenType
​string · required
base64
​string · required

base 64 QR code

version
​string | null

TokenTO

validFrom
​string · date-time · required
validUntil
​string · date-time · required
tokenType
​string · enum · required

The type of data held in this token, will later be an enum

Enum values:
tokenDefault
tokenDeeplink
tokenEKey
tokenQR
​

ErrorTO

errorcode
​integer | null · int32

The TOMP specific error code. See https://github.com/TOMP-WG/TOMP-API/wiki/Error-handling-in-TOMP for more details of this error.

type
​string | null

The category of this type of error.

title
​string | null

A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except to match Content-Language

status
​integer | null · int32

The HTTP status code ([RFC7231], Section 6) generated by the origin server for this occurrence of the problem.

detail
​string | null

A human-readable explanation specific to this occurrence of the problem, could match Content-Language

instance
​string | null

A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.

LegEventTO

time
​string · date-time · required
event
​string · enum · required
Enum values:
PREPARE
ASSIGN_ASSET
SET_IN_USE
PAUSE
OPEN_TRUNK
START_FINISHING
FINISH
TIME_EXTEND
comment
​string | null

free text, should match Content-Language

url
​array | null

urls to support the event e.g. pictures justifying the exit conditions

​PlaceTO | null
​AssetTO | null

BookingStepTO

type
​string | null · enum

the type of the information provided

Enum values:
URL
IMAGE
PLAIN_TEXT
HTML
url
​string | null

the internet location of the information, used in case or type URL or IMAGE

goal
​string | null · enum

the purpose of the information

Enum values:
INSTRUCTIONS
SALES
TERMS_CONDITIONS
text
​string | null

free format text or HTML, depending on the type. Not to use in combination with URL or IMAGE

action
​string | null · enum

The possible steps are described here
PENDING - to show whenever the booking is in PENDING state (not confirmed)
WAITING - to indicate that the TO is processing the booking, optionally after an extension of the expiry time
WAITING_FOR_PAYMENT - to indicate that the payment hasn't been settled, after an extension of the expiry time with reason payment
CONFIRMED - to show whenever the booking is in a COMMITTED state (confirmed)
CANCELLED - to show whenever the booking is cancelled
CONDITIONAL_CONFIRMED - to show whenever the booking is conditionally confirmed (see process identifiers)
EXPIRED - to show whenever the booking is expired (the expiry time has passed)

Enum values:
PENDING
WAITING_FOR_PAYMENT
CONFIRMED
CONDITIONAL_CONFIRMED
CANCELLED
EXPIRED

EndpointImplementationStepsTO

​array | null
​array | null
​array | null

this array should be considered as a sequence!

​array | null

this array should be considered as a sequence!

​array | null

this array should be considered as a sequence!

​array | null

this array should be considered as a sequence!

EndpointImplementationTO

version
​string · required
baseUrl
​string · required
​EndpointTO[] · required
scenarios
​string[] · required
Enum values:
POSTPONED_COMMIT
DEPOSIT
PAY_WHEN_FINISHED
REQUIRE_BOOKING_DATA
RETURN_AREA
UPFRONT_PAYMENT
​ProcessIdentifiersTO · required

EndpointTO

method
​string · enum · required
Enum values:
POST
PUT
GET
DELETE
PATCH
path
​string · required

the exact path of the endpoint, starting after the base URL

status
​string · enum · required
Enum values:
NOT_IMPLEMENTED
DIALECT
IMPLEMENTED
eventType
​string | null · enum

in case the path is ending in /events, the event type/operator enum should be added here.

Enum values:
PREPARE
ASSIGN_ASSET
SET_IN_USE
PAUSE
OPEN_TRUNK
START_FINISHING
FINISH
ISSUE
supportsPaging
​boolean | null

does this endpoint support paging? In that case this endpoint can be accessed using query parameters offset=x and limit=y. Only allowed at endpoints that have specified these query parameters.

maxPageSize
​integer | null · int32

the maximum size of the pages (only valid when supportsPaging=true). If the limit-parameter of the request is above this amount, a http code 400 will be returned.

externalType
​string | null · enum

this field must be used when adressing other standards for exchanging 'static' data (Level 1 MaaS)

Enum values:
GBFS
GTFS
NeTEx
OSDM_Offline
IXSI5
APDS
CDS
useAssetTypes
​array | null
useAssets
​array | null

PlanningStepTO

type
​string | null · enum

the type of the information provided

Enum values:
URL
IMAGE
PLAIN_TEXT
HTML
url
​string | null

the internet location of the information, used in case or type URL or IMAGE

goal
​string | null · enum

the purpose of the information

Enum values:
INSTRUCTIONS
SALES
TERMS_CONDITIONS
text
​string | null

free format text or HTML, depending on the type. Not to use in combination with URL or IMAGE

action
​string | null · enum

the RESULT_SHOWN action requires the MP to display some information to the customer when it is viewing the proposed legs. the SHOW_TERMS_CONDITIONS action requires the MP to show the terms & conditions, as provided in the step

Enum values:
RESULT_SHOWN
SHOW_TERMS_CONDITIONS

ProcessIdentifiersTO

operatorInformation
​string[] · required
planning
​string[] · required
booking
​string[] · required
tripExecution
​string[] · required
support
​string[] · required
payment
​string[] · required
general
​string[] · required
Did you find what you were looking for?