Entur · Schema

CompensationRequest

A request performing compensation operations in batch

CompanyPublic TransportJourney PlanningMobilityOpen DataNorwayTransitGraphQL

Properties

Name Type Description
compensationOperations array A required list of one or more compensation operations
View JSON Schema on GitHub

JSON Schema

entur-compensation-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/entur/main/json-schema/entur-compensation-request-schema.json",
  "title": "CompensationRequest",
  "description": "A request performing compensation operations in batch",
  "x-generated": "2026-10-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/entur-refund-partner-openapi.yml#/components/schemas/CompensationRequest",
  "type": "object",
  "properties": {
    "compensationOperations": {
      "type": "array",
      "description": "A required list of one or more compensation operations",
      "items": {
        "$ref": "#/$defs/CompensationOperation"
      }
    }
  },
  "required": [
    "compensationOperations"
  ],
  "$defs": {
    "CompensationElement": {
      "type": "object",
      "description": "A element that wraps a sub operation on a given order. Typically when different",
      "properties": {
        "orderLineIds": {
          "type": "array",
          "description": "Optional list of order line ids that are to be compensated. If left empty the whole order is assumed to be compensated",
          "items": {
            "type": "string"
          }
        },
        "compensationAmount": {
          "type": "string",
          "description": "The amount of compensation desired for this order"
        },
        "compensationReason": {
          "type": "string",
          "description": "Optional field describing the reason for the compensation"
        }
      },
      "required": [
        "compensationAmount"
      ],
      "title": "CompensationElement"
    },
    "CompensationOperation": {
      "type": "object",
      "description": "An entry describing a compensation operation",
      "properties": {
        "orderId": {
          "type": "string",
          "description": "The order id referencing the order to be compensated"
        },
        "elements": {
          "type": "array",
          "description": "A list of compensation elements",
          "items": {
            "$ref": "#/$defs/CompensationElement"
          }
        }
      },
      "required": [
        "elements",
        "orderId"
      ],
      "title": "CompensationOperation"
    }
  }
}

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-compensation-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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.