Read the finance report
curl --request GET \
--url https://flyhub.app/api/v1/va/finance \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://flyhub.app/api/v1/va/finance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://flyhub.app/api/v1/va/finance"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"period": "all",
"currency": "FH$",
"from": "2023-12-25",
"to": "2023-12-25",
"bucket": "day",
"summary": {
"revenue": 123,
"costs": 123,
"netResult": 123,
"operatingMarginPercent": 123
},
"previous": {
"revenue": 123,
"costs": 123,
"netResult": 123,
"operatingMarginPercent": 123
},
"cashBalance": 123,
"revenueBreakdown": [
{
"key": "<string>",
"label": "<string>",
"amount": 123,
"sharePercent": 123
}
],
"costBreakdown": [
{
"key": "<string>",
"label": "<string>",
"amount": 123,
"sharePercent": 123
}
],
"series": [
{
"period": "<string>",
"revenue": 123,
"costs": 123,
"netResult": 123
}
],
"highlights": {
"bestDay": {
"date": "2023-12-25",
"netResult": 123
},
"worstDay": {
"date": "2023-12-25",
"netResult": 123
},
"profitableDays": 1,
"totalDays": 2,
"averageDailyResult": 123
}
},
"meta": {
"apiVersion": "2026-10-25"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Read the finance report
Investor-style profit and loss: revenue, costs, net result and margin, the previous period for comparison, revenue and cost breakdowns, a daily (or monthly, beyond 92 days) series, highlights and current cash. Requires the opt-in finance:read scope and costs 20 rows. Defaults to the last 30 days. Results refresh about once a minute.
GET
/
api
/
v1
/
va
/
finance
Read the finance report
curl --request GET \
--url https://flyhub.app/api/v1/va/finance \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://flyhub.app/api/v1/va/finance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://flyhub.app/api/v1/va/finance"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"period": "all",
"currency": "FH$",
"from": "2023-12-25",
"to": "2023-12-25",
"bucket": "day",
"summary": {
"revenue": 123,
"costs": 123,
"netResult": 123,
"operatingMarginPercent": 123
},
"previous": {
"revenue": 123,
"costs": 123,
"netResult": 123,
"operatingMarginPercent": 123
},
"cashBalance": 123,
"revenueBreakdown": [
{
"key": "<string>",
"label": "<string>",
"amount": 123,
"sharePercent": 123
}
],
"costBreakdown": [
{
"key": "<string>",
"label": "<string>",
"amount": 123,
"sharePercent": 123
}
],
"series": [
{
"period": "<string>",
"revenue": 123,
"costs": 123,
"netResult": 123
}
],
"highlights": {
"bestDay": {
"date": "2023-12-25",
"netResult": 123
},
"worstDay": {
"date": "2023-12-25",
"netResult": 123
},
"profitableDays": 1,
"totalDays": 2,
"averageDailyResult": 123
}
},
"meta": {
"apiVersion": "2026-10-25"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Authorizations
Headers
Query Parameters
Response
Airline finance report.
Was this page helpful?