How to use
Authentication
Subscribe an application to the product [Marketing] ACCeS WebCallback 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/v1/webcallback |
| OAT | https://rec-api.accor.com/contact-center/v1/webcallback |
| Preproduction | https://pre-api.accor.com/contact-center/v1/webcallback |
| Production | https://api.accor.com/contact-center/v1/webcallback |
1. Find an open queue
country and language are mandatory. touchpoint, codeHotel and cardTypes are optional.
curl -H "apikey: <YOUR_KEY>" \
"https://api.accor.com/contact-center/v1/webcallback?country=France&language=EN"
{
"error": false,
"data": {
"queues": [
{ "queue": "EN030", "language": "en", "mainCro": "JA2", "subCro": "WSP" }
]
}
}
2. Request the callback
customer_phone_number and destination_queue are mandatory. When the queue came with a subCro, send it back in subcro: it is used to bill the center or hotel handling the call.
curl -X PUT -H "apikey: <YOUR_KEY>" \
"https://api.accor.com/contact-center/v1/webcallback?customer_phone_number=%2B33600000000&destination_queue=EN030&subcro=WSP"
{ "error": false, "data": { "message": "Validate number ok" } }
Encode the leading + of a phone number as %2B.
Errors
| HTTP code | Meaning |
|---|---|
| 400 | A mandatory parameter is missing. |
| 401 | The API key is missing or not valid. |
| 404 | No open queue matches the request. |
| 500 | Unexpected error. Retry, then contact support. |