View as Markdown
Teamleader Focus icon

Teamleader Focus ACTION

Update Invoice

Update a draft invoice. Booked invoices cannot be updated. See the documentation
  • Action
  • Writes data
  • Destructive
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Teamleader Focus account once, then configure and run Update Invoice 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: "teamleader_focus-update-invoice",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    teamleader_focus: { authProvisionId: "apn_xxxxxxx" },
    invoice: "Invoice",
    customer: "Contact",
  },
})

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 Invoice inputs
Property Type Description
invoice Invoice string
Invoice to update
Required Dynamic
customer Contact string
Identifier of a contact lead
Optional Dynamic
note Note string
Comments about the invoice
Optional
paymentTermType Payment Term Type string
Type of payment term for the invoice
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
teamleader_focus-update-invoice
Version
0.0.5
App
Teamleader Focus
Authentication
OAuth
Read-only
No
Destructive
Yes
Open world
Yes