View as Markdown
Agiled icon

Agiled ACTION

Create Invoice

Creates a new invoice in Agiled. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Agiled account once, then configure and run Create 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: "agiled-create-invoice",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    agiled: { authProvisionId: "apn_xxxxxxx" },
    invoiceNumber: 10,
    clientId: 10,
  },
})

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 Invoice inputs
Property Type Description
invoiceNumber Invoice Number integer
Invoice Number in integer form. Don't include prefix. It must be 10 for example and never INV#10
Required
clientId Client ID integer
The ID of a client.
Required Dynamic
issueDate Issue Date string
Issue Date (Use same date format as in your company settings). Eg. 2021-01-01
Required
dueDate Due Date string
Due Date (Use same date format as in your company settings). Eg. 2021-01-01
Required
currencyId Currency ID integer
The currency to use for the invoice.
Required Dynamic
recurringPayment Recurring Payment boolean
If its a recurring profile or not
Required
discountType Discount Type string
Discount Type
Required
discount Discount integer
Discount. Eg. 10
Required
subTotal Sub Total integer
Sub Total. Eg. 100
Required
total Total integer
Total. Eg. 120
Required
billingFrequency Billing Frequency string
Specifies billing frequency. Either day, week, month or year.
Required
billingInterval Billing Interval integer
The number of intervals between subscription billings.
Required
billingCycle Billing Cycle string
How many times you want to bill? Eg. 1
Required
note Note string
Notes in Invoice
Optional
numberOfItems Number Of Items integer
The number of items to generate. Defaults to 1.
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
agiled-create-invoice
Version
0.0.2
App
Agiled
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes