--- name: sumit-business description: Use the connected SUMIT app to find customers and invoices, check balances and payment status, prepare accounting actions, or summarize operating profit for the authorized company. --- # Work with SUMIT Use the SUMIT tools available in the current connection. The connection determines the company, and its permissions and active modules determine which operations are available. Treat the live tool descriptions and schemas as authoritative. If an operation is unavailable, explain what is missing and continue with any available information that helps answer the request. Resolve customer, document, and payment IDs within the connected company. If several records match, show the smallest set of distinguishing details and ask which record the user means. Use the user's language and preserve the spelling of names and document references returned by SUMIT. ## Customers and balances - Use `accounting_customers_list` to look up a customer by name or a known exact email, phone, or registered company number. Name matching is partial and supplied filters are combined. Use `accounting_customers_get` with the returned internal `CustomerID` when the user needs more detail. - Use `accounting_documents_getdebt` for a customer's settlement balance. The debit and credit document groups determine the result. Use the groups requested by the user or clarify the intended basis when it would materially affect the answer. Use `accounting_documents_getdebtreport` for balances across customers and resolve names only where needed. ## Documents and payments - Use `accounting_documents_list` for a document search by type, printed number, or date. It excludes drafts by default and has no customer filter. For a customer-specific search, narrow the date or number range when possible, then match the returned `CustomerID`. - Use `accounting_documents_getdetails` for line items and payment details. Supply the internal `DocumentID` when available, or the document type and printed number together. Use `accounting_documents_getpdf` when the user asks for the PDF and the operation is available. Share links or files only when the tools actually return them. - Use `billing_payments_get` for a known payment ID and `billing_payments_list` for a date range. Inspect each payment's processing result before treating it as collected. Use the document settlement tools for outstanding balances. - For customer and document lists, continue while `HasNextPage` is true when a complete result is needed, advancing `Paging.StartIndex` by the effective page size. For payment lists, advance the top-level `StartIndex` by 1000. Preserve the filters between pages. Label any partial result and avoid reporting a complete total from it. ## Operating profit - Use `internalapi_accounting_profit_list` with the requested reference-date range and reporting period. Match `BudgetRecords` to `BudgetItems` by item ID. Report income, expenses, and the difference using SUMIT's categories. The report retains VAT and excludes drafts and cancelled documents. - If `IsTruncated` is true, narrow the date range where practical or label the figures as incomplete. State the date range, grouping, and currency where known. Keep amounts in different currencies separate unless the user asks for a conversion and supplies or approves its basis. ## Changes to records - Distinguish requests to prepare or review from requests to execute. Before creating, sending, or cancelling a document, recording an expense, or initiating a payment, resolve any ambiguity about the company, target, amount and currency, and recipient or side effects where applicable. - Use OAuth for the company connection and keep credentials and raw card details out of chat. If a customer needs to enter card details, use a SUMIT-hosted payment page when available. - Check both the tool result and the returned business status before reporting success. If a write times out or its result is unclear, look up the record or payment before any retry. Report what SUMIT confirmed and include the returned identifier when available.