Atlas API-Sabre
  1. Other Functions
Atlas API-Sabre
  • Shopping and Ticketing
    • Search
      POST
    • Verify
      POST
    • Order
      POST
    • Order Commit
      POST
    • Payment
      POST
    • Retrieve Booking
      POST
    • Smart Search
      POST
    • Get Offer
      POST
    • Seat Availability
      POST
    • Get Luggage
      POST
  • Post Ticketing Service
    • Search Ancillary
      POST
    • Order Ancillary
      POST
  • Notifications and Webhook
    • Register Webhook
      POST
    • Incident List
      POST
  • Refund
    • Refund Quotation
      POST
    • Make a Refund
      POST
    • Query Refund Status
      POST
  • Other Functions
    • Regenerate Order
      POST
    • Stop Ticket Issuance
      POST
    • Order List
      POST
    • PNR Claim
      POST
    • Get Balance
      POST
    • City Pairs API
      POST
    • Email List
      POST
    • Extract PNR
      POST
    • getAtripToken
      POST
  1. Other Functions

City Pairs API

POST
/route/export.do
The "City pairs API" can be used to download the city pairs supported by Atlas as well as by the airlines.
The customer can use this structured data and transfer the city pair information into their mid-back office systems.
This API is only available in the production environment.

Request

Header Params
Accept
string 
required
Example:
application/json
Content-Type
string 
required
Example:
application/json
Accept-Encoding
string 
required
Example:
gzip
x-atlas-client-id
string 
required
Example:
<YOUR_CLIENT_ID>
x-atlas-client-secret
string 
required
Example:
<YOUR_CLIENT_SECRET>
Body Params application/json
routeType
integer 
required
-1: Airline routes
-2: Atlas routes
fromCity
string  | null 
optional
IATA Code of departure city.
fromCountry
string  | null 
optional
IATA Code of departure country.
toCity
string  | null 
optional
IATA Code of arrival city or airport
toCountry
string  | null 
optional
IATA Code of arrival country.
airlines
array[string] | null 
optional
An array of IATA Codes of airlines. The routes within the airlines will be returned.
pageSize
integer  | null 
optional
Default:
10000
pageNumber
integer  | null 
optional
Default:
1
Example
{
    "routeType": 0,
    "fromCity": "string",
    "fromCountry": "string",
    "toCity": "string",
    "toCountry": "string",
    "airlines": [
        "string"
    ],
    "pageSize": 10000,
    "pageNumber": 1
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://sandbox.atriptech.com/route/export.do' \
--header 'Accept: application/json' \
--header 'Accept;' \
--header 'Accept-Encoding: gzip' \
--header 'Accept-Encoding;' \
--header 'x-atlas-client-id: <YOUR_CLIENT_ID>' \
--header 'x-atlas-client-id;' \
--header 'x-atlas-client-secret: <YOUR_CLIENT_SECRET>' \
--header 'x-atlas-client-secret;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "routeType": 0,
    "fromCity": "string",
    "fromCountry": "string",
    "toCity": "string",
    "toCountry": "string",
    "airlines": [
        "string"
    ],
    "pageSize": 10000,
    "pageNumber": 1
}'

Responses

🟢200Success
application/json
Body
status
integer 
required
msg
string  | null 
optional
data
array [object {9}] 
required
airlines
string 
required
An array of IATA Codes of airlines.
fromCity
string 
required
IATA Code of departure city or airport
fromCountry
string 
required
IATA Code of departure country.
toCity
string 
required
IATA Code of arrival city or airport
toCountry
string 
required
IATA Code of arrival country.
isDirect
string 
required
-true: Direct Flight
-false: Connecting Flight
This data will only be available when the "routeType" = 2 (Atlas Routes)
scheduleStart
string 
required
The start date of the booking window. The format is YYYYMMDD.
scheduleEnd
string 
required
The end date of the booking window. The format is YYYYMMDD.
updateDate
string 
required
The date when the routing data was updated. The format is YYYYMMDD.
Example
{
    "status": 0,
    "msg": "string",
    "data": [
        {
            "airlines": "string",
            "fromCity": "string",
            "fromCountry": "string",
            "toCity": "string",
            "toCountry": "string",
            "isDirect": "string",
            "scheduleStart": "string",
            "scheduleEnd": "string",
            "updateDate": "string"
        }
    ]
}
Modified at 2025-07-18 06:59:49
Previous
Get Balance
Next
Email List
Built with