Point of Sale Country Code Lookup

The Point of Sale Country Code Lookup API returns a list of supported point of sale country codes and associated country names.

API Information

Target Audience
All Sabre APIs Customers
Current Version
v1
Authentication
Sessionless Token
Method/Endpoint
GET /v1/lists/supported/pointofsalecountries

The country codes can be passed as a parameter in certain REST API requests (those which support a 'pointofsalecountry' parameter). When a point of sale country is submitted with the request, only data related to that point of sale will be included in the response. Sabre® defines supported point of sale countries, and maintains in Sabre cache the lists of countries.

Request

pointofsalecountry

string, optional

2-letter ISO 3166 country code

Retrieves data specific to a given point of sale country

Default value: US

Sample value: pointofsalecountry=DE

See usage notes: for more information on point of sale and supported point of sale countries.

Ready to try the APIs?

Ready to get your hands dirty?

 Register Try the APIs

Ready to launch?

Ready to step up to the production level service? We're standing by to fit you for your spacesuit.

Request Production Key

Response

Countries

array

Repeats CountryCode and CountryName for each supported country, along with a cityPairsLookup link for each country.

CountryCode

string

The 2-letter ISO 3166 country code

CountryName

string

The name of the country that corresponds to CountryCode

Links

array

Consists of cityPairsLookup link and CountryCode object

cityPairsLookup

object

Invokes a City Pairs Lookup API request to retrieve all origin and destination pairs supported for specified point of sale country code

Links array for the overall response

array

Links

array

Consists of self and linkTemplate links

self

object

Returns the URL of the request that generated the response

linkTemplate

object

A link that formats a Point of Sale Country Code Lookup API request

Sample code

Request

Point of Sale Country Code Lookup requests do not have variations or parameters. The URI requests a list of all point of sale countries.

https://api.havail.sabre.com/v1/lists/supported/pointofsalecountries

Response

{
    "Countries": [{
        "CountryCode": "DE",
        "CountryName": "Germany",
        "Links": [{
            "rel": "cityPairsLookup",
            "href": "https://api.havail.sabre.com/v1/lists/supported/shop/flights/origins-destinations?destinationregion=<destinationregion>&originregion=<originregion>&destinationcountry=<destinationcountry>&origincountry=<origincountry>&pointofsalecountry=DE"
        }]
    }, {
        "CountryCode": "GR",
        "CountryName": "Greece",
        "Links": [{
            "rel": "cityPairsLookup",
            "href": "https://api.havail.sabre.com/v1/lists/supported/shop/flights/origins-destinations?destinationregion=<destinationregion>&originregion=<originregion>&destinationcountry=<destinationcountry>&origincountry=<origincountry>&pointofsalecountry=GR"
        }]
    }, {
        "CountryCode": "IT",
        "CountryName": "Italy",
        "Links": [{
            "rel": "cityPairsLookup",
            "href": "https://api.havail.sabre.com/v1/lists/supported/shop/flights/origins-destinations?destinationregion=<destinationregion>&originregion=<originregion>&destinationcountry=<destinationcountry>&origincountry=<origincountry>&pointofsalecountry=IT"
        }]
    }, {
        "CountryCode": "MX",
        "CountryName": "Mexico",
        "Links": [{
            "rel": "cityPairsLookup",
            "href": "https://api.havail.sabre.com/v1/lists/supported/shop/flights/origins-destinations?destinationregion=<destinationregion>&originregion=<originregion>&destinationcountry=<destinationcountry>&origincountry=<origincountry>&pointofsalecountry=MX"
        }]
    }, {
        "CountryCode": "US",
        "CountryName": "United States",
        "Links": [{
            "rel": "cityPairsLookup",
            "href": "https://api.havail.sabre.com/v1/lists/supported/shop/flights/origins-destinations?destinationregion=<destinationregion>&originregion=<originregion>&destinationcountry=<destinationcountry>&origincountry=<origincountry>&pointofsalecountry=US"
        }]
    }, {
        "CountryCode": "CA",
        "CountryName": "Canada",
        "Links": [{
            "rel": "cityPairsLookup",
            "href": "https://api.havail.sabre.com/v1/lists/supported/shop/flights/origins-destinations?destinationregion=<destinationregion>&originregion=<originregion>&destinationcountry=<destinationcountry>&origincountry=<origincountry>&pointofsalecountry=CA"
        }]
    }],
    "Links": [{
        "rel": "self",
        "href": "https://api.havail.sabre.com/v1/lists/supported/pointofsalecountries"
    }, {
        "rel": "linkTemplate",
        "href": "https://api.havail.sabre.com/v1/lists/supported/pointofsalecountries"
    }]
}

Usage notes

Country codes

Point of sale

The point of sale is the geographic location in which the fare itinerary is eligible to be ticketed. The default point of sale (US) can be overridden with any supported point of sale country specified in the pointofsalecountry parameter. For example, the following will retrieve fare data specific to the Germany (DE) point of sale: pointofsalecountry=DE. The response will be fares eligible for sale in Germany.

Errors

An HTTP status code is always returned. For more information about HTTP status codes and error response formats, see Sabre APIs: errors.

404 NOT_FOUND

No results were found

The service cannot find data to fulfill the parameters in the request. For example, data is not available for the origin or dates.

An origin or destination in the request is not a valid IATA airport code.

The origin or destination are not supported.

Docs Navigation