View as Markdown
FreshBooks icon

FreshBooks ACTION

Send Invoice By Email

Send an existing invoice by email to one or more recipients. See the documentation
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's FreshBooks account once, then configure and run Send Invoice By Email 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: "freshbooks-send-invoice-by-email",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    freshbooks: { authProvisionId: "apn_xxxxxxx" },
    accountId: "Account ID",
    invoiceId: "Invoice ID",
  },
})

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.

Send Invoice By Email inputs
Property Type Description
accountId Account ID string
The FreshBooks account ID (accounting system id).
Required Dynamic
invoiceId Invoice ID string
The ID of the invoice
Required Dynamic
emailRecipients Email Recipients string[]
List of email addresses to send the invoice to
Required
subject Subject string
The subject of the email
Optional
body Body string
The body of the email
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
freshbooks-send-invoice-by-email
Version
0.0.1
App
FreshBooks
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes