Skip to main content

Rooms

Overview

The Rooms endpoint returns the list of physical rooms configured for the property. Each room includes a reference to its linked room type.

This master data is commonly used for mapping, operational dashboards, and internal reconciliation.

Request Endpoint

  • HTTP Method: POST
  • Secure URL Path: {{base_url}}/api/rooms

Payload Construction and Schema Definition

The request payload is submitted as form-data fields.

Request Body Fields

FieldTypeRequiredDescription
offsetnumberNoPagination offset/page start (backend-specific).
limitnumberNoPage size (backend-specific).

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.
dataarray<object>Yes (on success)Array of room objects.
totalnumberYes (on success)Total number of rooms in the property (independent from the current page size).

Response data Fields

FieldTypeDescriptionExample
idstringRoom identifier.0e7e2380-ca85-11ec-a1c6-2743a1e38e25
room_numberstring (nullable)Room number (may be null).102
descriptionstringRoom description / label.Room Deluxe Deluxe
createdAtstringCreation timestamp.2022-05-03 10:02:15
room_type_idstringLinked room type ID.123fe740-3869-11eb-a57f-950037ff4988
room_type.idstringRoom type ID.123fe740-3869-11eb-a57f-950037ff4988
room_type.namestringRoom type name.Deluxe Villa

Expected System Responses

The system responds with HTTP 200 OK.

{
"error": false,
"status": "ok",
"message": "",
"data": [
{
"id": "0e7e2380-ca85-11ec-a1c6-2743a1e38e25",
"room_number": "102",
"description": "Room Deluxe Deluxe",
"createdAt": "2022-05-03 10:02:15",
"room_type_id": "123fe740-3869-11eb-a57f-950037ff4988",
"room_type": {
"id": "123fe740-3869-11eb-a57f-950037ff4988",
"name": "Deluxe Villa"
}
},
{
"id": "15e11ee0-ac30-11ed-a31e-ff5064a500a7",
"room_number": null,
"description": "2 Bedroom",
"createdAt": "2023-02-14 14:23:24",
"room_type_id": "b0cb41b0-ac2f-11ed-a9ac-a72e59437084",
"room_type": {
"id": "b0cb41b0-ac2f-11ed-a9ac-a72e59437084",
"name": "2 Bedroom"
}
}
],
"total": 20
}