Skip to main content

Hotel inventory

  • Content & referential

Retrieve hotel inventory information in Accor properties.

Version
1.0.0
Status
Live
Incident
No incident

How to use it?

HTTP Methods

The API is accessible only through the Https protocol and only accepts HTTP GET requests.
It's made to retrieve information only – and not to modify it in any way.

UAT base URL: 
"https://rec-api.accor.com/catalog/"
PRO base URL: 
"https://api.accor.com/catalog/"

UAT Example: "https://rec-api.accor.com/catalog/v1/inventory/hotels"

HTTP Response codes

We use conventional HTTP response codes to indicate the success or failure of an API request.

  • Codes in the 2xx range indicate success.
  • Codes in the 4xx range indicate an error.
  • Codes in the 5xx range indicate an server error.

Some 4xx errors that could be handled programmatically include an error code that briefly explains the error reported.

Squiggly Filter

Our API supports Squiggly, the Squiggly Filter is a Jackson JSON PropertyFilter, which selects properties of an object/list/map using a subset of the Facebook Graph API filtering syntax.

The easiest way to use this feature is to filter fields on the querystring like so:

  • ?fields=type,formats.format

Doc: https://github.com/bohnman/squiggly

HTTP ACCEPT-LANGUAGE

Our API supports, with certain qualifications, the ability to specify languages as part of an HTTP request, using the ACCEPT-LANGUAGE HTTP header. The REFERENTIAL API honors this header where possible, selecting a language from the ACCEPT-LANGUAGE header and returning messages in that language.

When the ACCEPT-LANGUAGE header contains no language or a language that the API can't support, messages are returned in a default language, in this case it will be English.

Example

  

Using CATALOG Hotel inventory

This service will provide you with the status and last update date of every hotel listed.

[
    {
        "lastUpdate": "2022-06-08T12:13:17.71+02:00",
        "code": "B5N9",
        "status": "OPEN"
    },
    {
        "lastUpdate": "2022-06-08T12:13:17.111+02:00",
        "code": "B609",
        "status": "OPEN"
    },
    {
        "lastUpdate": "2022-06-08T12:13:17.11+02:00",
        "code": "B9Y0",
        "status": "OPEN"
    },
    {
        "lastUpdate": "2022-06-08T12:13:09.918+02:00",
        "code": "B4Y8",
        "status": "OPEN"
    },
    {
        "lastUpdate": "2022-06-08T12:13:05.131+02:00",
        "code": "B469",
        "status": "OPEN"
    },
   {
        "lastUpdate": "2022-06-08T11:56:08.55+02:00",
        "code": "0867",
        "status": "CLOSED"
    },
    {
        "lastUpdate": "2022-06-07T15:56:09.117+02:00",
        "code": "B1I1",
        "status": "DELETED"
    }
]

 

 

About us

We are far more than a worldwide leader. We are 300,000 hospitality experts placing people at the heart of what we do, and nurturing real passion for service and achievement beyond limits. We take care of millions of guests in our 5,000 addresses.