Booking Engine Guide
  • Mews Booking Engine Guide
  • Booking Engine Standalone
    • Getting started
    • Deeplinks
  • Booking Engine Widget
    • Getting started
    • Use cases
      • Prerequisites
      • Testing in the Demo environment
      • Using your own Date inputs
      • Multiple enterprises and pre-selected locations
      • Disabling widget caching
    • Advanced guide
    • Reference
    • Troubleshooting
  • Booking Engine API
    • Usage guidelines
      • Authentication
      • Requests
      • Responses
      • Environments
      • Images
      • Supported currency codes
      • Supported language codes
    • Use cases
      • Availability blocks
      • On session payments
      • Payment card authorization
      • Supporting payment cards
    • API Operations
      • Availability blocks
      • Configuration
      • Hotels
      • Payment cards
      • Reservations
      • Reservation groups
      • Services
      • Vouchers
    • Deprecations
  • Integrations
    • Google Tag Manager
    • Google Triggers Reference
    • Google Tag Manager Configuration
    • Google Analytics cross-domain tracking
  • FAQ
    • Ways to integrate
    • Migration off the mews.li domain
  • Changelog
    • Changelog 2024
    • Changelog 2023
    • Changelog 2022
    • Changelog 2021
    • Changelog 2020
Powered by GitBook
On this page
  • Get availability blocks
  • Request
  • Response

Was this helpful?

  1. Booking Engine API
  2. API Operations

Availability blocks

Get availability blocks

Get details of the availability blocks for the given hotel. This operation can be called initially to fetch data which may be important during the booking workflow. Availability blocks can restrict your booking engine's calendar to specific intervals defined by StartUtc and EndUtc in the response, it also gives you RateId that should be used.

Request

[ApiBaseUrl]/api/distributor/v1/availabilityBlocks/getAll

{
    "Client": "My Client 1.0.0",
    "AvailabilityBlockIds": [
        "5mgbe1b4-6739-40b7-81b3-d369d9469c48"
    ],
    "EnterpriseId": "3edbe1b4-6739-40b7-81b3-d369d9469c48"
}
Property
Type
Contract
Description

Client

string

required

EnterpriseId

string

required

Unique identifier of the hotel (enterprise).

AvailabilityBlockIds

array of string

required

Set of unique identifiers of the Availability Blocks for which you want to get the details.

Response

{
    "AvailabilityBlocks":[
      {
        "Id": "5mgbe1b4-6739-40b7-81b3-d369d9469c48",
        "Name": "Name of the availability block",
        "ServiceId": "a64f85bf-b92c-4df7-b7c8-ab7c00adc59a",
        "RateId": "038a88e6-17c6-4553-b036-aebb00a9bc4c",
        "StartUtc": "2022-06-27T22:00:00Z",
        "EndUtc": "2022-07-04T22:00:00Z"
      }
    ]
}
Property
Type
Contract
Description

Id

string

required

Provided ID of availability block.

Name

string

required

Name of availability block.

ServiceId

string

required

RateId

string

required

StartUtc

string

required

Availability block start date (validity start date) in ISO 8601 format.

EndUtc

string

required

Availability block end date (validity expiration date) in ISO 8601 format.

PreviousAPI OperationsNextConfiguration

Last updated 2 months ago

Was this helpful?

Identification of the API client, as described in .

Unique identifier of to which availability block is assigned

Unique identifier of which is intended for this availability block

Authentication
Rate
Service