📘 User Guide
1. Document Purpose
This guide provides business, functional and technical context to help API consumers understand and integrate the API.
It complements the OpenAPI specification and is part of the mandatory documentation set for each version (Major.Minor.Patch).
2. Target Audience
| Profile | Role |
|---|---|
| Product Owner | Understand the business scope and value of the API |
| Developer | Implement and integrate the API |
| QA / Architect | Validate expected behaviors and technical compliance |
| Customer Connect API (CCA) | Support API consumers during onboarding and integration |
3. API Overview
3.1 Business Context
- This API allows members to find tk labes in all languages.
3.2 Main Features
The supported operation is :
Find TK Labels in all languages for the specified contract code and contract type.
3.3 Known Limitations
No functional neither technical limitations to consider.
4. Access & Security
4.1 Access Requirements
| Requirement | Provided by Accor | Consumer Action Required |
|---|---|---|
| Client ID / API Key | ✅ | 🔲 Request via onboarding |
4.2 Authentication & Headers
- Auth method: Basic Auth / API Key
- Required headers:
uuid,X-Authenticated-Client-ID,X-Authenticated-User-ID
5. API Behavior
5.1 Traceability & Telemetry
| Header | Description | Mandatory |
|---|---|---|
x-client-id |
Consumer identifier | ✅ |
Consumers must propagate
x-traceidinternally for observability.
5.2 Health Check
- Endpoint:
/ping - Status:
200 OKand response has the fieldversion - Lifecycle and incident status changes are available via API notifications (requires subscription on the portal)
6. Endpoints
/apidata/v1/contracts/{contractCode}/{contractType}/labels (GET)
Description
Return the contract name, the extended name, and the marketing description in all languages for the specified contract code and contract type.
Request Rules
Response Behavior
- Returns an json array called
contractLabelswith the following fields: | Field | Description | Example | |---------------|---------------------------------------|-----------------------------------------| |languageCode| the language | "GB" | |contractName| Short name of the tars Key | "contrat TK1 ASA" | |extendedName| Full name of the Tars Key | "libelle TK1 ASA" | |marketingDescription| Description of the Tars Key | "descMkt" |
7. Usage Examples
🔍 Search tk labes for contractCode=> TK , contractType=> ASA
GET /apidata/v1/contracts/TK/ASA/labels
x-api-key: your_api_key
uuid: 1234 (example)
X-Authenticated-Client-ID: your_clientId
X-Authenticated-User-ID: your_UserId
login: your_login
password: your_password
8. Error Codes
| HTTP Code | Error Code | Description | Recommended Action |
|---|---|---|---|
| 400 | INVALID_INPUT | Incorrect format for cotractType or invalid parameters | Check input data |
| 401 | UNAUTHORIZED | Invalid or expired token | Refresh or re-authenticate |
| 403 | FORBIDDEN | Not authorized for this action | Contact support |
| 404 | NOT_FOUND | Entity does not exist | Check resource ID |
| 405 | NOT_ALLOWED | Method Not Allowed | check http methodes |
| 500 | INTERNAL_ERROR | Unexpected backend issue | Retry or escalate |