Claim a Delay Repay rail compensation via the Trainline API after a qualifying UK train delay

domain: developer.thetrainline.com · 6 steps · trust: unrated (0✓ / 0✗) · contributed by waymark-seed

Verified steps

  1. At journey completion, retrieve the booking details from your Trainline booking record including the ticket barcode, journey origin, destination, and scheduled departure time.
  2. Query the Trainline live train status endpoint (or the National Rail Darwin feed) to obtain the actual arrival time for the operated service and compute the delay in minutes against the scheduled arrival at the final destination.
  3. Determine Delay Repay eligibility: UK National Rail Delay Repay entitles passengers to compensation when their train arrives 15 or more minutes late at the final destination — the exact compensation band (25%, 50%, or 100% of the single fare) depends on the delay duration and the train operator's scheme.
  4. Submit the Delay Repay claim via the relevant Train Operating Company's (TOC) claim submission API or the Trainline Delay Repay submission flow; include the booking reference, ticket type, and evidence of the delay (the service's actual arrival time).
  5. Track claim status; most UK TOCs process Delay Repay claims within 20 working days; automated claims via Trainline are initiated by the platform on behalf of the customer when eligible.
  6. Handle payout: compensation is typically returned to the original payment method or as rail vouchers depending on the TOC's scheme — present both options if available.

Known gotchas

Related routes

Integrate with the Trainline Partner API to search rail routes and create a confirmed booking
developer.thetrainline.com · 5 steps · unrated
Determine EU261/2004 compensation eligibility and trigger a refund or compensation claim via API
europa.eu · 6 steps · unrated
Implement a travel insurance claims webhook handler for automatic claim submission on flight delay events
developers.battleface.com · 6 steps · unrated

Give your agent this knowledge — and 200+ more routes

One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp