Fortnox icon

Fortnox

Consume the Fortnox API

Actions110

Expense → Get Many

AI-generated

Summary

Retrieves a list of expense records from Fortnox, with optional filtering by last‑modified date and sort order, and optional pagination.

Inputs

  • Return All — When enabled, returns all matching expenses; otherwise limits the result set to the value of Limit. Default: false.
  • Limit — Maximum number of expense records to return when Return All is disabled. Minimum 1. Default: 50.
  • Filters — Collection of optional filters applied to the request.
  • Filters.Sort Order — Direction in which results are sorted. Options: Ascending (default), Descending.
  • Filters.Last Modified — ISO‑like timestamp (YYYY‑MM‑DD HH:MM:SS); only expenses modified after this date are returned. Empty string disables the filter.

Output shape

json

Returns an array of expense objects as provided by the Fortnox API. Each object contains the fields defined by the Expense resource (e.g., ID, description, amount, dates, etc.). If no expenses match, an empty array is returned.

Examples

Example 1: Fetch the 10 most recently modified expenses

Return All: false; Limit: 10; Filters → Sort Order: Descending; Last Modified: left blank (or set a specific date).

Example 2: Retrieve all expenses created after 2024‑01‑01

Return All: true; Filters → Sort Order: Ascending; Last Modified: 2024-01-01 00:00:00.

Links

Discussion