> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bilalsadasub.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Download Ticket

> Returns the e-ticket for a booking as a PDF file (`application/pdf`). Available once the booking is issued.



## OpenAPI

````yaml GET /api/flight/booking/{reference}/ticket
openapi: 3.1.0
info:
  title: Bilalsadasub API
  version: 1.0.0
  description: >-
    Bilalsadasub developer API — buy data, airtime, cable, electricity, bulk
    SMS, exam pins, airtime-to-cash and flights, funded from your wallet.
servers:
  - url: https://bilalsadasub.com
    description: Production (live — charges your wallet)
security:
  - TokenAuth: []
tags:
  - name: Purchases
  - name: Verification
  - name: Betting
  - name: eSIM
  - name: Flights
  - name: Wallet
  - name: Catalogs
  - name: Account
paths:
  /api/flight/booking/{reference}/ticket:
    get:
      tags:
        - Flights
      summary: Download Ticket
      description: >-
        Download the e-ticket for a ticketed booking as a PDF file
        (`Content-Type: application/pdf`, sent as an attachment).
      parameters:
        - name: reference
          in: path
          required: true
          description: Booking reference returned by Book Flight
          schema:
            type: string
      responses:
        '200':
          description: PDF e-ticket
          content:
            application/pdf:
              schema:
                type: string
                format: binary
        '404':
          description: Booking not found
components:
  securitySchemes:
    TokenAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        Send your API key as `Token <your_api_key>`.


        Use your **live key** for real transactions, or your **sandbox key**
        (`sk_test_…`) to test — sandbox calls return a realistic simulated
        result and never touch your wallet. Add `"sandbox_status": "fail"` to
        any sandbox request to simulate a failure.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.