View as Markdown
UpBooks icon

UpBooks ACTION

Record Outward Payment

Records an outward payment in UpBooks. See the documentation
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's UpBooks account once, then configure and run Record Outward Payment 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: "upbooks-record-outward-payment",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    upbooks: { authProvisionId: "apn_xxxxxxx" },
    mode: "Mode",
    amount: "Amount",
  },
})

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.

Record Outward Payment inputs
Property Type Description
mode Mode string
The outward payment mode.
Required
amount Amount string
The outwart payment amount in cents.
Required
date Date string
The date of the outward payment. Format: YYYY-MM-DD
Required
expenseIds Expense Ids string[]
The identification of the expense.
Required Dynamic
account Account Id string
The identification of the account.
Required Dynamic
currency Currency string
The currency of the outward payment.
Required

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
upbooks-record-outward-payment
Version
0.0.2
App
UpBooks
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes