Entur · Schema

ChangeOption

CompanyPublic TransportJourney PlanningMobilityOpen DataNorwayTransitGraphQL

Properties

Name Type Description
orderId string
orderLineOptions array
View JSON Schema on GitHub

JSON Schema

entur-change-option-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/entur/json-schema/entur-change-option-schema.json",
  "title": "ChangeOption",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/entur-change-options-api-openapi.yml#/components/schemas/ChangeOption",
  "required": [
    "orderId",
    "orderLineOptions"
  ],
  "type": "object",
  "properties": {
    "orderId": {
      "type": "string"
    },
    "orderLineOptions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/OrderLineOptions"
      }
    }
  },
  "$defs": {
    "Fee": {
      "title": "Fee",
      "required": [
        "amount",
        "currency"
      ],
      "type": "object",
      "properties": {
        "amount": {
          "type": "string"
        },
        "currency": {
          "type": "string"
        }
      }
    },
    "Option": {
      "title": "Option",
      "required": [
        "id",
        "specifiedProducts",
        "types",
        "version"
      ],
      "type": "object",
      "properties": {
        "fee": {
          "$ref": "#/$defs/Fee"
        },
        "id": {
          "type": "string"
        },
        "legIds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "specifiedProducts": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "default": []
        },
        "toFareClass": {
          "type": "string"
        },
        "types": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ANY_PRODUCT",
              "SAME_PRODUCT",
              "DEPARTURE_SAME_DAY",
              "DEPARTURE_ANY_DAY",
              "SPECIFIED_PRODUCT",
              "SPECIFIED_FARE_CLASS",
              "SEAT_MAP",
              "TRANSFER_TICKET"
            ]
          },
          "default": []
        },
        "validFrom": {
          "type": "string",
          "format": "date-time"
        },
        "validTo": {
          "type": "string",
          "format": "date-time"
        },
        "version": {
          "type": "string"
        }
      }
    },
    "OrderLineOptions": {
      "title": "OrderLineOptions",
      "required": [
        "options",
        "orderLineId"
      ],
      "type": "object",
      "properties": {
        "orderLineId": {
          "type": "string"
        },
        "options": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Option"
          }
        }
      },
      "description": "Holder for possible change options for a given order line"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/entur-change-option"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.