offer module

November 18, 2025 ยท View on GitHub

home

modules

offer module

This part of the API facilitates in supplying offers.

GET /collections/offers/items?offerId=... -> package

Get offer details
Parameters
NameInTypeRequiredDescription
offerIdquerystringโœ“the identifier of an offer
Responses
CodeContent typeTypeDescription
200application/geo+jsonpackagea single instance of a package

POST /processes/search-offers/execution searchOfferRequest -> offerCollection

Search for offers
Returns offers based on travel specification, trip pattern, location, asset, product and user preferences. In case of a shallow integration, can even be offered as an endpoint without authentication.
Parameters
NameInTypeRequiredDescription
bboxqueryarrayOnly features that have a geometry that intersects the bounding box are selected. The bounding box is provided as four or six numbers, depending on whether the coordinate reference system includes a vertical axis (height or depth): * Lower left corner, coordinate axis 1 * Lower left corner, coordinate axis 2 * Minimum value, coordinate axis 3 (optional) * Upper right corner, coordinate axis 1 * Upper right corner, coordinate axis 2 * Maximum value, coordinate axis 3 (optional) If the value consists of four numbers, the coordinate reference system is WGS 84 longitude/latitude (http://www.opengis.net/def/crs/OGC/1.3/CRS84) unless a different coordinate reference system is specified in the parameter bbox-crs. If the value consists of six numbers, the coordinate reference system is WGS 84 longitude/latitude/ellipsoidal height (http://www.opengis.net/def/crs/OGC/0/CRS84h) unless a different coordinate reference system is specified in the parameter bbox-crs. The query parameter bbox-crs is specified in OGC API - Features - Part 2: Coordinate Reference Systems by Reference. For WGS 84 longitude/latitude the values are in most cases the sequence of minimum longitude, minimum latitude, maximum longitude and maximum latitude. However, in cases where the box spans the antimeridian the first value (west-most box edge) is larger than the third value (east-most box edge). If the vertical axis is included, the third and the sixth number are the bottom and the top of the 3-dimensional bounding box. If a feature has multiple spatial geometry properties, it is the decision of the server whether only a single spatial geometry property is used to determine the extent or all relevant geometries.
Request Body
{
    "inputs": {
      "type": "search_offer",
      "specification": {
        "from": "GPS:6.169639,52.253279",
        "to": "local:p2",
        "startTime": "2025-04-24T08:39:01.160Z",
        "endTime": "2025-04-25T08:39:01.160Z"
      },
      "travellers": [
        {
          "type": "traveller",
          "id": "traveller1",
          "entitlements": [
            {
              "id": "string",
              "type": "card_type",
              "cardType": "DISCOUNT",
              "subType": "NL daluren",
            },
          ],
          "requirements": {
            "mode": "TRAIN",
            "class": "FIRST_CLASS",
          }
        }
      ],
      "places": [
        {
          "placeId": "local:p2",
          "addressLine1": "Startline 1",
          "addressLine2": "Discountcity",
        }
      ]
    }
  }
Responses
CodeContent typeTypeDescription
200application/geo+jsonofferCollectiona list of offers