SUMIT MCP by usefulapi

v1.6.1
io.usefulapi/sumit Checked 2 days ago Published 1 day ago

Read documents, customer debts, stock levels and VAT and exchange rates in SUMIT.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

sumit_list_documents List documents

List accounting documents (invoices, receipts, credit notes, quotes, and more) in the SUMIT account, filtered by type, number, and date. Returns Documents and HasNextPage; page with start_index and page_size. SUMIT API: POST /accounting/documents/list/.

ParameterTypeDescription
date_fromstringFirst document date, yyyy-mm-dd.
date_tostringLast document date, yyyy-mm-dd.
document_number_fromintegerFirst document number.
document_number_tointegerLast document number.
document_typesarrayOnly these types, for example ["Invoice", "Receipt"].
include_draftsbooleanInclude draft documents (default false).
page_sizeintegerItems per page, 10 to 1000 (SUMIT default 10).
start_indexintegerPaging start index. Leave empty for the first page.

sumit_get_document Get a document

Get one document with its customer, items, payments, and totals. Give document_id, or document_type with document_number (the number printed in the title). SUMIT API: POST /accounting/documents/getdetails/.

ParameterTypeDescription
document_idintegerThe SUMIT document id (from sumit_list_documents).
document_numberintegerDocument number, with document_type.
document_typestringDocument type, with document_number.

sumit_get_next_document_number Get next document number

Get the number SUMIT would give the next document of this type. It reserves nothing. SUMIT API: POST /accounting/general/getnextdocumentnumber/.

ParameterTypeDescription
document_type *stringDocument type, for example Invoice.

sumit_get_customer_debt Get a customer's debt

Get how much one customer owes, by comparing the debit types (documents that raise debt) with the credit types (documents that settle it). SUMIT API: POST /accounting/documents/getdebt/.

ParameterTypeDescription
credit_source *stringCredit side, for example Receipt.
customer_id *integerThe SUMIT customer id.
debit_source *stringDebit side, for example TaxInvoice.
include_draft_documentsbooleanCount draft documents too (default false).

sumit_get_debt_report Get the debt report

Get the debt of every customer who owes money, using the same debit and credit types as sumit_get_customer_debt. SUMIT API: POST /accounting/documents/getdebtreport/.

ParameterTypeDescription
credit_source *stringCredit side, for example Receipt.
debit_source *stringDebit side, for example TaxInvoice.
include_draft_documentsbooleanCount draft documents too (default false).

sumit_list_income_items List income items

List the income items (products and services) in the SUMIT catalog, with price, cost, SKU, and external identifier. SUMIT marks this API alpha, so its shape may change. SUMIT API: POST /accounting/incomeitems/list/.

ParameterTypeDescription
page_sizeintegerItems per page, 10 to 1000 (SUMIT default 10).
start_indexintegerPaging start index. Leave empty for the first page.

sumit_list_stock_levels List stock levels

List the stock level of catalog items. Leave item_ids empty for all items. SUMIT API: POST /stock/stock/list/.

ParameterTypeDescription
exclude_zero_stockbooleanLeave out items with no stock (default false).
item_idsarrayIncome item ids to check (up to 500).

sumit_get_vat_rate Get the VAT rate

Get the VAT rate (Rate, in percent) that applies on a date. Leave date empty for today. SUMIT API: POST /accounting/general/getvatrate/.

ParameterTypeDescription
datestringDate, yyyy-mm-dd (default today).

sumit_get_exchange_rate Get an exchange rate

Get the exchange rate from one currency to another on a date (SUMIT defaults: USD to ILS, today). SUMIT API: POST /accounting/general/getexchangerate/.

ParameterTypeDescription
currency_fromstringOriginal currency code (default USD).
currency_tostringTarget currency code (default ILS).
datestringDate, yyyy-mm-dd (default today).