View as Markdown
Fortnox icon

Fortnox ACTION

Update Article

Updates an existing article in the Fortnox API. See the documentation.
  • Action
  • Writes data
  • Destructive
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Fortnox account once, then configure and run Update Article 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-update-article",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    fortnox: { authProvisionId: "apn_xxxxxxx" },
    articleNumber: "Article Number",
    description: "Description",
  },
})

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.

Update Article inputs
Property Type Description
articleNumber Article Number string
The number of the article
Required Dynamic
description Description string
The description of the article
Optional
ean EAN string
The EAN of the article
Optional
directCost Direct Cost string
The direct cost of the article
Optional
freightCost Freight Cost string
The freight cost of the article
Optional
purchasePrice Purchase Price string
The purchase price of the article
Optional
salesPrice Sales Price string
The sales price of the article
Optional
manufacturer Manufacturer string
The manufacturer of the article
Optional
quantityInStock Quantity in Stock string
The quantity in stock of the article
Optional
supplierNumber Supplier Number string
The number of the supplier
Optional Dynamic
type Type string
The type of the article
Optional
vat VAT string
The VAT of the article
Optional
weight Weight string
The weight of the article
Optional
width Width string
The width of the article
Optional
height Height string
The height of the article
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-update-article
Version
0.0.2
App
Fortnox
Authentication
OAuth
Read-only
No
Destructive
Yes
Open world
Yes