Skip to main content

API Portfolio

Contact Centers

Realtime access to Contact Center data & services.

This API returns the phone number and associated metadata (legal font, hours of operation)
that a customer should use to contact the Accor contact center, based on:
- their country and language
- their loyalty card type (if connected)
- the site they are browsing (contextSite)
- the hotel they have selected (hotelCode, optional)

## Decision tree

```
cardTypes resolved to Limitless?
├── YES → query prefix limitless|{language}, context ACCOR → return limitless contact
└── NO → default flow
hotelCode present?
├── YES → call Hotel Catalog API (Secrets Manager)
│ country=fr AND brand IN {IBB, HOF}?
│ ├── YES → noPhoneDisplay (HTTP 200 with empty payload)
│ │ (applies regardless of contextSite)
│ └── NO → contextSite = "accor"?
│ ├── YES → brand resolved?
│ │ ├── NO (404/empty) → telephony context = ACCOR
│ │ └── YES → lookup brand_segmentation table
│ │ ├── "Luxury" → context = LUXURY
│ │ ├── "Ultra Luxury" → context = ULTRA LUXURY
│ │ └── other / absent → context = ACCOR
│ └── NO (branded site) → telephony context from
│ CONTEXT_SITE_TELEPHONY_MAP[contextSite]
└── NO → contextSite = "accor"?
├── YES → telephony context = ACCOR
└── NO (branded site) → telephony context from
CONTEXT_SITE_TELEPHONY_MAP[contextSite]
```

## DynamoDB tables used

| Environment variable | Purpose |
|---|---|
| `CN_DB_TABLE` | Contact number records (PK: `pk`=country, SK: `status`) |
| `CONTEXT_SITE_TABLE` | Accepted context site names |
| `CARD_TYPE_STATUS_MEMBER_TABLE` | TARS card type → status_member mapping |
| `BRAND_SEGMENTATION_TABLE` | Brand code → segmentation (e.g. `RAF` → `Ultra Luxury`) |

## CN_DB_TABLE status key format

| Branch | Key prefix |
|---|---|
| Limitless | `limitless\|{language}` |
| Default | `default\|{language}\|{telephonyContext}` |

## Special cases

- **IBB / HOF in France**: brands Ibis Budget (`IBB`) and Formule 1 (`HOF`) located in France
(`country=fr`) do **not** have a contact number. The API returns HTTP 200 with all
fields set to empty/null (see `noPhoneDisplay` example below). This rule applies
**regardless of `contextSite`** — even on branded sites.
- **Hotel API unavailable or 404**: falls back silently to telephony context `ACCOR`.
- **Branded site** (`contextSite` ≠ `accor`): brand segmentation from the hotel catalog
is skipped. The telephony context is determined by `CONTEXT_SITE_TELEPHONY_MAP`
(e.g. `ACCOR` for novotel/ibis, `LUXURY` for mgallery/sofitel, `ULTRA LUXURY` for fairmont).
The IBB/HOF France suppression rule still applies if a `hotelCode` is provided.

Coming soon
(v2.0.0)

MVP Orange Call Context

API (AWS API Gateway -> Lambda) used to store a call context for a hotel_number and a customer_number. Locking is enforced on hotel_number with TTL and concurrency control through a conditional DynamoDB PutItem. The endpoint is exposed through API Gateway and protected by an API key. A valid API key is required on every environment: development, OAT, and production.

Coming soon
(v1.0.0)

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.