Fortnox icon

Fortnox

Consume the Fortnox API

Actions110

Employee → Get Many

AI-generated

Summary

Retrieve multiple employee records from Fortnox with optional filtering and pagination.

Inputs

  • returnAll — When true, returns all matching employees; when false, limits results according to the Limit field (default 50).
  • limit — Maximum number of employees to return when Return All is false. Minimum value is 1. Default is 50.
  • filters — Collection of filter options applied to the request. All filters are optional; when omitted no filter is applied for that field.
  • filters.sortorder — Sort order of returned employees. Options: ascending (default) or descending.
  • filters.lastmodified — Only employees modified after this date-time (format YYYY-MM-DD HH:MM:SS) are returned.
  • filters.financialyear — Filter employees by financial year (numeric). Default 0 means no filter.
  • filters.financialyeardate — Filter employees by financial year date (format YYYY-MM-DD). Default empty string means no filter.

Output shape

array

Each element is an employee object as returned by the Fortnox API. If returnAll is true, the array contains all matching employees; otherwise its length is limited by the Limit value.

Examples

Example 1: Fetch the most recent 20 employees modified after 2023-01-01

Set Return All = false, Limit = 20, add a filter: Last Modified = 2023-01-01 00:00:00

Example 2: Retrieve all employees for financial year 2024 sorted descending

Set Return All = true, add filters: Financial Year = 2024, Sort Order = descending

Links

Discussion