mcp-holded

v2.0.3
io.github.nubiia-dev/mcp-holded Checked 3 days ago Published 1 month ago

Complete Holded Invoice API integration with 72 MCP tools for invoices, contacts, products, and more

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

list_documents

List documents of a specific type (Holded API v2). Cursor-paginated: pass the previous response nextCursor as cursor. Response fields are snake_case; amounts are strings with decimal comma. NOTE: purchaserefund is not listable in v2 — only creation is supported (POST /purchases/refund).

ParameterTypeDescription
docType *stringType of document to list
cursorstringCursor from a previous response nextCursor for the next page
fieldsarrayProject only these fields per item (e.g. ["id", "contact_name", "total"]). Reduces response size.
limitnumberMax items per page (server-paginated; use limit to control page size)
summarybooleanReturn only count and pagination metadata without items (default: false)

create_document

Create a new document (invoice, estimate, purchase, etc.). By default the document is approved (finalized) so it appears in the Holded UI; pass approveDoc:false to create a draft instead. Set the expense/income account at document level via `expAccountId` (it cascades to all lines); a per-line `account` is rejected because Holded ignores it. On SALES documents an auto-incrementing numbering series may OVERRIDE the requested `invoiceNum` — the tool re-reads the created document and returns a `_warnings` note if that happened. On purchases the supplier number in `invoiceNum` is preserved. `ret…

ParameterTypeDescription
contactId *stringContact ID for the document
date *numberDocument date as Unix timestamp
docType *stringType of document to create
items *arrayArray of line items
approveDocbooleanWhether to immediately approve (finalize) the document instead of saving it as a draft. Defaults to true so the document is visible in the Holded UI. When the Holded API receives no value it defaults…
currencystringCurrency code (e.g., EUR, USD)
expAccountIdstringExpense account ID for expense documents
invoiceNumstringDocument reference number (e.g. invoice number from supplier)
notesstringNotes for the document
retentionnumberIRPF retention percentage. Accepted on SALES documents only; rejected on purchases because Holded silently ignores it there.
salesChannelIdstringSales channel ID to associate with the document

get_document

Get a specific document by ID

ParameterTypeDescription
docType *stringType of document
documentId *stringDocument ID

get_document_payments

Get the payments registered against a specific document via the Holded API v2 GET endpoint. Returns `{ documentId, paymentsDetail }` when the v2 response includes a `paymentsDetail` field; otherwise returns the whole document (v2 field name may differ from v1). Unlike list_payments — which is filtered to the ACTIVE fiscal year — this surfaces payments from ANY year, so use it for cross-year payment audits. Read-only.

ParameterTypeDescription
docType *stringType of document
documentId *stringDocument ID

update_document

Update an existing document

ParameterTypeDescription
docType *stringType of document
documentId *stringDocument ID to update
contactIdstringContact ID for the document
currencystringCurrency code (e.g., EUR, USD)
datenumberDocument date as Unix timestamp
expAccountIdstringExpense account ID for expense documents
invoiceNumstringDocument reference number (e.g. invoice number from supplier)
itemsarrayArray of line items
notesstringNotes for the document
retentionnumberIRPF retention percentage. Accepted on SALES documents only; rejected on purchases because Holded silently ignores it there.
salesChannelIdstringSales channel ID to associate with the document

delete_document

Delete a document

ParameterTypeDescription
docType *stringType of document
documentId *stringDocument ID to delete

pay_document

Register a payment for a document (Holded API v2). Supported docTypes: invoice, salesreceipt, creditnote, receiptnote, purchase — others throw an unsupported error. IMPORTANT: this may AUTO-APPROVE the document as a side effect (status 0→1). `paymentmethod` is the payment-method catalog id (from list_payment_methods), NOT a bank/treasury id. To link the payment to a bank account, pass `bankId`: the /payments endpoint can't set it, so the tool performs a second step (PUT /payments/{id}) and reports the outcome in `_warnings`.

ParameterTypeDescription
amount *numberPayment amount
docType *stringType of document
documentId *stringDocument ID
bankIdstringBank account id to link the payment to. Triggers a second step (PUT /payments/{id}) to set the bank link on the payment.
datenumberPayment date as Unix timestamp
paymentmethodstringPayment-method catalog id (from list_payment_methods), NOT a bank/treasury id.
treasuryIdstringTreasury account ID

send_document

Send a document by email (Holded API v2). Supported docTypes: invoice, salesreceipt, creditnote, receiptnote, estimate, proform, salesorder, waybill, purchaseorder. purchase and purchaserefund are not supported in v2.

ParameterTypeDescription
docType *stringType of document
documentId *stringDocument ID
emailsarrayArray of email addresses to send to
messagestringEmail message body
subjectstringEmail subject

get_document_pdf

Get the PDF of a document as base64-encoded binary (Holded API v2). Returns { contentType, base64, bytes, filename }. Supported docTypes: invoice, salesreceipt, creditnote, receiptnote, estimate, proform, salesorder, waybill, purchaseorder. purchase is NOT supported — GET /purchases/{id}/pdf returns 404 for all purchases. purchaserefund has no CRUD support in v2.

ParameterTypeDescription
docType *stringType of document (purchase is not supported — PDF endpoint returns 404)
documentId *stringDocument ID

ship_all_items

Ship all items of a document (Holded API v2). salesorder → POST /sales-orders/{id}/ship. purchaseorder → POST /purchase-orders/{id}/receive (receive from supplier). All other docTypes are not supported in v2.

ParameterTypeDescription
docType *stringType of document
documentId *stringDocument ID

ship_items_by_line

Ship specific items by line (Holded API v2). salesorder only → POST /sales-orders/{id}/ship-by-lines. purchaseorder line-level receive is UNVERIFIED in v2 and throws unsupported. All other docTypes are not supported.

ParameterTypeDescription
docType *stringType of document
documentId *stringDocument ID
lines *arrayArray of line items to ship

get_shipped_units

Get shipped/received units for a document (Holded API v2). salesorder → GET /sales-orders/{id}/shipped-items. purchaseorder → GET /purchase-orders/{id}/received-items. All other docTypes are not supported.

ParameterTypeDescription
docType *stringType of document
documentId *stringDocument ID

attach_file_to_document

Attach a file to a document (Holded API v2). POST ${docBase}/{id}/attachments multipart. Supported for all docTypes except purchaserefund (v2 has no purchase-refund CRUD beyond creation).

ParameterTypeDescription
docType *stringType of document
documentId *stringDocument ID
fileBase64 *stringFile content as base64 encoded string
filename *stringName of the file

update_document_tracking

Update tracking information for a document (Holded API v2). Supported docTypes: salesorder (PUT /sales-orders/{id}/tracking) and waybill (PUT /waybills/{id}/tracking). All other types have NO EQUIVALENT in v2 and will throw an unsupported error. NOTE: this is a discrepancy with the task brief (which stated "all types unsupported") — the normative annex tables show salesorder and waybill do have tracking in v2.

ParameterTypeDescription
docType *stringType of document
documentId *stringDocument ID
carrierstringCarrier name
trackingNumberstringTracking number

update_document_pipeline

Update pipeline stage for a document (Holded API v2). Uses PUT — verb changed from POST in v1. Supported for all docTypes except purchaserefund (v2 limitation). Route: PUT ${docBase}/{id}/pipeline.

ParameterTypeDescription
docType *stringType of document
documentId *stringDocument ID
pipelineId *stringPipeline ID
stageId *stringStage ID within the pipeline

list_payment_methods

List available payment methods (Holded API v2). GET /payment-methods. Returns an array of {id, name, type, status, isDefault, bankingAccountId} — the v2 {items:[...]} envelope is normalized to a bare array.

list_contacts

List contacts (Holded API v2). Cursor-paginated: pass the previous response nextCursor as cursor. Response fields are snake_case; amounts are strings with decimal comma.

ParameterTypeDescription
cursorstringCursor from a previous response nextCursor
fieldsarrayProject only these fields per item (e.g. ["id", "name", "email"]). Reduces response size.
limitnumberMax items per page (server-paginated; use limit to control page size)
summarybooleanReturn only count and pagination metadata without items (default: false)

create_contact

Create a new contact (Holded API v2)

ParameterTypeDescription
name *stringContact name
billAddressobjectBilling address
codestringNIF / CIF / VAT number or tax identification code for the contact. This is the correct Holded API field for tax IDs. Note: the legacy "vatnumber" field does not exist in Holded and is silently ignored…
contactPersonsarrayList of contact persons associated with this contact
emailstringContact email
notestringNotes about the contact
phonestringContact phone number
tradenamestringTrade name
typestringContact type

get_contact

Get a specific contact by ID (Holded API v2)

ParameterTypeDescription
contactId *stringContact ID

update_contact

Update an existing contact (Holded API v2)

ParameterTypeDescription
contactId *stringContact ID to update
billAddressobjectBilling address
codestringNIF / CIF / VAT number or tax identification code for the contact. This is the correct Holded API field for tax IDs. Note: the legacy "vatnumber" field does not exist in Holded and is silently ignored…
contactPersonsarrayList of contact persons associated with this contact
emailstringContact email
namestringContact name
notestringNotes about the contact
phonestringContact phone number
tradenamestringTrade name
typestringContact type

delete_contact

Delete a contact (Holded API v2)

ParameterTypeDescription
contactId *stringContact ID to delete

list_contact_attachments

Get list of attachments for a contact (Holded API v2). Use the filenames from the response with get_contact_attachment.

ParameterTypeDescription
contactId *stringContact ID

get_contact_attachment

Get a specific attachment from a contact by filename (Holded API v2). BREAKING CHANGE from v1: the path parameter changed from attachmentId (numeric/UUID) to filename (string). Obtain filenames from list_contact_attachments first.

ParameterTypeDescription
contactId *stringContact ID
filename *stringAttachment filename as returned by list_contact_attachments

list_products

List products (Holded API v2). Cursor-paginated: pass the previous response nextCursor as cursor. Server-paginated; use limit to control page size. Response fields are snake_case; amounts are strings with decimal comma.

ParameterTypeDescription
cursorstringCursor from a previous response nextCursor
fieldsarrayProject only these fields per item (e.g. ["id", "name", "sku"]). Reduces response size.
limitnumberMax items per page (server-paginated; use limit to control page size)
summarybooleanReturn only count and pagination metadata without items (default: false)

create_product

Create a new product (Holded API v2)

ParameterTypeDescription
name *stringProduct name
barcodestringProduct barcode
costPricenumberCost price
descriptionstringProduct description
kindstringProduct kind
pricenumberProduct price
skustringProduct SKU
stocknumberInitial stock quantity
taxnumberTax percentage

get_product

Get a specific product by ID (Holded API v2)

ParameterTypeDescription
productId *stringProduct ID

update_product

Update an existing product (Holded API v2)

ParameterTypeDescription
productId *stringProduct ID to update
barcodestringProduct barcode
costPricenumberCost price
descriptionstringProduct description
namestringProduct name
pricenumberProduct price
skustringProduct SKU
taxnumberTax percentage

delete_product

Delete a product (Holded API v2)

ParameterTypeDescription
productId *stringProduct ID to delete

get_product_main_image

Get the main image of a product (Holded API v2)

ParameterTypeDescription
productId *stringProduct ID

list_product_images

List all images of a product (Holded API v2)

ParameterTypeDescription
productId *stringProduct ID

get_product_secondary_image

Get a secondary image of a product (Holded API v2)

ParameterTypeDescription
imageId *stringImage ID
productId *stringProduct ID

update_product_stock

Update stock quantity for a product (Holded API v2). BREAKING CHANGE from v1: `warehouse_id` is now required; `stock_variation` replaces `units`; optional `variant_id` and `description` added.

ParameterTypeDescription
productId *stringProduct ID
stock_variation *numberStock delta (positive to add, negative to subtract). Replaces v1 `units`.
warehouse_id *stringWarehouse ID (required in v2 — v2 rejects stock updates without it)
descriptionstringAudit note describing the stock adjustment (optional)
variant_idstringVariant ID to target a specific product variant (optional)

list_treasuries

List all treasury accounts (Holded API v2). Cursor-paginated: pass the previous response nextCursor as cursor. Response fields are snake_case; amounts are strings with decimal comma. WARNING: the `balance` field is a STATIC opening figure, not a live balance derived from transactions — do NOT rely on it for reconciliation or to compute the current cash position. Overlaps with list_bank_accounts/get_bank_account/create_bank_account (official treasury tools); consolidation planned for 2.1.

ParameterTypeDescription
cursorstringCursor from a previous response nextCursor
fieldsarrayProject only these fields per item (e.g. ["id", "name", "balance"]). Reduces response size.
limitnumberMax items per page (server-paginated; use limit to control page size)
summarybooleanReturn only count and pagination metadata without items (default: false)

create_treasury

Create a new treasury account (Holded API v2). Overlaps with list_bank_accounts/get_bank_account/create_bank_account (official treasury tools); consolidation planned for 2.1.

ParameterTypeDescription
name *stringTreasury account name
balancenumberInitial balance
bicstringBIC/SWIFT code
ibanstringIBAN number

get_treasury

Get a specific treasury account by ID (Holded API v2). WARNING: the `balance` field is a STATIC opening figure set on the account, not a live balance computed from transactions — do NOT use it for reconciliation or as the current cash position. Overlaps with list_bank_accounts/get_bank_account/create_bank_account (official treasury tools); consolidation planned for 2.1.

ParameterTypeDescription
treasuryId *stringTreasury account ID

list_expenses_accounts

List expenses accounts (Holded API v2). Cursor-paginated: pass the previous response nextCursor as cursor. Response fields are snake_case; amounts are strings with decimal comma. Each account has `id` (Holded internal id), `name`, and `accountNum` (the PGC account number, e.g. 62900000). NOTE: this endpoint only returns expense/purchase accounts (PGC group 6). Income accounts (group 7, e.g. 700/705/759) are NOT listed here — fetch the full chart via get_chart_of_accounts, or read a known account by id via get_expenses_account.

ParameterTypeDescription
cursorstringCursor from a previous response nextCursor
fieldsarrayProject only these fields per item (e.g. ["id", "name", "accountNum"]). Reduces response size. NOTE: the PGC number field is `accountNum` (not `code`).
limitnumberMax items per page (server-paginated; use limit to control page size)
summarybooleanReturn only count and pagination metadata without items (default: false)

create_expenses_account

Create a new expenses account (Holded API v2)

ParameterTypeDescription
name *stringExpenses account name
codestringPGC account number (e.g. "62900000"). This is the value surfaced as `accountNum` by list_expenses_accounts — Holded accepts it under the `code` key on create/update.

get_expenses_account

Get a single account by its Holded id (Holded API v2). Despite the "expenses" name, this endpoint serves ANY account (including income/group-7 accounts that list_expenses_accounts omits) when you already know its id.

ParameterTypeDescription
accountId *stringAccount Holded id (the `id` field, not the PGC accountNum)

update_expenses_account

Update an existing expenses account (Holded API v2)

ParameterTypeDescription
accountId *stringExpenses account ID to update
codestringPGC account number (e.g. "62900000"). This is the value surfaced as `accountNum` by list_expenses_accounts — Holded accepts it under the `code` key on create/update.
namestringExpenses account name

delete_expenses_account

Delete an expenses account (Holded API v2)

ParameterTypeDescription
accountId *stringExpenses account ID to delete

get_numbering_series

List numbering series for a specific document type (Holded API v2). Cursor-paginated: pass the previous response nextCursor as cursor. Response fields are snake_case; amounts are strings with decimal comma.

ParameterTypeDescription
docType *stringDocument type
cursorstringCursor from a previous response nextCursor
fieldsarrayProject only these fields per item (e.g. ["id", "name", "prefix", "nextNumber"]). Reduces response size.
limitnumberMax items per page (server-paginated; use limit to control page size)
summarybooleanReturn only count and pagination metadata without items (default: false)

create_numbering_serie

Create a new numbering serie (Holded API v2)

ParameterTypeDescription
docType *stringDocument type
name *stringSerie name
nextNumbernumberNext number in the serie
prefixstringSerie prefix

update_numbering_serie

Update an existing numbering serie (Holded API v2)

ParameterTypeDescription
docType *stringDocument type
serieId *stringSerie ID to update
namestringSerie name
nextNumbernumberNext number in the serie
prefixstringSerie prefix

delete_numbering_serie

Delete a numbering serie (Holded API v2)

ParameterTypeDescription
docType *stringDocument type
serieId *stringSerie ID to delete

list_sales_channels

List all sales channels (Holded API v2). Cursor-paginated: pass the previous response nextCursor as cursor. Response fields are snake_case; amounts are strings with decimal comma. Supports field filtering to reduce response size.

ParameterTypeDescription
cursorstringCursor from a previous response nextCursor
fieldsarrayProject only these fields per item (e.g. ["id", "name"]). Reduces response size.
limitnumberMax items per page (server-paginated; use limit to control page size)
summarybooleanReturn only count and pagination metadata without items (default: false)

create_sales_channel

Create a new sales channel (Holded API v2)

ParameterTypeDescription
name *stringSales channel name

get_sales_channel

Get a specific sales channel by ID (Holded API v2)

ParameterTypeDescription
channelId *stringSales channel ID

update_sales_channel

Update an existing sales channel (Holded API v2)

ParameterTypeDescription
channelId *stringSales channel ID to update
namestringSales channel name

delete_sales_channel

Delete a sales channel (Holded API v2)

ParameterTypeDescription
channelId *stringSales channel ID to delete

list_payments

List all payments (Holded API v2). Cursor-paginated: pass the previous response nextCursor as cursor. Response fields are snake_case; amounts are strings with decimal comma. NOTE: this endpoint is filtered to the ACTIVE fiscal year, so payments made in a prior year do NOT appear here even if they are linked to documents. For cross-year payment audits, read a document's payments via get_document_payments (the document `paymentsDetail`). Use start_date/end_date (YYYY-MM-DD) to filter by date — live-verified against v2.

ParameterTypeDescription
cursorstringCursor from a previous response nextCursor
end_datestringFilter payments on or before this ISO date (YYYY-MM-DD). Forwarded directly to the v2 API.
endtmpnumberLegacy: Unix timestamp (seconds) for end date. Converted to ISO YYYY-MM-DD. Ignored when end_date is also provided.
fieldsarraySelect specific fields to return (e.g., ["id", "name", "days", "discount"]). Reduces response size. If not provided, returns all fields from the API.
limitnumberMax items per page (server-paginated; use limit to control page size)
start_datestringFilter payments on or after this ISO date (YYYY-MM-DD). Forwarded directly to the v2 API.
starttmpnumberLegacy: Unix timestamp (seconds) for start date. Converted to ISO YYYY-MM-DD. Ignored when start_date is also provided.
summarybooleanReturn only count and pagination metadata without items (default: false)

create_payment

Create a new payment (Holded API v2)

ParameterTypeDescription
name *stringPayment method name
daysnumberDays until due

get_payment

Get a specific payment by ID (Holded API v2)

ParameterTypeDescription
paymentId *stringPayment ID

update_payment

Update an existing payment (Holded API v2). IMPORTANT: Holded's PUT /payments/{id} REPLACES the record rather than merging, so any field omitted from the body is blanked. To prevent that, this tool first re-reads the current payment and merges your changes over it, preserving fields you did not pass (contactId, bankId, date, ...).

ParameterTypeDescription
paymentId *stringPayment ID to update
amountnumberPayment amount
bankIdstringBank account id to link the payment to
contactIdstringContact id associated with the payment
datenumberPayment date as a Unix timestamp (seconds)
daysnumberDays until due
namestringPayment method name

delete_payment

Delete a payment (Holded API v2)

ParameterTypeDescription
paymentId *stringPayment ID to delete

get_taxes

Get all available taxes (Holded API v2). The v2 /taxes endpoint returns the complete tax list in one response (no cursor, no pagination). Supports `fields` to select specific fields and `summary` to return only the item count. Amounts are strings with decimal comma. Each tax has: `key` (the stable identifier, e.g. "s_iva_21"/"p_iva_21" — this is the value used in a document line's `taxes[]`), `id` (mirrors `key`), `name`, `amount` (the percentage as a string, e.g. "21"), `scope` ("sales" or "purchase"), `group` (e.g. "iva"), and `type`.

ParameterTypeDescription
fieldsarraySelect specific fields to return (e.g., ["key", "name", "amount", "scope"]). Reduces response size. If not provided, returns default fields: id, key, name, amount, scope, group, type. NOTE: the tax ra…
summarybooleanReturn only the item count without the full list (default: false)

list_contact_groups

List contact groups (Holded API v2). Cursor-paginated: pass the previous response nextCursor as cursor. Response fields are snake_case; amounts are strings with decimal comma.

ParameterTypeDescription
cursorstringCursor from a previous response nextCursor
fieldsarrayProject only these fields per item (e.g. ["id", "name"]). Reduces response size.
limitnumberMax items per page (server-paginated; use limit to control page size)
summarybooleanReturn only count and pagination metadata without items (default: false)

create_contact_group

Create a new contact group (Holded API v2)

ParameterTypeDescription
name *stringContact group name

get_contact_group

Get a specific contact group by ID (Holded API v2)

ParameterTypeDescription
groupId *stringContact group ID

update_contact_group

Update an existing contact group (Holded API v2)

ParameterTypeDescription
groupId *stringContact group ID to update
namestringContact group name

delete_contact_group

Delete a contact group (Holded API v2)

ParameterTypeDescription
groupId *stringContact group ID to delete

list_remittances

List all remittances (Holded API v2). Cursor-paginated: pass the previous response nextCursor as cursor. Response fields are snake_case; amounts are strings with decimal comma. NOTE: namespace relocated from /remittances to /treasury/remittances in v2.

ParameterTypeDescription
cursorstringCursor from a previous response nextCursor
fieldsarrayProject only these fields per item (e.g. ["id", "name", "date"]). Reduces response size.
limitnumberMax items per page (server-paginated; use limit to control page size)
summarybooleanReturn only count and pagination metadata without items (default: false)

get_remittance

Get a specific remittance by ID (Holded API v2). NOTE: route relocated to /treasury/remittances/{id} in v2.

ParameterTypeDescription
remittanceId *stringRemittance ID

list_services

List all services (Holded API v2). Cursor-paginated: pass the previous response nextCursor as cursor. Response fields are snake_case; amounts are strings with decimal comma. Supports field filtering to reduce response size.

ParameterTypeDescription
cursorstringCursor from a previous response nextCursor
fieldsarrayProject only these fields per item (e.g. ["id", "name", "price", "tax"]). Reduces response size.
limitnumberMax items per page (server-paginated; use limit to control page size)
summarybooleanReturn only count and pagination metadata without items (default: false)

create_service

Create a new service (Holded API v2)

ParameterTypeDescription
name *stringService name
descriptionstringService description
pricenumberService price
skustringService SKU
taxnumberTax percentage

get_service

Get a specific service by ID (Holded API v2)

ParameterTypeDescription
serviceId *stringService ID

update_service

Update an existing service (Holded API v2)

ParameterTypeDescription
serviceId *stringService ID to update
descriptionstringService description
namestringService name
pricenumberService price
skustringService SKU
taxnumberTax percentage

delete_service

Delete a service (Holded API v2)

ParameterTypeDescription
serviceId *stringService ID to delete

list_warehouses

List all warehouses (Holded API v2). All warehouses are returned in a single call (no cursor pagination). Supports field filtering and summary mode.

ParameterTypeDescription
fieldsarrayProject only these fields per item (e.g. ["id", "name", "address"]). Reduces response size.
summarybooleanReturn only total count without items (default: false)

create_warehouse

Create a new warehouse (Holded API v2)

ParameterTypeDescription
name *stringWarehouse name
addressstringWarehouse address
citystringCity
countrystringCountry
postalCodestringPostal code
provincestringProvince

list_warehouse_stock

List all products stock in a specific warehouse (Holded API v2). Cursor-paginated: pass the previous response nextCursor as cursor. Server-paginated; use limit to control page size. Supports field filtering to reduce response size.

ParameterTypeDescription
warehouseId *stringWarehouse ID
cursorstringCursor from a previous response nextCursor
fieldsarrayProject only these fields per item (e.g. ["product_id", "stock"]). Reduces response size.
limitnumberMax items per page (server-paginated; use limit to control page size)
summarybooleanReturn only count and pagination metadata without items (default: false)

get_warehouse

Get a specific warehouse by ID (Holded API v2)

ParameterTypeDescription
warehouseId *stringWarehouse ID

update_warehouse

Update an existing warehouse (Holded API v2). BREAKING CHANGE from v1: HTTP verb changed from PUT to PATCH.

ParameterTypeDescription
warehouseId *stringWarehouse ID to update
addressstringWarehouse address
citystringCity
countrystringCountry
namestringWarehouse name
postalCodestringPostal code
provincestringProvince

delete_warehouse

Delete a warehouse (Holded API v2)

ParameterTypeDescription
warehouseId *stringWarehouse ID to delete

list_project_times

List time-tracking entries across all Holded projects (Projects API v2). Returns a cursor-paginated flat list of entries; pass the previous `nextCursor` as `cursor` to fetch the next page. Each entry contains timeId, duration (seconds), date (Unix seconds), approved (0/1), projectId, and projectName. The approvedOnly, startDate, and endDate filters are applied client-side on the current page — use pagination to iterate over the full dataset. Read-only.

ParameterTypeDescription
approvedOnlybooleanKeep only approved entries (approved === 1) — applied client-side on the returned page. Default: false
cursorstringCursor token from a previous response nextCursor to fetch the next page
endDatestringKeep only entries on or before this date (YYYY-MM-DD, inclusive) — applied client-side on the returned page
limitnumberMax items per cursor page (default: 50)
startDatestringKeep only entries on or after this date (YYYY-MM-DD, inclusive) — applied client-side on the returned page

list_project_times_by_project

List time-tracking entries for a single Holded project (Projects API v2). Returns a cursor-paginated flat list of entries for the given projectId. Pass the previous `nextCursor` as `cursor` to fetch the next page. The approvedOnly, startDate, and endDate filters are applied client-side on the current page. Read-only.

ParameterTypeDescription
projectId *stringThe Holded project ID
approvedOnlybooleanKeep only approved entries (approved === 1) — applied client-side on the returned page. Default: false
cursorstringCursor token from a previous response nextCursor to fetch the next page
endDatestringKeep only entries on or before this date (YYYY-MM-DD, inclusive) — applied client-side on the returned page
limitnumberMax items per cursor page (default: 50)
startDatestringKeep only entries on or after this date (YYYY-MM-DD, inclusive) — applied client-side on the returned page

get_project_time

Get a single time-tracking entry by project ID and time-tracking ID (Projects API v2). Read-only.

ParameterTypeDescription
projectId *stringThe Holded project ID
timeTrackingId *stringThe time-tracking entry ID (timeId)

get_chart_of_accounts

Get accounting accounts (Holded API v2, GET /accounting-accounts). Returns every account with `num` (PGC number, e.g. 40000000), `name`, `group`, `debit`, `credit`, and `balance`. Unlike `list_expenses_accounts` (group-6 only), this includes all groups (assets, liabilities, income, expenses). Cursor-paginated: pass `nextCursor` from the previous response as `cursor`. Optional annex filters: `archived` (include archived accounts), `start_date`/`end_date` (ISO 8601, filter by activity period), `include_empty` (include zero-balance accounts). See also: `list_accounting_accounts` in ledger tools â…

ParameterTypeDescription
archivedbooleanInclude archived accounts (default: false)
cursorstringCursor token from a previous response nextCursor
end_datestringFilter end date (ISO 8601, YYYY-MM-DD)
include_emptybooleanInclude zero-balance accounts (default: false)
limitnumberMax items per page
start_datestringFilter start date (ISO 8601, YYYY-MM-DD)

get_daily_ledger

Get ledger entries / journal (asientos) for a date range (Holded API v2, GET /ledger-entries). Returns one row per ledger line with entryNumber, line, timestamp, type (collect/payment/purchase/…), description, account (PGC num), debit, and credit. This is the authoritative source for balance-sheet and tax-return figures. Date arguments (at least one form of each bound is required — the v2 API returns 422 without both): • Primary form : `start_date` / `end_date` — ISO 8601 date strings (YYYY-MM-DD) • Legacy form : `starttmp` / `endtmp` — Unix timestamps in seconds; converte…

ParameterTypeDescription
cursorstringCursor token from a previous response nextCursor
end_datestringRange end as an ISO 8601 date (YYYY-MM-DD, inclusive). Required unless endtmp is provided.
endtmpnumberRange end as a Unix timestamp in seconds (legacy form, converted to ISO). Use end_date when possible.
groupByEntrybooleanGroup lines by entryNumber into full journal entries (each with totalDebit/totalCredit), applied to the current page. Default: false (flat lines)
limitnumberMax items per cursor page (server-paginated; use limit to control page size)
start_datestringRange start as an ISO 8601 date (YYYY-MM-DD, inclusive). Required unless starttmp is provided.
starttmpnumberRange start as a Unix timestamp in seconds (legacy form, converted to ISO). Use start_date when possible.

list_employees

List employees (Holded API v2, section Equipo y RRHH). Cursor-paginated: pass the previous response `nextCursor` as `cursor` to fetch the next page.

ParameterTypeDescription
cursorstringCursor from a previous response nextCursor
limitnumberMax items per page

get_employee

Get a single employee by ID (Holded API v2).

ParameterTypeDescription
employeeId *stringEmployee ID (24-char hex ObjectId)

create_employee

WRITE: creates a real employee record in Holded (API v2). `data` is sent verbatim as the request body — see https://www.holded.com/es/desarrolladores/referencia-api (Empleados → Crear) for the payload fields (name, email, etc.).

ParameterTypeDescription
data *objectEmployee payload, sent verbatim as body

update_employee

WRITE: updates a real employee record in Holded (API v2). `data` is sent verbatim as the request body — see https://www.holded.com/es/desarrolladores/referencia-api (Empleados → Actualizar).

ParameterTypeDescription
data *objectFields to update, sent verbatim as body
employeeId *stringEmployee ID

delete_employee

DESTRUCTIVE: permanently deletes an employee record in Holded (API v2). This cannot be undone.

ParameterTypeDescription
employeeId *stringEmployee ID

get_employee_contract

Get the contract details of an employee (Holded API v2). A 404 response means the employee has no contract configured in Holded, not that the employee ID is wrong.

ParameterTypeDescription
employeeId *stringEmployee ID

update_employee_contract

WRITE: updates an employee's contract in Holded (API v2) — affects real HR/payroll data. `data` is sent verbatim as the request body — see https://www.holded.com/es/desarrolladores/referencia-api (Empleados → Actualizar contrato).

ParameterTypeDescription
data *objectContract payload, sent verbatim as body
employeeId *stringEmployee ID

clock_in_employee

WRITE: registers a clock-in for an employee in Holded time tracking (API v2). Affects real working-time records.

ParameterTypeDescription
employeeId *stringEmployee ID

clock_out_employee

WRITE: registers a clock-out for an employee in Holded time tracking (API v2).

ParameterTypeDescription
employeeId *stringEmployee ID

pause_employee

WRITE: starts a pause in the current working session of an employee (Holded API v2).

ParameterTypeDescription
employeeId *stringEmployee ID

unpause_employee

WRITE: ends the current pause of an employee working session (Holded API v2).

ParameterTypeDescription
employeeId *stringEmployee ID

list_employee_times

List time-tracking records (Holded API v2). Without `employeeId` lists all records (/employee-times); with `employeeId` lists only that employee (/employees/{id}/times). Cursor-paginated.

ParameterTypeDescription
cursorstringCursor from a previous response nextCursor
employeeIdstringOptional employee ID to scope the list
limitnumberMax items per page

get_employee_time

Get a single time-tracking record by ID (Holded API v2).

ParameterTypeDescription
timeId *stringTime record ID

create_employee_time

WRITE: creates a manual time-tracking record for an employee (Holded API v2). `data` is sent verbatim as the request body — see https://www.holded.com/es/desarrolladores/referencia-api (Control horario → Crear registro).

ParameterTypeDescription
data *objectTime record payload, sent verbatim as body
employeeId *stringEmployee ID

update_employee_time

WRITE: updates a time-tracking record (Holded API v2). `data` is sent verbatim as the request body — see https://www.holded.com/es/desarrolladores/referencia-api (Control horario → Actualizar).

ParameterTypeDescription
data *objectFields to update, sent verbatim as body
timeId *stringTime record ID

delete_employee_time

DESTRUCTIVE: permanently deletes a time-tracking record in Holded (API v2). This cannot be undone.

ParameterTypeDescription
timeId *stringTime record ID

list_salary_records

List payroll salary records (Holded API v2, requires scope accounting:payrolls.read). Each record has employee info, earnings/deductions lines, totals and payment status (PENDING, PAID, PARTIALLY_PAID). Cursor-paginated.

ParameterTypeDescription
cursorstringCursor from a previous response nextCursor
limitnumberMax items per page

get_salary_record

Get a payroll salary record by ID (Holded API v2, scope accounting:payrolls.read). Returns line-by-line earnings and deductions, accounting accounts, totals and payment status.

ParameterTypeDescription
salaryRecordId *stringSalary record ID (24-char hex)

create_salary_record

WRITE: creates a real payroll record in Holded (API v2) — affects accounting and HR data. Use get_salary_record_defaults first to obtain a valid base payload. `data` is sent verbatim as the request body — see https://www.holded.com/es/desarrolladores/referencia-api (Registros de nómina → Crear).

ParameterTypeDescription
data *objectSalary record payload, sent verbatim as body

update_salary_record

WRITE: updates a payroll record in Holded (API v2) — affects accounting and HR data. `data` is sent verbatim as the request body — see https://www.holded.com/es/desarrolladores/referencia-api (Registros de nómina → Actualizar).

ParameterTypeDescription
data *objectFields to update, sent verbatim as body
salaryRecordId *stringSalary record ID

delete_salary_record

DESTRUCTIVE: permanently deletes a payroll record in Holded (API v2). This cannot be undone and affects accounting data.

ParameterTypeDescription
salaryRecordId *stringSalary record ID

get_salary_record_defaults

Get the default data for creating a payroll record (Holded API v2). Useful as a base payload for create_salary_record.

list_ledger_entries

List journal/ledger entries (Holded API v2). Cursor-paginated: pass the previous response `nextCursor` as `cursor`. Optionally filter by `start_date`/`end_date` (ISO 8601, e.g. `2025-01-01`) — the v2 endpoint returns 422 if neither date is provided. For the read-only daily-ledger tool with groupByEntry support and Unix-timestamp backward compat see get_daily_ledger.

ParameterTypeDescription
cursorstringCursor from a previous response nextCursor
end_datestringFilter end date (ISO 8601, YYYY-MM-DD)
limitnumberMax items per page
start_datestringFilter start date (ISO 8601, YYYY-MM-DD)

create_ledger_entry

WRITE: creates a real journal entry in Holded accounting (API v2). Incorrect entries directly distort the company books — double-check accounts and amounts. `data` is sent verbatim as the request body — see https://www.holded.com/es/desarrolladores/referencia-api (Contabilidad → Crear asiento).

ParameterTypeDescription
data *objectJournal entry payload, sent verbatim as body

list_accounting_accounts

List accounting accounts (Holded API v2). Cursor-paginated. For the v1 read-only chart of accounts see get_chart_of_accounts.

ParameterTypeDescription
cursorstringCursor from a previous response nextCursor
limitnumberMax items per page

create_accounting_account

WRITE: creates a real accounting account in the Holded chart of accounts (API v2). `data` is sent verbatim as the request body — see https://www.holded.com/es/desarrolladores/referencia-api (Contabilidad → Crear cuenta).

ParameterTypeDescription
data *objectAccount payload, sent verbatim as body

list_bank_accounts

List treasury bank accounts (Holded API v2, official endpoint). Cursor-paginated.

ParameterTypeDescription
cursorstringCursor from a previous response nextCursor
limitnumberMax items per page

get_bank_account

Get a treasury bank account by ID (Holded API v2).

ParameterTypeDescription
accountId *stringBank account ID

create_bank_account

WRITE: creates a real treasury bank account in Holded (API v2). `data` is sent verbatim as the request body — see https://www.holded.com/es/desarrolladores/referencia-api (Tesorería → Crear cuenta).

ParameterTypeDescription
data *objectBank account payload, sent verbatim as body

update_bank_account

WRITE: updates a treasury bank account in Holded (API v2). `data` is sent verbatim as the request body — see https://www.holded.com/es/desarrolladores/referencia-api (Tesorería → Actualizar cuenta).

ParameterTypeDescription
accountId *stringBank account ID
data *objectFields to update, sent verbatim as body

delete_bank_account

DESTRUCTIVE: permanently deletes a treasury bank account in Holded (API v2). Prefer archive_bank_account to keep history. This cannot be undone.

ParameterTypeDescription
accountId *stringBank account ID

archive_bank_account

WRITE: archives a treasury bank account in Holded (API v2). Reversible alternative to delete_bank_account.

ParameterTypeDescription
accountId *stringBank account ID

list_bank_movements

List bank movements of a treasury account (Holded API v2, official endpoint — replaces the experimental internal banking tools). Cursor-paginated.

ParameterTypeDescription
accountId *stringBank account ID
cursorstringCursor from a previous response nextCursor
limitnumberMax items per page

create_bank_movement

WRITE: creates a real bank movement in a treasury account (Holded API v2). `data` is sent verbatim as the request body — see https://www.holded.com/es/desarrolladores/referencia-api (Tesorería → Crear movimiento).

ParameterTypeDescription
accountId *stringBank account ID
data *objectMovement payload, sent verbatim as body

reconcile_bank_movement

WRITE: reconciles a bank movement against documents/entries (Holded API v2, official endpoint — replaces the experimental reconcile_bank_transaction from the internal API when v2 is enabled). `data` is sent verbatim as the request body — see https://www.holded.com/es/desarrolladores/referencia-api (Tesorería → Conciliar).

ParameterTypeDescription
accountId *stringBank account ID
data *objectReconciliation payload, sent verbatim as body
movementId *stringBank movement ID

list_cash_movements

List cash movements of a treasury account (Holded API v2). Cursor-paginated. This endpoint applies to cash-type treasury accounts only; bank and card account types return 404.

ParameterTypeDescription
accountId *stringTreasury account ID
cursorstringCursor from a previous response nextCursor
limitnumberMax items per page

list_invoicing_forecasts

List cashflow invoicing forecasts (Holded API v2). Cursor-paginated.

ParameterTypeDescription
cursorstringCursor from a previous response nextCursor
limitnumberMax items per page

get_invoicing_forecast

Get a cashflow invoicing forecast by ID (Holded API v2).

ParameterTypeDescription
forecastId *stringForecast ID

create_invoicing_forecast

WRITE: creates an invoicing forecast in Holded cashflow (API v2). `data` is sent verbatim as the request body — see https://www.holded.com/es/desarrolladores/referencia-api (Tesorería → Previsiones).

ParameterTypeDescription
data *objectForecast payload, sent verbatim as body

update_invoicing_forecast

WRITE: updates an invoicing forecast in Holded cashflow (API v2). `data` is sent verbatim as the request body — see https://www.holded.com/es/desarrolladores/referencia-api (Tesorería → Previsiones).

ParameterTypeDescription
data *objectFields to update, sent verbatim as body
forecastId *stringForecast ID

delete_invoicing_forecast

DESTRUCTIVE: permanently deletes an invoicing forecast in Holded cashflow (API v2).

ParameterTypeDescription
forecastId *stringForecast ID