exportAccountingItems
Export charges, payments, and other accounting items within a specified period and format using Mews MCP. Customize exports by currency, time zone, or specific item IDs for precise financial reporting.
Instructions
Exports accounting items (charges, payments, etc.) in the specified format and period
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| AccountingItemIds | No | Specific accounting item IDs to export | |
| Currency | No | Currency code for export amounts | |
| EndUtc | Yes | End date for export (ISO 8601) | |
| Format | Yes | Export format (CSV, JSON, etc.) | |
| StartUtc | Yes | Start date for export (ISO 8601) | |
| TimeZone | No | Time zone for date formatting |
Implementation Reference
- The execute function that handles the tool logic by making a request to '/api/connector/v1/exports/accountingItems' with the provided arguments.async execute(config: MewsAuthConfig, args: unknown): Promise<ToolResult> { const inputArgs = args as Record<string, unknown>; const requestData = { ...inputArgs }; const result = await mewsRequest(config, '/api/connector/v1/exports/accountingItems', requestData); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
- Input schema defining parameters for the export such as StartUtc, EndUtc, Format, AccountingItemIds, Currency, and TimeZone.inputSchema: { type: 'object', properties: { StartUtc: { type: 'string', description: 'Start date for export (ISO 8601)' }, EndUtc: { type: 'string', description: 'End date for export (ISO 8601)' }, Format: { type: 'string', description: 'Export format (CSV, JSON, etc.)', enum: ['Csv', 'Json', 'Excel'] }, AccountingItemIds: { type: 'array', items: { type: 'string' }, description: 'Specific accounting item IDs to export', maxItems: 1000 }, Currency: { type: 'string', description: 'Currency code for export amounts' }, TimeZone: { type: 'string', description: 'Time zone for date formatting' } }, required: ['StartUtc', 'EndUtc', 'Format'], additionalProperties: false },
- src/tools/index.ts:144-144 (registration)Registration of the exportAccountingItemsTool in the central allTools array used for tool registry and lookup.exportAccountingItemsTool,