Implement a Trainline partner API booking flow for UK and European rail with split-ticketing awareness

domain: thetrainline.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Authenticate to the Trainline Partner API using OAuth 2.0 bearer token
  2. POST a journey search request specifying origin and destination NLC or UIC station codes, outward date, and passenger count
  3. Parse the fares response and identify split-ticket options indicated by the isSplitTicket flag
  4. Select a journey and add tickets to a basket via POST /baskets/{basketId}/journeys
  5. Provide passenger details and payment information to confirm the booking
  6. Retrieve the booking confirmation with QR code ticket data or print-at-home PDF URL

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
Implement SilverRail RailShop and RailBook API flow for European multi-carrier rail ticketing
silverrailtech.com · 6 steps · unrated
Aggregate European rail booking content and understand the core flow
rail · 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