> ## 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.

# How to obtain Monthly Reports

This guide explains how to obtain all consumptions for all employees for a closed payroll cycle (e.g., end of month).

**Steps:**

1. **Get the list of employees:**
   * Use [`GET /companies/{companyId}/employees`](/en/api-reference/employees/endpoint/get_employees) to retrieve all employees in the company.

2. **Get consumptions for each employee:**
   * Iterate through the list of employees and use [`GET /companies/{companyId}/employees/{employeeId}/consumptions?payroll=YYYY-MM`](/en/api-reference/consumptions/endpoint/get_employee_consumptions) to retrieve confirmed consumptions for the desired payroll cycle (Format: `YYYY-MM`).

<img src="https://mintlify.s3.us-west-1.amazonaws.com/pluxee-4cf195bf/images/payroll-cycle-explanation.jpg" alt="How to Correctly Query Employee Consumption Data" />

<Warning>
  **Important Notice**<br />
  Ensure you use the correct `payroll` parameter (e.g., `2023-11`) to get data for the specific closed cycle.
</Warning>

## Key Points

* If the `payroll` parameter is not provided, the API works with the ongoing cycle.

<Warning>
  **Important Notice**<br />
  For more details on each endpoint, refer to their respective documentation links above.
</Warning>
