Skip to main content

Get TK

[Search-and-Offer] APIDATA Get TK

Version
1.0.0
Status
Coming soon
Incident
No incident

📘 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 all tk .

3.2 Main Features

The supported operation is :

Find information about TK .

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-traceid internally for observability.

5.2 Health Check

  • Endpoint: /ping
  • Status: 200 OK and response has the field version
  • Lifecycle and incident status changes are available via API notifications (requires subscription on the portal)

6. Endpoints

/apidata/v1/contracts (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 contracts with the following fields:

Field Description Example
contractCode Unique code identifying the contract "TK1ASA"
langueCode Language code "GB"
contractType Type label of the contract "TARS_KEY"
contractTypeCode Code of the contract type "TK"
contractName Short name of the contract "contrat TK1 ASA"
contractCategoryCode Category code of the contract "CAT01"
dateStart Start date of the contract validity "2024-01-01T00:00:00Z"
dateEnd End date of the contract validity "2024-12-31T23:59:59Z"
isTarsKey Whether the contract is a Tars Key true
isCentralUse Whether the contract is for central use false
qualification Qualification status of the contract "QUALIFIED"
isRepeatable Whether the contract is repeatable true
rateType Type of rate associated "BAR"
contractDescription Internal description of the contract "descr TK1 ASA"
segmentCode Segment code linked to the contract "SEG01"
isRankable Whether the contract can be ranked true
codeDisplay Display code for UI purposes "TK1"
rangDisplay Display order/rank 1
marketingDescription Marketing description of the contract "descMkt"
remunerationCode Remuneration code associated "REM01"
contractClass Class of the contract "CLASS_A"
remunerationClass Class of the remuneration "RC01"
isBod Whether the contract is BOD false
isDefault Whether it is the default contract true
codeTypoClient Client typology code "TYPO01"

7. Usage Examples

🔍 Search all tk

GET /apidata/v1/contracts
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 contractCode 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

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.