Skip to main content

Get Sales Conditions Booper

[Search-and-Offer] APIDATA Get Sales conditions Booper

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 the sales conditions type Booper for hotels.

3.2 Main Features

The supported operation is :

Find the sales conditions Booper for the hotels in a specified period.

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/sales_conditions/BOOPER?period=~2019-06-26,2050-12-31 (GET)

Description

Returns a list of booper sales condition for hotels based one search parameters.

Request Rules

  • Mandatory: period

Response Behavior

  • Returns an json array called salesConditionsGrid with the following fields: | Field | Description | Example | |---------------|---------------------------------------|-----------------------------------------| | chapter | the chapter of sales condition | "BOOPER" | | productCode | the hotel code | "3434" | | dateStart | the start date | "2020-01-01" | | dateEnd | the End date | "2050-02-01" | | days | the list of valdate day for a week |{"mon":"true","tue": "true","wed": "true","thu": "true","fri": "true","sat": "true","sun": "true"} | | restrictionLevel | the restriction level | "H_TK" | | salesConditionsDisplay | the display condition | "NOT_DISPLAYED" | | commercialOfferCode | the commercial offer code | "3SNLOC" | | commercialOfferType | type offer | "RA" | | absoluteBookingFrom | the booking absolut from| "1991-01-01" | | absoluteBookingTo | the booking absolut to| "2029-12-31" | | relativeBookingFrom | the relative booking from | "45" | | relativeBookingTo | the relative booking to |"3" |

7. Usage Examples

🔍 Search booper sales condition for Hotels in period start => 2019-06-26 , end => 2050-12-31

GET /apidata/v1/sales_conditions/BOOPER?period=~2019-06-26,2050-12-31
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 Invalid or missing fields 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.