View as Markdown
Quipu icon

Quipu ACTION

Create Income Ticket

Creates a new income ticket. 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 Ticket 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-ticket",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    quipu: { authProvisionId: "apn_xxxxxxx" },
    recipientName: "Recipient Name",
    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 Ticket inputs
Property Type Description
recipientName Recipient Name string
The recipient name for the ticket.
Required
number Number string
The invoice number.
Required
issued Issued string
The issue date of the invoice, ISO 8601 format. Example: 2019-07-26.
Required
paidAt Paid At string
Date of payment, ISO 8601 format. Example: 2019-07-26.
Required
paymentMethod Payment Method string
The method of payment.
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
tags Tags string[]
Add tags to the invoice.
Optional
accountingCategory Accounting Category string
Select an accounting category.
Optional Dynamic

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-ticket
Version
0.0.2
App
Quipu
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes