Skip to main content

Actual Sales

Overview

Returns detailed actual sales rows for the requested date range, suitable for revenue auditing, reconciliation, and downstream analytics. Each row ties financial totals (room charge, extra charge, taxes, service, commission, and net room revenue) to reservation and folio identifiers and includes contextual dimensions such as room, rate, reservation source/agent, guest attributes, and stay dates; optional filters allow narrowing the dataset by agent, room, guest, market segment, and geography.

Request Endpoint

  • Method: POST
  • Path: {{base_url}}/api/hq/reports/actual-sales

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.2025-06-01
end_datestringYesEnd date (YYYY-MM-DD) for the report.2025-06-30
agent_idstringNoAgent ID to filter (or all).all
room_type_idstringNoRoom type ID to filter (or all).all
folio_nostringNoFolio number to filter.
guest_profile_idstringNoGuest profile ID to filter (or all).all
room_idstringNoRoom ID to filter (or all).all
market_segment_idstringNoMarket segment ID to filter (or all).all
countrystringNoCountry to filter (or all).all
nationalitystringNoNationality to filter (or all).all
regionstringNoRegion to filter (or all).all

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 actual sales rows.

Response data[] Fields

FieldTypeDescriptionExample
reservation_detail_idstringReservation detail unique ID.456fb120-...
main_foliostringMain folio ID.456ff1c0-...
folio_nonumberFolio number.1650
datesstringDate of the sale (YYYY-MM-DD).2025-06-24
reference_nostringReference number (nullable).null
room_namestringRoom name.Deluxe Villas 102
room_type_namestringRoom type name (nullable).null
company_namestringCompany name.Gus Adi Dev Test
room_idstringRoom ID.73ba0860-...
room_type_idstringRoom type ID (nullable).null
namestringGuest name.Mr xiao li
countrystringGuest country (nullable).Indonesia
nationalitystringGuest nationality (nullable).Indonesia
sourcestringReservation source.Walk In
market_segmentstringMarket segment (nullable).null
ratesstringRate description.Breakfast
regionstringRegion (nullable).Asia
agent_idstringAgent ID.ag1
agent_namestringAgent name.Walkin
arrival_datestringArrival date (YYYY-MM-DD).2025-06-23
departure_datestringDeparture date (YYYY-MM-DD).2025-06-25
extended_datestringExtended departure date (YYYY-MM-DD).2025-06-25
personnumberNumber of persons.1
company_idstringCompany ID.ef084830-...
created_bystringUser who created the record.admin
statusstringReservation status (e.g., CHECK_OUT).CHECK_OUT
special_requeststringSpecial request (nullable, may contain HTML).<p>ini special request</p>
total_nightstringNumber of nights.2
totalnumberTotal amount for the sale.2000000
total_room_chargenumberTotal room charge.2000000
total_extra_chargenumberTotal extra charge.0
total_posnumberTotal POS (nullable).null
total_rebatenumberTotal rebate.0
total_taxesnumberTotal taxes.181818.18
total_servicenumberTotal service charge.165289.25
total_commissionnumberTotal commission.0
total_room_netnumberNet room revenue after deductions.1619834.71

Expected System Responses

The system responds with HTTP 200 OK.

{
"error": false,
"status": "ok",
"message": "",
"data": [
{
"reservation_detail_id": "456fb120-50cb-11f0-acff-298a1109e825",
"main_folio": "456ff1c0-50cb-11f0-abb2-b7b74660781b",
"folio_no": 1650,
"dates": "2025-06-24",
"reference_no": null,
"room_name": "Deluxe Villas 102",
"room_type_name": null,
"company_name": "Gus Adi Dev Test",
"room_id": "73ba0860-3869-11eb-9c04-0f7fa94c8a1b",
"room_type_id": null,
"name": "Mr xiao li",
"country": null,
"nationality": null,
"source": "Walk In",
"market_segment": null,
"rates": "Breakfast",
"region": null,
"agent_id": "ag1",
"agent_name": "Walkin",
"arrival_date": "2025-06-23",
"departure_date": "2025-06-25",
"extended_date": "2025-06-25",
"person": 1,
"company_id": "ef084830-3864-11eb-8731-6b25a1bb66ea",
"created_by": "admin",
"status": "CHECK_OUT",
"special_request": "",
"total_night": "2",
"total": 2000000,
"total_room_charge": 2000000,
"total_extra_charge": 0,
"total_pos": null,
"total_rebate": 0,
"total_taxes": 181818.18181818182,
"total_service": 165289.25619834714,
"total_commission": 0,
"total_room_net": 1619834.7107438017
}
]
}