How to use
Authentication
Subscribe an application to the product [Marketing] ACCeS MVP Orange in the Developer Portal and send its key in the apikey header.
Base URL
| Environment | URL |
|---|---|
| Development | https://dev-api.accor.com/mvp-orange |
| OAT | https://rec-api.accor.com/mvp-orange |
| Preproduction | https://pre-api.accor.com/mvp-orange |
| Production | https://api.accor.com/mvp-orange |
Record a call context
The body is JSON. Every field is mandatory; intent may be null. Unknown fields are refused.
| Field | Description |
|---|---|
hotel_number |
Phone number of the hotel line, international format. |
customer_number |
Phone number of the caller, international format. |
call_context.language |
Language of the caller, BCP 47 tag such as fr-FR or en-GB. |
call_context.intent |
Reason for the call, such as NEW_BOOKING or MODIFY_BOOKING, or null. |
curl -X POST "https://api.accor.com/mvp-orange" \
-H "apikey: <YOUR_KEY>" \
-H "content-type: application/json" \
-d '{
"hotel_number": "+33611223347",
"customer_number": "+33611223344",
"call_context": { "language": "fr-FR", "intent": "NEW_BOOKING" }
}'
{ "status": "OK", "locked": true, "hotel_number": "+33611223347", "expiresAt": 1700000010 }
The context expires at expiresAt (epoch seconds), a few seconds after the call: send it just before transferring the call.
Errors
| HTTP code | Meaning |
|---|---|
| 400 | Empty or invalid body. errors lists each invalid field. |
| 401 | The API key is missing or not valid. |
| 409 | A context is already active for this hotel_number. Retry after expiresAt. |
| 500 | Unexpected error. Retry, then contact support. |