# Fortnox — Pipedream Connect

> Sweden's leader in web-based accounting and invoicing

- API slug: `fortnox` (use in MCP headers and tool keys)
- Auth: OAuth (Pipedream-managed)
- Categories: Business Management
- Website: https://www.fortnox.se/
- Managed OAuth scopes: `article` · `invoice` · `customer` · `order` · `payment` · `profile` · `supplierinvoice` · `bookkeeping` · `supplier`
- This page (HTML): https://pipedream.com/apps/fortnox
- Tools: 21 actions · 0 triggers

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: fortnox`

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
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 accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "fortnox",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run Create Article:
const result = await mcp.callTool({
  name: "fortnox-create-article",
  arguments: {
    description: "Description",
    ean: "EAN",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## API proxy

For a Fortnox endpoint with no pre-built tool, the proxy forwards your request with the connected user's credentials attached.

```bash
# The path segment is the target URL, URL-safe base64 encoded:
# https://api.fortnox.se/3/customers

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcGkuZm9ydG5veC5zZS8zL2N1c3RvbWVycw?external_user_id={external_user_id}&account_id=apn_xxxxxxx" \
  -H "Authorization: Bearer {access_token}" \
  -H "x-pd-environment: production"
```

Docs: [API proxy guide](https://pipedream.com/docs/connect/api-proxy.md)

## SDK

```ts
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-create-article",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    fortnox: { authProvisionId: "apn_xxxxxxx" },
    description: "Description",
    ean: "EAN",
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (21)

### `fortnox-create-article` — Create Article (Write)

Creates a new article in the Fortnox API. See the documentation.

Full schema: https://pipedream.com/apps/fortnox/actions/create-article.md

### `fortnox-create-customer` — Create Customer (Write)

Creates a new customer in the Fortnox API. See the documentation.

Full schema: https://pipedream.com/apps/fortnox/actions/create-customer.md

### `fortnox-create-invoice` — Create Invoice (Write)

Creates a new invoice in the Fortnox API. See the documentation.

Full schema: https://pipedream.com/apps/fortnox/actions/create-invoice.md

### `fortnox-create-invoice-payment` — Create Invoice Payment (Write)

Creates a new invoice payment in the Fortnox API. See the documentation.

Full schema: https://pipedream.com/apps/fortnox/actions/create-invoice-payment.md

### `fortnox-get-supplier-invoice` — Get Supplier Invoice (Read-only)

Retrieve a supplier invoice. See the documentation

Full schema: https://pipedream.com/apps/fortnox/actions/get-supplier-invoice.md

### `fortnox-list-accounts` — List Accounts (Read-only)

List all accounts in Fortnox. See the documentation

Full schema: https://pipedream.com/apps/fortnox/actions/list-accounts.md

### `fortnox-list-article-number-options` — List Article Number Options (Read-only)

Retrieves available options for the Article Number field.

Full schema: https://pipedream.com/apps/fortnox/actions/list-article-number-options.md

### `fortnox-list-articles` — List Articles (Read-only)

List all articles in Fortnox. See the documentation

Full schema: https://pipedream.com/apps/fortnox/actions/list-articles.md

### `fortnox-list-customer-number-options` — List Customer Number Options (Read-only)

Retrieves available options for the Customer Number field.

Full schema: https://pipedream.com/apps/fortnox/actions/list-customer-number-options.md

### `fortnox-list-customers` — List Customers (Read-only)

List all customers in Fortnox. See the documentation

Full schema: https://pipedream.com/apps/fortnox/actions/list-customers.md

### `fortnox-list-financial-years` — List Financial Years (Read-only)

Retrieve a list of financial years. See the documentation

Full schema: https://pipedream.com/apps/fortnox/actions/list-financial-years.md

### `fortnox-list-invoice-number-options` — List Invoice Number Options (Read-only)

Retrieves available options for the Invoice Number field.

Full schema: https://pipedream.com/apps/fortnox/actions/list-invoice-number-options.md

### `fortnox-list-invoices` — List Invoices (Read-only)

Retrieve a list of invoices in Fortnox. See the documentation

Full schema: https://pipedream.com/apps/fortnox/actions/list-invoices.md

### `fortnox-list-supplier-invoice-number-options` — List Supplier Invoice Number Options (Read-only)

Retrieves available options for the Supplier Invoice Number field.

Full schema: https://pipedream.com/apps/fortnox/actions/list-supplier-invoice-number-options.md

### `fortnox-list-supplier-invoices` — List Supplier Invoices (Read-only)

List all invoices for a supplier. See the documentation

Full schema: https://pipedream.com/apps/fortnox/actions/list-supplier-invoices.md

### `fortnox-list-supplier-number-options` — List Supplier Number Options (Read-only)

Retrieves available options for the Supplier Number field.

Full schema: https://pipedream.com/apps/fortnox/actions/list-supplier-number-options.md

### `fortnox-list-suppliers` — List Suppliers (Read-only)

List all suppliers in Fortnox. See the documentation

Full schema: https://pipedream.com/apps/fortnox/actions/list-suppliers.md

### `fortnox-list-voucher-number-options` — List Voucher Number Options (Read-only)

Retrieves available options for the Voucher Number field.

Full schema: https://pipedream.com/apps/fortnox/actions/list-voucher-number-options.md

### `fortnox-send-invoice` — Send Invoice (Write)

Sends an invoice in the Fortnox API. See the documentation.

Full schema: https://pipedream.com/apps/fortnox/actions/send-invoice.md

### `fortnox-update-article` — Update Article (Write)

Updates an existing article in the Fortnox API. See the documentation.

Full schema: https://pipedream.com/apps/fortnox/actions/update-article.md

### `fortnox-update-customer` — Update Customer (Write)

Updates an existing customer in the Fortnox API. See the documentation.

Full schema: https://pipedream.com/apps/fortnox/actions/update-customer.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
