curl --request POST \
--url https://api.fyvel.io/v1/reports/{reportId}/rows/{rowId}/lines \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"companyIds": ["11111111-1111-4111-8111-111111111111"],
"periodFrom": "2026-01",
"periodTo": "2026-06",
"aggregation": "monthly",
"layerIds": ["44444444-4444-4444-8444-444444444444"],
"costCenterCodes": [100]
}'
{
"companyIds": ["11111111-1111-4111-8111-111111111111"],
"periodFrom": "2026-01",
"periodTo": "2026-06",
"aggregation": "monthly",
"layerIds": ["44444444-4444-4444-8444-444444444444"],
"costCenterCodes": [100]
}
{
"lines": [
{
"key": "category:99999999-9999-4999-8999-999999999999",
"label": "Licenses",
"values": {
"2026-01": 8000,
"2026-02": 7500
}
},
{
"key": "account:aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
"label": "8400 · Revenue",
"values": {
"2026-01": 4000,
"2026-02": 4100
}
}
]
}
Reports
Lines
Accounts and categories under one data row.
POST
/
v1
/
reports
/
{reportId}
/
rows
/
{rowId}
/
lines
curl --request POST \
--url https://api.fyvel.io/v1/reports/{reportId}/rows/{rowId}/lines \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"companyIds": ["11111111-1111-4111-8111-111111111111"],
"periodFrom": "2026-01",
"periodTo": "2026-06",
"aggregation": "monthly",
"layerIds": ["44444444-4444-4444-8444-444444444444"],
"costCenterCodes": [100]
}'
{
"companyIds": ["11111111-1111-4111-8111-111111111111"],
"periodFrom": "2026-01",
"periodTo": "2026-06",
"aggregation": "monthly",
"layerIds": ["44444444-4444-4444-8444-444444444444"],
"costCenterCodes": [100]
}
{
"lines": [
{
"key": "category:99999999-9999-4999-8999-999999999999",
"label": "Licenses",
"values": {
"2026-01": 8000,
"2026-02": 7500
}
},
{
"key": "account:aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
"label": "8400 · Revenue",
"values": {
"2026-01": 4000,
"2026-02": 4100
}
}
]
}
curl --request POST \
--url https://api.fyvel.io/v1/reports/{reportId}/rows/{rowId}/lines \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"companyIds": ["11111111-1111-4111-8111-111111111111"],
"periodFrom": "2026-01",
"periodTo": "2026-06",
"aggregation": "monthly",
"layerIds": ["44444444-4444-4444-8444-444444444444"],
"costCenterCodes": [100]
}'
{
"companyIds": ["11111111-1111-4111-8111-111111111111"],
"periodFrom": "2026-01",
"periodTo": "2026-06",
"aggregation": "monthly",
"layerIds": ["44444444-4444-4444-8444-444444444444"],
"costCenterCodes": [100]
}
{
"lines": [
{
"key": "category:99999999-9999-4999-8999-999999999999",
"label": "Licenses",
"values": {
"2026-01": 8000,
"2026-02": 7500
}
},
{
"key": "account:aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
"label": "8400 · Revenue",
"values": {
"2026-01": 4000,
"2026-02": 4100
}
}
]
}
Bearer and the API key. See Authentication.Path parameters
Report id from Reports.
Row id from the structure. Only rows of type
data can be opened.Body
The values filter, with no extra fields.costCenterCodes and costCenterGroupIds limit the lines to those cost centers, the same way they do for values. Use the same selection, or the lines will not match the number.
Response
Other row types return 400 and
ROW_NOT_EXPANDABLE. An unknown row returns 404 and ROW_NOT_FOUND.