SQL Account (read-only)
v0.1.0Read-only SQL Account (SQL Accounting) data: customers, stock, invoices and payments.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_customers List customers
List customers from Maintain Customer. Optional exact filters: customer code, company name.
| Parameter | Type | Description |
|---|---|---|
code | string | Customer code, e.g. 300-A0001 |
companyname | string | Company name, exact |
limit | integer | Records to return, 1 to 50. Default 20. |
offset | integer | Number of records to skip (for paging). Default 0. |
get_customer Get a customer
Get one customer by customer code, with all fields SQL Account returns (addresses, contacts, terms, credit limit where available).
| Parameter | Type | Description |
|---|---|---|
code * | string | Customer code, e.g. 300-A0001 |
list_stock_items List stock items
List stock items. Optional exact filters: item code, description.
| Parameter | Type | Description |
|---|---|---|
code | string | Stock item code |
description | string | Item description, exact |
limit | integer | Records to return, 1 to 50. Default 20. |
offset | integer | Number of records to skip (for paging). Default 0. |
get_stock_item Get a stock item
Get one stock item by item code, including its detail lines (such as UOM and prices) when SQL Account returns them.
| Parameter | Type | Description |
|---|---|---|
code * | string | Stock item code |
list_sales_invoices List sales invoices
List sales invoices (header only). Optional exact filters: customer code, document number, document date.
| Parameter | Type | Description |
|---|---|---|
customer_code | string | Customer code |
docdate | string | Document date, YYYY-MM-DD |
docno | string | Invoice number, e.g. IV-00012 |
limit | integer | Records to return, 1 to 50. Default 20. |
offset | integer | Number of records to skip (for paging). Default 0. |
get_sales_invoice Get a sales invoice
Get one sales invoice by document number, with its item lines.
| Parameter | Type | Description |
|---|---|---|
docno * | string | Invoice number, e.g. IV-00012 |
list_purchase_invoices List purchase invoices
List purchase invoices (header only). Optional exact filters: supplier code, document number, document date.
| Parameter | Type | Description |
|---|---|---|
docdate | string | Document date, YYYY-MM-DD |
docno | string | Purchase invoice number, e.g. PI-00001 |
limit | integer | Records to return, 1 to 50. Default 20. |
offset | integer | Number of records to skip (for paging). Default 0. |
supplier_code | string | Supplier code |
get_purchase_invoice Get a purchase invoice
Get one purchase invoice by document number, with its item lines.
| Parameter | Type | Description |
|---|---|---|
docno * | string | Purchase invoice number, e.g. PI-00001 |
list_customer_payments List customer payments
List payments received from customers. Optional exact filters: customer code, document number, document date.
| Parameter | Type | Description |
|---|---|---|
customer_code | string | Customer code |
docdate | string | Document date, YYYY-MM-DD |
docno | string | Payment document number |
limit | integer | Records to return, 1 to 50. Default 20. |
offset | integer | Number of records to skip (for paging). Default 0. |
list_agents List sales agents
List sales agents.
| Parameter | Type | Description |
|---|---|---|
code | string | Agent code |
limit | integer | Records to return, 1 to 50. Default 20. |
offset | integer | Number of records to skip (for paging). Default 0. |
query_records Query any supported record type
Read any supported SQL Account record type with exact-match filters on its fields. Use this for record types without their own tool (journal entries, payment vouchers, stock received, transfers, adjustments). Record types: customer (Customers (Maintain Customer)), agent (Sales agents), stockitem (Stock items), salesinvoice (Sales invoices), purchaseinvoice (Purchase invoices), customerpayment (Customer payments), paymentvoucher (GL payment vouchers), journalentry (Journal entries), stockreceived (Stock received), stocktransfer (Stock transfers), stockadjustment (Stock adjustments).
| Parameter | Type | Description |
|---|---|---|
record_type * | string | Which record type to read |
filters | object | Exact-match filters on field names, e.g. {"docno":"JE-00003"} or {"docdate":"2026-11-27"} |
limit | integer | Records to return, 1 to 50. Default 20. |
offset | integer | Number of records to skip (for paging). Default 0. |
with_lines | boolean | Also return detail lines (only when filtering by docno or code). Default false. |