siigo_get_accounts_payable
Retrieve accounts payable reports from Siigo accounting software to track outstanding vendor debts and manage payment obligations.
Instructions
Get accounts payable report
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number | |
| page_size | No | Number of items per page |
Implementation Reference
- src/index.ts:1136-1139 (handler)MCP tool handler function that invokes the Siigo client method and formats the response as JSON text.private async handleGetAccountsPayable(args: any) { const result = await this.siigoClient.getAccountsPayable(args); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
- src/siigo-client.ts:281-283 (helper)Core implementation that performs an authenticated GET request to the Siigo API endpoint '/v1/accounts-payable'.async getAccountsPayable(params?: { page?: number; page_size?: number }): Promise<SiigoApiResponse<any>> { return this.makeRequest<any>('GET', '/v1/accounts-payable', undefined, params); }
- src/index.ts:767-777 (registration)Tool registration in the MCP server, including name, description, and input schema.{ name: 'siigo_get_accounts_payable', description: 'Get accounts payable report', inputSchema: { type: 'object', properties: { page: { type: 'number', description: 'Page number' }, page_size: { type: 'number', description: 'Number of items per page' }, }, }, },
- src/index.ts:175-176 (handler)Dispatch case in the main tool request handler switch statement.case 'siigo_get_accounts_payable': return await this.handleGetAccountsPayable(args);