Entur · Schema

GivenConsentRequest

Create a given consent for a customer

CompanyPublic TransportJourney PlanningMobilityOpen DataNorwayTransitGraphQL

Properties

Name Type Description
consentChoice boolean Whether this consent has been approved or rejected.
consentId integer The id of the consent defining what and to whom the customer has consented.
countryCode string The telephone number country code provided with the consent
customerNumber integer Customer number.
customerRef string Customer reference. Note: If you do not provide a customer reference, the customer number will used as reference.
email string The contact email provided with the consent.
expirationDate string When the consent expires. ISO 8601 date format
fromStopPlace string The stop place where the customer’s journey started, in NeTEx format.
lineRef string Reference to the customers journey line, in NeTEx format
originalDatedServiceJourneyId string Unique Id for a specific Service Journey, in NeTEx format with ENT as operator
telephoneNumber string The telephone number provided with the consent
toStopPlace string The stop place where the customer’s journey ended, in NeTEx format.
View JSON Schema on GitHub

JSON Schema

entur-given-consent-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-given-consent-request-schema.json",
  "title": "GivenConsentRequest",
  "description": "Create a given consent for a customer",
  "x-generated": "2026-10-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/entur-consents-openapi.yml#/components/schemas/GivenConsentRequest",
  "required": [
    "consentChoice",
    "consentId",
    "customerNumber",
    "expirationDate"
  ],
  "type": "object",
  "properties": {
    "consentChoice": {
      "type": "boolean",
      "description": "Whether this consent has been approved or rejected."
    },
    "consentId": {
      "type": "integer",
      "description": "The id of the consent defining what and to whom the customer has consented.",
      "format": "int64"
    },
    "countryCode": {
      "type": "string",
      "description": "The telephone number country code provided with the consent"
    },
    "customerNumber": {
      "type": "integer",
      "description": "Customer number. ",
      "format": "int64"
    },
    "customerRef": {
      "type": "string",
      "description": "Customer reference. Note: If you do not provide a customer reference, the customer number will used as reference."
    },
    "email": {
      "type": "string",
      "description": "The contact email provided with the consent."
    },
    "expirationDate": {
      "type": "string",
      "description": "When the consent expires. ISO 8601 date format",
      "format": "date-time"
    },
    "fromStopPlace": {
      "type": "string",
      "description": "The stop place where the customer’s journey started, in NeTEx format."
    },
    "lineRef": {
      "type": "string",
      "description": "Reference to the customers journey line, in NeTEx format"
    },
    "originalDatedServiceJourneyId": {
      "type": "string",
      "description": "Unique Id for a specific Service Journey, in NeTEx format with ENT as operator"
    },
    "telephoneNumber": {
      "type": "string",
      "description": "The telephone number provided with the consent"
    },
    "toStopPlace": {
      "type": "string",
      "description": "The stop place where the customer’s journey ended, in NeTEx format."
    }
  }
}

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-given-consent-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.