Skip to main content

Hotel Date

Overview

The Hotel Date endpoint returns the property’s current business date. This date is evaluated according to the hotel configuration and timezone.

Request Endpoint

  • HTTP Method: POST
  • Secure URL Path: {{base_url}}/api/hotel-date

Payload Construction and Schema Definition

The request payload is submitted as form-data fields.

Response Body Fields

FieldTypeAlways presentDescription
errorbooleanYesIndicates whether the request failed. false means success.
statusstringYesStatus string. On success the example returns "ok".
messagestringYesHuman-readable message. Often empty on success.
datastring (date)Yes (on success)Hotel business date in YYYY-MM-DD.

Expected System Responses

The system responds with HTTP 200 OK.

{
"error": false,
"status": "ok",
"message": "",
"data": "2023-01-17"
}