APIDATA Get Histo Commercial Offers
Returns the history of hotel rate level commercial offers for a given property code in a specific period.
Asset Contracts
The Asset Contracts API exposes the contracts managed for Accor e-commerce assets.
It allows consumers to:
- **List contracts** that can be selected, with filters on contract number, workflow status and record type.
- **Retrieve a contract** by its contract number.
- **Create or update a contract** (upsert), so that contract data stays in sync with the source system.
- **Check service health** through a dedicated healthcheck endpoint.
This API is exposed through the Apigee proxy and is backed by the asset contracts backend service.
Asset Contracts
Authentication
Brand Corner
the app should be able to consume the content of a brand in a given language and brandCode
Business Offers
Accor availability allows any partner to retrieve hotel offers.
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.