Skip to main content

Boardingpass API v1

Last updated: 03-Aug-2026
Recent changes: Merge branch 'feature/NSK-76937' into 'master' update api product values Closes NSK-76937 See merge request api-program/apigee/flight/newskies-apis/boardingpass!124

Technical Integration

Authentication Setup

OAuth 2.0 Configuration

The Boardingpass API requires OAuth 2.0 Bearer token authentication. Contact the API product approvers to obtain credentials:

  • emre.oegretmen@tui.com
  • javier.temprano.fernandez@tui.be
  • gema.jimenezruiz@tui.nl

Step-by-Step

  1. Request API access — Apply for access via the developer portal
  2. Receive credentials — You will receive a client_id and client_secret
  3. Obtain token — Exchange credentials for an access token using client credentials flow
  4. Include token — Add the token in the Authorization: Bearer <token> header on every request

Source Market Configuration

Every request MUST include the X-SourceMarket header. This determines which airline-specific configuration is applied (check-in rules, branding, email templates, etc.).

Market Value Airline Notes
United Kingdom uk TUI Airways (BY) Thomson legacy data source
Germany de TUIfly (X3) TUIfly data source
Netherlands nl TUI fly NL Arkefly data source
Belgium be TUI fly BE Jetairfly data source

Integration Guide

1. Verify Connectivity

Start by calling the ping endpoint to verify your credentials and connectivity:

curl -X POST "https://test.api.tui/flight-newskies-boardingpass/system/ping" \
  -H "Authorization: Bearer <token>" \
  -H "X-SourceMarket: uk"

Expected: HTTP 200.

2. Check Availability

Before attempting to generate boarding passes, verify that check-in is available:

curl -X GET "https://test.api.tui/flight-newskies-boardingpass/settings/availability/LGW/PMI/BY/20260815" \
  -H "Authorization: Bearer <token>" \
  -H "X-SourceMarket: uk"

3. Check Configuration

Retrieve check-in rules for the carrier to understand time windows:

curl -X GET "https://test.api.tui/flight-newskies-boardingpass/settings/checkinconfig/BY" \
  -H "Authorization: Bearer <token>" \
  -H "X-SourceMarket: uk"

The checkInOpens and checkInCloses fields tell you the valid window (hours before departure).

4. Get Boarding Passes

Once check-in is confirmed available, retrieve boarding passes:

curl -X POST "https://test.api.tui/flight-newskies-boardingpass/bookings/ABC123/boardingpasses?lastname=Smith&outboundDate=20260815" \
  -H "Authorization: Bearer <token>" \
  -H "X-SourceMarket: uk"

5. Deliver Boarding Pass

Choose a delivery method:

  • PDFPOST /bookings/{id}/pdf returns binary PDF
  • Apple WalletPOST /bookings/{id}/pkpass returns pkpass file
  • Google PayPOST /bookings/{id}/googlePayPass creates a Google Pay pass
  • EmailPOST /bookings/{id}/email sends directly to recipient

Best Practices

Date Format

All dates use the yyyyMMdd format (e.g., 20260815 for August 15, 2026). Other formats will result in a DateNotSupportedException.

Booking ID

The bookingId parameter is the NewSkies PNR (record locator), typically 6 alphanumeric characters (e.g., ABC123).

Segment and Passenger Selection

  • segment identifies a flight leg (0-based index or segment identifier)
  • paxNo identifies a passenger within the booking (0-based index)
  • When generating individual passes (barcode, pkpass, Google Pay), specify both segment and paxNo
  • For PDF, you can pass arrays to generate multiple passes in one document

Caching

Configuration endpoints (/settings/checkinconfig, /settings/availability) are cached for 1 minute on the Apigee layer. The X-Cache response header indicates hit/miss status.

Rate Limiting

  • Spike Arrest: Protects against burst traffic on all endpoints
  • Email Quota: Additional quota limit on the email endpoint to prevent abuse
  • Implement exponential backoff when receiving HTTP 429 responses

Request Validation Rules

Rule Description
X-SourceMarket required Missing header returns 400
Valid source market value Must be one of: uk, de, nl, be
Date format yyyyMMdd Invalid dates throw DateNotSupportedException
Booking must exist Non-existent PNRs return BookingNotFoundException
Passenger must be checked in Boarding passes require prior check-in
Within check-in window Requests for past flights (>7 days) return PastBookingException

Environment Configuration

Environment Base URL Purpose
Development https://dev.api.tui/flight-newskies-boardingpass/ Development and initial testing
Test (SIT) https://test.api.tui/flight-newskies-boardingpass/ System integration testing
Pre-Production https://preprod.api.tui/flight-newskies-boardingpass/ Pre-production validation
Production https://prod.api.tui/flight-newskies-boardingpass/ Live traffic

Troubleshooting

401 Unauthorized

  • Verify your OAuth token is valid and not expired
  • Ensure you are using the correct token endpoint for the environment
  • Check that your client_id has been approved for the Boardingpass API product

400 Bad Request

  • Verify X-SourceMarket header is present and valid
  • Check date format is yyyyMMdd
  • Ensure booking ID is a valid PNR format

404 Not Found / BookingNotFoundException

  • Verify the booking exists in NewSkies for the specified source market
  • Check that the lastname matches (if provided)

PastBookingException

  • The outbound date is more than 7 days in the past
  • Only current and upcoming flights can generate boarding passes

BoardingpassNotSupportedException

  • The passenger/segment is not eligible for a boarding pass
  • Check that the passenger is checked in (checkedIn: true in status)

Empty Response / No Boarding Passes

  • Verify the passenger is checked in
  • Check that the flight is within the check-in window
  • Confirm the source market matches the booking's airline

429 Too Many Requests

  • You have exceeded the spike arrest or email quota limit
  • Implement exponential backoff: wait 2^attempt seconds before retrying

About us

TUI is one of the world’s leading tourism groups. The broad portfolio gathered under the Group umbrella consists of strong tour operators, 1,600 travel agencies and leading online portals, five airlines with around 150 aircraft, over 400 hotels, 16 cruise liners and many incoming agencies in all major holiday destinations around the globe.

 

TUI Group logo

Contact

Login to your account