Skip to main content

Postman Collections

The agent collections and development environment are available for easy API testing.

Downloads

CollectionDescriptionDownload
Flight Booking for AgentsThe complete third-party agent flight workflowDownload
Safiri Agent APIAgent registration, authentication, flight booking, tickets, and profileDownload
Environment TemplatePre-configured variables for testingDownload

Collection contents

Flight Bookings

Includes the third-party agent workflow:

  • Log in with an agent account
  • Fetch airport stops and select valid IATA codes
  • Search and save the selected offer_reference
  • Review its price, expiry, and booking requirements
  • Reserve with traveler and contact details
  • Retry separately after an approved price change
  • Purchase using ticket_id
  • Retrieve the issued tickets

The collection generates future departure and return dates automatically. It does not accept a changed price automatically.

Safiri Agent API

Includes the flight workflow plus third-party agent registration, authentication, generic ticket retrieval, and profile access. It does not include staff-only or operational endpoints.

Environment Variables

The environment template includes these variables:

VariableDescription
base_urlAPI base URL. Defaults to https://booking-api-dev.safiri.app.
gtfs_flight_urlAirport stop service. Defaults to https://gtfs-flight.safiri.app.
jwt_tokenYour authentication token
agent_emailAgent account email used by the login request
agent_passwordAgent account password used by the login request
external_user_idYour own customer reference
offer_referenceSelected offer reference saved after search
reservation_idReservation identifier retained for support
booking_referenceBooking reference supplied to the traveler
ticket_idIdentifier used for purchase and ticket retrieval
price_version, price_amount, price_currencyLatest changed-price values saved for the separate approval request

Import Instructions

  1. Download the collection you need and the environment file.
  2. Open Postman and select Import.
  3. Import both files.
  4. Select the Safiri API - Development environment.
  5. Enter the development agent credentials.
  6. Run the requests in order.

Traveler and document values are sensitive. Use test data in development and do not copy them into shared logs or reports.