View as Markdown
Remote icon

Remote ACTION

Create Expense

Create an expense in Remote. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Remote account once, then configure and run Create Expense 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: "remote-create-expense",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    remote: { authProvisionId: "apn_xxxxxxx" },
    amount: 10,
    currency: "Currency",
  },
})

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 Expense inputs
Property Type Description
amount Amount integer
The amount of the expense
Required
currency Currency string
The currency of the expense
Required
employmentId Employment ID string
The ID of the employment to create the expense for
Required Dynamic
expenseCategorySlug Expense Category Slug string
The slug of the expense category to create the expense for
Required Dynamic
expenseDate Expense Date string
Date of the purchase, which must be in the past. Format: YYYY-MM-DD
Required
receiptContentFilePath Receipt Content File Path string
The file of the receipt. Provide either a file URL or a path to a file in the /tmp directory (for example, /tmp/myFile.pdf)
Required
receiptFileName Receipt File Name string
The file name
Required
reviewedAt Reviewed At string
The date and time that the expense was reviewed in ISO8601 format. If not provided, it defaults to the current datetime. Format: YYYY-MM-DDTHH:MM:SS
Required
taxAmount Tax Amount integer
The tax amount of the expense
Optional
timezone Timezone string
The timezone of the expense. TZ identifier
Optional
title Title string
The title of the expense
Required
syncDir SyncDir dir
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
remote-create-expense
Version
0.0.2
App
Remote
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes