Skip to main content

Room Type

Overview​

The Room Type endpoint returns the list of room types configured for the property. Room types are master data used for categorizing physical rooms by their configurations and amenities.

This master data is commonly used for availability display, rate management, and operational dashboards.

Request Endpoint​

  • HTTP Method: POST
  • Secure URL Path: {{base_url}}/api/room-type

Authorization​

Requires the following permission:

  • Permission: integration-room-type

Payload Construction and Schema Definition​

The request payload is submitted as form-data fields.

Request Body Fields​

FieldTypeRequiredDescriptionExample
usernamestringYesAPI account username provided by GuestPro.demo_user
passwordstringYesAPI account password provided by GuestPro.••••••••
company_codestringYesProperty/company identifier bound to your API account.gusadidev
offsetnumberNoPagination offset/page start (backend-specific).0
limitnumberNoPage size (backend-specific).10

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 type objects.
totalnumberYes (on success)Total number of room types in the property (independent from the current page size).

Response data Fields​

FieldTypeDescriptionExample
idstringRoom type identifier.0e080440-1912-11f1-876e-ad209e3bdc3c
codestring (nullable)Room type code.Familiy Room
namestringRoom type name/label.Familiy Room
createdAtstringCreation timestamp.2026-03-06 12:07:56
total_roomnumbertotal room.1

Expected System Responses​

The system responds with HTTP 200 OK.

{
"error": false,
"status": "ok",
"message": "",
"data": [
{
"id": "0e080440-1912-11f1-876e-ad209e3bdc3c",
"code": "Familiy Room",
"name": "Familiy Room",
"createdAt": "2026-03-06 12:07:56",
"total_room": 1
},
],
"total": 13
}