Fortnox icon

Fortnox

Consume the Fortnox API

Actions110

Cost Center → Get Many

AI-generated

Summary

Retrieves a list of cost centers from Fortnox with optional filtering and pagination.

Inputs

  • Return All — When true, returns all cost centers; when false, limits the result set using the Limit field (default: false).
  • Limit — Maximum number of cost centers to return when Return All is false (minimum 1, default 50). Shown only when Return All is false.
  • Filters — Collection of filter options to narrow the result set.
  • Filters.Last Modified — Retrieve only cost centers modified after this date-time (format: YYYY-MM-DD HH:MM:SS).
  • Filters.Sort Order — Sort direction for the returned cost centers (options: Ascending, Descending; default: Ascending).

Output shape

Array of cost center objects as returned by the Fortnox API.

Each element corresponds to a cost center record; when Return All is true, the array contains all matching records; otherwise it contains up to Limit records.

Examples

Example 1: Fetch the 100 most recent cost centers

Set Return All to false, Limit to 100, keep default Sort Order (Ascending).

Example 2: Get all cost centers modified after 2024-01-01

Set Return All to true, set Filters.Last Modified to '2024-01-01 00:00:00'.

Links

Discussion