Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Holidu Discounts API

The Discounts API from Holidu — 2 operation(s) for discounts.

Holidu Discounts API is one of 23 APIs that Holidu publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Discounts. The published artifact set on APIs.io includes an OpenAPI specification.

This API exposes 3 operations across 2 paths, and defines 4 schemas. It is described by OpenAPI 3.0.3, at version 1.1.0.

Requests are made against a single base URL, https://external-api.holidu.com.

3 operations 2 paths 4 schemas 2 GET1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
1.1.0
Base URL
https://external-api.holidu.com
Authentication
API Key, HTTP Bearer
Resource Areas
1

Authentication & Security 2

Holidu Discounts API declares 2 security schemes for authenticating requests. An API key is passed in the header as x-api-key (ApiKeyAuth). It accepts HTTP bearer tokens (JWT) (BearerAuth).

  • BearerAuth — Holidu authenticates to the affiliate using an OAuth 2.0 Bearer Token ([RFC 6750](https://www.rfc-editor.org/rfc/rfc6750)). Token exchange details are agreed u…

Paths & Operations 3

Across 2 paths, the API surfaces 3 operations — 2 GET, 1 POST. Each is listed below with its method, path, parameters, and response codes.

Discounts 3
GET
/v2/discount
Get a single discount for an apartment by discount id
getDiscountById 4 params → 200400401404500
POST
/v2/discount
Create or update a single discount for an apartment
upsertDiscount 3 params body → 200400401404500
GET
/v2/discounts
Get discounts for an apartment
getDiscounts 3 params → 200401404500

Schemas 4

The contract defines 4 schemas that model the data the API accepts and returns. The most detailed are DiscountDto (7 properties), DiscountConditions (6 properties), SeasonApplicable (2 properties), HoliduErrorResponse (1 property). Each schema is shown below with its type and property counts.

HoliduErrorResponse
object
1 property
DiscountDto
object
7 properties 3 required
DiscountConditions
object
Conditions for this discount
6 properties
SeasonApplicable
object
Season for which extra cost is applicable
2 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

holidu-discounts-api-openapi.yml Raw ↑

Other APIs Holidu publishes across the network.

Holidu Apartment API
Holidu Availabilities API
Holidu Availability API
Holidu Booking Terms API
Holidu Bookings API
Holidu Changed API
Holidu Descriptions API
Holidu Details API
Holidu Extra Costs API
Holidu Facilities API
Holidu LOS API
Holidu LOS Push API API