Documentation Index
Fetch the complete documentation index at: https://docs.partners.api.cobee.io/llms.txt
Use this file to discover all available pages before exploring further.
Important: The payload can be transformed depending onformat,categoriesandgroupBy. Choose the options that better suit your integration.
Important: Fortext/csvwe can select two formats throughcsvFormatoptions. Whenlinesis selected, each row corresponds to a single consumption record. Whencolumnsis selected, each row corresponds to the total consumptions of an employee, and each consumption type is represented as a separate column.
Important: if thepayroll(i.e.2025-08) query param belongs to a cycle that is not closed yet, then the propertypayrollCycle.endwill be the current date. Otherwise,payrollCycle.endwill correspond to the last day of the cycle.
Important: when an employee has migrated between companies of the same corporation, they may appear more than once in the response (once per company) under the sameExample responses based onlegalId. UsemergeEmployeesto consolidate those duplicates into a single employee with the summed consumptions:If not provided, duplicates are preserved as-is. Only applies to employees within the same corporation sharing the same
mergeEmployees=newestkeeps the employee with the largestcreatedAt(most recently created employee record).mergeEmployees=oldestkeeps the employee with the smallestcreatedAt(earliest created employee record).legalId.
csvFormat and categories:
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The response file type. It can be application/json or text/csv.
application/json, text/csv The unique identifier of the corporation
The fiscal year and month (YYYY-MM) of the payroll cycle the consumptions belong to (e.g. 2025-03).
^[0-9]{4}-(0[1-9]|1[0-2])$"2025-03"
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 benefitslines, 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.Merges consumptions of employees that appear in multiple companies of the corporation under the same legalId (e.g. after a migration between companies). Consumptions from duplicate employees are summed and assigned to a single "winner" employee; losing duplicates are dropped from the response.
newest: keep the employee with the largest createdAt (most recently created employee record).oldest: keep the employee with the smallest createdAt (earliest created employee record).When not provided, no merging is performed and duplicate employees are preserved as-is.
newest, oldest Corporation employee consumptions successfully retrieved