Skip to content
ajar.Get started

Journey load

trainline.journey.load

View connector

Load selected Trainline journey and payment offers

POST /v1/operations/trainline.journey.load

Not available · draft. Examples are illustrative and do not execute requests.

Inputs

ParameterExample typeExample value
search_idstring"00000000-0000-0000-0000-000000000000"
alternative_idsarray["11111111-1111-1111-1111-111111111111"]

Example input

{
  "search_id": "00000000-0000-0000-0000-000000000000",
  "alternative_ids": [
    "11111111-1111-1111-1111-111111111111"
  ]
}

Input schema

{
  "$id": "https://priv-platform.local/connectors/trainline/journey-load.input.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "alternative_ids": {
      "items": {
        "maxLength": 256,
        "minLength": 1,
        "type": "string"
      },
      "maxItems": 8,
      "minItems": 1,
      "type": "array",
      "uniqueItems": true
    },
    "search_id": {
      "maxLength": 256,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "search_id",
    "alternative_ids"
  ],
  "title": "Trainline journey-load input",
  "type": "object"
}