Switch to dark mode

Booking Interrail Passes

A rail pass is booked in the same way as a ticket: create a booking, add passenger details, then create and finalize an order. The main difference is that a pass is issued as a code, not a PDF ticket. The passenger uses the code in the Interrail app.

Creating a booking

Create a booking from a pass bundle. The booking holds your selection and the passengers' details. Nothing is bought until you create and finalize an order.

Send the passengers the bundle was priced for, each with a type, and an age for youths and seniors. A passenger given by birthDate alone needs a date to work their age out on. That only works when the bundle comes from a getPassBundles call that was given a departureDate.

Example: Create a booking with rail passes

graphql
mutation CreateBooking {
  createBooking(
    passBundle: "700a576f-9867-4416-94bb-016372c00215"
    passengers: [{ type: ADULT }]
  ) {
    id
    passengers {
      id
      age
      type
    }
    requirements {
      countryResidence
      nationality
      dateOfBirth
      email
      tel
    }
    selections {
      ... on PassBundleSelection {
        class
        product
        price {
          amount
          currency
        }
        travelDayCount
        validityPeriod
      }
    }
  }
}

The booking's requirements say which passenger details are needed. For passes they often include nationality and country of residence, because some passes are only sold to residents of certain countries.

Updating passenger details

Before you create an order, add the details listed in the booking's requirements with updateBooking.

Exactly one passenger must be the contact person, with both email and tel. The contact person's details are sent to the operator, who contacts them if there is a problem.

Example: Updating passenger details

graphql
mutation UpdatePassengers {
  updateBooking(
    id: "booking_84h6f2y1r4032465t635a1b6c2"
    passengers: [
      {
        id: "192eefa2-787a-4c16-aba1-3450b2813503"
        email: "jane.doe@example.com"
        tel: "+46701234567"
        isContactPerson: true
        birthDate: "1980-02-15"
        nationality: "NL"
        firstName: "Jane"
        lastName: "Doe"
      }
    ]
  ) {
    id
    passengers {
      ... on FullPassenger {
        id
        isContactPerson
        email
        tel
        birthDate
        nationality
        firstName
        lastName
        title
      }
    }
  }
}

Creating and finalizing orders

When the booking has its passenger details, create an order with createOrder. This pre-books the pass, and is the same step for every payment method. How you complete the order depends on how it is paid:

  • Wallet credits or invoice: Finalize the order yourself with finalizeOrder. See Orders.
  • Payment gateway: Pass the order's id to createPayment as orderId. The order is finalized automatically when the customer has paid. See Payments.

Retrieving pass codes

Passes are issued once the order is finalized. Instead of a PDF ticket, each passenger gets a pass code, which they use in the Interrail app or on the Interrail website.

Pass codes are usually ready within 15 minutes, but can take longer at busy times. Poll the order every few minutes until the codes appear:

Example: Get pass codes from finalized order

graphql
query GetPassCodes {
  node(id: "order_y3w1b432a4z4m2q2p7s3p041h6") {
    ... on Order {
      items {
        ... on PassBundleOrderItem {
          passenger {
            firstName
            lastName
          }
          code
          class
          product
          travelDayCount
          validityPeriod
        }
      }
    }
  }
}

Give each passenger their own code.

Pass activation

The passenger activates the pass with the code:

  1. Download the Interrail app.
  2. Enter the pass code.
  3. Activate the pass, usually on the first travel day.

Reserving seats with a pass

A pass gives the right to travel, but many trains also need a seat reservation, and some operators sell passholders a dedicated fare. Book these through the ticket flow, with the pass attached to each passenger as a travel card. See Travel Cards.

The full flow

For the whole flow from finding a pass to sharing the codes, including payment, see Booking Flows.