curl -X GET https://api.example.com/report/export \
-H "Content-Type: application/json" \
-b "access_token=YOUR_JWT_TOKEN" \
--output report.xlsx
{
"message": "Token no enviado o inválido"
}
Generate and download an Excel report with reservation data
curl -X GET https://api.example.com/report/export \
-H "Content-Type: application/json" \
-b "access_token=YOUR_JWT_TOKEN" \
--output report.xlsx
{
"message": "Token no enviado o inválido"
}
access_token cookie.
.xlsx) that is automatically downloaded. The file contains two sheets:
REPORT database table, which may include reservation counts, revenue, occupancy rates, and other metrics ordered chronologically.estimated_report database table, which may include forecasted reservation counts, projected revenue, expected occupancy rates, and other estimated metrics ordered chronologically.REPORT and estimated_report tablesreport.xlsxContent-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Content-Disposition: attachment; filename=report.xlsx
curl -X GET https://api.example.com/report/export \
-H "Content-Type: application/json" \
-b "access_token=YOUR_JWT_TOKEN" \
--output report.xlsx
{
"message": "Token no enviado o inválido"
}
REPORT and estimated_report tables