View as Markdown
Fortnox icon

Fortnox ACTION

List Invoices

Retrieve a list of invoices in Fortnox. See the documentation
  • Action
  • Read only
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Fortnox account once, then configure and run List Invoices from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "fortnox-list-invoices",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    fortnox: { authProvisionId: "apn_xxxxxxx" },
    filter: "Filter",
    costcenter: "Cost Center",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

List Invoices inputs
Property Type Description
filter Filter string
Filter the invoices
Optional
costcenter Cost Center string
Filter the invoices by cost center
Optional
customername Customer Name string
Filter the invoices by customer name
Optional
customernumber Customer Number string
Filter the invoices by customer number
Optional
label Label string
Filter the invoices by label
Optional
documentnumber Document Number string
Filter the invoices by document number
Optional
fromdate From Date string
Filter the invoices by from date
Optional
todate To Date string
Filter the invoices by to date
Optional
fromfinalpaydate From Final Pay Date string
Filter the invoices by from final pay date
Optional
tofinalpaydate To Final Pay Date string
Filter the invoices by to final pay date
Optional
lastmodified Last Modified string
Filter the invoices by last modified
Optional
notcompleted Not Completed string
Filter the invoices by not completed
Optional
ocr OCR string
Filter the invoices by OCR
Optional
ourreference Our Reference string
Filter the invoices by our reference
Optional
project Project string
Filter the invoices by project
Optional
sent Sent string
Filter the invoices by sent
Optional
externalinvoicereference1 External Invoice Reference 1 string
Filter the invoices by external invoice reference 1
Optional
externalinvoicereference2 External Invoice Reference 2 string
Filter the invoices by external invoice reference 2
Optional
yourreference Your Reference string
Filter the invoices by your reference
Optional
invoicetype Invoice Type string
Filter the invoices by invoice type
Optional
articlenumber Article Number string
Filter the invoices by article number
Optional
articledescription Article Description string
Filter the invoices by article description
Optional
currency Currency string
Filter the invoices by currency
Optional
accountnumberfrom Account Number From string
Filter the invoices by account number from
Optional
accountnumberto Account Number To string
Filter the invoices by account number to
Optional
credit Credit string
Filter the invoices by credit
Optional
sortby Sort By string
Filter the invoices by sort by
Optional
sortorder Sort Order string
Filter the invoices by sort order
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
fortnox-list-invoices
Version
0.0.1
App
Fortnox
Authentication
OAuth
Read-only
Yes
Destructive
No
Open world
Yes