Entur's developer portal has moved to developer.entur.no. Use the new portal for the latest documentation. This old version will be retired once its content has moved, but API changes are still published here for now, under News and Notifications.
Intro
Welcome to the Offers API.
Offers API provides endpoints for generating and retrieving offers for a combination of origin and destination.
The Offers API provide four endpoints:
Search for offers with a trip pattern generated from Journey Planner
Search for offers with zones from National Stop Register (NSR)
Search for offers with stop places from National Stop Register (NSR)
Search for offers with your authority id
The services enrich the request with information about the journey requested, inventory and seating before identifying all possible offers and calculating price.
Before the response is returned, the services filter unavailable offers and groups offers into recommendations.
Offers caching
Offers API is caching the produced offers for 30 minutes. After this time, the offer can no longer be used in the regular sales api.
Authentication
The client should authenticate with the Offers API by providing an OAuth2 bearer token in the request header. The token should be issued by Entur and have the necessary scopes to access the API.
In addition, a header for a specific distribution channel must be provided in the request when searching for offers.
Only distribution channels that have been registered with Entur and have been linked with your client will be accepted.
All requests will have a correlation id which is pertained with a request as it propagates through the system.This value will show which request is being processed as it flows
through the system.If no correlation id is provided in the request, one will be generated.
Description
Header key
Example value
Distribution Channel
Entur-Distribution-Channel
ENT:DistributionChannel:app
Correlation Id
X-Correlation-Id
7c9786df-cadf-4a70-9487-541607ade1b4
Authorization
Authorization
Bearer xxxxxxx.yyyyyyyy.zzzzzzzzz
Currency
The Offers API has a standardised way of representing value of products. Firstly, a currency code is always specified for a given product (e.g. "NOK", "USD", etc.).
Secondly, the amount for the given currency is represented as a numeric string with two decimal points (e.g. "100.00").