View as Markdown
Daffy icon

Daffy ACTION

Create Donation

Create a new donation. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Daffy account once, then configure and run Create Donation 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: "daffy-create-donation",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    daffy: { authProvisionId: "apn_xxxxxxx" },
    amount: "Amount",
    causeId: "Cause",
  },
})

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.

Create Donation inputs
Property Type Description
amount Amount string
The amount of the donation in dollars.
Required
causeId Cause string
The ID of the main cause.
Required Dynamic
ein EIN string
The Employer Identification Number of the non-profit.
Required Dynamic
note Note string
The public note attached to the donation.
Optional
privateMemo Private Memo string
A private memo attached to the donation, not displayed publicly.
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
daffy-create-donation
Version
0.0.2
App
Daffy
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes