Skip to main content

APIDATA Get Histo Commercial Offers

[Search-and-Offer] APIDATA Get Histo Commercial Offers

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 consumers to retrieve the history of the Hotel-TarsKey-rateLevel links of a given hotel..

3.2 Main Features

The supported operation is:

Get the full history of commercial offer assignments (rate level / commercial offer) for a specified property code, including the action type, dates, qualifications and related offer attributes.

3.3 Known Limitations

No functional or 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 ✅
uuid Unique request 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/properties/{propertyCode}/histo_commercial_offers (GET)

Description

Returns the history of hotel rate level commercial offers for the specified property code.

Request Rules

  • propertyCode is mandatory, must be exactly 4 characters.

Response Behavior

Returns a JSON array of history entries with the following fields:

Field Description Example
idHisto Unique identifier of the history entry "HISTO-001"
dateAction Date and time the action was performed "2025-01-15T10:30:00"
action Type of action: ADD, MODIFY, DELETE "ADD"
userCode Code of the user who performed the action "USR001"
propertyCode property code "6730"
rateLevelCode Rate level code "RL01"
commercialOfferCode Commercial offer code "OFFER123"
commercialOfferType Type of commercial offer: RA or ASA "RA"
dateStart Start date of the commercial offer "2025-01-01"
dateEnd End date of the commercial offer "2025-12-31"
intraOnly Whether the offer is restricted to intranet only false
qualification Qualification: QUALIFIED, QUALIFIEDID, UNQUALIFIED "QUALIFIED"
repeatable Whether the offer is repeatable true
subCommercialOfferCode Sub-commercial offer code null
subCommercialOfferType Sub-commercial offer type null
complementCode Complement code "C001"
asaOfferSuffix ASA offer suffix: OTHER, NEGOCIATEDRATES, CHAINDISCOUNT "NEGOCIATEDRATES"
asaId ASA identifier (max 20 chars) "ASA-001"
commercialOfferCodeRef Reference commercial offer code null
commercialOfferTypeRef Reference commercial offer type "ASA"
isReferencePromo Whether this entry is a reference promo false

7. Usage Examples

🔍 Get commercial offer history for propertyCode = 0001

GET /apidata/v1/properties/0001/histo_commercial_offers
x-api-key: your_api_key
uuid: 550e8400-e29b-41d4-a716-446655440000
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 or invalid parameters (e.g. propertyCode) Check input data
401 UNAUTHORIZED Invalid or expired credentials Refresh or re-authenticate
403 FORBIDDEN Not authorized for this action Contact support
404 NOT_FOUND No history found for the given property code Check resource ID
405 NOT_ALLOWED Method Not Allowed Check HTTP method (GET only)
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.