Skip to main content

Room Revenue

Overview

Returns detailed room revenue records for the requested date range, providing a clear view of revenue generated from room sales. Each row links room charges, discounts, taxes, service charges, commissions, and net room revenue to the related reservation, folio, room, rate plan, guest, and stay dates. The response supports revenue reconciliation, financial reporting, and performance analysis, while optional filters allow the dataset to be narrowed by agent, room, guest, market segment, reservation source, and geographic area.

Request Endpoint

  • Method: POST
  • Path: {{base_url}}/api/reports/room-revenue

Payload Construction and Schema Definition

The request payload is submitted as form-data fields.

Request Body Fields

FieldTypeRequiredDescriptionExample
start_datestringYesStart date (YYYY-MM-DD) for the report.2026-07-01
end_datestringYesEnd date (YYYY-MM-DD) for the report.2026-07-24

Response Body Fields

FieldTypeAlways presentDescription
errorbooleanYesIndicates whether the request failed.
statusstringYesStatus string. On success returns e.g. "ok".
messagestringYesHuman-readable message. Often empty on success.
dataarray of objectYes (on success)List of room revenue rows.

Response data[] Fields

FieldTypeDescriptionExample
reservation_detail_idstringReservation_detail_id.a7caa090-...
main_foliostringMain folio ID.a7caa960-...
folio_nonumberFolio number.1742
datesstringDate of room revenue (YYYY-MM-DD).2026-07-02
room_namestringRoom name.Room Family1
room_type_namestringRoom type name (nullable).Family Suite
company_namestringCompany name.Aditya Villas
room_idstringRoom ID.4fd8e320-...
room_type_idstringRoom type ID (nullable).bab17430-...
na_statusnumberNight audit1
namestringGuest name.kocong
account_idstringAccount ID7a821c40-...
agent_namestringAgent name..Aditya Agent
arrival_datestringArrival date (YYYY-MM-DD).2026-07-02
departure_datestringDeparture date (YYYY-MM-DD).2026-07-03
extended_datestringExtended departure date (YYYY-MM-DD).2026-07-03
personnumberNumber of persons.1
account_namestringAccount name.4.1.01.05 - Aditya Revenue
remarkstringTransaction type.Room Charge
company_idstringCompany ID.757beb40-...
eom_idnumberID period.null
created_bystringUser who created the record.gusadi
total_amountnumberTotal room charge amount.2840000
price_amountnumberTotal room charge amount.2840000
service_amountnumberTotal service charge amount.ef084830-...
taxes_amountnumberTotal taxes on room charge.258181-...
commission_amountnumberTotal commission on room charge.0
discount_amountnumberEmpty.0
revenuenumberTotal room charge equals taxes service equals total commission.2347107-...
reservation_rates_typestringReservation rate transaction type.room charge

Expected System Responses

The system responds with HTTP 200 OK.

{
"error": false,
"status": "ok",
"message": "",
"data": [
{
"reservation_detail_id": "a7caa090-75f4-11f1",
"main_folio": "a7caa960-75f4-11f1",
"folio_no": 1742,
"dates": "2026-07-02",
"room_name": "Room Family1",
"room_type_name": "Family Suite",
"company_name": "Aditya Villas",
"room_id": "4fd8e320-366b-11ea",
"room_type_id": "bab17430-c4df-11ea",
"na_status": 1,
"name": " kocong ",
"account_id": "7a821c40-c5a3-11ea",
"agent_id": "418fc520-bbc6-11ec",
"agent_name": "Aditya Agent",
"arrival_date": "2026-07-02",
"departure_date": "2026-07-03",
"extended_date": "2026-07-03",
"person": 1,
"account_name": "4.1.01.05 - Aditya Revenue",
"remark": "Room Charge",
"company_id": "757beb40-3669-11ea",
"eom_id": null,
"created_by": "gusadi",
"total_amount": 2840000,
"price_amount": 2840000 ,
"service_amount": 234710.74380165292,
"taxes_amount": 258181.8181818182,
"commission_amount": 0,
"discount_amount": 0,
"revenue": 2347107.4380165287,
"reservation_rates_type": "room charge"
}
]
}