mcp-holded
v2.0.3Complete 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).
| Parameter | Type | Description |
|---|---|---|
docType * | string | Type of document to list |
cursor | string | Cursor from a previous response nextCursor for the next page |
fields | array | Project only these fields per item (e.g. ["id", "contact_name", "total"]). Reduces response size. |
limit | number | Max items per page (server-paginated; use limit to control page size) |
summary | boolean | Return 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…
| Parameter | Type | Description |
|---|---|---|
contactId * | string | Contact ID for the document |
date * | number | Document date as Unix timestamp |
docType * | string | Type of document to create |
items * | array | Array of line items |
approveDoc | boolean | Whether 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… |
currency | string | Currency code (e.g., EUR, USD) |
expAccountId | string | Expense account ID for expense documents |
invoiceNum | string | Document reference number (e.g. invoice number from supplier) |
notes | string | Notes for the document |
retention | number | IRPF retention percentage. Accepted on SALES documents only; rejected on purchases because Holded silently ignores it there. |
salesChannelId | string | Sales channel ID to associate with the document |
get_document
Get a specific document by ID
| Parameter | Type | Description |
|---|---|---|
docType * | string | Type of document |
documentId * | string | Document 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.
| Parameter | Type | Description |
|---|---|---|
docType * | string | Type of document |
documentId * | string | Document ID |
update_document
Update an existing document
| Parameter | Type | Description |
|---|---|---|
docType * | string | Type of document |
documentId * | string | Document ID to update |
contactId | string | Contact ID for the document |
currency | string | Currency code (e.g., EUR, USD) |
date | number | Document date as Unix timestamp |
expAccountId | string | Expense account ID for expense documents |
invoiceNum | string | Document reference number (e.g. invoice number from supplier) |
items | array | Array of line items |
notes | string | Notes for the document |
retention | number | IRPF retention percentage. Accepted on SALES documents only; rejected on purchases because Holded silently ignores it there. |
salesChannelId | string | Sales channel ID to associate with the document |
delete_document
Delete a document
| Parameter | Type | Description |
|---|---|---|
docType * | string | Type of document |
documentId * | string | Document 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`.
| Parameter | Type | Description |
|---|---|---|
amount * | number | Payment amount |
docType * | string | Type of document |
documentId * | string | Document ID |
bankId | string | Bank account id to link the payment to. Triggers a second step (PUT /payments/{id}) to set the bank link on the payment. |
date | number | Payment date as Unix timestamp |
paymentmethod | string | Payment-method catalog id (from list_payment_methods), NOT a bank/treasury id. |
treasuryId | string | Treasury 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.
| Parameter | Type | Description |
|---|---|---|
docType * | string | Type of document |
documentId * | string | Document ID |
emails | array | Array of email addresses to send to |
message | string | Email message body |
subject | string | Email 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.
| Parameter | Type | Description |
|---|---|---|
docType * | string | Type of document (purchase is not supported — PDF endpoint returns 404) |
documentId * | string | Document 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.
| Parameter | Type | Description |
|---|---|---|
docType * | string | Type of document |
documentId * | string | Document 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.
| Parameter | Type | Description |
|---|---|---|
docType * | string | Type of document |
documentId * | string | Document ID |
lines * | array | Array 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.
| Parameter | Type | Description |
|---|---|---|
docType * | string | Type of document |
documentId * | string | Document 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).
| Parameter | Type | Description |
|---|---|---|
docType * | string | Type of document |
documentId * | string | Document ID |
fileBase64 * | string | File content as base64 encoded string |
filename * | string | Name 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.
| Parameter | Type | Description |
|---|---|---|
docType * | string | Type of document |
documentId * | string | Document ID |
carrier | string | Carrier name |
trackingNumber | string | Tracking 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.
| Parameter | Type | Description |
|---|---|---|
docType * | string | Type of document |
documentId * | string | Document ID |
pipelineId * | string | Pipeline ID |
stageId * | string | Stage 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.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Cursor from a previous response nextCursor |
fields | array | Project only these fields per item (e.g. ["id", "name", "email"]). Reduces response size. |
limit | number | Max items per page (server-paginated; use limit to control page size) |
summary | boolean | Return only count and pagination metadata without items (default: false) |
create_contact
Create a new contact (Holded API v2)
| Parameter | Type | Description |
|---|---|---|
name * | string | Contact name |
billAddress | object | Billing address |
code | string | NIF / 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… |
contactPersons | array | List of contact persons associated with this contact |
email | string | Contact email |
note | string | Notes about the contact |
phone | string | Contact phone number |
tradename | string | Trade name |
type | string | Contact type |
get_contact
Get a specific contact by ID (Holded API v2)
| Parameter | Type | Description |
|---|---|---|
contactId * | string | Contact ID |
update_contact
Update an existing contact (Holded API v2)
| Parameter | Type | Description |
|---|---|---|
contactId * | string | Contact ID to update |
billAddress | object | Billing address |
code | string | NIF / 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… |
contactPersons | array | List of contact persons associated with this contact |
email | string | Contact email |
name | string | Contact name |
note | string | Notes about the contact |
phone | string | Contact phone number |
tradename | string | Trade name |
type | string | Contact type |
delete_contact
Delete a contact (Holded API v2)
| Parameter | Type | Description |
|---|---|---|
contactId * | string | Contact 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.
| Parameter | Type | Description |
|---|---|---|
contactId * | string | Contact 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.
| Parameter | Type | Description |
|---|---|---|
contactId * | string | Contact ID |
filename * | string | Attachment 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.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Cursor from a previous response nextCursor |
fields | array | Project only these fields per item (e.g. ["id", "name", "sku"]). Reduces response size. |
limit | number | Max items per page (server-paginated; use limit to control page size) |
summary | boolean | Return only count and pagination metadata without items (default: false) |
create_product
Create a new product (Holded API v2)
| Parameter | Type | Description |
|---|---|---|
name * | string | Product name |
barcode | string | Product barcode |
costPrice | number | Cost price |
description | string | Product description |
kind | string | Product kind |
price | number | Product price |
sku | string | Product SKU |
stock | number | Initial stock quantity |
tax | number | Tax percentage |
get_product
Get a specific product by ID (Holded API v2)
| Parameter | Type | Description |
|---|---|---|
productId * | string | Product ID |
update_product
Update an existing product (Holded API v2)
| Parameter | Type | Description |
|---|---|---|
productId * | string | Product ID to update |
barcode | string | Product barcode |
costPrice | number | Cost price |
description | string | Product description |
name | string | Product name |
price | number | Product price |
sku | string | Product SKU |
tax | number | Tax percentage |
delete_product
Delete a product (Holded API v2)
| Parameter | Type | Description |
|---|---|---|
productId * | string | Product ID to delete |
get_product_main_image
Get the main image of a product (Holded API v2)
| Parameter | Type | Description |
|---|---|---|
productId * | string | Product ID |
list_product_images
List all images of a product (Holded API v2)
| Parameter | Type | Description |
|---|---|---|
productId * | string | Product ID |
get_product_secondary_image
Get a secondary image of a product (Holded API v2)
| Parameter | Type | Description |
|---|---|---|
imageId * | string | Image ID |
productId * | string | Product 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.
| Parameter | Type | Description |
|---|---|---|
productId * | string | Product ID |
stock_variation * | number | Stock delta (positive to add, negative to subtract). Replaces v1 `units`. |
warehouse_id * | string | Warehouse ID (required in v2 — v2 rejects stock updates without it) |
description | string | Audit note describing the stock adjustment (optional) |
variant_id | string | Variant 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.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Cursor from a previous response nextCursor |
fields | array | Project only these fields per item (e.g. ["id", "name", "balance"]). Reduces response size. |
limit | number | Max items per page (server-paginated; use limit to control page size) |
summary | boolean | Return 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Treasury account name |
balance | number | Initial balance |
bic | string | BIC/SWIFT code |
iban | string | IBAN 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.
| Parameter | Type | Description |
|---|---|---|
treasuryId * | string | Treasury 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.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Cursor from a previous response nextCursor |
fields | array | Project only these fields per item (e.g. ["id", "name", "accountNum"]). Reduces response size. NOTE: the PGC number field is `accountNum` (not `code`). |
limit | number | Max items per page (server-paginated; use limit to control page size) |
summary | boolean | Return only count and pagination metadata without items (default: false) |
create_expenses_account
Create a new expenses account (Holded API v2)
| Parameter | Type | Description |
|---|---|---|
name * | string | Expenses account name |
code | string | PGC 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.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Account Holded id (the `id` field, not the PGC accountNum) |
update_expenses_account
Update an existing expenses account (Holded API v2)
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Expenses account ID to update |
code | string | PGC 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. |
name | string | Expenses account name |
delete_expenses_account
Delete an expenses account (Holded API v2)
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Expenses 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.
| Parameter | Type | Description |
|---|---|---|
docType * | string | Document type |
cursor | string | Cursor from a previous response nextCursor |
fields | array | Project only these fields per item (e.g. ["id", "name", "prefix", "nextNumber"]). Reduces response size. |
limit | number | Max items per page (server-paginated; use limit to control page size) |
summary | boolean | Return only count and pagination metadata without items (default: false) |
create_numbering_serie
Create a new numbering serie (Holded API v2)
| Parameter | Type | Description |
|---|---|---|
docType * | string | Document type |
name * | string | Serie name |
nextNumber | number | Next number in the serie |
prefix | string | Serie prefix |
update_numbering_serie
Update an existing numbering serie (Holded API v2)
| Parameter | Type | Description |
|---|---|---|
docType * | string | Document type |
serieId * | string | Serie ID to update |
name | string | Serie name |
nextNumber | number | Next number in the serie |
prefix | string | Serie prefix |
delete_numbering_serie
Delete a numbering serie (Holded API v2)
| Parameter | Type | Description |
|---|---|---|
docType * | string | Document type |
serieId * | string | Serie 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.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Cursor from a previous response nextCursor |
fields | array | Project only these fields per item (e.g. ["id", "name"]). Reduces response size. |
limit | number | Max items per page (server-paginated; use limit to control page size) |
summary | boolean | Return only count and pagination metadata without items (default: false) |
create_sales_channel
Create a new sales channel (Holded API v2)
| Parameter | Type | Description |
|---|---|---|
name * | string | Sales channel name |
get_sales_channel
Get a specific sales channel by ID (Holded API v2)
| Parameter | Type | Description |
|---|---|---|
channelId * | string | Sales channel ID |
update_sales_channel
Update an existing sales channel (Holded API v2)
| Parameter | Type | Description |
|---|---|---|
channelId * | string | Sales channel ID to update |
name | string | Sales channel name |
delete_sales_channel
Delete a sales channel (Holded API v2)
| Parameter | Type | Description |
|---|---|---|
channelId * | string | Sales 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.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Cursor from a previous response nextCursor |
end_date | string | Filter payments on or before this ISO date (YYYY-MM-DD). Forwarded directly to the v2 API. |
endtmp | number | Legacy: Unix timestamp (seconds) for end date. Converted to ISO YYYY-MM-DD. Ignored when end_date is also provided. |
fields | array | Select specific fields to return (e.g., ["id", "name", "days", "discount"]). Reduces response size. If not provided, returns all fields from the API. |
limit | number | Max items per page (server-paginated; use limit to control page size) |
start_date | string | Filter payments on or after this ISO date (YYYY-MM-DD). Forwarded directly to the v2 API. |
starttmp | number | Legacy: Unix timestamp (seconds) for start date. Converted to ISO YYYY-MM-DD. Ignored when start_date is also provided. |
summary | boolean | Return only count and pagination metadata without items (default: false) |
create_payment
Create a new payment (Holded API v2)
| Parameter | Type | Description |
|---|---|---|
name * | string | Payment method name |
days | number | Days until due |
get_payment
Get a specific payment by ID (Holded API v2)
| Parameter | Type | Description |
|---|---|---|
paymentId * | string | Payment 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, ...).
| Parameter | Type | Description |
|---|---|---|
paymentId * | string | Payment ID to update |
amount | number | Payment amount |
bankId | string | Bank account id to link the payment to |
contactId | string | Contact id associated with the payment |
date | number | Payment date as a Unix timestamp (seconds) |
days | number | Days until due |
name | string | Payment method name |
delete_payment
Delete a payment (Holded API v2)
| Parameter | Type | Description |
|---|---|---|
paymentId * | string | Payment 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`.
| Parameter | Type | Description |
|---|---|---|
fields | array | Select 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… |
summary | boolean | Return 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.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Cursor from a previous response nextCursor |
fields | array | Project only these fields per item (e.g. ["id", "name"]). Reduces response size. |
limit | number | Max items per page (server-paginated; use limit to control page size) |
summary | boolean | Return only count and pagination metadata without items (default: false) |
create_contact_group
Create a new contact group (Holded API v2)
| Parameter | Type | Description |
|---|---|---|
name * | string | Contact group name |
get_contact_group
Get a specific contact group by ID (Holded API v2)
| Parameter | Type | Description |
|---|---|---|
groupId * | string | Contact group ID |
update_contact_group
Update an existing contact group (Holded API v2)
| Parameter | Type | Description |
|---|---|---|
groupId * | string | Contact group ID to update |
name | string | Contact group name |
delete_contact_group
Delete a contact group (Holded API v2)
| Parameter | Type | Description |
|---|---|---|
groupId * | string | Contact 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.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Cursor from a previous response nextCursor |
fields | array | Project only these fields per item (e.g. ["id", "name", "date"]). Reduces response size. |
limit | number | Max items per page (server-paginated; use limit to control page size) |
summary | boolean | Return 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.
| Parameter | Type | Description |
|---|---|---|
remittanceId * | string | Remittance 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.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Cursor from a previous response nextCursor |
fields | array | Project only these fields per item (e.g. ["id", "name", "price", "tax"]). Reduces response size. |
limit | number | Max items per page (server-paginated; use limit to control page size) |
summary | boolean | Return only count and pagination metadata without items (default: false) |
create_service
Create a new service (Holded API v2)
| Parameter | Type | Description |
|---|---|---|
name * | string | Service name |
description | string | Service description |
price | number | Service price |
sku | string | Service SKU |
tax | number | Tax percentage |
get_service
Get a specific service by ID (Holded API v2)
| Parameter | Type | Description |
|---|---|---|
serviceId * | string | Service ID |
update_service
Update an existing service (Holded API v2)
| Parameter | Type | Description |
|---|---|---|
serviceId * | string | Service ID to update |
description | string | Service description |
name | string | Service name |
price | number | Service price |
sku | string | Service SKU |
tax | number | Tax percentage |
delete_service
Delete a service (Holded API v2)
| Parameter | Type | Description |
|---|---|---|
serviceId * | string | Service 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.
| Parameter | Type | Description |
|---|---|---|
fields | array | Project only these fields per item (e.g. ["id", "name", "address"]). Reduces response size. |
summary | boolean | Return only total count without items (default: false) |
create_warehouse
Create a new warehouse (Holded API v2)
| Parameter | Type | Description |
|---|---|---|
name * | string | Warehouse name |
address | string | Warehouse address |
city | string | City |
country | string | Country |
postalCode | string | Postal code |
province | string | Province |
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.
| Parameter | Type | Description |
|---|---|---|
warehouseId * | string | Warehouse ID |
cursor | string | Cursor from a previous response nextCursor |
fields | array | Project only these fields per item (e.g. ["product_id", "stock"]). Reduces response size. |
limit | number | Max items per page (server-paginated; use limit to control page size) |
summary | boolean | Return only count and pagination metadata without items (default: false) |
get_warehouse
Get a specific warehouse by ID (Holded API v2)
| Parameter | Type | Description |
|---|---|---|
warehouseId * | string | Warehouse ID |
update_warehouse
Update an existing warehouse (Holded API v2). BREAKING CHANGE from v1: HTTP verb changed from PUT to PATCH.
| Parameter | Type | Description |
|---|---|---|
warehouseId * | string | Warehouse ID to update |
address | string | Warehouse address |
city | string | City |
country | string | Country |
name | string | Warehouse name |
postalCode | string | Postal code |
province | string | Province |
delete_warehouse
Delete a warehouse (Holded API v2)
| Parameter | Type | Description |
|---|---|---|
warehouseId * | string | Warehouse 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.
| Parameter | Type | Description |
|---|---|---|
approvedOnly | boolean | Keep only approved entries (approved === 1) — applied client-side on the returned page. Default: false |
cursor | string | Cursor token from a previous response nextCursor to fetch the next page |
endDate | string | Keep only entries on or before this date (YYYY-MM-DD, inclusive) — applied client-side on the returned page |
limit | number | Max items per cursor page (default: 50) |
startDate | string | Keep 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.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | The Holded project ID |
approvedOnly | boolean | Keep only approved entries (approved === 1) — applied client-side on the returned page. Default: false |
cursor | string | Cursor token from a previous response nextCursor to fetch the next page |
endDate | string | Keep only entries on or before this date (YYYY-MM-DD, inclusive) — applied client-side on the returned page |
limit | number | Max items per cursor page (default: 50) |
startDate | string | Keep 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.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | The Holded project ID |
timeTrackingId * | string | The 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 â…
| Parameter | Type | Description |
|---|---|---|
archived | boolean | Include archived accounts (default: false) |
cursor | string | Cursor token from a previous response nextCursor |
end_date | string | Filter end date (ISO 8601, YYYY-MM-DD) |
include_empty | boolean | Include zero-balance accounts (default: false) |
limit | number | Max items per page |
start_date | string | Filter 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…
| Parameter | Type | Description |
|---|---|---|
cursor | string | Cursor token from a previous response nextCursor |
end_date | string | Range end as an ISO 8601 date (YYYY-MM-DD, inclusive). Required unless endtmp is provided. |
endtmp | number | Range end as a Unix timestamp in seconds (legacy form, converted to ISO). Use end_date when possible. |
groupByEntry | boolean | Group lines by entryNumber into full journal entries (each with totalDebit/totalCredit), applied to the current page. Default: false (flat lines) |
limit | number | Max items per cursor page (server-paginated; use limit to control page size) |
start_date | string | Range start as an ISO 8601 date (YYYY-MM-DD, inclusive). Required unless starttmp is provided. |
starttmp | number | Range 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.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Cursor from a previous response nextCursor |
limit | number | Max items per page |
get_employee
Get a single employee by ID (Holded API v2).
| Parameter | Type | Description |
|---|---|---|
employeeId * | string | Employee 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.).
| Parameter | Type | Description |
|---|---|---|
data * | object | Employee 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).
| Parameter | Type | Description |
|---|---|---|
data * | object | Fields to update, sent verbatim as body |
employeeId * | string | Employee ID |
delete_employee
DESTRUCTIVE: permanently deletes an employee record in Holded (API v2). This cannot be undone.
| Parameter | Type | Description |
|---|---|---|
employeeId * | string | Employee 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.
| Parameter | Type | Description |
|---|---|---|
employeeId * | string | Employee 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).
| Parameter | Type | Description |
|---|---|---|
data * | object | Contract payload, sent verbatim as body |
employeeId * | string | Employee ID |
clock_in_employee
WRITE: registers a clock-in for an employee in Holded time tracking (API v2). Affects real working-time records.
| Parameter | Type | Description |
|---|---|---|
employeeId * | string | Employee ID |
clock_out_employee
WRITE: registers a clock-out for an employee in Holded time tracking (API v2).
| Parameter | Type | Description |
|---|---|---|
employeeId * | string | Employee ID |
pause_employee
WRITE: starts a pause in the current working session of an employee (Holded API v2).
| Parameter | Type | Description |
|---|---|---|
employeeId * | string | Employee ID |
unpause_employee
WRITE: ends the current pause of an employee working session (Holded API v2).
| Parameter | Type | Description |
|---|---|---|
employeeId * | string | Employee 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.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Cursor from a previous response nextCursor |
employeeId | string | Optional employee ID to scope the list |
limit | number | Max items per page |
get_employee_time
Get a single time-tracking record by ID (Holded API v2).
| Parameter | Type | Description |
|---|---|---|
timeId * | string | Time 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).
| Parameter | Type | Description |
|---|---|---|
data * | object | Time record payload, sent verbatim as body |
employeeId * | string | Employee 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).
| Parameter | Type | Description |
|---|---|---|
data * | object | Fields to update, sent verbatim as body |
timeId * | string | Time record ID |
delete_employee_time
DESTRUCTIVE: permanently deletes a time-tracking record in Holded (API v2). This cannot be undone.
| Parameter | Type | Description |
|---|---|---|
timeId * | string | Time 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.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Cursor from a previous response nextCursor |
limit | number | Max 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.
| Parameter | Type | Description |
|---|---|---|
salaryRecordId * | string | Salary 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).
| Parameter | Type | Description |
|---|---|---|
data * | object | Salary 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).
| Parameter | Type | Description |
|---|---|---|
data * | object | Fields to update, sent verbatim as body |
salaryRecordId * | string | Salary record ID |
delete_salary_record
DESTRUCTIVE: permanently deletes a payroll record in Holded (API v2). This cannot be undone and affects accounting data.
| Parameter | Type | Description |
|---|---|---|
salaryRecordId * | string | Salary 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.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Cursor from a previous response nextCursor |
end_date | string | Filter end date (ISO 8601, YYYY-MM-DD) |
limit | number | Max items per page |
start_date | string | Filter 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).
| Parameter | Type | Description |
|---|---|---|
data * | object | Journal 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.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Cursor from a previous response nextCursor |
limit | number | Max 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).
| Parameter | Type | Description |
|---|---|---|
data * | object | Account payload, sent verbatim as body |
list_bank_accounts
List treasury bank accounts (Holded API v2, official endpoint). Cursor-paginated.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Cursor from a previous response nextCursor |
limit | number | Max items per page |
get_bank_account
Get a treasury bank account by ID (Holded API v2).
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Bank 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).
| Parameter | Type | Description |
|---|---|---|
data * | object | Bank 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).
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Bank account ID |
data * | object | Fields 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.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Bank account ID |
archive_bank_account
WRITE: archives a treasury bank account in Holded (API v2). Reversible alternative to delete_bank_account.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Bank 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.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Bank account ID |
cursor | string | Cursor from a previous response nextCursor |
limit | number | Max 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).
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Bank account ID |
data * | object | Movement 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).
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Bank account ID |
data * | object | Reconciliation payload, sent verbatim as body |
movementId * | string | Bank 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.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | Treasury account ID |
cursor | string | Cursor from a previous response nextCursor |
limit | number | Max items per page |
list_invoicing_forecasts
List cashflow invoicing forecasts (Holded API v2). Cursor-paginated.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Cursor from a previous response nextCursor |
limit | number | Max items per page |
get_invoicing_forecast
Get a cashflow invoicing forecast by ID (Holded API v2).
| Parameter | Type | Description |
|---|---|---|
forecastId * | string | Forecast 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).
| Parameter | Type | Description |
|---|---|---|
data * | object | Forecast 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).
| Parameter | Type | Description |
|---|---|---|
data * | object | Fields to update, sent verbatim as body |
forecastId * | string | Forecast ID |
delete_invoicing_forecast
DESTRUCTIVE: permanently deletes an invoicing forecast in Holded cashflow (API v2).
| Parameter | Type | Description |
|---|---|---|
forecastId * | string | Forecast ID |