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.