cycle path parameter. Each amount is labeled by category, benefit type and tax treatment (exempt or non-exempt).category, benefitType and taxTreatment, plus the totals for that employee.taxId is provided, the endpoint returns data only for employees assigned to that subsidiary.personalId is provided, the endpoint returns data only for that employee. In this case taxId is ignored.benefitType, taxTreatment and category filter the benefit lines. The totals are calculated only over the lines that remain after filtering.data.category, benefitType and taxTreatment. The same category can appear more than once (for example, food as Flexible Compensation and food as Social Benefit).totals are always returned.payrollId can be null if the employee has no payroll ID in the company.food and transport categories. An invalid combination, such as category=nursery with benefitType=social_benefit, returns a 400 error.curl --location 'https://api-public.payflow.es/v2/flexflow/cycles//consumptions?page=&size=&taxId=&personalId=&benefitType=&taxTreatment=&category=' \
--header 'authorization: <api-key>'{
"data": [
{
"personalId": "X4004202V",
"payrollId": "000014",
"benefits": [
{
"category": "food",
"amount": 117.01,
"taxTreatment": "exempt",
"benefitType": "flexible_remuneration"
},
{
"category": "transport",
"amount": 17.3,
"taxTreatment": "exempt",
"benefitType": "flexible_remuneration"
},
{
"category": "nursery",
"amount": 150,
"taxTreatment": "exempt",
"benefitType": "flexible_remuneration"
},
{
"category": "nursery",
"amount": 20,
"taxTreatment": "non_exempt",
"benefitType": "flexible_remuneration"
},
{
"category": "education",
"amount": 40,
"taxTreatment": "exempt",
"benefitType": "flexible_remuneration"
},
{
"category": "education",
"amount": 80,
"taxTreatment": "non_exempt",
"benefitType": "flexible_remuneration"
},
{
"category": "health_insurance",
"amount": 30,
"taxTreatment": "exempt",
"benefitType": "flexible_remuneration"
},
{
"category": "health_insurance",
"amount": 10,
"taxTreatment": "non_exempt",
"benefitType": "flexible_remuneration"
},
{
"category": "food",
"amount": 25,
"taxTreatment": "exempt",
"benefitType": "social_benefit"
},
{
"category": "food",
"amount": 50,
"taxTreatment": "non_exempt",
"benefitType": "social_benefit"
},
{
"category": "transport",
"amount": 12,
"taxTreatment": "exempt",
"benefitType": "social_benefit"
},
{
"category": "transport",
"amount": 8,
"taxTreatment": "non_exempt",
"benefitType": "social_benefit"
}
],
"totals": {
"exempt": 391.31,
"nonExempt": 168,
"flexibleRemuneration": 464.31,
"socialBenefit": 95
}
}
],
"meta": {
"total": 1,
"perPage": 15,
"currentPage": 1,
"lastPage": 1
}
}