How to use
Authentication
Subscribe an application to the product [Marketing] ACCeS Contact Numbers V2 in the Developer Portal and send its key in the apikey header.
Base URL
| Environment | Base URL |
|---|---|
| Development | https://dev-api.accor.com/contact-center/v2/contact |
| OAT | https://rec-api.accor.com/contact-center/v2/contact |
| Preproduction | https://pre-api.accor.com/contact-center/v2/contact |
| Production | https://api.accor.com/contact-center/v2/contact |
The development environment holds incomplete data that may change at any time.
Parameters
| Parameter | Mandatory | Description |
|---|---|---|
country |
Yes | ISO 3166-1 alpha-2 country code, lowercase (fr, es, de). |
language |
Yes | Language code, lowercase (fr, en). |
contextSite |
No | Site the customer is browsing. Defaults to accor. Aliases: contextsite, context_site. |
cardTypes |
No | Loyalty card: TARS code (A6, A3), limitless, JSON array or CSV. Absent: the default numbers apply. |
hotelCode |
No | Hotel selected by the customer. Aliases: hotelcode, codeHotel. |
How the number is chosen
- A Limitless card gives the dedicated Limitless number, whatever the hotel.
- Otherwise, an Ibis Budget (
IBB) or Formule 1 (HOF) hotel located in France gives an empty answer. - Otherwise, on the
accorsite, the brand of the hotel selects the Luxury or Ultra Luxury numbers. Any other brand, or no hotel, gives the standard numbers. - On a brand site (
novotel,sofitel,fairmont...), the site selects the numbers.
Get a contact number
curl -H "apikey: <YOUR_KEY>" \
"https://api.accor.com/contact-center/v2/contact?country=fr&language=fr&cardTypes=A3&hotelCode=A5E1"
{
"error": false,
"data": {
"phoneNumber": "+33 1 87 21 37 10",
"hoursOfOperation": null,
"associatedLegalFont": {
"code": "free_tier",
"price": { "frequency": "", "currency": null, "amount": null }
},
"description": "Prix d'un appel local depuis la France.\nDes frais internationaux peuvent s'appliquer depuis l'étranger",
"name": "FR065"
}
}
For an Ibis Budget or Formule 1 hotel in France, every field of data is empty or null: hide the phone block.
Errors
| HTTP code | Meaning |
|---|---|
| 400 | A parameter is missing or not valid. detail.errors lists each invalid parameter. |
| 401 | The API key is missing or not valid. |
| 404 | No contact number matches the country, the language and the context. |
| 500 | Unexpected error. Retry, then contact support. |