View as Markdown
Quipu icon

Quipu ACTION

Create Income Invoice

Creates a new income invoice. See the docs.
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Quipu account once, then configure and run Create Income 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: "quipu-create-income-invoice",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    quipu: { authProvisionId: "apn_xxxxxxx" },
    client: "Client",
    number: "Number",
  },
})

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 Income Invoice inputs
Property Type Description
client Client string
Select a client.
Required Dynamic
number Number string
The invoice number.
Required
issued Issued string
The issue date of the invoice, ISO 8601 format. Example: 2019-07-26.
Required
dueDate Due Date string
The due date of the invoice, ISO 8601 format. Example: 2019-07-26.
Required
items Items string
An array of objects as the following example: [{"type": "book_entry_items", "attributes": {"concept": "Screws", "unitary_amount": "0.50", "quantity":30, "vat_percent":21, "retention_percent":0}}, {"type": "book_entry_items", "attributes": {"concept": "Nuts", "unitary_amount": "0.35", "quantity":30, "vat_percent":21, "retention_percent":0}}] see docs here.
Optional
accountingCategory Accounting Category string
Select an accounting category.
Optional Dynamic
paidAt Paid At string
Date of payment, ISO 8601 format. Example: 2019-07-26.
Optional
paymentMethod Payment Method string
The method of payment.
Optional
tags Tags string[]
Add tags to the invoice.
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
quipu-create-income-invoice
Version
0.0.2
App
Quipu
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes