Overview
Retrieves all confirmed transactions of a specific company for a specific payroll cycle.Important: The payload can be transformed depending oncategoriesandgroupBy. Choose the options that better suit your integration.
Important: ForWhentext/csvwe can select two formats throughcsvFormatoptions.
lines is selected, each row corresponds to a single consumption record.
When columns is selected, each row corresponds to the total consumptions of an employee, and each consumption type is represented as a separate column.
Important: if the requested payroll cycle is not closed yet, then the propertyExample responses based onpayrollCycle.endwill be the current date. Otherwise,payrollCycle.endwill correspond to the last day of the cycle.
csvFormat and categories:
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
The response file type. It can be application/json or text/csv.
Available options:
application/json, text/csv Path Parameters
The unique identifier of the company
Query Parameters
The unique identifier of the payroll cycle. If not provided, the open payroll cycle will be used.
The format of the resulting consumptions.
lines: as many lines as grouping benefits for each employeecolumns: one line for each employee and as many columns as grouping benefits
Available options:
lines, columns List of benefit categories to include in the response, which will return them in the same order as requested.
Consumptions can be grouped to return data that is more similar to how your system works. The consumptions can be grouped by:
category: it will calculate the sum of expenses minus withdrawals for all the consumptions in a category,category,behaviour: sum of all expenses minus withdrawals for all the consumptions in category and behaviour.
Response
Company employees consumptions successfully retrieved