Check UK Delay Repay, UK261 flights and TfL refunds. Save claims and check commutes on request.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
Adds a flight to the person’s Untap account and returns the UK261 or EU261 verdict, the amount and the airline’s claim link. For past flights Untap checks AeroDataBox flight-status records; the status, delay and actual arrival fields are optional, and when left out Untap looks them up. Takes the airline’s two-letter IATA code (BA, U2, FR) and three-letter airport codes (LHR, BCN). When the airports given differ from the flight-status record, the result says so. Compensation applies to arrival delays of 3 hours or more and to cancellations. Requires sign-in to Untap.
Two-letter IATA airline code, e.g. "BA" for British Airways, "U2" for easyJet.
Three-letter IATA arrival airport code, e.g. "BCN".
Flight number including the airline prefix, e.g. "BA2551".
Three-letter IATA departure airport code, e.g. "LHR".
Passenger name as printed on the ticket, or null if not visible.
PNR / airline booking reference if available, otherwise null.
Scheduled arrival as ISO 8601 datetime.
Total fare paid in pence.
Scheduled departure as ISO 8601 datetime.
Optional. What happened to the flight, if known. When left out, Untap looks the flight up in AeroDataBox flight-status records.
Optional. Arrival delay in minutes, if known.
Optional. Actual arrival as an ISO 8601 datetime, if known.
This tool isn't marked read-only, so it may change something on the server or in an account you connected.
Adds a flight to the person’s Untap account and returns the UK261 or EU261 verdict, the amount and the airline’s claim link. For past flights Untap checks AeroDataBox flight-status records; the status, delay and actual arrival fields are optional, and when left out Untap looks them up. Takes the airline’s two-letter IATA code (BA, U2, FR) and three-letter airport codes (LHR, BCN). When the airports given differ from the flight-status record, the result says so. Compensation applies to arrival delays of 3 hours or more and to cancellations. Requires sign-in to Untap.
| Argument | Type | Description |
|---|---|---|
| status | any | Optional. What happened to the flight, if known. When left out, Untap looks the flight up in AeroDataBox flight-status records. |
| airline_iata* | string | Two-letter IATA airline code, e.g. "BA" for British Airways, "U2" for easyJet. |
| arrival_iata* | string | Three-letter IATA arrival airport code, e.g. "BCN". |
| delay_minutes | any | Optional. Arrival delay in minutes, if known. |
| flight_number* | string | Flight number including the airline prefix, e.g. "BA2551". |
| actual_arrival | string | null | Optional. Actual arrival as an ISO 8601 datetime, if known. |
| departure_iata* | string | Three-letter IATA departure airport code, e.g. "LHR". |
| passenger_name* | string | null | Passenger name as printed on the ticket, or null if not visible. |
| booking_reference* | string | null | PNR / airline booking reference if available, otherwise null. |
| scheduled_arrival* | string | Scheduled arrival as ISO 8601 datetime. |
| ticket_price_pence* | integer | Total fare paid in pence. |
| scheduled_departure* | string | Scheduled departure as ISO 8601 datetime. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"airline_iata",
"flight_number",
"departure_iata",
"arrival_iata",
"scheduled_departure",
"scheduled_arrival",
"ticket_price_pence",
"booking_reference",
"passenger_name"
],
"properties": {
"status": {
"anyOf": [
{
"enum": [
"on_time",
"delayed",
"cancelled",
"denied_boarding"
],
"type": "string"
},
{
"type": "null"
}
],
"description": "Optional. What happened to the flight, if known. When left out, Untap looks the flight up in AeroDataBox flight-status records."
},
"airline_iata": {
"type": "string",
"maxLength": 2,
"minLength": 2,
"description": "Two-letter IATA airline code, e.g. \"BA\" for British Airways, \"U2\" for easyJet."
},
"arrival_iata": {
"type": "string",
"maxLength": 3,
"minLength": 3,
"description": "Three-letter IATA arrival airport code, e.g. \"BCN\"."
},
"delay_minutes": {
"anyOf": [
{
"type": "integer",
"maximum": 2880,
"minimum": 0
},
{
"type": "null"
}
],
"description": "Optional. Arrival delay in minutes, if known."
},
"flight_number": {
"type": "string",
"description": "Flight number including the airline prefix, e.g. \"BA2551\"."
},
"actual_arrival": {
"type": [
"string",
"null"
],
"description": "Optional. Actual arrival as an ISO 8601 datetime, if known."
},
"departure_iata": {
"type": "string",
"maxLength": 3,
"minLength": 3,
"description": "Three-letter IATA departure airport code, e.g. \"LHR\"."
},
"passenger_name": {
"type": [
"string",
"null"
],
"description": "Passenger name as printed on the ticket, or null if not visible."
},
"booking_reference": {
"type": [
"string",
"null"
],
"description": "PNR / airline booking reference if available, otherwise null."
},
"scheduled_arrival": {
"type": "string",
"description": "Scheduled arrival as ISO 8601 datetime."
},
"ticket_price_pence": {
"type": "integer",
"maximum": 50000000,
"minimum": 1,
"description": "Total fare paid in pence."
},
"scheduled_departure": {
"type": "string",
"description": "Scheduled departure as ISO 8601 datetime."
}
},
"additionalProperties": false
}Adds a UK parking ticket (a council PCN or a private parking charge) to the person’s Untap account and runs Untap’s appeal-grounds engine. Returns the grounds that may apply, how confident the match is, the appeal route and deadline. Grounds are matched against the contravention, the location and observed_notes; with no observed_notes, only general grounds come back and the result is a possible appeal, not money owed. Requires sign-in to Untap.
| Argument | Type | Description |
|---|---|---|
| location* | string | Street or car park name where the contravention allegedly occurred. |
| appeal_url* | any | Direct https URL on the notice for online appeals, or null if none. |
| issued_date* | string | Date the notice was issued or served, ISO 8601 date. |
| issuer_name* | string | Issuer name as written, e.g. "London Borough of Camden" or "ParkingEye Ltd". |
| issuer_type* | string | Council = local authority issued under TMA 2004. Private = on private land by a parking operator (BPA or IPC member). |
| amount_pence* | integer | Full charge amount in pence. £65 = 6500. |
| full_deadline* |
Adds TfL contactless journeys to the person’s Untap account, up to 500 rows per call, and checks everything they have saved for incomplete journeys, missed Hopper fares and other overcharges. Each row carries flags for an incomplete journey, a revenue-inspection maximum fare, a free Hopper fare, a TfL correction and the daily or weekly cap, as shown on the statement. Journeys already saved are skipped. Refunds follow the same rule as the TfL check: an incomplete journey without a destination is an upper limit equal to the whole charge, and one with intended_destination is an estimate. Requires sign-in to Untap.
| Argument | Type | Description |
|---|---|---|
| journeys* | array | Every journey on the statement. Up to 500 per call. |
| card_last4* | string | null | Last 4 digits of the contactless card, if shown. |
| period_end* | string | null | Statement period end date YYYY-MM-DD. |
| period_start* | string | null | Statement period start date YYYY-MM-DD. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"card_last4",
"period_start",
"period_end",
"journeys"
],
"properties": {
"journeys": {
"type": "array",
"items": {
"type": "object",
"required": [
"date",
"start_time",
"end_time",
"mode",
"from_location",
"to_location",
"bus_route",
"fare_pence",
"is_max_fare",
"is_incomplete"
],
"properties": {
"date": {
"type": "string",
"description": "Journey date as YYYY-MM-DD."
},
"mode": {
"enum": [
"tube",
"bus",
"overground",
"elizabeth",
"dlr",
"tram",
"cable_car",
"thameslink",
"unknown"
],
"type": "string",
"description": "Transport mode for this row, or \"unknown\" when the statement does not say."
},
"end_time": {
"type": [
"string",
"null"
],
"description": "Tap-out time as HH:MM, or null."
},
"bus_route": {
"type": [
"string",
"null"
],
"description": "Bus route number for bus rows, otherwise null."
},
"fare_pence": {
"type": "integer",
"maximum": 100000,
"minimum": 0,
"description": "Charge for this row in pence. £2.20 = 220."
},
"start_time": {
"type": [
"string",
"null"
],
"description": "Tap-in time as HH:MM, or null."
},
"is_max_fare": {
"type": "boolean",
"description": "True if the statement labels this as a max-fare charge for a failed revenue inspection."
},
"to_location": {
"type": [
"string",
"null"
],
"description": "Tap-out station / stop name, or null for incomplete journeys."
},
"from_location": {
"type": [
"string",
"null"
],
"description": "Tap-in station / stop name, or null if not shown."
},
"is_incomplete": {
"type": "boolean",
"description": "True if this journey has no tap-out recorded (e.g. label \"Incomplete\" or \"No exit\")."
},
"is_hopper_free": {
"type": [
"boolean",
"null"
],
"description": "Optional. True when the statement shows this fare as a free Hopper fare (a second bus or tram within 60 minutes)."
},
"is_daily_cap_hit": {
"type": [
"boolean",
"null"
],
"description": "Optional. True when the statement marks this row as the one where the daily cap was reached."
},
"is_auto_corrected": {
"type": [
"boolean",
"null"
],
"description": "Optional. True when the statement says TfL has already corrected this journey (for example \"Auto-completed\" or \"Adjusted\")."
},
"is_weekly_cap_hit": {
"type": [
"boolean",
"null"
],
"description": "Optional. True when the statement marks this row as the one where the weekly cap was reached."
},
"intended_destination": {
"anyOf": [
{
"type": "string",
"maxLength": 80
},
{
"type": "null"
}
],
"description": "Optional, for an incomplete journey with no touch out: the station the person was travelling to. With it, the refund is estimated as the fare charged minus the usual fare to that station. Without it, the figure is an upper limit equal to the whole charge."
}
},
"additionalProperties": false
},
"maxItems": 500,
"minItems": 1,
"description": "Every journey on the statement. Up to 500 per call."
},
"card_last4": {
"type": [
"string",
"null"
],
"description": "Last 4 digits of the contactless card, if shown."
},
"period_end": {
"type": [
"string",
"null"
],
"description": "Statement period end date YYYY-MM-DD."
},
"period_start": {
"type": [
"string",
"null"
],
"description": "Statement period start date YYYY-MM-DD."
}
},
"additionalProperties": false
}Adds a UK train booking to the person’s Untap account and works out Delay Repay for it. One booking per call, with each journey in legs (one for a single, two for a return, in travel order). Untap checks National Rail’s Historical Service Performance records for each journey; the delay, actual arrival and cancellation fields are optional, and when left out Untap looks them up. Operators accept one journey per claim form, so a return with both directions late means two claims. A train journey that is already saved is returned as it is, not saved twice. Requires sign-in to Untap.
| Argument | Type | Description |
|---|---|---|
| legs* | array | Each journey on this booking, in travel order: one for a single, two for a return (outward first), more for a multi-stop booking. Untap works out Delay Repay for each journey and adds them up. |
| season_type | any | Season tickets only: how long the season runs. The operator divides the season price into single journeys (for example annual 464, monthly 40, weekly 10, flexi 16) and pays a share of one journey. When left out, the result gives the percentage and the method but no amount. |
| ticket_type* | string | Ticket type as printed. For "return" and "open_return" the single fare is half the price paid; for "season" the amount is a share of one journey value (see season_type); every other type uses the full price as the single fare. |
| booking_reference* | string | null | Booking reference if available, otherwise null. |
| ticket_price_pence* |
Checks a saved train route against National Rail’s running records for one travel date and works out Delay Repay: the matched train, the delay, the amount, the deadline and a claim pack. When several trains match, the result lists them, each with a service_id. A saved route does not show that the person travelled that day, and the result says so. Nothing is saved or filed. Requires sign-in to Untap.
| Argument | Type | Description |
|---|---|---|
| date* | string | The travel date to check, preferably YYYY-MM-DD. "yesterday" also works. |
| commute_id* | string | The id of a saved commute. |
| service_id | any | The service_id of a train listed in an earlier result. With it, that train is checked directly. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"commute_id",
"date"
],
"properties": {
"date": {
"type": "string",
"maxLength": 40,
"minLength": 3,
"description": "The travel date to check, preferably YYYY-MM-DD. \"yesterday\" also works."
},
"commute_id": {
"type": "string",
"format": "uuid",
"description": "The id of a saved commute."
},
"service_id": {
"anyOf": [
{
"type": "string",
"maxLength": 40
},
{
"type": "null"
}
],
"description": "The service_id of a train listed in an earlier result. With it, that train is checked directly."
}
},
"additionalProperties": false
}Works out compensation for a delayed or cancelled flight under UK261 or EU261. Takes the flight number and date. What happened comes from flight-status records, which cover about the last year, or from what_happened and arrival_delay_minutes when given. Returns the matched route, the arrival delay, the distance band, the amount per passenger, the extraordinary-circumstances caveat, the airline’s claim page, the dispute body for a refused claim, deadline guidance, a claim pack and the details needed to save the claim to an Untap account. When the airports given differ from the flight-status record, the result says so. No sign-in needed. Nothing is saved to an account. A record of the check, with no name, account or IP address, is kept for a year so answers can be verified.
| Argument | Type | Description |
|---|---|---|
| date* | string | Date the flight was due to depart, local time. YYYY-MM-DD is best. |
| price_paid | any | Optional, in pounds: "£180" or 180. Not used for the amount, which is fixed in law, but needed to save the claim to an account. |
| to_airport | any | Three-letter arrival airport code, if known: "BCN". |
| from_airport | any | Three-letter departure airport code, if known: "LGW". Helps pick the right flight on multi-stop numbers. |
| flight_number* | string | Airline code and number, as on the booking: "BA2551", "U2 8123". |
Checks Transport for London contactless or Oyster journeys for overcharges: incomplete journeys (no touch out, so the maximum fare was charged) and missed Hopper fares. Takes journey rows from a journey history, or the text of the CSV download from a TfL account. PDFs and images are not accepted. TfL refunds an incomplete journey as the maximum fare minus the fare for the journey actually made. Without the destination, the refund shown is an upper limit equal to the whole charge; with intended_destination on the row, it is an estimate from the usual fare to that station. Returns the refundable journeys and total, older journeys outside TfL’s 8 week window, how to claim in the TfL account, a claim pack and the details needed to save the journeys to an Untap account. It does not check service delays on the Tube, DLR, Elizabeth line or Overground, or Santander Cycles; the result lists these under not_checked. No sign-in needed. Nothing is saved to an account. A record of the check, with no name, account or IP address, is kept for a year so answers can be verified.
| Argument | Type | Description |
|---|---|---|
| csv_text | any | The text of the CSV journey history downloaded from a TfL account. Takes priority over journeys. |
| journeys | any | Journey rows from a TfL contactless or Oyster journey history. Used when csv_text is not given. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"csv_text": {
"anyOf": [
{
"type": "string",
"maxLength": 300000
},
{
"type": "null"
}
],
"description": "The text of the CSV journey history downloaded from a TfL account. Takes priority over journeys."
},
"journeys": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"required": [
"date",
"start_time",
"end_time",
"mode",
"from_location",
"to_location",
"bus_route",
"fare_pence",
"is_max_fare",
"is_incomplete"
],
"properties": {
"date": {
"type": "string",
"description": "Journey date as YYYY-MM-DD."
},
"mode": {
"enum": [
"tube",
"bus",
"overground",
"elizabeth",
"dlr",
"tram",
"cable_car",
"thameslink",
"unknown"
],
"type": "string",
"description": "Transport mode for this row, or \"unknown\" when the statement does not say."
},
"end_time": {
"type": [
"string",
"null"
],
"description": "Tap-out time as HH:MM, or null."
},
"bus_route": {
"type": [
"string",
"null"
],
"description": "Bus route number for bus rows, otherwise null."
},
"fare_pence": {
"type": "integer",
"maximum": 100000,
"minimum": 0,
"description": "Charge for this row in pence. £2.20 = 220."
},
"start_time": {
"type": [
"string",
"null"
],
"description": "Tap-in time as HH:MM, or null."
},
"is_max_fare": {
"type": "boolean",
"description": "True if the statement labels this as a max-fare charge for a failed revenue inspection."
},
"to_location": {
"type": [
"string",
"null"
],
"description": "Tap-out station / stop name, or null for incomplete journeys."
},
"from_location": {
"type": [
"string",
"null"
],
"description": "Tap-in station / stop name, or null if not shown."
},
"is_incomplete": {
"type": "boolean",
"description": "True if this journey has no tap-out recorded (e.g. label \"Incomplete\" or \"No exit\")."
},
"is_hopper_free": {
"type": [
"boolean",
"null"
],
"description": "Optional. True when the statement shows this fare as a free Hopper fare (a second bus or tram within 60 minutes)."
},
"is_daily_cap_hit": {
"type": [
"boolean",
"null"
],
"description": "Optional. True when the statement marks this row as the one where the daily cap was reached."
},
"is_auto_corrected": {
"type": [
"boolean",
"null"
],
"description": "Optional. True when the statement says TfL has already corrected this journey (for example \"Auto-completed\" or \"Adjusted\")."
},
"is_weekly_cap_hit": {
"type": [
"boolean",
"null"
],
"description": "Optional. True when the statement marks this row as the one where the weekly cap was reached."
},
"intended_destination": {
"anyOf": [
{
"type": "string",
"maxLength": 80
},
{
"type": "null"
}
],
"description": "Optional, for an incomplete journey with no touch out: the station the person was travelling to. With it, the refund is estimated as the fare charged minus the usual fare to that station. Without it, the figure is an upper limit equal to the whole charge."
}
},
"additionalProperties": false
},
"maxItems": 500
},
{
"type": "null"
}
],
"description": "Journey rows from a TfL contactless or Oyster journey history. Used when csv_text is not given."
}
},
"additionalProperties": false
}Checks a late or cancelled train in Great Britain against National Rail’s historic running records and works out Delay Repay. Takes the two stations (names, partial names or three-letter codes), the date and roughly when the train left; the operator, ticket type and price paid are optional. Returns the matched train with scheduled and actual times, the delay at the destination, the operator and its scheme, the amount (or the percentage when no price is given), the claim deadline, a claim pack with the value for each form field, and the details needed to save the claim to an Untap account. When several trains fit, the result lists them, each with a service_id. The records cover roughly the last year and each day appears the day after. They hold direct trains only, so a journey with a change is checked one train at a time. When nothing could be learned, status is data_not_available with delay_known false, a reason, retryable and retry_after_seconds or try_again_on. When National Rail is slow the lookup carries on in the background, and a retry after retry_after_seconds is answered from the cache. No sign-in needed. Nothing is saved to an account. A record of the check, with no name, account or IP address, is kept for a year so answers can be verified.
| Argument | Type | Description |
|---|---|---|
| to* | string | Station the person got off at, in the same forms. |
| date* | string | Date of travel. YYYY-MM-DD is best; "25/09/2026", "25 September", "yesterday" and "last Friday" also work. |
| from* | string | Station the person got on at. A name, part of a name or a three-letter code: "Brighton", "Kings Cross", "BTN". |
Deletes every booking, statement, saved commute and claim in the person’s Untap account, in two steps. A call with confirm=false deletes nothing and returns a summary of what would be deleted, with a confirmation_token valid for 5 minutes. A call with confirm=true and that token deletes the data permanently; each token works once. The account itself is kept so Untap can still be used; deleting the account too is done at untap.money/data. Requires sign-in to Untap.
| Argument | Type | Description |
|---|---|---|
| confirm | boolean | false returns a preview of what would be deleted and a confirmation_token, and deletes nothing. true deletes, and works only with an unexpired confirmation_token from a preview. |
| confirmation_token | string | null | The confirmation_token from a preview. Required when confirm is true; each token works once. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"confirm": {
"type": "boolean",
"default": false,
"description": "false returns a preview of what would be deleted and a confirmation_token, and deletes nothing. true deletes, and works only with an unexpired confirmation_token from a preview."
},
"confirmation_token": {
"type": [
"string",
"null"
],
"default": null,
"description": "The confirmation_token from a preview. Required when confirm is true; each token works once."
}
},
"additionalProperties": false
}Takes a plain-language description of what happened (a late or cancelled train, a delayed or cancelled flight, a TfL overcharge, a parking ticket, a council tax, water or broadband problem) and returns the UK refund and compensation schemes Untap covers that may apply. For each one it gives the fact that decides it, the Untap check that covers it and Untap’s free guide. It also picks out any flight number, date, time or amount in the text. Matching is by keywords, not a full reading of the situation, so the list is a starting point rather than a verdict. No sign-in needed. Nothing is saved to an account. A record of the check, with no name, account or IP address, is kept for a year so answers can be verified.
| Argument | Type | Description |
|---|---|---|
| situation* | string | What happened, in the person’s own words. For example: "my train from Brighton to Victoria was 40 minutes late on Monday" or "I think my council tax band is wrong". |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"situation"
],
"properties": {
"situation": {
"type": "string",
"maxLength": 4000,
"minLength": 3,
"description": "What happened, in the person’s own words. For example: \"my train from Brighton to Victoria was 40 minutes late on Monday\" or \"I think my council tax band is wrong\"."
}
},
"additionalProperties": false
}Returns how to submit one train, flight or TfL compensation claim on the company’s own form. Takes the claim type and the train operator or airline, with the journey date, ticket type, where it was booked and the airports as optional extras. Returns the eligibility rules for that company and claim type, the official claim page (marked unverified where Untap could not confirm it), numbered submission steps, each form field with where to find its value, the evidence to attach, the deadline (as a date when the journey date is given), any company rule on who may submit, what to expect after submitting and when to chase, the escalation route (operator to the Rail Ombudsman; airline to its dispute scheme, the CAA or a national enforcement body; TfL to London TravelWatch) and the sources with the dates they were checked. Covers every train operator in Untap’s Delay Repay engine, TfL and the airlines UK travellers fly most. Facts Untap has not verified come back marked as unknown rather than estimated. No sign-in needed. Nothing is saved to an account. A record of the check, with no name, account or IP address, is kept for a year so answers can be verified.
| Argument | Type | Description |
|---|---|---|
| company | any | The train operator or airline, by name or code as people say it: "Southern", "LNER", "easyJet", "BA", "U2". Not needed for TfL. |
| booked_via | any | Where the ticket was bought: from the operator or airline itself, from a ticket retailer such as Trainline, through a travel agent, or as part of a package holiday. |
| claim_type* | string | What the claim is for: a late or cancelled train, a delayed or cancelled flight, denied boarding, a TfL incomplete journey or another TfL overcharge. |
Returns one train operator’s Delay Repay rules: the delay at which it starts paying, each payout tier, the claim deadline, the link to its claim form, any automatic or one-click scheme, and the date the rules were last checked against the operator’s own page. Accepts the operator’s name as people say it, such as Avanti, GWR or Southern. No sign-in needed.
| Argument | Type | Description |
|---|---|---|
| operator* | string | Train company name as people say it: "Avanti", "GWR", "Southern", "LNER", or a two-letter operator code. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"operator"
],
"properties": {
"operator": {
"type": "string",
"maxLength": 60,
"minLength": 2,
"description": "Train company name as people say it: \"Avanti\", \"GWR\", \"Southern\", \"LNER\", or a two-letter operator code."
}
},
"additionalProperties": false
}Lists the person’s saved train routes with their ids, usual times, days and fares. Makes no National Rail lookups. Requires sign-in to Untap.
| Argument | Type | Description |
|---|---|---|
| include_stopped | boolean | Include stopped routes so they can be restored. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"include_stopped": {
"type": "boolean",
"default": false,
"description": "Include stopped routes so they can be restored."
}
},
"additionalProperties": false
}Lists the claims in the person’s Untap account with amounts, deadlines, the verdict and their progress (not sent, sent, paid, rejected or archived). By default it shows claims that are still open; include_closed adds paid, rejected and archived ones. Requires sign-in to Untap.
| Argument | Type | Description |
|---|---|---|
| limit | integer | Most rows to return. Defaults to 25. |
| category | any | Restricts the list to one category. When left out, all categories are listed. |
| include_closed | boolean | Also show claims marked paid, rejected or archived, and ones with nothing to claim. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"limit": {
"type": "integer",
"default": 25,
"maximum": 100,
"minimum": 1,
"description": "Most rows to return. Defaults to 25."
},
"category": {
"anyOf": [
{
"enum": [
"train",
"flight",
"tfl",
"parking"
],
"type": "string"
},
{
"type": "null"
}
],
"description": "Restricts the list to one category. When left out, all categories are listed."
},
"include_closed": {
"type": "boolean",
"default": false,
"description": "Also show claims marked paid, rejected or archived, and ones with nothing to claim."
}
},
"additionalProperties": false
}Lists the savings rows in the person’s Untap account, filtered by category and status. Each row has the verdict status (claimable, pending_check, not_eligible and so on) and user_progress, what the person has recorded since: none, submitted (sent), received (paid) or archived. Requires sign-in to Untap.
| Argument | Type | Description |
|---|---|---|
| limit | integer | Maximum number of savings rows to return. Defaults to 25, capped at 100. |
| status* | any | Restrict to a single status, or null for all. |
| category* | any | Restrict to a single category, or null for all categories. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"category",
"status"
],
"properties": {
"limit": {
"type": "integer",
"default": 25,
"maximum": 100,
"minimum": 1,
"description": "Maximum number of savings rows to return. Defaults to 25, capped at 100."
},
"status": {
"anyOf": [
{
"enum": [
"claimable",
"pending_check",
"not_eligible",
"submitted",
"received",
"expired"
],
"type": "string"
},
{
"type": "null"
}
],
"description": "Restrict to a single status, or null for all."
},
"category": {
"anyOf": [
{
"enum": [
"train",
"flight",
"tfl",
"parking"
],
"type": "string"
},
{
"type": "null"
}
],
"description": "Restrict to a single category, or null for all categories."
}
},
"additionalProperties": false
}Saves the result of a train, flight or TfL check to the person’s Untap account, so it appears on their dashboard with its deadline. Accepts the save_claim arguments returned by a check, with the price paid added where the check listed it as missing. The verdict is worked out again from those facts rather than copied. A train journey that is already saved is returned as it is, not saved twice. Requires sign-in to Untap.
| Argument | Type | Description |
|---|---|---|
| tfl | any | For category "tfl": the journeys, in the shape a TfL check returns in save_claim.arguments.tfl. |
| train | any | For category "train": the train booking, in the shape a train check returns in save_claim.arguments.train, with ticket_price_pence set. |
| flight | any | For category "flight": the flight, in the shape a flight check returns in save_claim.arguments.flight, with ticket_price_pence set. |
| category* | string | Which kind of check the claim came from. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"category"
],
"properties": {
"tfl": {
"anyOf": [
{
"type": "object",
"required": [
"card_last4",
"period_start",
"period_end",
"journeys"
],
"properties": {
"journeys": {
"type": "array",
"items": {
"type": "object",
"required": [
"date",
"start_time",
"end_time",
"mode",
"from_location",
"to_location",
"bus_route",
"fare_pence",
"is_max_fare",
"is_incomplete"
],
"properties": {
"date": {
"type": "string",
"description": "Journey date as YYYY-MM-DD."
},
"mode": {
"enum": [
"tube",
"bus",
"overground",
"elizabeth",
"dlr",
"tram",
"cable_car",
"thameslink",
"unknown"
],
"type": "string",
"description": "Transport mode for this row, or \"unknown\" when the statement does not say."
},
"end_time": {
"type": [
"string",
"null"
],
"description": "Tap-out time as HH:MM, or null."
},
"bus_route": {
"type": [
"string",
"null"
],
"description": "Bus route number for bus rows, otherwise null."
},
"fare_pence": {
"type": "integer",
"maximum": 100000,
"minimum": 0,
"description": "Charge for this row in pence. £2.20 = 220."
},
"start_time": {
"type": [
"string",
"null"
],
"description": "Tap-in time as HH:MM, or null."
},
"is_max_fare": {
"type": "boolean",
"description": "True if the statement labels this as a max-fare charge for a failed revenue inspection."
},
"to_location": {
"type": [
"string",
"null"
],
"description": "Tap-out station / stop name, or null for incomplete journeys."
},
"from_location": {
"type": [
"string",
"null"
],
"description": "Tap-in station / stop name, or null if not shown."
},
"is_incomplete": {
"type": "boolean",
"description": "True if this journey has no tap-out recorded (e.g. label \"Incomplete\" or \"No exit\")."
},
"is_hopper_free": {
"type": [
"boolean",
"null"
],
"description": "Optional. True when the statement shows this fare as a free Hopper fare (a second bus or tram within 60 minutes)."
},
"is_daily_cap_hit": {
"type": [
"boolean",
"null"
],
"description": "Optional. True when the statement marks this row as the one where the daily cap was reached."
},
"is_auto_corrected": {
"type": [
"boolean",
"null"
],
"description": "Optional. True when the statement says TfL has already corrected this journey (for example \"Auto-completed\" or \"Adjusted\")."
},
"is_weekly_cap_hit": {
"type": [
"boolean",
"null"
],
"description": "Optional. True when the statement marks this row as the one where the weekly cap was reached."
},
"intended_destination": {
"anyOf": [
{
"type": "string",
"maxLength": 80
},
{
"type": "null"
}
],
"description": "Optional, for an incomplete journey with no touch out: the station the person was travelling to. With it, the refund is estimated as the fare charged minus the usual fare to that station. Without it, the figure is an upper limit equal to the whole charge."
}
},
"additionalProperties": false
},
"maxItems": 500,
"minItems": 1,
"description": "Every journey on the statement. Up to 500 per call."
},
"card_last4": {
"type": [
"string",
"null"
],
"description": "Last 4 digits of the contactless card, if shown."
},
"period_end": {
"type": [
"string",
"null"
],
"description": "Statement period end date YYYY-MM-DD."
},
"period_start": {
"type": [
"string",
"null"
],
"description": "Statement period start date YYYY-MM-DD."
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "For category \"tfl\": the journeys, in the shape a TfL check returns in save_claim.arguments.tfl."
},
"train": {
"anyOf": [
{
"type": "object",
"required": [
"ticket_price_pence",
"ticket_type",
"booking_reference",
"legs"
],
"properties": {
"legs": {
"type": "array",
"items": {
"type": "object",
"required": [
"operator_toc_code",
"departure_station",
"arrival_station",
"scheduled_departure",
"scheduled_arrival"
],
"properties": {
"delay_minutes": {
"anyOf": [
{
"type": "integer",
"maximum": 1440,
"minimum": 0
},
{
"type": "null"
}
],
"description": "Optional. Delay at arrival for this journey, in minutes, if known. When left out, Untap looks it up in National Rail records."
},
"was_cancelled": {
"type": [
"boolean",
"null"
],
"description": "Optional. True when this journey was cancelled. When set, no National Rail lookup is made."
},
"actual_arrival": {
"type": [
"string",
"null"
],
"description": "Optional. Actual arrival for this journey as an ISO 8601 datetime, if known. When left out, Untap looks it up."
},
"arrival_station": {
"type": "string",
"minLength": 1,
"description": "Full arrival station name, e.g. \"Edinburgh Waverley\"."
},
"departure_station": {
"type": "string",
"minLength": 1,
"description": "Full departure station name, e.g. \"London Kings Cross\"."
},
"operator_toc_code": {
"enum": [
"VT",
"CC",
"CH",
"EM",
"GX",
"GN",
"GW",
"LE",
"NT",
"SW",
"SE",
"SN",
"TL",
"TP",
"AW",
"LM",
"LN",
"XC",
"GR",
"SR",
"LD",
"HT",
"CS"
],
"type": "string",
"description": "National Rail two-letter operator code for this journey: VT=Avanti West Coast, CC=c2c, CH=Chiltern Railways, EM=East Midlands Railway, GX=Gatwick Express, GN=Great Northern, GW=Great Western Railway, LE=Greater Anglia, NT=Northern Trains, SW=South Western Railway, SE=Southeastern, SN=Southern, TL=Thameslink, TP=TransPennine Express, AW=Transport for Wales, LM=West Midlands Railway, LN=London Northwestern Railway, XC=CrossCountry, GR=LNER, SR=ScotRail, LD=Lumo, HT=Hull Trains, CS=Caledonian Sleeper"
},
"scheduled_arrival": {
"type": "string",
"description": "Scheduled arrival as ISO 8601 datetime."
},
"scheduled_departure": {
"type": "string",
"description": "Scheduled departure as ISO 8601 datetime."
}
},
"additionalProperties": false
},
"maxItems": 8,
"minItems": 1,
"description": "Each journey on this booking, in travel order: one for a single, two for a return (outward first), more for a multi-stop booking. Untap works out Delay Repay for each journey and adds them up."
},
"season_type": {
"anyOf": [
{
"enum": [
"weekly",
"monthly",
"quarterly",
"six_monthly",
"annual",
"flexi"
],
"type": "string"
},
{
"type": "null"
}
],
"description": "Season tickets only: how long the season runs. The operator divides the season price into single journeys (for example annual 464, monthly 40, weekly 10, flexi 16) and pays a share of one journey. When left out, the result gives the percentage and the method but no amount."
},
"ticket_type": {
"enum": [
"single",
"return",
"open_return",
"advance",
"anytime",
"off_peak",
"super_off_peak",
"season",
"other"
],
"type": "string",
"description": "Ticket type as printed. For \"return\" and \"open_return\" the single fare is half the price paid; for \"season\" the amount is a share of one journey value (see season_type); every other type uses the full price as the single fare."
},
"booking_reference": {
"type": [
"string",
"null"
],
"description": "Booking reference if available, otherwise null."
},
"ticket_price_pence": {
"type": "integer",
"maximum": 1000000,
"minimum": 1,
"description": "Total fare paid in pence for the whole booking. £62.00 = 6200."
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "For category \"train\": the train booking, in the shape a train check returns in save_claim.arguments.train, with ticket_price_pence set."
},
"flight": {
"anyOf": [
{
"type": "object",
"required": [
"airline_iata",
"flight_number",
"departure_iata",
"arrival_iata",
"scheduled_departure",
"scheduled_arrival",
"ticket_price_pence",
"booking_reference",
"passenger_name"
],
"properties": {
"status": {
"anyOf": [
{
"enum": [
"on_time",
"delayed",
"cancelled",
"denied_boarding"
],
"type": "string"
},
{
"type": "null"
}
],
"description": "Optional. What happened to the flight, if known. When left out, Untap looks the flight up in AeroDataBox flight-status records."
},
"airline_iata": {
"type": "string",
"maxLength": 2,
"minLength": 2,
"description": "Two-letter IATA airline code, e.g. \"BA\" for British Airways, \"U2\" for easyJet."
},
"arrival_iata": {
"type": "string",
"maxLength": 3,
"minLength": 3,
"description": "Three-letter IATA arrival airport code, e.g. \"BCN\"."
},
"delay_minutes": {
"anyOf": [
{
"type": "integer",
"maximum": 2880,
"minimum": 0
},
{
"type": "null"
}
],
"description": "Optional. Arrival delay in minutes, if known."
},
"flight_number": {
"type": "string",
"description": "Flight number including the airline prefix, e.g. \"BA2551\"."
},
"actual_arrival": {
"type": [
"string",
"null"
],
"description": "Optional. Actual arrival as an ISO 8601 datetime, if known."
},
"departure_iata": {
"type": "string",
"maxLength": 3,
"minLength": 3,
"description": "Three-letter IATA departure airport code, e.g. \"LHR\"."
},
"passenger_name": {
"type": [
"string",
"null"
],
"description": "Passenger name as printed on the ticket, or null if not visible."
},
"booking_reference": {
"type": [
"string",
"null"
],
"description": "PNR / airline booking reference if available, otherwise null."
},
"scheduled_arrival": {
"type": "string",
"description": "Scheduled arrival as ISO 8601 datetime."
},
"ticket_price_pence": {
"type": "integer",
"maximum": 50000000,
"minimum": 1,
"description": "Total fare paid in pence."
},
"scheduled_departure": {
"type": "string",
"description": "Scheduled departure as ISO 8601 datetime."
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "For category \"flight\": the flight, in the shape a flight check returns in save_claim.arguments.flight, with ticket_price_pence set."
},
"category": {
"enum": [
"train",
"flight",
"tfl"
],
"type": "string",
"description": "Which kind of check the claim came from."
}
},
"additionalProperties": false
}Saves or updates one direction of a usual train journey (a commute) in the person’s Untap account: stations, usual departure time, travel days and day-ticket fare. An outward and a homeward journey are two separate routes. Saving the same route and time again updates it. Nothing is checked automatically; a saved route is checked only on request. Day tickets only; season tickets are not supported. Requires sign-in to Untap.
| Argument | Type | Description |
|---|---|---|
| to* | string | Arrival station name or three-letter code. |
| from* | string | Departure station name or three-letter code. |
| label | any | Optional short name such as Morning commute. |
| weekdays | array | Usual travel days: Monday=1 through Sunday=7. Informational only; no automatic checks. |
| commute_id | any | The id of an existing commute in this account, to update or restore it. When left out, a new route is saved. |
| ticket_type | string | Day ticket type. For return, the price is the whole return fare. Season tickets are not supported by saved commutes. |
| departure_time* | string | Usual UK departure time, for example 08:05 or 8am. |
Reads up to 25 emails (sender, subject, date and plain-text body) and picks out the ones that point to a train, flight or TfL claim: booking confirmations, delay and cancellation notices, airline schedule changes and denied boarding, TfL incomplete journey and maximum fare emails, and claim acknowledgements and decisions. Detection is by sender domain, subject pattern and fixed phrases, with no language model. For each match it returns the type, the signals that matched, the booking reference, dates, flight number, stations or airports, times and amounts it could read, a confidence level, a deadline hint, and the Untap check that fits with its arguments filled in and any missing ones listed. Emails with no signal are listed by position. Each body is read up to 20,000 characters. Nothing from the emails is stored; the usage record holds counts only. No sign-in needed.
| Argument | Type | Description |
|---|---|---|
| emails* | array | Up to 25 emails, each with its sender, subject, date and plain-text body. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"emails"
],
"properties": {
"emails": {
"type": "array",
"items": {
"type": "object",
"required": [
"from",
"subject",
"date",
"body_text"
],
"properties": {
"date": {
"type": "string",
"maxLength": 100,
"description": "When the email was sent: ISO 8601 or the raw Date header."
},
"from": {
"type": "string",
"maxLength": 500,
"description": "The From line as received, such as \"Trainline <[email protected]>\"."
},
"subject": {
"type": "string",
"maxLength": 1000,
"description": "The subject line."
},
"body_text": {
"type": "string",
"maxLength": 200000,
"description": "The plain-text body. Only the first 20,000 characters are read."
}
},
"additionalProperties": false
},
"maxItems": 25,
"minItems": 1,
"description": "Up to 25 emails, each with its sender, subject, date and plain-text body."
}
},
"additionalProperties": false
}Hides a saved train route from the active list. The route is kept and can be restored by saving it again with its commute_id. No claims or bookings change. Requires sign-in to Untap.
| Argument | Type | Description |
|---|---|---|
| commute_id* | string | The id of a saved commute. The route is kept and can be restored. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"commute_id"
],
"properties": {
"commute_id": {
"type": "string",
"format": "uuid",
"description": "The id of a saved commute. The route is kept and can be restored."
}
},
"additionalProperties": false
}Records progress on a claim in the person’s Untap account: sent (submitted to the operator or airline), paid (with the amount received, if known), rejected, or archived. Takes the claim_id given when the claim was saved or listed. This updates Untap’s record only; it does not contact the operator or airline. Requires sign-in to Untap.
| Argument | Type | Description |
|---|---|---|
| note | any | Optional short note, such as the operator’s reference or the reason given for a refusal. |
| status* | string | sent: submitted to the operator or airline. paid: money received. rejected: the claim was refused. archived: hide it without an outcome. |
| claim_id* | string | The claim_id given when the claim was saved or listed. |
| amount_received_pence | any | For paid: the amount actually received, in pence. £12.40 = 1240. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"claim_id",
"status"
],
"properties": {
"note": {
"anyOf": [
{
"type": "string",
"maxLength": 500
},
{
"type": "null"
}
],
"description": "Optional short note, such as the operator’s reference or the reason given for a refusal."
},
"status": {
"enum": [
"sent",
"paid",
"rejected",
"archived"
],
"type": "string",
"description": "sent: submitted to the operator or airline. paid: money received. rejected: the claim was refused. archived: hide it without an outcome."
},
"claim_id": {
"type": "string",
"format": "uuid",
"description": "The claim_id given when the claim was saved or listed."
},
"amount_received_pence": {
"anyOf": [
{
"type": "integer",
"maximum": 10000000,
"minimum": 0
},
{
"type": "null"
}
],
"description": "For paid: the amount actually received, in pence. £12.40 = 1240."
}
},
"additionalProperties": false
}| string | null |
| Last date on the notice for paying the full amount or lodging an appeal, as an ISO date. |
| pcn_reference* | string | PCN or notice reference number printed on the document. |
| observed_notes* | array | Short phrases from the notice or the person’s account that may support an appeal, such as unclear signs, a broken machine or a few minutes over. The appeal-grounds engine matches against these; with none, it can only suggest general grounds. |
| discount_deadline* | string | null | ISO date by which the discount applies, or null if not stated. |
| contravention_code* | string | null | Council contravention code, e.g. "01", "12", "MR11". Null for private tickets. |
| contravention_date* | string | Date the contravention allegedly occurred, ISO 8601 date. |
| vehicle_registration* | string | null | Vehicle registration mark, or null if not shown. |
| has_windscreen_notice* | boolean | True if a paper notice was placed on the windscreen. False if it arrived in the post only. |
| discounted_amount_pence* | any | Reduced amount in pence if paid promptly (usually 50% within 14 or 21 days). Null if none stated. |
| contravention_description* | string | Full text of the alleged contravention as printed on the notice. |
| keeper_notice_served_date* | string | null | Private only: date the Notice to Keeper was served. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"pcn_reference",
"issuer_type",
"issuer_name",
"contravention_code",
"contravention_description",
"vehicle_registration",
"location",
"contravention_date",
"issued_date",
"amount_pence",
"discounted_amount_pence",
"discount_deadline",
"full_deadline",
"appeal_url",
"has_windscreen_notice",
"keeper_notice_served_date",
"observed_notes"
],
"properties": {
"location": {
"type": "string",
"description": "Street or car park name where the contravention allegedly occurred."
},
"appeal_url": {
"anyOf": [
{
"type": "string",
"format": "uri",
"pattern": "^https\\:\\/\\/"
},
{
"type": "null"
}
],
"description": "Direct https URL on the notice for online appeals, or null if none."
},
"issued_date": {
"type": "string",
"description": "Date the notice was issued or served, ISO 8601 date."
},
"issuer_name": {
"type": "string",
"description": "Issuer name as written, e.g. \"London Borough of Camden\" or \"ParkingEye Ltd\"."
},
"issuer_type": {
"enum": [
"council",
"private"
],
"type": "string",
"description": "Council = local authority issued under TMA 2004. Private = on private land by a parking operator (BPA or IPC member)."
},
"amount_pence": {
"type": "integer",
"minimum": 1,
"description": "Full charge amount in pence. £65 = 6500."
},
"full_deadline": {
"type": [
"string",
"null"
],
"description": "Last date on the notice for paying the full amount or lodging an appeal, as an ISO date."
},
"pcn_reference": {
"type": "string",
"description": "PCN or notice reference number printed on the document."
},
"observed_notes": {
"type": "array",
"items": {
"type": "string"
},
"description": "Short phrases from the notice or the person’s account that may support an appeal, such as unclear signs, a broken machine or a few minutes over. The appeal-grounds engine matches against these; with none, it can only suggest general grounds."
},
"discount_deadline": {
"type": [
"string",
"null"
],
"description": "ISO date by which the discount applies, or null if not stated."
},
"contravention_code": {
"type": [
"string",
"null"
],
"description": "Council contravention code, e.g. \"01\", \"12\", \"MR11\". Null for private tickets."
},
"contravention_date": {
"type": "string",
"description": "Date the contravention allegedly occurred, ISO 8601 date."
},
"vehicle_registration": {
"type": [
"string",
"null"
],
"description": "Vehicle registration mark, or null if not shown."
},
"has_windscreen_notice": {
"type": "boolean",
"description": "True if a paper notice was placed on the windscreen. False if it arrived in the post only."
},
"discounted_amount_pence": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Reduced amount in pence if paid promptly (usually 50% within 14 or 21 days). Null if none stated."
},
"contravention_description": {
"type": "string",
"description": "Full text of the alleged contravention as printed on the notice."
},
"keeper_notice_served_date": {
"type": [
"string",
"null"
],
"description": "Private only: date the Notice to Keeper was served."
}
},
"additionalProperties": false
}| integer |
| Total fare paid in pence for the whole booking. £62.00 = 6200. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"ticket_price_pence",
"ticket_type",
"booking_reference",
"legs"
],
"properties": {
"legs": {
"type": "array",
"items": {
"type": "object",
"required": [
"operator_toc_code",
"departure_station",
"arrival_station",
"scheduled_departure",
"scheduled_arrival"
],
"properties": {
"delay_minutes": {
"anyOf": [
{
"type": "integer",
"maximum": 1440,
"minimum": 0
},
{
"type": "null"
}
],
"description": "Optional. Delay at arrival for this journey, in minutes, if known. When left out, Untap looks it up in National Rail records."
},
"was_cancelled": {
"type": [
"boolean",
"null"
],
"description": "Optional. True when this journey was cancelled. When set, no National Rail lookup is made."
},
"actual_arrival": {
"type": [
"string",
"null"
],
"description": "Optional. Actual arrival for this journey as an ISO 8601 datetime, if known. When left out, Untap looks it up."
},
"arrival_station": {
"type": "string",
"minLength": 1,
"description": "Full arrival station name, e.g. \"Edinburgh Waverley\"."
},
"departure_station": {
"type": "string",
"minLength": 1,
"description": "Full departure station name, e.g. \"London Kings Cross\"."
},
"operator_toc_code": {
"enum": [
"VT",
"CC",
"CH",
"EM",
"GX",
"GN",
"GW",
"LE",
"NT",
"SW",
"SE",
"SN",
"TL",
"TP",
"AW",
"LM",
"LN",
"XC",
"GR",
"SR",
"LD",
"HT",
"CS"
],
"type": "string",
"description": "National Rail two-letter operator code for this journey: VT=Avanti West Coast, CC=c2c, CH=Chiltern Railways, EM=East Midlands Railway, GX=Gatwick Express, GN=Great Northern, GW=Great Western Railway, LE=Greater Anglia, NT=Northern Trains, SW=South Western Railway, SE=Southeastern, SN=Southern, TL=Thameslink, TP=TransPennine Express, AW=Transport for Wales, LM=West Midlands Railway, LN=London Northwestern Railway, XC=CrossCountry, GR=LNER, SR=ScotRail, LD=Lumo, HT=Hull Trains, CS=Caledonian Sleeper"
},
"scheduled_arrival": {
"type": "string",
"description": "Scheduled arrival as ISO 8601 datetime."
},
"scheduled_departure": {
"type": "string",
"description": "Scheduled departure as ISO 8601 datetime."
}
},
"additionalProperties": false
},
"maxItems": 8,
"minItems": 1,
"description": "Each journey on this booking, in travel order: one for a single, two for a return (outward first), more for a multi-stop booking. Untap works out Delay Repay for each journey and adds them up."
},
"season_type": {
"anyOf": [
{
"enum": [
"weekly",
"monthly",
"quarterly",
"six_monthly",
"annual",
"flexi"
],
"type": "string"
},
{
"type": "null"
}
],
"description": "Season tickets only: how long the season runs. The operator divides the season price into single journeys (for example annual 464, monthly 40, weekly 10, flexi 16) and pays a share of one journey. When left out, the result gives the percentage and the method but no amount."
},
"ticket_type": {
"enum": [
"single",
"return",
"open_return",
"advance",
"anytime",
"off_peak",
"super_off_peak",
"season",
"other"
],
"type": "string",
"description": "Ticket type as printed. For \"return\" and \"open_return\" the single fare is half the price paid; for \"season\" the amount is a share of one journey value (see season_type); every other type uses the full price as the single fare."
},
"booking_reference": {
"type": [
"string",
"null"
],
"description": "Booking reference if available, otherwise null."
},
"ticket_price_pence": {
"type": "integer",
"maximum": 1000000,
"minimum": 1,
"description": "Total fare paid in pence for the whole booking. £62.00 = 6200."
}
},
"additionalProperties": false
}| what_happened | any | What happened, if known. When left out, Untap looks it up in flight-status records. |
| arrival_delay_minutes | any | How late the flight arrived at the gate, in minutes, if the person knows. Compensation turns on arrival, not departure. |
| cancellation_notice_days | any | For a cancellation: how many days before departure the airline told the person. 14 or more means no compensation. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"flight_number",
"date"
],
"properties": {
"date": {
"type": "string",
"maxLength": 40,
"minLength": 3,
"description": "Date the flight was due to depart, local time. YYYY-MM-DD is best."
},
"price_paid": {
"anyOf": [
{
"anyOf": [
{
"type": "string",
"maxLength": 40
},
{
"type": "number",
"maximum": 1000000,
"minimum": 0
}
]
},
{
"type": "null"
}
],
"description": "Optional, in pounds: \"£180\" or 180. Not used for the amount, which is fixed in law, but needed to save the claim to an account."
},
"to_airport": {
"anyOf": [
{
"type": "string",
"maxLength": 3,
"minLength": 3
},
{
"type": "null"
}
],
"description": "Three-letter arrival airport code, if known: \"BCN\"."
},
"from_airport": {
"anyOf": [
{
"type": "string",
"maxLength": 3,
"minLength": 3
},
{
"type": "null"
}
],
"description": "Three-letter departure airport code, if known: \"LGW\". Helps pick the right flight on multi-stop numbers."
},
"flight_number": {
"type": "string",
"maxLength": 10,
"minLength": 3,
"description": "Airline code and number, as on the booking: \"BA2551\", \"U2 8123\"."
},
"what_happened": {
"anyOf": [
{
"enum": [
"delayed",
"cancelled",
"on_time",
"denied_boarding"
],
"type": "string"
},
{
"type": "null"
}
],
"description": "What happened, if known. When left out, Untap looks it up in flight-status records."
},
"arrival_delay_minutes": {
"anyOf": [
{
"type": "integer",
"maximum": 4320,
"minimum": 0
},
{
"type": "null"
}
],
"description": "How late the flight arrived at the gate, in minutes, if the person knows. Compensation turns on arrival, not departure."
},
"cancellation_notice_days": {
"anyOf": [
{
"type": "integer",
"maximum": 365,
"minimum": 0
},
{
"type": "null"
}
],
"description": "For a cancellation: how many days before departure the airline told the person. 14 or more means no compensation."
}
},
"additionalProperties": false
}| tickets |
| any |
| How many tickets of this price are on the booking, one per passenger. Defaults to 1. The amount is per ticket times this. |
| operator | any | Train company if known, as the person says it: "Southern", "GWR", "Avanti". Used to narrow the match. |
| price_paid | any | What one ticket cost, in pounds: "£24.50", 24.5 or 17 (read as £17.00). For a season ticket, the price of the whole season. Needed for a cash amount; without it the percentage is returned. |
| service_id | any | The service_id of a train listed in an earlier result. With it, that train is checked directly. |
| ticket_type | any | As printed: "Anytime Return", "Off-Peak Single", "Advance", "Annual Season", "Monthly Season", "Flexi Season". A return halves the single fare the amount is worked from. A season is valued per journey from its length; a season with no length gets no amount. |
| departure_time | any | Roughly when the train left the first station, UK time: "08:05", "8am", "around 8". Needed to find the train unless service_id is given. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"from",
"to",
"date"
],
"properties": {
"to": {
"type": "string",
"maxLength": 80,
"minLength": 2,
"description": "Station the person got off at, in the same forms."
},
"date": {
"type": "string",
"maxLength": 40,
"minLength": 3,
"description": "Date of travel. YYYY-MM-DD is best; \"25/09/2026\", \"25 September\", \"yesterday\" and \"last Friday\" also work."
},
"from": {
"type": "string",
"maxLength": 80,
"minLength": 2,
"description": "Station the person got on at. A name, part of a name or a three-letter code: \"Brighton\", \"Kings Cross\", \"BTN\"."
},
"tickets": {
"anyOf": [
{
"type": "integer",
"maximum": 9,
"minimum": 1
},
{
"type": "null"
}
],
"description": "How many tickets of this price are on the booking, one per passenger. Defaults to 1. The amount is per ticket times this."
},
"operator": {
"anyOf": [
{
"type": "string",
"maxLength": 60
},
{
"type": "null"
}
],
"description": "Train company if known, as the person says it: \"Southern\", \"GWR\", \"Avanti\". Used to narrow the match."
},
"price_paid": {
"anyOf": [
{
"anyOf": [
{
"type": "string",
"maxLength": 40
},
{
"type": "number",
"maximum": 1000000,
"minimum": 0
}
]
},
{
"type": "null"
}
],
"description": "What one ticket cost, in pounds: \"£24.50\", 24.5 or 17 (read as £17.00). For a season ticket, the price of the whole season. Needed for a cash amount; without it the percentage is returned."
},
"service_id": {
"anyOf": [
{
"type": "string",
"maxLength": 40
},
{
"type": "null"
}
],
"description": "The service_id of a train listed in an earlier result. With it, that train is checked directly."
},
"ticket_type": {
"anyOf": [
{
"type": "string",
"maxLength": 40
},
{
"type": "null"
}
],
"description": "As printed: \"Anytime Return\", \"Off-Peak Single\", \"Advance\", \"Annual Season\", \"Monthly Season\", \"Flexi Season\". A return halves the single fare the amount is worked from. A season is valued per journey from its length; a season with no length gets no amount."
},
"departure_time": {
"anyOf": [
{
"type": "string",
"maxLength": 20
},
{
"type": "null"
}
],
"description": "Roughly when the train left the first station, UK time: \"08:05\", \"8am\", \"around 8\". Needed to find the train unless service_id is given."
}
},
"additionalProperties": false
}| ticket_type | any | Ticket type as printed, such as "Anytime Return", "Advance Single" or "Season". Decides the rail return-ticket rule. |
| journey_date | any | Date of travel, YYYY-MM-DD. With it, the result gives the last day to claim as a date. |
| arrival_airport | any | Three-letter arrival airport code, such as "LHR". |
| departure_airport | any | Three-letter departure airport code, such as "CDG". Decides whether UK261 or EU261 applies, and with the arrival airport, the distance band. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"claim_type"
],
"properties": {
"company": {
"anyOf": [
{
"type": "string",
"maxLength": 80,
"minLength": 2
},
{
"type": "null"
}
],
"description": "The train operator or airline, by name or code as people say it: \"Southern\", \"LNER\", \"easyJet\", \"BA\", \"U2\". Not needed for TfL."
},
"booked_via": {
"anyOf": [
{
"enum": [
"operator_direct",
"third_party_retailer",
"travel_agent",
"package_holiday"
],
"type": "string"
},
{
"type": "null"
}
],
"description": "Where the ticket was bought: from the operator or airline itself, from a ticket retailer such as Trainline, through a travel agent, or as part of a package holiday."
},
"claim_type": {
"enum": [
"train_delay",
"train_cancellation",
"flight_delay",
"flight_cancellation",
"denied_boarding",
"tfl_incomplete_journey",
"tfl_overcharge"
],
"type": "string",
"description": "What the claim is for: a late or cancelled train, a delayed or cancelled flight, denied boarding, a TfL incomplete journey or another TfL overcharge."
},
"ticket_type": {
"anyOf": [
{
"type": "string",
"maxLength": 40
},
{
"type": "null"
}
],
"description": "Ticket type as printed, such as \"Anytime Return\", \"Advance Single\" or \"Season\". Decides the rail return-ticket rule."
},
"journey_date": {
"anyOf": [
{
"type": "string",
"maxLength": 40
},
{
"type": "null"
}
],
"description": "Date of travel, YYYY-MM-DD. With it, the result gives the last day to claim as a date."
},
"arrival_airport": {
"anyOf": [
{
"type": "string",
"maxLength": 3,
"minLength": 3
},
{
"type": "null"
}
],
"description": "Three-letter arrival airport code, such as \"LHR\"."
},
"departure_airport": {
"anyOf": [
{
"type": "string",
"maxLength": 3,
"minLength": 3
},
{
"type": "null"
}
],
"description": "Three-letter departure airport code, such as \"CDG\". Decides whether UK261 or EU261 applies, and with the arrival airport, the distance band."
}
},
"additionalProperties": false
}| ticket_price_pence |
| any |
| Usual day-ticket price in pence, £24.50=2450. Optional, for when the fare is known and stays the same. A day-ticket price, not a weekly or monthly season price. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"from",
"to",
"departure_time"
],
"properties": {
"to": {
"type": "string",
"maxLength": 80,
"minLength": 2,
"description": "Arrival station name or three-letter code."
},
"from": {
"type": "string",
"maxLength": 80,
"minLength": 2,
"description": "Departure station name or three-letter code."
},
"label": {
"anyOf": [
{
"type": "string",
"maxLength": 100,
"minLength": 1
},
{
"type": "null"
}
],
"description": "Optional short name such as Morning commute."
},
"weekdays": {
"type": "array",
"items": {
"type": "integer",
"maximum": 7,
"minimum": 1
},
"default": [
1,
2,
3,
4,
5
],
"maxItems": 7,
"minItems": 1,
"description": "Usual travel days: Monday=1 through Sunday=7. Informational only; no automatic checks."
},
"commute_id": {
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
],
"description": "The id of an existing commute in this account, to update or restore it. When left out, a new route is saved."
},
"ticket_type": {
"enum": [
"single",
"return"
],
"type": "string",
"default": "single",
"description": "Day ticket type. For return, the price is the whole return fare. Season tickets are not supported by saved commutes."
},
"departure_time": {
"type": "string",
"maxLength": 20,
"minLength": 1,
"description": "Usual UK departure time, for example 08:05 or 8am."
},
"ticket_price_pence": {
"anyOf": [
{
"type": "integer",
"maximum": 1000000,
"minimum": 1
},
{
"type": "null"
}
],
"description": "Usual day-ticket price in pence, £24.50=2450. Optional, for when the fare is known and stays the same. A day-ticket price, not a weekly or monthly season price."
}
},
"additionalProperties": false
}