create_invoices
Generate invoices for accounts receivable to track expected payments from customers. Specify amount, payer details, status, and optional notes.
Instructions
Create one or more invoices (accounts receivable). Each invoice represents an amount the company expects to receive from a customer.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoices | Yes | Array of invoice objects to create |
Implementation Reference
- src/index.ts:252-295 (schema)Tool registration and schema definition for 'create_invoices' in the TOOL_DEFINITIONS array. Defines the tool name, description, and input schema including required fields (amount, payerNationalIdentifier, payerName, status) and optional fields for creating invoices (accounts receivable).
{ name: "create_invoices", description: "Create one or more invoices (accounts receivable). Each invoice represents an amount the company expects to receive from a customer.", inputSchema: { type: "object" as const, properties: { invoices: { type: "array", items: { type: "object", properties: { amount: { type: "number", description: "Invoice amount" }, payerNationalIdentifier: { type: "string", description: "Payer CUIT/CUIL", }, payerName: { type: "string", description: "Payer name" }, status: { type: "string", enum: ["PENDING", "EXPIRED", "PAID"], }, description: { type: "string" }, internalNote: { type: "string" }, payerInternalNote: { type: "string" }, payerEmail: { type: "string" }, expiresAt: { type: "string" }, createdAt: { type: "string" }, externalId: { type: "string" }, fileUrl: { type: "string" }, }, required: [ "amount", "payerNationalIdentifier", "payerName", "status", ], }, description: "Array of invoice objects to create", }, }, required: ["invoices"], }, }, - src/index.ts:520-526 (handler)Handler implementation for 'create_invoices' in the handleToolCall method. Makes a POST request to the /v3/invoice/ API endpoint with the invoices array from the arguments to create one or more invoices (accounts receivable).
case "create_invoices": result = await this.request( "POST", "/v3/invoice/", args.invoices ); break;