Account 9
create_account
Create a chart-of-accounts (GL) account. accountClass is an AdmCloud account class (e.g. Cash, Bank, CustomerReceivables, VendorPayables, Income, Expense, FixedAssets); the account type is derived from it. Returns the new id.
| Parámetro | Tipo | Requerido | Descripción |
|---|
name | text | Sí | Account name. Required. |
code | text | No | Account code. Optional (may be auto-generated). |
accountClass | text | Sí | Account class name (AccountClassEnum value, e.g. Cash, Bank, Income, Expense). Required. |
currencyID | text | No | Currency id (e.g. DOP, USD). Optional. |
delete_account
Delete a chart-of-accounts (GL) account by its id. Blocked by the system when it has movements or is in use. This cannot be undone.
| Parámetro | Tipo | Requerido | Descripción |
|---|
id | id (guid) | Sí | Account id (Guid). |
get_account
Get a chart-of-accounts (GL) account by its id.
| Parámetro | Tipo | Requerido | Descripción |
|---|
id | id (guid) | Sí | Account id (Guid). |
get_account_balance
Get the accumulated balance (saldo) of a single general-ledger account, found by its code or name. The balance is the sum of debits minus credits of all posted transactions, sign-normalized by the account nature (so liabilities, equity and revenue show a positive natural balance). If the account is a parent/group account its child accounts are included. The amount is returned in the company's local currency. This is the all-time balance; for the movement of a year or month use get_account_movement, and for every account at once use get_trial_balance.
| Parámetro | Tipo | Requerido | Descripción |
|---|
accountName | text | Sí | Account code or name to search for |
get_account_movement
Get the movement (debits minus credits) of a single general-ledger account, found by its code or name, for a year. Pass month 0 for the whole year, or 1-12 for a single month. Returns total debits, total credits and the net movement (debits - credits, which may be negative). If the account is a parent/group account its child accounts are included. Amounts are in the company's local currency. Only totals; for the individual entries use get_general_ledger.
| Parámetro | Tipo | Requerido | Descripción |
|---|
accountName | text | Sí | Account code or name to search for |
year | integer | Sí | The year |
month | integer | Sí | The month (1-12), or 0 for the whole year |
get_expenses_by_month
Get total expenses of all accounts broken down by month for a year. For one account use get_expenses_by_month_for_account; for the largest accounts use get_top10_expenses_by_account.
| Parámetro | Tipo | Requerido | Descripción |
|---|
year | integer | Sí | The year |
get_expenses_by_month_for_account
Get monthly expenses for a single account, found by code or name, for a year.
| Parámetro | Tipo | Requerido | Descripción |
|---|
year | integer | Sí | The year |
accountName | text | Sí | Account code or name to search for |
get_top10_expenses_by_account
Get the 10 largest expenses of a year, grouped by general-ledger account. For the monthly total of all expenses use get_expenses_by_month.
| Parámetro | Tipo | Requerido | Descripción |
|---|
year | integer | Sí | The year |
search_accounts
List chart-of-accounts (GL) accounts by code or name (empty for all). Returns pages of 50 non-group accounts by code, with id, code, name, class and currency. When hasMore is true, call again with skip = nextSkip for the next page.
| Parámetro | Tipo | Requerido | Descripción |
|---|
search | text | No | Code or name filter (or part of it). Leave empty for all. |
skip | integer | No | Number of matches to skip, for paging. Leave empty (or 0) for the first page; when the result has hasMore = true, pass its nextSkip to get the next page. |
Accounting Statements 5
get_balance_sheet
Get the balance sheet (assets, liabilities and equity with account detail) as of a date, in the company currency. Period results are included in equity, like the native report.
| Parámetro | Tipo | Requerido | Descripción |
|---|
dateTo | text | No | Cut-off date (inclusive) in yyyy-MM-dd format. Leave empty for today. |
get_general_ledger
Get general-ledger journal entries for a period, in the company currency. Without an account, pass a month 1-12 and the 100 most recent lines are returned. With an account (by code or name), its entries are listed chronologically and month 0 covers the whole year.
| Parámetro | Tipo | Requerido | Descripción |
|---|
year | integer | Sí | The year |
month | integer | Sí | The month (1-12). Only with an account it can be 0 for the whole year. |
accountName | text | No | Account code or name to drill into a single account. Leave empty for all accounts. |
get_results
Get the income statement (revenue, costs, gross margin, operating expenses, operating result as netMargin, non-operating revenue and expenses, and net result) for a year. Pass month 0 for the whole year, or 1-12 for a single month. For a month-by-month breakdown use get_results_by_month.
| Parámetro | Tipo | Requerido | Descripción |
|---|
year | integer | Sí | The year |
month | integer | Sí | The month (1-12), or 0 for the whole year |
get_results_by_month
Get the income statement (revenue, costs, operating expenses, non-operating revenue and expenses, net result) broken down by month for a year. For the totals of a year or a single month use get_results.
| Parámetro | Tipo | Requerido | Descripción |
|---|
year | integer | Sí | The year |
get_trial_balance
Get the trial balance (initial balance, debits, credits and final balance per account) for a period, in the company currency. Pass month 0 for the whole fiscal year, or 1-12 for a single month.
| Parámetro | Tipo | Requerido | Descripción |
|---|
year | integer | Sí | The year |
month | integer | Sí | The month (1-12), or 0 for the whole fiscal year |
Bill Payments 4
create_bill_payment
Record a payment to a vendor as an advance (NOT applied to specific bills) for a given amount. The money leaves the given cash/bank account (by name or code), or the default cash account when omitted. The document currency is that account's currency.
| Parámetro | Tipo | Requerido | Descripción |
|---|
vendorName | text | Sí | Vendor name (or part of it) |
amount | number | Sí | Amount paid, in the cash account's currency |
cashAccount | text | No | Cash/bank account name or code the money leaves from. Leave empty to use the single default cash account. |
notes | text | No | Optional notes / observations to store on the document. |
delete_bill_payment
Delete a vendor payment (advance) by its document number. Reverses posting through the system and is blocked when it has linked documents. This cannot be undone.
| Parámetro | Tipo | Requerido | Descripción |
|---|
docId | text | Sí | Vendor payment document number (DocID) |
get_bill_payment
Get the detail of a single vendor payment (advance) by its document number.
| Parámetro | Tipo | Requerido | Descripción |
|---|
docId | text | Sí | Vendor payment document number (DocID) |
search_bill_payments
List vendor payments (advances) with optional filters by vendor name and date range. Returns pages of 50 matches, most recent first, with document id, date, vendor, currency and total. When hasMore is true, call again with skip = nextSkip for the next page.
| Parámetro | Tipo | Requerido | Descripción |
|---|
vendorName | text | No | Vendor name (or part of it) to filter by. Leave empty for all vendors. |
dateFrom | text | No | Start date (inclusive) in yyyy-MM-dd format. Leave empty for no lower bound. |
dateTo | text | No | End date (inclusive) in yyyy-MM-dd format. Leave empty for no upper bound. |
skip | integer | No | Number of matches to skip, for paging. Leave empty (or 0) for the first page; when the result has hasMore = true, pass its nextSkip to get the next page. |
Closing Checklist 4
create_closing_task_comment
Add a comment to an accounting period closing task. The comment is saved with the user and the date and shown in the task's comments.
| Parámetro | Tipo | Requerido | Descripción |
|---|
taskId | id (guid) | Sí | TaskID of the closing task, as returned by get_my_closing_tasks or get_closing_checklist_status. |
comment | text | Sí | Comment text. |
get_closing_checklist_status
Get the progress of the closing checklist of an accounting period: tasks by status (pending, in progress, completed, discarded), how many are overdue, whether accounting is already closed for the period, and every task with its responsible person, reviewer and due date. Without a date it uses the last period that already ended (the one usually being closed). Accounting periods belong to a subsidiary: when the user's session has no subsidiary it returns one summary per subsidiary, each with its Subsidiary name.
| Parámetro | Tipo | Requerido | Descripción |
|---|
date | text | No | Any date inside the accounting period to check, yyyy-MM-dd. Leave empty for the last period that already ended. |
get_my_closing_tasks
Get the authenticated user's accounting period closing tasks: the pending or in-progress ones where they are the responsible person, and the completed ones they must review. Each task comes with its period, area, status, due date (overdue flag) and TaskID, which update_closing_task_status and create_closing_task_comment use. When the session has no subsidiary, each task also says its Subsidiary.
Sin parámetros.
update_closing_task_status
Change the status of an accounting period closing task. Only the task's responsible person or a closing supervisor can do it. Discarding requires the reason in the comment; moving a completed task back removes its review. The change is recorded in the task history.
| Parámetro | Tipo | Requerido | Descripción |
|---|
taskId | id (guid) | Sí | TaskID of the closing task, as returned by get_my_closing_tasks or get_closing_checklist_status. |
status | text | Sí | New status: pending, in_progress, completed or discarded. |
comment | text | No | Optional comment saved with the change. Required to discard (the reason). |
Credit Memos 4
create_credit_memo
Create a customer credit memo (credit note) for a customer (by name) for one item (by SKU or name) and quantity. Fiscal numbering (NCF), taxes and posting are handled by the system. It can be linked to a project (projectName). Returns a link to the created credit memo.
| Parámetro | Tipo | Requerido | Descripción |
|---|
customerName | text | Sí | Customer name (or part of it) |
itemSkuOrName | text | Sí | Item SKU or name |
quantity | number | Sí | Quantity to credit |
projectName | text | No | Project name or code to link the document to. Optional; leave empty for no project. |
notes | text | No | Optional notes / observations to store on the document. |
delete_credit_memo
Delete a customer credit memo by its document number. Reverses posting/stock through the system and is blocked when it has linked documents. This cannot be undone.
| Parámetro | Tipo | Requerido | Descripción |
|---|
docId | text | Sí | Credit memo document number (DocID) |
get_credit_memo
Get the full detail of a single customer credit memo by its document number, including header (customer, project, currency, total) and line items.
| Parámetro | Tipo | Requerido | Descripción |
|---|
docId | text | Sí | Credit memo document number (DocID) |
search_credit_memos
List customer credit memos with optional filters by customer name, project and date range. Returns pages of 50 matches, most recent first, with document id, date, customer, project, currency and total. When hasMore is true, call again with skip = nextSkip for the next page.
| Parámetro | Tipo | Requerido | Descripción |
|---|
customerName | text | No | Customer name (or part of it) to filter by. Leave empty for all customers. |
projectName | text | No | Project name or code to filter by: documents linked to the project on the header or on any line. Leave empty for all projects. |
dateFrom | text | No | Start date (inclusive) in yyyy-MM-dd format. Leave empty for no lower bound. |
dateTo | text | No | End date (inclusive) in yyyy-MM-dd format. Leave empty for no upper bound. |
skip | integer | No | Number of matches to skip, for paging. Leave empty (or 0) for the first page; when the result has hasMore = true, pass its nextSkip to get the next page. |
Customers 7
create_customer
Create a new customer. Only the name is required; all other fields are optional. Returns the new customer id.
| Parámetro | Tipo | Requerido | Descripción |
|---|
name | text | Sí | Customer (company) name. Required. |
code | text | No | Customer code/identifier. Leave empty to auto-generate when the company is configured for it. |
comercialName | text | No | Commercial / trade name. Optional. |
email | text | No | Email address. Optional. |
phone1 | text | No | Phone number. Optional. |
fiscalID | text | No | Tax id (RNC/Cédula/Fiscal ID). Optional. |
currencyID | text | No | Currency id (e.g. DOP, USD). Optional; defaults to the company currency when empty. |
priceLevelName | text | No | Price level name, which sets the customer's selling prices. Leave empty to use the company's default price level, or the only one when the company has a single price level; if the company has several and no default, the call reports the available names so you can pick one. |
delete_customer
Delete a customer by its id. Fails when the customer has linked records (transactions, budgets, etc.).
| Parámetro | Tipo | Requerido | Descripción |
|---|
customerId | id (guid) | Sí | Id of the customer to delete. Required. |
get_aged_receivables
Get the accounts-receivable aging report summarized by customer, in the currency given by CurrencyID: the subsidiary's local currency (document exchange rate), or the company's base currency when consolidating subsidiaries that use different currencies. Buckets are 30-day periods since the document date (0-30, 31-60, 61-90, over 90). Covers all customers; for a single customer use get_customer_balance. Lists customers in pages of 50, highest balance first; the totals always cover every customer. When hasMore is true, call again with skip = nextSkip for the next page.
| Parámetro | Tipo | Requerido | Descripción |
|---|
skip | integer | No | Number of matches to skip, for paging. Leave empty (or 0) for the first page; when the result has hasMore = true, pass its nextSkip to get the next page. |
get_customer_balance
Find a customer by name and return their accounts-receivable balance and overdue amount in the currency given by CurrencyID: the subsidiary's local currency (document exchange rate), or the company's base currency when consolidating subsidiaries that use different currencies. Same basis as get_aged_receivables, which covers all customers at once.
| Parámetro | Tipo | Requerido | Descripción |
|---|
name | text | Sí | Customer name (or part of it) to look up |
get_customer_info
Find a customer by name and return their profile (currency, sales rep, payment terms, discount) together with their contacts. Returns matches when the name is ambiguous. To browse or find several customers use search_customers; for what the customer owes use get_customer_balance.
| Parámetro | Tipo | Requerido | Descripción |
|---|
name | text | Sí | Customer name (or part of it) to look up |
search_customers
Search customers by name, code or fiscal ID and return a summary list in pages of 20. Pass an empty search to list all customers. Summary only: use get_customer_info for the full profile and contacts. When hasMore is true, call again with skip = nextSkip for the next page.
| Parámetro | Tipo | Requerido | Descripción |
|---|
search | text | No | Text to search for in the customer name, code or fiscal ID. Empty returns the first 20 customers. |
skip | integer | No | Number of matches to skip, for paging. Leave empty (or 0) for the first page; when the result has hasMore = true, pass its nextSkip to get the next page. |
update_customer
Update an existing customer by its id. Only the fields you pass are changed; leave a field empty to keep its current value.
| Parámetro | Tipo | Requerido | Descripción |
|---|
customerId | id (guid) | Sí | Id of the customer to update. Required. |
name | text | No | New name. Leave empty to keep the current value. |
code | text | No | New code. Leave empty to keep the current value. |
comercialName | text | No | New commercial / trade name. Leave empty to keep the current value. |
email | text | No | New email. Leave empty to keep the current value. |
phone1 | text | No | New phone number. Leave empty to keep the current value. |
fiscalID | text | No | New tax id (RNC/Cédula/Fiscal ID). Leave empty to keep the current value. |
currencyID | text | No | New currency id (e.g. DOP, USD). Leave empty to keep the current value. |
Dashboard 5
add_dashboard_panel
Add a panel to the authenticated user's dashboard (AdmCloud home page), at a position or at the end. If the panel was on the dashboard before, it comes back with its previous filters and chart type. The user's open home page shows the new panel without reloading.
| Parámetro | Tipo | Requerido | Descripción |
|---|
panelKey | text | Sí | Key of the panel to add (AvailablePanels[].PanelKey from get_dashboard). |
position | integer | No | Position on the dashboard, 1 = first place (reading order of the home page). Optional: empty adds it at the end. |
change_dashboard_panel_chart_type
Change the chart type of a chart panel of the authenticated user's dashboard (AdmCloud home page), e.g. from bars to lines or from pie to doughnut. The user's open home page redraws that panel without reloading.
| Parámetro | Tipo | Requerido | Descripción |
|---|
panelId | id (guid) | Sí | Panel id (Guid) of a panel on the dashboard. Get it from get_dashboard (Panels[].PanelID). |
chartType | text | Sí | New chart type: one of the panel's AllowedChartTypes from get_dashboard (vertical_bar, horizontal_bar, vertical_bar_stacked, horizontal_bar_stacked, curve, straight_line for bar charts; pie, doughnut, polar for pie charts). |
get_dashboard
Get the authenticated user's dashboard (the panels of the AdmCloud home page): the panels it shows in order, with their Position, PanelID, ChartType and AllowedChartTypes, and the panels that can be added (AvailablePanels, with the PanelKey that add_dashboard_panel needs). MaxPanels is the most panels the plan allows (the news panel does not count). Call it before changing the dashboard.
Sin parámetros.
move_dashboard_panel
Move a panel of the authenticated user's dashboard (AdmCloud home page) to another position; the other panels shift. The user's open home page moves the panel without reloading.
| Parámetro | Tipo | Requerido | Descripción |
|---|
panelId | id (guid) | Sí | Panel id (Guid) of a panel on the dashboard. Get it from get_dashboard (Panels[].PanelID). |
position | integer | Sí | Position on the dashboard, 1 = first place (reading order of the home page). A position past the end moves it to the end. |
remove_dashboard_panel
Remove a panel from the authenticated user's dashboard (AdmCloud home page). Its settings are kept, so adding it again restores it. The user's open home page removes the panel without reloading.
| Parámetro | Tipo | Requerido | Descripción |
|---|
panelId | id (guid) | Sí | Panel id (Guid) of a panel on the dashboard. Get it from get_dashboard (Panels[].PanelID). |
Data Dictionary 7
describe_data_dictionary_tables
Describe up to 5 tables of the company database: every physical column with its SQL type, caption, the table it points to, the meaning of enum codes and the company's custom fields, plus the columns of other tables that point to it (referencedBy). Use it before writing SQL: only use columns listed here.
| Parámetro | Tipo | Requerido | Descripción |
|---|
tables | list of text | Sí | Table names, exactly as returned by search_data_dictionary (e.g. ['SA_Relationships', 'SA_Transactions']). At most 5. |
includeDescriptions | boolean | No | True to add the long description of each column (larger answer). Leave empty when the captions are enough. |
language | text | No | Language of the captions and descriptions: 'es' (default) or 'en'. |
get_data_dictionary_column_values
Most frequent values stored in a text, integer or bit column of the company database (e.g. IC_ItemClasses.Name, SA_Transactions.DocType, SA_Locations.Name), to write a filter with the value exactly as it is stored instead of guessing it. Counts come from a sample of the table, not totals.
| Parámetro | Tipo | Requerido | Descripción |
|---|
table | text | Sí | Table name, as returned by search_data_dictionary (e.g. 'IC_ItemClasses'). |
column | text | Sí | Column name, as returned by describe_data_dictionary_tables (e.g. 'Name'). |
search | text | No | Optional text the value must contain (e.g. 'ferre'), for text columns. Leave empty for the most frequent values. |
get_sql_report_guide
Start here when the user wants a SQL query, a custom report or a KPI over their AdmCloud data. Returns the workflow, the rules AdmCloud enforces on report SQL (forbidden words, internal variables such as @@CurrentSubsidiaryID, how report filters become parameters), the key tables and the sample modules. The resulting SQL is meant to be pasted by the user in AdmCloud's Custom Reports (SQL report).
Sin parámetros.
get_sql_report_samples
Sample SQL reports and KPIs to copy how AdmCloud computes each metric and joins and signs the documents: curated metric definitions (net sales, margin, receivables, stock...), samples shipped with AdmCloud and the SQL reports the company already saved. Pass search with the user's request to get the 5 closest samples, or a module to list its samples.
| Parámetro | Tipo | Requerido | Descripción |
|---|
module | text | No | Module of the samples (General, Cash, Accounting, Sales, Purchases, Inventory, FixedAssets, Payroll, Kpi, Company). Leave empty for all. |
search | text | No | The user's request in their words (e.g. 'margen por artículo del mes'). Returns the closest samples first. Leave empty to list the samples of the module. |
list_data_dictionary_tables
List the tables of the AdmCloud data dictionary (name and caption), optionally only those whose name starts with a module prefix such as 'IC_' or 'AR_'. Prefer search_data_dictionary to find the tables of a concept.
| Parámetro | Tipo | Requerido | Descripción |
|---|
prefix | text | No | Table name prefix (e.g. 'SA_', 'IC_', 'GL_'). Leave empty for all tables. |
language | text | No | Language of the captions and descriptions: 'es' (default) or 'en'. |
search_data_dictionary
Search the AdmCloud data dictionary for one concept (e.g. 'vendedor', 'sales rep', 'cliente', 'factura', 'almacen'). Matches table and column names, captions and descriptions in Spanish and English, ignoring accents. Returns the matching tables and their matching columns. Search one concept per call.
| Parámetro | Tipo | Requerido | Descripción |
|---|
search | text | Sí | Concept to look for: one word or a short phrase. |
language | text | No | Language of the captions and descriptions: 'es' (default) or 'en'. |
validate_sql_report_query
Check a SQL query for an AdmCloud Custom Report WITHOUT running it: applies the rules AdmCloud enforces when the report is saved, then compiles it against the company database. Returns valid = true with the result columns and the parameters (report filters) it expects, or valid = false with the error to fix. Always validate before giving the SQL to the user.
| Parámetro | Tipo | Requerido | Descripción |
|---|
sql | text | Sí | The SQL query, exactly as it will be pasted in the report. |
Documents From File 2
create_document_from_draft
Second step: registers the vendor bill or sales order the user confirmed from the draft of create_draft_from_file, and attaches the file to it. Call it only after the user explicitly confirmed the draft, with the vendor or customer and the items the user chose. Taxes, numbering and posting are handled by AdmCloud; a vendor bill whose NCF is already registered for the vendor is rejected. Returns a link to the new document.
| Parámetro | Tipo | Requerido | Descripción |
|---|
documentType | text | Sí | Document to register: 'vendor_bill' (a vendor's bill or invoice) or 'sales_order' (a customer's order). The same one used in create_draft_from_file. |
fileId | id (guid) | Sí | fileId returned by create_draft_from_file. |
partyId | id (guid) | Sí | Id of the vendor (vendor bill) or customer (sales order): party.match.id of the draft, or the one the user chose. |
docDate | text | No | Document date in yyyy-MM-dd format (the date printed on the document). Leave empty for today. |
reference | text | No | Reference: the vendor's bill number (required for vendor bills) or the customer's order number. |
ncf | text | No | Vendor bills only: the NCF (fiscal receipt number) printed on the bill. Leave empty when it has none. |
expenseTypeId | id (guid) | No | Vendor bills only: id of the expense type (DGII 606 classification) the user chose from the draft's expenseTypes. Required by AdmCloud for a bill with NCF in the Dominican Republic; leave empty otherwise. |
currencyId | text | No | Currency code (e.g. DOP, USD), from the draft. Leave empty for the vendor's or customer's currency. |
notes | text | No | Optional notes to store on the document. |
lines | list of LineInput | Sí | The confirmed lines. At least one is required. |
create_draft_from_file
First step to register in AdmCloud a document the user attached (a vendor bill as PDF or photo, or a customer order as Excel or PDF). Stores the file in the company's file cabinet (unattached, so it can be attached later), reads it with AdmCloud's document recognition and returns a DRAFT (vendor or customer matched by exact fiscal id, date, reference, NCF, lines with items matched by exact code, taxes and totals) plus the choices the user must make. It does NOT register the document: show the draft to the user, resolve the pending choices and, only after the user confirms, call create_document_from_draft. Supported files: .pdf, .jpg, .jpeg, .png, .tif, .tiff, .bmp, .xlsx; up to 10 MB.
| Parámetro | Tipo | Requerido | Descripción |
|---|
documentType | text | Sí | Document to register: 'vendor_bill' (a vendor's bill or invoice) or 'sales_order' (a customer's order). |
fileName | text | Sí | Name of the file with its extension, e.g. 'factura-proveedor.pdf' or 'pedido.xlsx'. |
contentBase64 | text | Sí | The complete file content encoded in base64 (a 'data:...;base64,' prefix is accepted). |
Inventory 7
create_item
Create an inventory item. SKU and name are required (SKU may be left empty when the company auto-numbers items). The unit-of-measure conversion plan and unit are picked automatically when the company has only one of each; otherwise pass their names. Returns the new item id.
| Parámetro | Tipo | Requerido | Descripción |
|---|
sku | text | No | Item SKU / code. Leave empty only when the company is configured to auto-number items. |
name | text | Sí | Item name / description. Required. |
itemClassName | text | No | Item class name. Optional. |
uomPlanName | text | No | Unit-of-measure conversion plan name. Optional: required only when the company has more than one plan. |
uomName | text | No | Unit of measure name, used as the report, purchase and sales unit. Optional: required only when the conversion plan has more than one unit. |
salesDescription | text | No | Sales description shown on sales documents. Optional. |
purchaseDescription | text | No | Purchase description shown on purchase documents. Optional. |
salesItem | boolean | No | Whether the item can be sold. Optional, defaults to true. |
purchaseItem | boolean | No | Whether the item can be purchased. Optional, defaults to true. |
stockItem | boolean | No | Whether the item is included in stock control. Optional, defaults to true. |
delete_item
Delete an inventory item by its id. Blocked by the system when the item has linked records (transactions, stock, kits, price lists). This cannot be undone.
| Parámetro | Tipo | Requerido | Descripción |
|---|
itemId | id (guid) | Sí | Id of the item to delete (Guid). Required. Get it from search_items. |
get_item
Get the detail of a single item by SKU or name (unique match), including item type and units of measure. It does not include stock: use get_item_stock for that.
| Parámetro | Tipo | Requerido | Descripción |
|---|
skuOrName | text | Sí | Item SKU or name (or part of it) |
get_items_low_stock
Get items whose stock has fallen to or below their reorder level, per location.
| Parámetro | Tipo | Requerido | Descripción |
|---|
filterBySubsidiary | boolean | Sí | When true, only consider items assigned to the signed-in subsidiary |
get_item_stock
Get the stock on hand for an item (by SKU or name) at a location (by name).
| Parámetro | Tipo | Requerido | Descripción |
|---|
itemName | text | Sí | Item SKU or name to search for |
locationName | text | Sí | Location name to search for |
search_items
Search inventory items and services by SKU or name and return a summary list in pages of 20. Pass an empty search to list all items. When hasMore is true, call again with skip = nextSkip for the next page.
| Parámetro | Tipo | Requerido | Descripción |
|---|
search | text | No | Text to search for in the item SKU or name. Empty returns the first 20 items. |
includeInactive | boolean | Sí | When true, inactive items are included in the results. |
skip | integer | No | Number of matches to skip, for paging. Leave empty (or 0) for the first page; when the result has hasMore = true, pass its nextSkip to get the next page. |
update_item
Update an inventory item by its id. Only the fields you pass are changed; leave a field empty to keep its current value. The conversion plan cannot be changed here because it would invalidate existing stock.
| Parámetro | Tipo | Requerido | Descripción |
|---|
itemId | id (guid) | Sí | Id of the item to update (Guid). Required. Get it from search_items. |
sku | text | No | New SKU / code. Leave empty to keep the current value. |
name | text | No | New name / description. Leave empty to keep the current value. |
itemClassName | text | No | New item class name. Leave empty to keep the current value. |
uomName | text | No | New unit of measure name, applied to the report, purchase and sales unit. Must belong to the item's existing conversion plan. Leave empty to keep the current units. |
salesDescription | text | No | New sales description. Leave empty to keep the current value. |
purchaseDescription | text | No | New purchase description. Leave empty to keep the current value. |
salesItem | boolean | No | Whether the item can be sold. Leave empty to keep the current value. |
purchaseItem | boolean | No | Whether the item can be purchased. Leave empty to keep the current value. |
stockItem | boolean | No | Whether the item is included in stock control. Leave empty to keep the current value. |
inactive | boolean | No | Whether the item is inactive. Leave empty to keep the current value. |
Invoices 4
create_invoice
Create a credit (on-account) sales invoice for a customer (by name) for one item (by SKU or name) and quantity. Fiscal numbering (NCF), taxes and posting are handled by the system. It can be linked to a project (projectName). Returns a link to the created invoice.
| Parámetro | Tipo | Requerido | Descripción |
|---|
customerName | text | Sí | Customer name (or part of it) |
itemSkuOrName | text | Sí | Item SKU or name |
quantity | number | Sí | Quantity to invoice |
projectName | text | No | Project name or code to link the document to. Optional; leave empty for no project. |
notes | text | No | Optional notes / observations to store on the document. |
delete_invoice
Delete a credit sales invoice by its document number. Reverses posting/stock through the system and is blocked when the invoice has linked documents. This cannot be undone.
| Parámetro | Tipo | Requerido | Descripción |
|---|
docId | text | Sí | Invoice document number (DocID) |
get_invoice
Get the full detail of a single credit sales invoice by its document number, including header (customer, project, currency, total, pending balance) and line items.
| Parámetro | Tipo | Requerido | Descripción |
|---|
docId | text | Sí | Invoice document number (DocID), e.g. the value shown as the document id in search_invoices. |
search_invoices
List credit (on-account) sales invoices with optional filters by customer name, project, date range and open-balance only. Cash sales are in search_sales_receipts. Returns pages of 50 matches, most recent first, with document id, date, customer, project, total and pending balance. When hasMore is true, call again with skip = nextSkip for the next page.
| Parámetro | Tipo | Requerido | Descripción |
|---|
customerName | text | No | Customer name (or part of it) to filter by. Leave empty for all customers. |
projectName | text | No | Project name or code to filter by: documents linked to the project on the header or on any line. Leave empty for all projects. |
dateFrom | text | No | Start date (inclusive) in yyyy-MM-dd format. Leave empty for no lower bound. |
dateTo | text | No | End date (inclusive) in yyyy-MM-dd format. Leave empty for no upper bound. |
onlyOpen | boolean | Sí | When true, only invoices with a pending balance are returned. |
skip | integer | No | Number of matches to skip, for paging. Leave empty (or 0) for the first page; when the result has hasMore = true, pass its nextSkip to get the next page. |
Kits 5
create_kit
Create a kit. The name and at least one component are required, and so is the SKU unless the company is configured to auto-number kits. Components that require lots or serial numbers, or that have attributes, are rejected by the system and must be handled from the Kits screen. Returns the new kit id.
| Parámetro | Tipo | Requerido | Descripción |
|---|
sku | text | No | Kit SKU / code. Leave empty only when the company is configured to auto-number kits. |
name | text | Sí | Kit name / description. Required. |
components | list of ComponentInput | Sí | Items and services that make up the kit. At least one is required. |
itemClassName | text | No | Item class name. Optional. |
salesDescription | text | No | Sales description shown on sales documents. Optional. |
showComponents | boolean | No | Show the kit components on transactions. Optional, defaults to false. |
allowComponentsQuantityChange | boolean | No | Allow changing component quantities on transactions. Optional, defaults to false. Turning this on also shows the components. |
pricesOnKitComponents | boolean | No | Handle prices at component level instead of at kit level. Optional, defaults to false. Requires showComponents to be true. |
delete_kit
Delete a kit by its id. Blocked by the system when the kit has linked records (transactions, price lists). Deleting a kit does not delete its component items. This cannot be undone.
| Parámetro | Tipo | Requerido | Descripción |
|---|
kitId | id (guid) | Sí | Id of the kit to delete (Guid). Required. Get it from search_kits. |
get_kit
Get a kit by its id, including its component items with quantities and units of measure.
| Parámetro | Tipo | Requerido | Descripción |
|---|
kitId | id (guid) | Sí | Kit id (Guid). Get it from search_kits. |
search_kits
Search kits by SKU or name and return a summary list in pages of 20. Pass an empty search to list all kits. When hasMore is true, call again with skip = nextSkip for the next page.
| Parámetro | Tipo | Requerido | Descripción |
|---|
search | text | No | Text to search for in the kit SKU or name. Empty returns the first 20 kits. |
includeInactive | boolean | No | Include inactive kits in the result. Optional, defaults to false. |
skip | integer | No | Number of matches to skip, for paging. Leave empty (or 0) for the first page; when the result has hasMore = true, pass its nextSkip to get the next page. |
update_kit
Update a kit by its id. Only the fields you pass are changed; leave a field empty to keep its current value. Passing components REPLACES the whole component list, so send every component the kit should end up with; omit it to keep the current components.
| Parámetro | Tipo | Requerido | Descripción |
|---|
kitId | id (guid) | Sí | Id of the kit to update (Guid). Required. Get it from search_kits. |
sku | text | No | New SKU / code. Leave empty to keep the current value. |
name | text | No | New name / description. Leave empty to keep the current value. |
components | list of ComponentInput | No | Full replacement list of items and services that make up the kit. Omit to keep the current components; an empty list is rejected because a kit needs at least one component. |
itemClassName | text | No | New item class name. Leave empty to keep the current value. |
salesDescription | text | No | New sales description. Leave empty to keep the current value. |
showComponents | boolean | No | Show the kit components on transactions. Leave empty to keep the current value. |
allowComponentsQuantityChange | boolean | No | Allow changing component quantities on transactions. Leave empty to keep the current value. |
pricesOnKitComponents | boolean | No | Handle prices at component level. Leave empty to keep the current value. Requires showComponents to be true. |
inactive | boolean | No | Whether the kit is inactive. Leave empty to keep the current value. |
Multi Company 3
get_aged_payables_all_companies
Get the accounts-payable aging totals of each of the user's companies: buckets of 30-day periods since the document date (0-30, 31-60, 61-90, over 90), the total and how many vendors have a balance. Same figures as get_aged_payables for each company. Covers every company the user can access (the ones list_companies shows, without selecting them), one row of totals per company: use it for questions about all or several of the user's companies, typical of accounting firms. Up to 25 companies per call; when nextSkip is set, call again with skip = nextSkip for the rest.
| Parámetro | Tipo | Requerido | Descripción |
|---|
skip | integer | No | Number of matches to skip, for paging. Leave empty (or 0) for the first page; when the result has hasMore = true, pass its nextSkip to get the next page. |
get_aged_receivables_all_companies
Get the accounts-receivable aging totals of each of the user's companies: buckets of 30-day periods since the document date (0-30, 31-60, 61-90, over 90), the total and how many customers have a balance. Use it to find which companies have old receivables (e.g. over 60 days = Days_61_90 + Days_Over_90). Same figures as get_aged_receivables for each company. Covers every company the user can access (the ones list_companies shows, without selecting them), one row of totals per company: use it for questions about all or several of the user's companies, typical of accounting firms. Up to 25 companies per call; when nextSkip is set, call again with skip = nextSkip for the rest.
| Parámetro | Tipo | Requerido | Descripción |
|---|
skip | integer | No | Number of matches to skip, for paging. Leave empty (or 0) for the first page; when the result has hasMore = true, pass its nextSkip to get the next page. |
get_available_cash_by_bank_all_companies
Get the available cash of each of the user's companies: the total across its bank accounts in the company's base currency (Total, CurrencyID) and the balance of each bank account in the account's own currency (Accounts). Same figures as get_available_cash_in_bank and get_available_cash_by_bank for each company. Covers every company the user can access (the ones list_companies shows, without selecting them), one row of totals per company: use it for questions about all or several of the user's companies, typical of accounting firms. Up to 25 companies per call; when nextSkip is set, call again with skip = nextSkip for the rest.
| Parámetro | Tipo | Requerido | Descripción |
|---|
skip | integer | No | Number of matches to skip, for paging. Leave empty (or 0) for the first page; when the result has hasMore = true, pass its nextSkip to get the next page. |
Opportunities 8
change_opportunity_status
Change the status (sales stage) of a sales opportunity or lead, like moving its card to another column of the Kanban board of opportunities and leads. Moving it to a closing stage (won or lost) closes it. A stage can require fields (amount, estimated close date, contact, lost reason, custom fields): when the opportunity lacks them the change is rejected and the error lists them, so ask the user for those values. The user's open Kanban boards update that card without reloading.
| Parámetro | Tipo | Requerido | Descripción |
|---|
id | id (guid) | Sí | Opportunity id (Guid). Get it from search_opportunities or create_opportunity. |
stage | text | Sí | New sales stage: its exact name as the Kanban column shows it (e.g. the SalesStage that get_opportunity returns) or its id. When the name does not exist the error lists the available stages. |
create_opportunity
Create a new CRM sales opportunity (lead) with a name, phone and contact. Returns its id and a link to it. The user's open Kanban boards of opportunities and leads show the new card without reloading.
| Parámetro | Tipo | Requerido | Descripción |
|---|
name | text | Sí | Name of the opportunity |
phone | text | Sí | Phone number for the lead |
contact | text | Sí | Contact person for the lead |
create_opportunity_comment
Add a comment (a note) to a sales opportunity or lead, on behalf of the authenticated user. It shows in the opportunity's notes and counts as a contact: the user's open Kanban boards of opportunities and leads update that card (days since last contact) without reloading.
| Parámetro | Tipo | Requerido | Descripción |
|---|
id | id (guid) | Sí | Opportunity id (Guid). Get it from search_opportunities or create_opportunity. |
comment | text | Sí | Text of the comment. |
delete_opportunity
Delete a sales opportunity by its id. Fails when the opportunity has linked records (transactions). This cannot be undone. The user's open Kanban boards of opportunities and leads remove its card without reloading.
| Parámetro | Tipo | Requerido | Descripción |
|---|
id | id (guid) | Sí | Opportunity id (Guid). |
get_opportunities_to_contact
Get open sales opportunities that are overdue for follow-up (no recent contact within the reminder window).
Sin parámetros.
get_opportunity
Get a sales opportunity by its id (name, contact, customer, sales stage, revenue and document date).
| Parámetro | Tipo | Requerido | Descripción |
|---|
id | id (guid) | Sí | Opportunity id (Guid). |
search_opportunities
Search sales opportunities by name, contact, phone, e-mail or customer name and return a summary list in pages of 20. Pass an empty search to list the most recent opportunities. When hasMore is true, call again with skip = nextSkip for the next page.
| Parámetro | Tipo | Requerido | Descripción |
|---|
search | text | No | Text to search for in the opportunity name, contact, phone, e-mail or customer name. Empty returns the most recent opportunities. |
skip | integer | No | Number of matches to skip, for paging. Leave empty (or 0) for the first page; when the result has hasMore = true, pass its nextSkip to get the next page. |
update_opportunity
Update the basic data of a sales opportunity or lead (the data its Kanban card shows). Only the fields sent are changed; the others keep their value. The estimated revenue can only be changed when the opportunity has no items (with items it is calculated from them). The user's open Kanban boards of opportunities and leads update that card without reloading.
| Parámetro | Tipo | Requerido | Descripción |
|---|
id | id (guid) | Sí | Opportunity id (Guid). Get it from search_opportunities or create_opportunity. |
name | text | No | New name. Optional. |
contact | text | No | New contact person. Optional. |
phone | text | No | New phone number. Optional. |
email | text | No | New e-mail. Optional. |
revenue | number | No | New estimated revenue, in the opportunity's currency. Optional. |
probability | number | No | New closing probability, as a percentage from 0 to 100. Optional. |
estimatedCloseDate | date | No | New estimated close date (yyyy-MM-dd). Optional. |
Opportunity AI 2
get_opportunities_at_risk
Get the open sales opportunities and leads at risk of losing the sale, riskiest first, with the reasons (days without contact, overdue estimated close date, too many days in the stage, no quote, no upcoming task, unopened e-mails, low probability). The risk is calculated with fixed CRM rules, not AI. Pages of 20: when hasMore is true, call again with skip = nextSkip.
| Parámetro | Tipo | Requerido | Descripción |
|---|
onlyHigh | boolean | No | true to get only high risk; false or empty for medium and high risk. |
skip | integer | No | Number of matches to skip, for paging. Leave empty (or 0) for the first page; when the result has hasMore = true, pass its nextSkip to get the next page. |
get_opportunity_summary
Get what is needed to summarize a sales opportunity or lead: its risk of losing the sale with the reasons, the AI summary the user sees in AdmCloud when it is still current (situation, last interaction, next steps, risks and suggested task), and its history (activities, e-mails, notes, quotes and stage changes). When summary is null, summarize the history yourself.
| Parámetro | Tipo | Requerido | Descripción |
|---|
id | id (guid) | Sí | Opportunity id (Guid). Get it from search_opportunities or get_opportunities_at_risk. |
Outlook Calendar 3
create_meeting_with_customer
Schedule a meeting of the authenticated user with a customer, lead or one of their contacts: it creates the CRM appointment (linked to the customer and contact) and the event in the user's Outlook calendar (Microsoft 365), by default with a Microsoft Teams meeting and an Outlook invitation sent to the contact's e-mail (or the customer's when no contact is given). Get customerId with search_customers and contactId with search_contacts; find_my_free_time suggests free times. If Outlook fails after the appointment was saved, the appointment stays and outlookError explains it. Dates and times are in the user's local time (utcOffset in the result). When the result has calendarAvailable = false, the user has not connected their Microsoft 365 account with calendar permission: show them its message and connectUrl, and do not retry. In that case nothing is created.
| Parámetro | Tipo | Requerido | Descripción |
|---|
customerId | id (guid) | No | Customer or lead id (from search_customers). Optional when contactId is given: the contact's customer is used. |
contactId | id (guid) | No | Contact id (from search_contacts). It must belong to customerId when both are given. Optional: without it the customer is invited. |
subject | text | Sí | Subject of the meeting. |
start | text | Sí | Start date and time in the user's local time, yyyy-MM-dd HH:mm (24 hours). It cannot be in the past. |
durationMinutes | integer | No | Length in minutes (5 to 600). Leave empty for 30. |
notes | text | No | Optional notes or agenda; they go in the appointment and in the body of the Outlook event. |
teamsMeeting | boolean | No | Create a Microsoft Teams meeting for it. Leave empty for true. |
inviteAttendee | boolean | No | Send the Outlook invitation to the contact's (or customer's) e-mail. Leave empty for true; false only blocks the time in the user's calendar. |
find_my_free_time
Find when the authenticated user is free in their Outlook calendar (Microsoft 365): time slots of the requested length within their Outlook working hours, from now on. Use it before create_meeting_with_customer to suggest a time. Without dates it looks at today. Dates and times are in the user's local time (utcOffset in the result). When the result has calendarAvailable = false, the user has not connected their Microsoft 365 account with calendar permission: show them its message and connectUrl, and do not retry.
| Parámetro | Tipo | Requerido | Descripción |
|---|
fromDate | text | No | First day, yyyy-MM-dd, in the user's local time. Leave empty for today. |
toDate | text | No | Last day (included), yyyy-MM-dd. Leave empty for the same day as fromDate. At most 31 days after fromDate. |
durationMinutes | integer | No | Length of the free slot in minutes (5 to 600). Leave empty for 30. |
maxResults | integer | No | How many free slots to return (1 to 20). Leave empty for 10. |
get_my_outlook_meetings
Get the meetings and events of the authenticated user's Outlook calendar (Microsoft 365) for a range of days: subject, start and end, location, organizer, attendees, Teams link and Outlook link. Without dates it returns today's agenda. Dates and times are in the user's local time (utcOffset in the result). When the result has calendarAvailable = false, the user has not connected their Microsoft 365 account with calendar permission: show them its message and connectUrl, and do not retry.
| Parámetro | Tipo | Requerido | Descripción |
|---|
fromDate | text | No | First day, yyyy-MM-dd, in the user's local time. Leave empty for today. |
toDate | text | No | Last day (included), yyyy-MM-dd. Leave empty for the same day as fromDate. At most 31 days after fromDate. |
Payment Documents 6
change_payment_authorization_status
Change the authorization status of a payment listed by get_pending_payments_to_authorize (vendor payment, account payment, vendor prepayment or bank transfer) by its document number: authorize it, reject it, send it back to pending authorization or to draft. It needs the same permissions as the payment screens: the authorize privilege to authorize, the authorize or edit privilege for the other statuses. Authorizing a payment can post its journal entry and assign its check number, as in the screen.
| Parámetro | Tipo | Requerido | Descripción |
|---|
docId | text | Sí | Payment document number (DocID) |
authorizationStatus | text | Sí | New authorization status: 'authorized', 'pending' (pending authorization), 'rejected' or 'draft'. |
create_payment
Record a customer payment as an advance/prepayment (NOT applied to specific invoices) for a given amount. The money is received into the given cash account (by name or code), or the default cash account when omitted. The document currency is that account's currency.
| Parámetro | Tipo | Requerido | Descripción |
|---|
customerName | text | Sí | Customer name (or part of it) |
amount | number | Sí | Amount received, in the cash account's currency |
cashAccount | text | No | Cash/bank account name or code to receive the money. Leave empty to use the single default cash account. |
notes | text | No | Optional notes / observations to store on the document. |
delete_payment
Delete a customer advance/prepayment by its document number. Reverses posting through the system and is blocked when it has linked documents. This cannot be undone.
| Parámetro | Tipo | Requerido | Descripción |
|---|
docId | text | Sí | Payment (advance/prepayment) document number (DocID) |
get_payment
Get the detail of a single customer payment (advance/prepayment or cash receipt) by its document number.
| Parámetro | Tipo | Requerido | Descripción |
|---|
docId | text | Sí | Payment document number (DocID) |
get_pending_payments_to_authorize
Get the count and the list of payments that are pending authorization (vendor payments, account payments, vendor prepayments and bank transfers), with the authorizer assigned to each one. Use authorizer = 'me' to see and count only the ones the requesting user must authorize.
| Parámetro | Tipo | Requerido | Descripción |
|---|
authorizer | text | No | Filter by the assigned authorizer (the person who must authorize the document). Use 'me' for only the documents the requesting user must authorize (assigned to them as authorizer, not the ones they created), or a user's name (or part of it). Leave empty for all. |
search_payments
List customer payments (cash receipts) with optional filters by customer name and date range. Returns pages of 50 matches, most recent first, with document id, date, customer, reference and amount. When hasMore is true, call again with skip = nextSkip for the next page.
| Parámetro | Tipo | Requerido | Descripción |
|---|
customerName | text | No | Customer name (or part of it) to filter by. Leave empty for all customers. |
dateFrom | text | No | Start date (inclusive) in yyyy-MM-dd format. Leave empty for no lower bound. |
dateTo | text | No | End date (inclusive) in yyyy-MM-dd format. Leave empty for no upper bound. |
skip | integer | No | Number of matches to skip, for paging. Leave empty (or 0) for the first page; when the result has hasMore = true, pass its nextSkip to get the next page. |
Payroll 2
compare_payroll_periods
Compare the total of ALL payrolls (every payroll type) dated in one period with another period, e.g. September 2026 against October 2026: the payrolls included in each period with their totals, the totals of each period (gross, withholdings, net, TSS, income tax, employer cost, overtime), the net difference split by cause (new employees, employees who left, salary, overtime, other income, TSS withholdings, income tax, other discounts), the employees with the largest changes and the change of each concept. Every amount is already calculated. Use it for monthly, quarterly or yearly payroll totals; to compare one payroll with the previous one use explain_payroll_variation. Each period can be at most one year long.
| Parámetro | Tipo | Requerido | Descripción |
|---|
currentFrom | date | Sí | First day of the period being analyzed (inclusive), e.g. 2026-10-01. |
currentTo | date | Sí | Last day of the period being analyzed (inclusive), e.g. 2026-10-31. |
previousFrom | date | Sí | First day of the period it is compared against (inclusive), e.g. 2026-09-01. |
previousTo | date | Sí | Last day of the period it is compared against (inclusive), e.g. 2026-09-30. |
explain_payroll_variation
Explain why a payroll went up or down compared with the previous payroll of the same payroll type: totals of both payrolls (gross, withholdings, net, TSS, income tax, employer cost, overtime), the net difference split by cause (new employees, employees who left, salary, overtime, other income, TSS withholdings, income tax, other discounts), the employees with the largest changes and the change of each concept. Every amount is already calculated and the causes add up to the net difference. Pass the payroll id or its document number; leave both empty for the latest payroll. To compare the totals of all payrolls of two months or periods use compare_payroll_periods.
| Parámetro | Tipo | Requerido | Descripción |
|---|
payrollId | id (guid) | No | Payroll id (Guid). Optional: use it when you have it, otherwise pass payrollDocId. |
payrollDocId | text | No | Payroll document number, exact (e.g. 'NOM-000123'). Optional; leave both parameters empty for the latest payroll. |
Projects 6
create_project
Create a project. The name is required, and so is the code unless the company is configured to auto-number projects. Customer, manager, project class and parent project are given by name. Status defaults to Open. Returns the new project id.
| Parámetro | Tipo | Requerido | Descripción |
|---|
code | text | No | Project code. Leave empty only when the company is configured to auto-number projects. |
name | text | Sí | Project name / description. Required. |
subsidiaryName | text | No | Subsidiary name. Optional: defaults to the session's subsidiary; needed only when the company has several subsidiaries and the user group is not tied to one. |
customerName | text | No | Customer name (or part of it). Optional. |
managerName | text | No | Name of the employee who manages the project. Optional. |
projectClassName | text | No | Project class name. Optional. |
parentProjectName | text | No | Parent project name or code, to make this a sub-project. Optional. |
status | text | No | Status: Estimate, Open, Pause, Completed, Closed or Canceled. Optional, defaults to Open. |
beginDate | text | No | Begin date in yyyy-MM-dd format. Optional. |
endDate | text | No | End date in yyyy-MM-dd format. Optional. |
currencyId | text | No | Currency code of the project (e.g. DOP, USD). Optional. |
po | text | No | Customer purchase order number. Optional. |
notes | text | No | Notes. Optional. |
delete_project
Delete a project by its id. Blocked by the system when the project has sub-projects, budgets or transactions. This cannot be undone.
| Parámetro | Tipo | Requerido | Descripción |
|---|
projectId | id (guid) | Sí | Id of the project to delete (Guid). Required. Get it from search_projects. |
get_project
Get a project by its id: code, name, status, customer, manager, project class, parent project, subsidiary, cost centers, currency, dates, PO and notes.
| Parámetro | Tipo | Requerido | Descripción |
|---|
projectId | id (guid) | Sí | Project id (Guid). Get it from search_projects. |
get_project_summary
Project summary report: for each project, budget (revenue, expenses, materials) versus actuals (revenue, expenses, dispatched materials cost, purchase orders pending billing, work in progress), result and profitability, up to a cut-off date, plus totals. Amounts in local currency, or in the company's base currency when the subsidiaries use different currencies. Same data as the 'Project summary' report.
| Parámetro | Tipo | Requerido | Descripción |
|---|
projectName | text | No | Project name or code to limit the report to one project. Leave empty for all projects. |
customerName | text | No | Customer name (or part of it) to limit the report to that customer's projects. Leave empty for all customers. |
parentProjectName | text | No | Parent project name or code to limit the report to its sub-projects. Leave empty for no filter. |
dateTo | text | No | Cut-off date (inclusive) in yyyy-MM-dd format. Leave empty for no cut-off (everything to date). |
search_projects
Search projects by name, code, manager, project class or customer (empty for all), optionally only for one customer or only open ones. Returns pages of 50 by name, with id, code, name, status, customer, manager and dates. When hasMore is true, call again with skip = nextSkip for the next page.
| Parámetro | Tipo | Requerido | Descripción |
|---|
search | text | No | Text to search for in the project name, code, manager, class or customer. Leave empty for all projects. |
customerName | text | No | Customer name (or part of it) to filter by. Leave empty for all customers. |
onlyOpen | boolean | No | When true, only open projects are returned. Optional, defaults to false. |
skip | integer | No | Number of matches to skip, for paging. Leave empty (or 0) for the first page; when the result has hasMore = true, pass its nextSkip to get the next page. |
update_project
Update a project by its id. Only the fields you pass are changed; leave a field empty to keep its current value. Budget, tasks, files and other details are kept as they are.
| Parámetro | Tipo | Requerido | Descripción |
|---|
projectId | id (guid) | Sí | Id of the project to update (Guid). Required. Get it from search_projects. |
code | text | No | New code. Leave empty to keep the current value. |
name | text | No | New name / description. Leave empty to keep the current value. |
customerName | text | No | New customer name (or part of it). Leave empty to keep the current value. |
managerName | text | No | New manager (employee) name. Leave empty to keep the current value. |
projectClassName | text | No | New project class name. Leave empty to keep the current value. |
parentProjectName | text | No | New parent project name or code. Leave empty to keep the current value. |
status | text | No | New status: Estimate, Open, Pause, Completed, Closed or Canceled. Leave empty to keep the current value. |
beginDate | text | No | New begin date in yyyy-MM-dd format. Leave empty to keep the current value. |
endDate | text | No | New end date in yyyy-MM-dd format. Leave empty to keep the current value. |
currencyId | text | No | New currency code. Leave empty to keep the current value. |
po | text | No | New customer purchase order number. Leave empty to keep the current value. |
notes | text | No | New notes. Leave empty to keep the current value. |
Purchase Orders 6
change_purchase_order_authorization_status
Change the authorization status of a purchase order by its document number: authorize it, reject it, send it back to pending authorization or to draft. It needs the same permissions as the purchase order screen: the authorize privilege to authorize, the authorize or edit privilege for the other statuses. Authorizing applies the same checks as the screen (the user's purchase order authorization limit and the budget).
| Parámetro | Tipo | Requerido | Descripción |
|---|
docId | text | Sí | Purchase order document number (DocID) |
authorizationStatus | text | Sí | New authorization status: 'authorized', 'pending' (pending authorization), 'rejected' or 'draft'. |
create_purchase_order
Create a purchase order for a vendor (by name) for one item (by SKU or name), quantity and unit cost. A purchase order does not post to the ledger or move inventory. It can be linked to a project (projectName). Returns a link to the created order.
| Parámetro | Tipo | Requerido | Descripción |
|---|
vendorName | text | Sí | Vendor name (or part of it) |
itemSkuOrName | text | Sí | Item SKU or name |
quantity | number | Sí | Quantity to order |
unitCost | number | Sí | Unit cost in the vendor's currency |
projectName | text | No | Project name or code to link the document to. Optional; leave empty for no project. |
notes | text | No | Optional notes / observations to store on the document. |
delete_purchase_order
Delete a purchase order by its document number. Blocked by the system when the order has linked documents. This cannot be undone.
| Parámetro | Tipo | Requerido | Descripción |
|---|
docId | text | Sí | Purchase order document number (DocID) |
get_pending_purchase_orders_to_authorize
Get the count and the list of purchase orders that are pending authorization, with the authorizer assigned to each one. Use authorizer = 'me' to see and count only the ones the requesting user must authorize.
| Parámetro | Tipo | Requerido | Descripción |
|---|
authorizer | text | No | Filter by the assigned authorizer (the person who must authorize the document). Use 'me' for only the documents the requesting user must authorize (assigned to them as authorizer, not the ones they created), or a user's name (or part of it). Leave empty for all. |
get_purchase_order
Get the full detail of a single purchase order by its document number, including header (vendor, project, currency, total) and line items.
| Parámetro | Tipo | Requerido | Descripción |
|---|
docId | text | Sí | Purchase order document number (DocID) |
search_purchase_orders
List purchase orders with optional filters by vendor name, project and date range. Returns pages of 50 matches, most recent first, with document id, date, vendor, project, currency and total. When hasMore is true, call again with skip = nextSkip for the next page.
| Parámetro | Tipo | Requerido | Descripción |
|---|
vendorName | text | No | Vendor name (or part of it) to filter by. Leave empty for all vendors. |
projectName | text | No | Project name or code to filter by: documents linked to the project on the header or on any line. Leave empty for all projects. |
dateFrom | text | No | Start date (inclusive) in yyyy-MM-dd format. Leave empty for no lower bound. |
dateTo | text | No | End date (inclusive) in yyyy-MM-dd format. Leave empty for no upper bound. |
skip | integer | No | Number of matches to skip, for paging. Leave empty (or 0) for the first page; when the result has hasMore = true, pass its nextSkip to get the next page. |
Quotes 4
create_quote
Create a sales quote for a customer (by name) for one item (by SKU or name) and quantity. The item must have a price in the customer's currency. It can be linked to a project (projectName). Returns a link to the created quote.
| Parámetro | Tipo | Requerido | Descripción |
|---|
customerName | text | Sí | Customer name (or part of it) |
itemSkuOrName | text | Sí | Item SKU or name |
quantity | number | Sí | Quantity to quote |
projectName | text | No | Project name or code to link the document to. Optional; leave empty for no project. |
notes | text | No | Optional notes / observations to store on the document. |
delete_quote
Delete a sales quote by its document number. Blocked by the system when the quote has linked documents. This cannot be undone.
| Parámetro | Tipo | Requerido | Descripción |
|---|
docId | text | Sí | Quote document number (DocID) |
get_quote
Get the full detail of a single sales quote by its document number, including header (customer, project, currency, total) and line items.
| Parámetro | Tipo | Requerido | Descripción |
|---|
docId | text | Sí | Quote document number (DocID) |
search_quotes
List sales quotes with optional filters by customer name, project and date range. Returns pages of 50 matches, most recent first, with document id, date, customer, project, currency and total. When hasMore is true, call again with skip = nextSkip for the next page.
| Parámetro | Tipo | Requerido | Descripción |
|---|
customerName | text | No | Customer name (or part of it) to filter by. Leave empty for all customers. |
projectName | text | No | Project name or code to filter by: documents linked to the project on the header or on any line. Leave empty for all projects. |
dateFrom | text | No | Start date (inclusive) in yyyy-MM-dd format. Leave empty for no lower bound. |
dateTo | text | No | End date (inclusive) in yyyy-MM-dd format. Leave empty for no upper bound. |
skip | integer | No | Number of matches to skip, for paging. Leave empty (or 0) for the first page; when the result has hasMore = true, pass its nextSkip to get the next page. |
Sales 7
get_monthly_sales
Get total sales broken down by month for a year. For a single yearly total use get_sales.
| Parámetro | Tipo | Requerido | Descripción |
|---|
year | integer | Sí | The year |
get_sales
Get the total sales of a whole year as a single amount, before taxes, in the company currency. For a month-by-month breakdown use get_monthly_sales; to list individual documents use search_invoices or search_sales_receipts.
| Parámetro | Tipo | Requerido | Descripción |
|---|
year | integer | Sí | The year |
get_sales_by_item_class
Get total sales of a year grouped by item class (product line).
| Parámetro | Tipo | Requerido | Descripción |
|---|
year | integer | Sí | The year |
get_sales_by_sales_rep
Get total sales of a year grouped by sales representative.
| Parámetro | Tipo | Requerido | Descripción |
|---|
year | integer | Sí | The year |
get_sales_for_customer
Get the sales total of a year for a specific customer, found by name. To list that customer's individual documents use search_invoices or search_sales_receipts.
| Parámetro | Tipo | Requerido | Descripción |
|---|
year | integer | Sí | The year |
customerName | text | Sí | Customer name (or part of it) to search for |
get_top10_sales_by_customer
Get the 10 customers with the highest sales for a year.
| Parámetro | Tipo | Requerido | Descripción |
|---|
year | integer | Sí | The year |
get_top10_sales_by_item
Get the 10 items with the highest sales (amount and quantity) for a year.
| Parámetro | Tipo | Requerido | Descripción |
|---|
year | integer | Sí | The year |
Sales Orders 6
change_sales_order_authorization_status
Change the authorization status of a sales order by its document number: authorize it, reject it, send it back to pending authorization or to draft. It needs the same permissions as the sales order screen: the authorize privilege to authorize, the authorize or edit privilege for the other statuses. Authorizing applies the same checks as the screen (credit limit, overdue invoices, authorized discounts).
| Parámetro | Tipo | Requerido | Descripción |
|---|
docId | text | Sí | Sales order document number (DocID) |
authorizationStatus | text | Sí | New authorization status: 'authorized', 'pending' (pending authorization), 'rejected' or 'draft'. |
create_sales_order
Create a sales order for a customer (by name) for one item (by SKU or name) and quantity. Requires a single predefined sales location. It can be linked to a project (projectName). Returns a link to the created order.
| Parámetro | Tipo | Requerido | Descripción |
|---|
customerName | text | Sí | Customer name (or part of it) |
itemSkuOrName | text | Sí | Item SKU or name |
quantity | number | Sí | Quantity to order |
projectName | text | No | Project name or code to link the document to. Optional; leave empty for no project. |
notes | text | No | Optional notes / observations to store on the document. |
delete_sales_order
Delete a sales order by its document number. Blocked by the system when the order has linked documents. This cannot be undone.
| Parámetro | Tipo | Requerido | Descripción |
|---|
docId | text | Sí | Sales order document number (DocID) |
get_pending_sales_orders_to_authorize
Get the count and the list of sales orders that are pending authorization, with the authorizer assigned to each one. Use authorizer = 'me' to see and count only the ones the requesting user must authorize.
| Parámetro | Tipo | Requerido | Descripción |
|---|
authorizer | text | No | Filter by the assigned authorizer (the person who must authorize the document). Use 'me' for only the documents the requesting user must authorize (assigned to them as authorizer, not the ones they created), or a user's name (or part of it). Leave empty for all. |
get_sales_order
Get the full detail of a single sales order by its document number, including header (customer, project, currency, total) and line items.
| Parámetro | Tipo | Requerido | Descripción |
|---|
docId | text | Sí | Sales order document number (DocID) |
search_sales_orders
List sales orders with optional filters by customer name, project and date range. Returns pages of 50 matches, most recent first, with document id, date, customer, project, currency and total. When hasMore is true, call again with skip = nextSkip for the next page.
| Parámetro | Tipo | Requerido | Descripción |
|---|
customerName | text | No | Customer name (or part of it) to filter by. Leave empty for all customers. |
projectName | text | No | Project name or code to filter by: documents linked to the project on the header or on any line. Leave empty for all projects. |
dateFrom | text | No | Start date (inclusive) in yyyy-MM-dd format. Leave empty for no lower bound. |
dateTo | text | No | End date (inclusive) in yyyy-MM-dd format. Leave empty for no upper bound. |
skip | integer | No | Number of matches to skip, for paging. Leave empty (or 0) for the first page; when the result has hasMore = true, pass its nextSkip to get the next page. |
Sales Receipts 4
create_sales_receipt
Create a cash sale (sales receipt) for a customer (by name) for one item (by SKU or name) and quantity. The payment is posted to the default cash account; the document currency is that account's currency. Fiscal numbering, taxes and posting are handled by the system. It can be linked to a project (projectName). Returns a link to the created receipt.
| Parámetro | Tipo | Requerido | Descripción |
|---|
customerName | text | Sí | Customer name (or part of it) |
itemSkuOrName | text | Sí | Item SKU or name |
quantity | number | Sí | Quantity to sell |
projectName | text | No | Project name or code to link the document to. Optional; leave empty for no project. |
notes | text | No | Optional notes / observations to store on the document. |
delete_sales_receipt
Delete a cash sale (sales receipt) by its document number. Reverses posting/stock through the system and is blocked when it has linked documents. This cannot be undone.
| Parámetro | Tipo | Requerido | Descripción |
|---|
docId | text | Sí | Sales receipt document number (DocID) |
get_sales_receipt
Get the full detail of a single cash sale (sales receipt) by its document number, including header (customer, project, currency, total) and line items.
| Parámetro | Tipo | Requerido | Descripción |
|---|
docId | text | Sí | Sales receipt document number (DocID) |
search_sales_receipts
List cash sales (sales receipts) with optional filters by customer name, project and date range. Returns pages of 50 matches, most recent first, with document id, date, customer, project, currency and total. When hasMore is true, call again with skip = nextSkip for the next page.
| Parámetro | Tipo | Requerido | Descripción |
|---|
customerName | text | No | Customer name (or part of it) to filter by. Leave empty for all customers. |
projectName | text | No | Project name or code to filter by: documents linked to the project on the header or on any line. Leave empty for all projects. |
dateFrom | text | No | Start date (inclusive) in yyyy-MM-dd format. Leave empty for no lower bound. |
dateTo | text | No | End date (inclusive) in yyyy-MM-dd format. Leave empty for no upper bound. |
skip | integer | No | Number of matches to skip, for paging. Leave empty (or 0) for the first page; when the result has hasMore = true, pass its nextSkip to get the next page. |
Service Orders 7
change_service_order_billing_authorization
Authorize or reject the billing of a service order (work order), or send it back to pending. Only authorized orders can be invoiced. AdmCloud refuses voided or already billed orders, and authorizing warranty orders.
| Parámetro | Tipo | Requerido | Descripción |
|---|
serviceOrderId | id (guid) | Sí | Service order id (Guid). Get it from search_service_orders. |
authorizationStatus | text | Sí | New billing authorization status: 'pending', 'authorized' or 'rejected'. |
create_service_order
Create a service order (work order) without lines: the items and services used are added later from the AdmCloud screen. The description is required, plus either the id of the service request it attends (serviceRequestId: the order is linked to it and takes its customer, warranty, project and location) or the customer name. The number and the statuses are assigned by AdmCloud. Returns the new service order id and a link to it.
| Parámetro | Tipo | Requerido | Descripción |
|---|
description | text | Sí | Description of the work done or to be done. Required. |
customerName | text | No | Customer name; it must match exactly one customer. Required unless serviceRequestId is given, in which case it is ignored and the customer of the service request is used. |
serviceRequestId | id (guid) | No | Id (Guid) of the service request this order attends, as shown in AdmCloud. Optional. |
technicianName | text | No | Name of the technician (an active employee marked as technician). Optional; defaults to the current user when that user is a technician. |
hours | number | No | Hours worked. Optional, defaults to 0. |
warranty | boolean | No | True when the work is covered by warranty (no charge), false when it is billable. Optional; defaults to the service request's value, or billable. |
docDate | text | No | Document date in yyyy-MM-dd format. Optional, defaults to today. |
reference | text | No | External reference (for example the customer's ticket number). Optional. |
delete_service_order
Delete a service order (work order) by its id. Fails when it has linked records (for example an invoice). This cannot be undone.
| Parámetro | Tipo | Requerido | Descripción |
|---|
serviceOrderId | id (guid) | Sí | Service order id (Guid). Get it from search_service_orders. |
get_service_order
Get a service order (work order) by its id: number, date, description, customer, technician, hours, warranty, project, location, billing and authorization status, its lines (items and services used), its tasks and the service requests it attends.
| Parámetro | Tipo | Requerido | Descripción |
|---|
serviceOrderId | id (guid) | Sí | Service order id (Guid). Get it from search_service_orders. |
search_service_orders
Search service orders (work orders) by document number, reference, description or customer name and return a summary list in pages of 20, most recent first, with technician, hours, warranty, whether it is billed and its billing authorization status. Pass an empty search to list the most recent ones. Voided orders are excluded unless includeVoid is true. When hasMore is true, call again with skip = nextSkip for the next page.
| Parámetro | Tipo | Requerido | Descripción |
|---|
search | text | No | Text to search for in the service order number, reference, description or customer name. Empty returns the most recent service orders. |
dateFrom | text | No | Start date (inclusive) in yyyy-MM-dd format. Leave empty for no lower bound. |
dateTo | text | No | End date (inclusive) in yyyy-MM-dd format. Leave empty for no upper bound. |
authorizationStatus | text | No | Billing authorization status to filter by: 'pending', 'authorized' or 'rejected'. Leave empty for all. |
includeVoid | boolean | No | Include voided service orders. Optional, defaults to false. |
skip | integer | No | Number of matches to skip, for paging. Leave empty (or 0) for the first page; when the result has hasMore = true, pass its nextSkip to get the next page. |
update_service_order
Update a service order (work order) by its id. Only the fields you pass are changed; leave a field empty to keep its current value. The customer cannot be changed, the lines are edited from the AdmCloud screen and the billing authorization is changed with change_service_order_billing_authorization.
| Parámetro | Tipo | Requerido | Descripción |
|---|
serviceOrderId | id (guid) | Sí | Service order id (Guid). Get it from search_service_orders. |
description | text | No | New description of the work. Optional. |
technicianName | text | No | Name of the technician (an active employee marked as technician). Optional. |
hours | number | No | Hours worked. Optional. |
warranty | boolean | No | True when the work is covered by warranty (no charge), false when it is billable. Optional. |
docDate | text | No | Document date in yyyy-MM-dd format. Optional. |
reference | text | No | External reference. Optional. |
void_service_order
Void a service order (work order) by its id. The order stays in AdmCloud marked as void. Fails when it has valid linked documents (for example the invoice that billed it). This cannot be undone.
| Parámetro | Tipo | Requerido | Descripción |
|---|
serviceOrderId | id (guid) | Sí | Service order id (Guid). Get it from search_service_orders. |
Service Requests 6
change_service_request_status
Move a service request to another status, given the status name. The status must belong to the workflow of the request, and the user must be allowed to use it; both rules are enforced by AdmCloud.
| Parámetro | Tipo | Requerido | Descripción |
|---|
serviceRequestId | id (guid) | Sí | Service request id (Guid). Get it from search_service_requests. |
statusName | text | Sí | Name of the destination status, as configured by the company (for example 'En Proceso' or 'Entregada'). |
create_service_request
Create a service request. The description, the customer, the contact that requests it and the priority are required, as in the AdmCloud screen; every other field is optional and is matched by name. The number and the initial status are assigned by AdmCloud. Returns the new service request id and a link to it.
| Parámetro | Tipo | Requerido | Descripción |
|---|
description | text | Sí | What the customer is asking for. Required. |
customerName | text | Sí | Customer name. Required; it must match exactly one customer. |
transTypeName | text | No | Transaction type name of the service request (SA_Trans_Types configured for service requests). Optional. |
subsidiaryName | text | No | Subsidiary name. Optional; defaults to the subsidiary of the session, and it cannot be a different one when the user group is tied to a subsidiary. |
requestedByContactName | text | No | Name of the customer contact that requested the service ('requested by'). Required; only contacts of that customer are considered. |
priorityName | text | No | Priority name, as configured by the company. Required. |
internalPriorityName | text | No | Internal priority name, as configured by the company. Optional. |
groupName | text | No | Transaction group name the request belongs to. Optional. |
warranty | boolean | No | True when the work is covered by warranty (no charge), false when it is billable. Optional, defaults to billable. |
delete_service_request
Delete a service request by its id. Fails when it has linked records (work orders, invoices). This cannot be undone.
| Parámetro | Tipo | Requerido | Descripción |
|---|
serviceRequestId | id (guid) | Sí | Service request id (Guid). Get it from search_service_requests. |
get_service_request
Get a service request by its id (number, date, description, customer, status, transaction type, requested by, priorities, group and whether it is under warranty).
| Parámetro | Tipo | Requerido | Descripción |
|---|
serviceRequestId | id (guid) | Sí | Service request id (Guid). Get it from search_service_requests. |
search_service_requests
Search service requests by document number, description or customer name and return a summary list in pages of 20. Pass an empty search to list the most recent ones. Only open requests are listed unless includeClosed is true. When hasMore is true, call again with skip = nextSkip for the next page.
| Parámetro | Tipo | Requerido | Descripción |
|---|
search | text | No | Text to search for in the service request number, description or customer name. Empty returns the most recent service requests. |
includeClosed | boolean | No | Include service requests already in a closing status. Optional, defaults to false. |
skip | integer | No | Number of matches to skip, for paging. Leave empty (or 0) for the first page; when the result has hasMore = true, pass its nextSkip to get the next page. |
update_service_request
Update a service request by its id. Only the fields you pass are changed; leave a field empty to keep its current value. The customer cannot be changed, and the status is changed with change_service_request_status.
| Parámetro | Tipo | Requerido | Descripción |
|---|
serviceRequestId | id (guid) | Sí | Service request id (Guid). Get it from search_service_requests. |
description | text | No | New description of what the customer is asking for. Optional. |
transTypeName | text | No | Transaction type name of the service request. Optional. |
requestedByContactName | text | No | Name of the customer contact that requested the service ('requested by'). Optional; only contacts of that customer are considered. |
priorityName | text | No | Priority name, as configured by the company. Optional. |
internalPriorityName | text | No | Internal priority name, as configured by the company. Optional. |
groupName | text | No | Transaction group name the request belongs to. Optional. |
warranty | boolean | No | True when the work is covered by warranty (no charge), false when it is billable. Optional. |
Services 5
create_service
Create a service. The name is required, and so is the SKU unless the company is configured to auto-number services. Services need no units of measure. Returns the new service id.
| Parámetro | Tipo | Requerido | Descripción |
|---|
sku | text | No | Service SKU / code. Leave empty only when the company is configured to auto-number services. |
name | text | Sí | Service name / description. Required. |
itemClassName | text | No | Item class name. Optional. |
salesDescription | text | No | Sales description shown on sales documents. Optional. |
purchaseDescription | text | No | Purchase description shown on purchase documents. Optional. |
salesItem | boolean | No | Whether the service can be sold. Optional, defaults to true. |
purchaseItem | boolean | No | Whether the service can be purchased. Optional, defaults to true. |
delete_service
Delete a service by its id. Blocked by the system when the service has linked records (transactions, kits, price lists). This cannot be undone.
| Parámetro | Tipo | Requerido | Descripción |
|---|
serviceId | id (guid) | Sí | Id of the service to delete (Guid). Required. Get it from search_services. |
get_service
Get a service by its id (SKU, name, descriptions, item class, whether it can be sold or purchased).
| Parámetro | Tipo | Requerido | Descripción |
|---|
serviceId | id (guid) | Sí | Service id (Guid). Get it from search_services. |
search_services
Search services by SKU or name and return a summary list in pages of 20. Pass an empty search to list all services. When hasMore is true, call again with skip = nextSkip for the next page.
| Parámetro | Tipo | Requerido | Descripción |
|---|
search | text | No | Text to search for in the service SKU or name. Empty returns the first 20 services. |
includeInactive | boolean | No | Include inactive services in the result. Optional, defaults to false. |
skip | integer | No | Number of matches to skip, for paging. Leave empty (or 0) for the first page; when the result has hasMore = true, pass its nextSkip to get the next page. |
update_service
Update a service by its id. Only the fields you pass are changed; leave a field empty to keep its current value.
| Parámetro | Tipo | Requerido | Descripción |
|---|
serviceId | id (guid) | Sí | Id of the service to update (Guid). Required. Get it from search_services. |
sku | text | No | New SKU / code. Leave empty to keep the current value. |
name | text | No | New name / description. Leave empty to keep the current value. |
itemClassName | text | No | New item class name. Leave empty to keep the current value. |
salesDescription | text | No | New sales description. Leave empty to keep the current value. |
purchaseDescription | text | No | New purchase description. Leave empty to keep the current value. |
salesItem | boolean | No | Whether the service can be sold. Leave empty to keep the current value. |
purchaseItem | boolean | No | Whether the service can be purchased. Leave empty to keep the current value. |
inactive | boolean | No | Whether the service is inactive. Leave empty to keep the current value. |
Session 5
get_current_context
Show who you are signed in as and which company and user group (role) the tools are currently acting on. Call this first if you are unsure of the active company/role.
Sin parámetros.
list_companies
List the companies the signed-in user can access, so one can be picked with select_company. For each company it reports its plan (Basic, Standard, Enterprise, ...) and its type (Demo, Trial or Paid). Marks the company currently in use.
Sin parámetros.
list_user_groups
List the user groups (roles) available in the currently selected company, so one can be picked with select_user_group. Marks the group currently in use.
Sin parámetros.
select_company
Set the company the tools operate on, by its name or id. Switching company clears the current user group; when the new company has a single group it is selected automatically, otherwise call select_user_group next.
| Parámetro | Tipo | Requerido | Descripción |
|---|
company | text | Sí | Company name (or part of it) or id to switch to. |
selections | UserSelectionStore | Sí | |
select_user_group
Set the user group (role) the tools operate as, by its name or id, within the currently selected company. Select a company first with select_company.
| Parámetro | Tipo | Requerido | Descripción |
|---|
userGroup | text | Sí | User group name (or part of it) or id to switch to. |
selections | UserSelectionStore | Sí | |
Tasks 16
add_task_comment
Add a comment to one of the user's tasks, signed by the user. The user follows the task again and its followers get the comment in their AdmTasks inbox.
| Parámetro | Tipo | Requerido | Descripción |
|---|
taskId | id (guid) | Sí | Task id (Guid). Get it from search_tasks. |
comment | text | Sí | The comment text, written as the user would write it. |
archive_task
Archive one of the user's tasks, with its subtasks: it leaves the boards and can be restored from the board's archived tasks in AdmTasks.
| Parámetro | Tipo | Requerido | Descripción |
|---|
taskId | id (guid) | Sí | Task id (Guid). Get it from search_tasks. |
change_task_assignee
Change the assignee (the person responsible) of one of the user's tasks. The new assignee and the task's followers are notified in their AdmTasks inbox.
| Parámetro | Tipo | Requerido | Descripción |
|---|
taskId | id (guid) | Sí | Task id (Guid). Get it from search_tasks. |
assignedToId | id (guid) | No | New assignee: a user id from list_task_assignees. Empty leaves the task unassigned. |
change_task_due_date
Change the due date of one of the user's tasks (its start date does not change). The task's followers are notified in their AdmTasks inbox.
| Parámetro | Tipo | Requerido | Descripción |
|---|
taskId | id (guid) | Sí | Task id (Guid). Get it from search_tasks. |
expirationDate | date | No | New due date (only the date). Empty removes the due date. |
change_task_group
Change the group (column of the Kanban board by groups) of one of the authenticated user's open tasks, inside a board the task is already in. Leave taskGroupId empty to make it ungrouped. To take it to another board use move_task_to_board. The user's open Kanban boards update without reloading.
| Parámetro | Tipo | Requerido | Descripción |
|---|
taskId | id (guid) | Sí | Task id (Guid). Get it from search_tasks. |
taskGroupId | id (guid) | No | Destination group id (from list_task_boards). Empty makes the task ungrouped. |
boardId | id (guid) | No | Optional board id, only needed to make the task ungrouped in an additional board (shared tasks). Empty uses the board of the group, or the task's primary board. |
change_task_priority
Change the priority of one of the user's tasks.
| Parámetro | Tipo | Requerido | Descripción |
|---|
taskId | id (guid) | Sí | Task id (Guid). Get it from search_tasks. |
priority | text | Sí | New priority: None, VeryLow, Low, Medium, High or VeryHigh. |
change_task_status
Change the status of one of the authenticated user's tasks, like moving its card to another column of the Kanban board by status. The user's open Kanban boards update that card without reloading.
| Parámetro | Tipo | Requerido | Descripción |
|---|
taskId | id (guid) | Sí | Task id (Guid). Get it from search_tasks. |
status | text | Sí | New status: Pending, InProgress, InPause, Completed or Canceled. |
create_task
Create a task assigned to the authenticated user, with status pending, in a task board (the default board when boardId is empty) and optionally in one of that board's groups. It shows up in the user's open Kanban boards without reloading them.
| Parámetro | Tipo | Requerido | Descripción |
|---|
description | text | Sí | What the task is about (its description). |
expirationDate | date | No | Optional due date of the task. |
notes | text | No | Optional notes of the task. |
boardId | id (guid) | No | Optional board id (from list_task_boards). Empty uses the default board. |
taskGroupId | id (guid) | No | Optional group id (from list_task_boards); it must belong to the chosen board. Empty leaves the task ungrouped. |
create_tasks
Create several tasks at once in a task board, each one with an optional assignee, due date and group (section). Use it to turn a text (for example meeting notes) into tasks: one call with all of them, up to 30. All the tasks are checked before any is created. Unlike create_task, a task without assignee stays unassigned. The assignees are notified in their AdmTasks inbox.
| Parámetro | Tipo | Requerido | Descripción |
|---|
boardId | id (guid) | Sí | Board id (from list_task_boards) where the tasks are created. |
tasks | list of NewTaskInput | Sí | The tasks to create. |
delete_task
Delete one of the user's tasks. It goes to the AdmTasks trash, where it can be restored for 30 days. A task with subtasks or that blocks other tasks cannot be deleted.
| Parámetro | Tipo | Requerido | Descripción |
|---|
taskId | id (guid) | Sí | Task id (Guid). Get it from search_tasks. |
get_task_board_activity
Summarize what happened in a task board in a period (for example "this week"): the tasks created, the tasks completed, the open tasks that are overdue today and the comments written in the period (when the plan has task comments). Only the tasks the user sees in that board. Each list has its total and up to 30 rows.
| Parámetro | Tipo | Requerido | Descripción |
|---|
boardId | id (guid) | No | Board id (from list_task_boards). Empty uses the default board. |
dateFrom | date | No | First day of the period. Optional, defaults to 6 days before today. |
dateTo | date | No | Last day of the period (inclusive). Optional, defaults to today. |
list_task_assignees
List the users a task can be assigned to (users of the company with system access), with the ids that create_tasks and change_task_assignee need. Use it to find the person the user mentions by name.
Sin parámetros.
list_task_boards
List the company's task boards (the Kanban boards of tasks) with their groups (the columns of the board by groups), with the ids that create_task, move_task_to_board and change_task_group need.
Sin parámetros.
move_task_to_board
Move one of the authenticated user's open tasks to another task board, optionally into one of that board's groups. If the task is in several boards (shared tasks), fromBoardId says which one it leaves; the others do not change. The user's open Kanban boards update without reloading.
| Parámetro | Tipo | Requerido | Descripción |
|---|
taskId | id (guid) | Sí | Task id (Guid). Get it from search_tasks. |
boardId | id (guid) | Sí | Destination board id (from list_task_boards). |
taskGroupId | id (guid) | No | Optional group id of the destination board (from list_task_boards). Empty leaves the task ungrouped. |
fromBoardId | id (guid) | No | Optional board the task leaves, only when it is in several boards. Empty means its primary board. |
rename_task
Change the title (description) of one of the user's tasks. Nothing else of the task changes.
| Parámetro | Tipo | Requerido | Descripción |
|---|
taskId | id (guid) | Sí | Task id (Guid). Get it from search_tasks. |
description | text | Sí | New title of the task. |
search_tasks
Search the authenticated user's tasks (assigned to them, created by them or shared with them), as they appear in their task Kanban boards, in pages of 20 with their id, status, board, group, assignee (AssignedToName, AssignedToMe) and creator (CreatedByName, CreatedByMe). Only open tasks (pending, in progress, in pause) unless includeCompleted is true. totalCount and countsByStatus count all the matching tasks, so use them to answer how many. For "my tasks" or "my pending tasks" use assignedToMe = true: without it the results also include tasks the user created or that were shared with them but are assigned to someone else. When hasMore is true, call again with skip = nextSkip for the next page.
| Parámetro | Tipo | Requerido | Descripción |
|---|
search | text | No | Text to search for in the task description. Empty lists all the user's tasks. |
boardId | id (guid) | No | Board id (from list_task_boards) to list only the tasks of that board, with the group they have in it. Empty searches all boards. |
includeCompleted | boolean | No | Also include completed tasks. Optional, defaults to false. |
assignedToMe | boolean | No | Only the tasks assigned to the authenticated user (they are the assignee), leaving out the ones they created or that were shared with them but are assigned to someone else. Optional, defaults to false. |
dueFrom | date | No | Optional: only the tasks due on or after this date. With dueFrom or dueTo, tasks without a due date are left out. |
dueTo | date | No | Optional: only the tasks due on or before this date. For overdue tasks use yesterday's date (with includeCompleted false); for "due this week" use dueFrom today and dueTo the end of the week. |
skip | integer | No | Number of matches to skip, for paging. Leave empty (or 0) for the first page; when the result has hasMore = true, pass its nextSkip to get the next page. |
Vendor Bills 4
create_bill
Create a vendor bill for a vendor (by name) for one item (by SKU or name), quantity and unit cost. A reference (the vendor's document number) is required. Taxes, fiscal numbering and posting are handled by the system. It can be linked to a project (projectName). Returns a link to the created bill.
| Parámetro | Tipo | Requerido | Descripción |
|---|
vendorName | text | Sí | Vendor name (or part of it) |
itemSkuOrName | text | Sí | Item SKU or name |
quantity | number | Sí | Quantity to bill |
unitCost | number | Sí | Unit cost in the vendor's currency |
reference | text | Sí | Reference: the vendor's bill document number. Required. |
projectName | text | No | Project name or code to link the document to. Optional; leave empty for no project. |
notes | text | No | Optional notes / observations to store on the document. |
delete_bill
Delete a vendor bill by its document number. Reverses posting/stock through the system and is blocked when the bill has linked documents. This cannot be undone.
| Parámetro | Tipo | Requerido | Descripción |
|---|
docId | text | Sí | Vendor bill document number (DocID) |
get_bill
Get the full detail of a single vendor bill (including purchase with reception) by its document number, including header (vendor, project, currency, total, pending balance) and line items.
| Parámetro | Tipo | Requerido | Descripción |
|---|
docId | text | Sí | Vendor bill document number (DocID), e.g. the value shown as the document id in search_bills. |
search_bills
List vendor bills (including purchases with reception) with optional filters by vendor name, project, date range and open-balance only. Returns pages of 50 matches, most recent first, with document id, date, vendor, project, total and pending balance. When hasMore is true, call again with skip = nextSkip for the next page.
| Parámetro | Tipo | Requerido | Descripción |
|---|
vendorName | text | No | Vendor name (or part of it) to filter by. Leave empty for all vendors. |
projectName | text | No | Project name or code to filter by: documents linked to the project on the header or on any line. Leave empty for all projects. |
dateFrom | text | No | Start date (inclusive) in yyyy-MM-dd format. Leave empty for no lower bound. |
dateTo | text | No | End date (inclusive) in yyyy-MM-dd format. Leave empty for no upper bound. |
onlyOpen | boolean | Sí | When true, only bills with a pending balance are returned. |
skip | integer | No | Number of matches to skip, for paging. Leave empty (or 0) for the first page; when the result has hasMore = true, pass its nextSkip to get the next page. |
Vendor Credits 4
create_vendor_credit
Create a vendor credit (vendor credit note) for a vendor (by name) for one item (by SKU or name), quantity and unit cost. A reference (the vendor's document number) is required. Taxes and posting are handled by the system. It can be linked to a project (projectName). Returns a link to the created vendor credit.
| Parámetro | Tipo | Requerido | Descripción |
|---|
vendorName | text | Sí | Vendor name (or part of it) |
itemSkuOrName | text | Sí | Item SKU or name |
quantity | number | Sí | Quantity to credit |
unitCost | number | Sí | Unit cost in the vendor's currency |
reference | text | Sí | Reference: the vendor's credit-note document number. Required. |
projectName | text | No | Project name or code to link the document to. Optional; leave empty for no project. |
notes | text | No | Optional notes / observations to store on the document. |
delete_vendor_credit
Delete a vendor credit by its document number. Reverses posting through the system and is blocked when it has linked documents. This cannot be undone.
| Parámetro | Tipo | Requerido | Descripción |
|---|
docId | text | Sí | Vendor credit document number (DocID) |
get_vendor_credit
Get the full detail of a single vendor credit by its document number, including header (vendor, project, currency, total) and line items.
| Parámetro | Tipo | Requerido | Descripción |
|---|
docId | text | Sí | Vendor credit document number (DocID) |
search_vendor_credits
List vendor credits with optional filters by vendor name, project and date range. Returns pages of 50 matches, most recent first, with document id, date, vendor, project, currency and total. When hasMore is true, call again with skip = nextSkip for the next page.
| Parámetro | Tipo | Requerido | Descripción |
|---|
vendorName | text | No | Vendor name (or part of it) to filter by. Leave empty for all vendors. |
projectName | text | No | Project name or code to filter by: documents linked to the project on the header or on any line. Leave empty for all projects. |
dateFrom | text | No | Start date (inclusive) in yyyy-MM-dd format. Leave empty for no lower bound. |
dateTo | text | No | End date (inclusive) in yyyy-MM-dd format. Leave empty for no upper bound. |
skip | integer | No | Number of matches to skip, for paging. Leave empty (or 0) for the first page; when the result has hasMore = true, pass its nextSkip to get the next page. |
Vendors 7
create_vendor
Create a new vendor. Only the name is required; all other fields are optional. Returns the new vendor id.
| Parámetro | Tipo | Requerido | Descripción |
|---|
name | text | Sí | Vendor (company) name. Required. |
code | text | No | Vendor code/identifier. Leave empty to auto-generate when the company is configured for it. |
comercialName | text | No | Commercial / trade name. Optional. |
email | text | No | Email address. Optional. |
phone1 | text | No | Phone number. Optional. |
fiscalID | text | No | Tax id (RNC/Cédula/Fiscal ID). Optional. |
currencyID | text | No | Currency id (e.g. DOP, USD). Optional; defaults to the company currency when empty. |
delete_vendor
Delete a vendor by its id. Fails when the vendor has linked records (transactions, etc.) or when the record is also a customer.
| Parámetro | Tipo | Requerido | Descripción |
|---|
vendorId | id (guid) | Sí | Id of the vendor to delete. Required. |
get_aged_payables
Get the accounts-payable aging report summarized by vendor, in the currency given by CurrencyID: the subsidiary's local currency (document exchange rate), or the company's base currency when consolidating subsidiaries that use different currencies. Buckets are 30-day periods since the document date (0-30, 31-60, 61-90, over 90). Covers all vendors; for a single vendor use get_vendor_balance. Lists vendors in pages of 50, highest balance first; the totals always cover every vendor. When hasMore is true, call again with skip = nextSkip for the next page.
| Parámetro | Tipo | Requerido | Descripción |
|---|
skip | integer | No | Number of matches to skip, for paging. Leave empty (or 0) for the first page; when the result has hasMore = true, pass its nextSkip to get the next page. |
get_vendor_balance
Find a vendor by name and return their accounts-payable balance and overdue amount in the currency given by CurrencyID: the subsidiary's local currency (document exchange rate), or the company's base currency when consolidating subsidiaries that use different currencies. Same basis as get_aged_payables, which covers all vendors at once.
| Parámetro | Tipo | Requerido | Descripción |
|---|
name | text | Sí | Vendor name (or part of it) to look up |
get_vendor_info
Find a vendor by name and return their details (phone, e-mail, fiscal ID) together with their contacts. Returns matches when the name is ambiguous. To browse or find several vendors use search_vendors; for what is owed to the vendor use get_vendor_balance.
| Parámetro | Tipo | Requerido | Descripción |
|---|
name | text | Sí | Vendor name (or part of it) to look up |
search_vendors
Search vendors by name, code or fiscal ID and return a summary list in pages of 20. Pass an empty search to list all vendors. Summary only: use get_vendor_info for the full details and contacts. When hasMore is true, call again with skip = nextSkip for the next page.
| Parámetro | Tipo | Requerido | Descripción |
|---|
search | text | No | Text to search for in the vendor name, code or fiscal ID. Empty returns the first 20 vendors. |
skip | integer | No | Number of matches to skip, for paging. Leave empty (or 0) for the first page; when the result has hasMore = true, pass its nextSkip to get the next page. |
update_vendor
Update an existing vendor by its id. Only the fields you pass are changed; leave a field empty to keep its current value.
| Parámetro | Tipo | Requerido | Descripción |
|---|
vendorId | id (guid) | Sí | Id of the vendor to update. Required. |
name | text | No | New name. Leave empty to keep the current value. |
code | text | No | New code. Leave empty to keep the current value. |
comercialName | text | No | New commercial / trade name. Leave empty to keep the current value. |
email | text | No | New email. Leave empty to keep the current value. |
phone1 | text | No | New phone number. Leave empty to keep the current value. |
fiscalID | text | No | New tax id (RNC/Cédula/Fiscal ID). Leave empty to keep the current value. |
currencyID | text | No | New currency id (e.g. DOP, USD). Leave empty to keep the current value. |
No se encontraron herramientas que coincidan con la búsqueda.