# bexio

> Swiss accounting and business software: contacts, articles, projects, tasks, notes, invoices and offers.

App · 37 actions. Web page: https://docs.lodol.com/docs/integrations/bexio

## Actions

### Cancel invoice

Cancel an issued invoice. It stays on file as canceled.

**Inputs**

- Invoice ID (`invoice_id`, text, required): The invoice's id, from 'List invoices' or an earlier step.

**Outputs**

- `invoice` (object): The invoice

**Example output**

```json
{
  "invoice": {
    "api_reference": "",
    "bank_account_id": 1,
    "contact_address": "",
    "contact_id": 2,
    "contact_sub_id": 1,
    "currency_id": 1,
    "document_nr": "RE-00008",
    "footer": "",
    "header": "",
    "id": 8,
    "is_valid_from": "2026-11-17",
    "is_valid_to": "2026-12-17",
    "kb_item_status_id": 19,
    "language_id": 1,
    "logopaper_id": 1,
    "mwst_is_net": false,
    "mwst_type": 0,
    "network_link": "",
    "payment_type_id": 1,
    "positions": [
      {
        "account_id": 1,
        "amount": "2",
        "discount_in_percent": "",
        "id": 7,
        "internal_pos": 1,
        "is_optional": false,
        "parent_id": 1,
        "pos": "",
        "position_total": "300",
        "tax_id": 14,
        "tax_value": "8.10",
        "text": "Consulting",
        "type": "KbPositionCustom",
        "unit_id": 1,
        "unit_name": "",
        "unit_price": "150"
      }
    ],
    "project_id": 1,
    "reference": "",
    "show_position_taxes": false,
    "taxs": [
      {
        "percentage": "8.10",
        "value": "22.4709"
      }
    ],
    "template_slug": "",
    "title": "Consulting November",
    "total": "300",
    "total_credit_vouchers": "",
    "total_gross": "300",
    "total_net": "277.53",
    "total_received_payments": "",
    "total_remaining_payments": "300",
    "total_taxes": "22.4709",
    "updated_at": "",
    "user_id": 1
  }
}
```

### Create article

Create an article: a product or service you sell.

**Inputs**

- Name (`name`, text, required): The article's name.
- Type (`article_type`, text): Goods or a service. Defaults to goods. One of: `goods`, `service`.
- Article number (`code`, text): Your own code for the article.
- Description (`description`, text): What the article is.
- Sale price (`sale_price`, number): The price you sell it at.
- Purchase price (`purchase_price`, number): What it costs you.
- Unit (`unit_id`, text): The unit it is counted in, such as pieces or hours.
- Remarks (`remarks`, text): Internal notes.

**Outputs**

- `article` (object): The article

**Example output**

```json
{
  "article": {
    "account_id": 1,
    "article_group_id": 1,
    "article_type_id": 2,
    "contact_id": 1,
    "currency_id": 1,
    "deliverer_code": "",
    "deliverer_description": "",
    "deliverer_name": "",
    "delivery_price": "",
    "expense_account_id": 1,
    "html_text": "",
    "id": 3,
    "intern_code": "A-100",
    "intern_description": "",
    "intern_name": "Consulting hour",
    "is_stock": false,
    "purchase_price": "",
    "purchase_total": "",
    "remarks": "",
    "sale_price": "150.00",
    "sale_total": "",
    "stock_available_nr": 1,
    "stock_id": 1,
    "stock_min_nr": 1,
    "stock_nr": 1,
    "stock_place_id": 1,
    "stock_reserved_nr": 1,
    "tax_expense_id": 1,
    "tax_id": 1,
    "tax_income_id": 1,
    "unit_id": 2,
    "user_id": 1
  }
}
```

### Create contact

Create a contact: a company or a person with their address and phone numbers.

**Inputs**

- Type (`contact_type`, text, required): A company or a person. One of: `company`, `person`.
- Company or last name (`name`, text, required): The company's name, or a person's last name.
- First name (`first_name`, text): A person's first name.
- Email (`email`, text): The main email address.
- Phone (`phone`, text): The landline number.
- Mobile phone (`mobile`, text): The mobile number.
- Website (`website`, text): The website address.
- Street (`street`, text): The street name, without the house number.
- House number (`house_number`, text): The house number.
- Postcode (`postcode`, text): The postcode.
- City (`city`, text): The city.
- Country (`country_id`, text): The country.
- Salutation (`salutation_id`, text): How to address them.
- Language (`language_id`, text): The language to write to them in.
- Birthday (`birthday`, date): A person's birthday.
- Groups (`group_ids`, list): The contact groups to put them in.
- Remarks (`remarks`, text): Notes about the contact.
- Responsible user (`responsible_user_id`, text): The bexio user in charge. Defaults to the connected bexio user.

**Outputs**

- `contact` (object): The contact

**Example output**

```json
{
  "contact": {
    "address": "",
    "address_addition": "",
    "birthday": "",
    "city": "Zurich",
    "contact_branch_ids": "",
    "contact_group_ids": "1",
    "contact_type_id": 2,
    "country_id": 1,
    "fax": "",
    "house_number": "",
    "id": 2,
    "is_lead": false,
    "language_id": 1,
    "mail": "anna@example.com",
    "mail_second": "",
    "name_1": "Muster",
    "name_2": "Anna",
    "nr": "000002",
    "owner_id": 1,
    "phone_fixed": "",
    "phone_fixed_second": "",
    "phone_mobile": "",
    "postcode": "8000",
    "remarks": "",
    "salutation_id": 1,
    "skype_name": "",
    "street_name": "",
    "title_id": 1,
    "updated_at": "2026-11-17 10:00:00",
    "url": "",
    "user_id": 1
  }
}
```

### Create invoice

Create a draft invoice for a contact with one or more lines. It stays a draft, which can still be deleted, until you issue it.

**Inputs**

- Contact (`contact_id`, text, required): The contact. Pick one, or give its id from an earlier step.
- VAT rate (`tax_id`, text, required): The VAT rate for the lines. A line in 'Lines' may name its own tax_id.
- Line description (`line_text`, text): What the first line is for, such as 'Consulting'.
- Line quantity (`line_quantity`, number): How many. Defaults to 1.
- Line unit price (`line_unit_price`, number): The price of one.
- More lines (`lines`, list): Extra lines as a list such as [{"text": "Design", "amount": 2, "unit_price": 150}]. A line takes text, amount, unit_price, discount_in_percent and tax_id.
- Title (`title`, text): The heading shown on the document.
- VAT (`vat_mode`, text): Whether the prices include VAT. Defaults to including. One of: `including` (Prices include VAT (default)), `excluding` (Prices exclude VAT), `exempt` (No VAT).
- Document date (`valid_from`, date): The date on the document. Defaults to today.
- Due date (`valid_to`, date): When payment is due. Defaults to bexio's payment term.
- Responsible user (`responsible_user_id`, text): The bexio user in charge. Defaults to the connected bexio user.

**Outputs**

- `invoice` (object): The invoice

**Example output**

```json
{
  "invoice": {
    "api_reference": "",
    "bank_account_id": 1,
    "contact_address": "",
    "contact_id": 2,
    "contact_sub_id": 1,
    "currency_id": 1,
    "document_nr": "RE-00008",
    "footer": "",
    "header": "",
    "id": 8,
    "is_valid_from": "2026-11-17",
    "is_valid_to": "2026-12-17",
    "kb_item_status_id": 7,
    "language_id": 1,
    "logopaper_id": 1,
    "mwst_is_net": false,
    "mwst_type": 0,
    "network_link": "",
    "payment_type_id": 1,
    "positions": [
      {
        "account_id": 1,
        "amount": "2",
        "discount_in_percent": "",
        "id": 7,
        "internal_pos": 1,
        "is_optional": false,
        "parent_id": 1,
        "pos": "",
        "position_total": "300",
        "tax_id": 14,
        "tax_value": "8.10",
        "text": "Consulting",
        "type": "KbPositionCustom",
        "unit_id": 1,
        "unit_name": "",
        "unit_price": "150"
      }
    ],
    "project_id": 1,
    "reference": "",
    "show_position_taxes": false,
    "taxs": [
      {
        "percentage": "8.10",
        "value": "22.4709"
      }
    ],
    "template_slug": "",
    "title": "Consulting November",
    "total": "300",
    "total_credit_vouchers": "",
    "total_gross": "300",
    "total_net": "277.53",
    "total_received_payments": "",
    "total_remaining_payments": "300",
    "total_taxes": "22.4709",
    "updated_at": "",
    "user_id": 1
  }
}
```

### Create note

Create a note, optionally on a contact or project.

**Inputs**

- Subject (`subject`, text, required): The note's heading.
- Text (`info`, text): The note itself.
- Date and time (`event_start`, date and time): When the note is about. Defaults to now.
- Contact (`contact_id`, text): Link the record to this contact.
- Project (`project_id`, text): Link the record to this project.
- Responsible user (`responsible_user_id`, text): The bexio user in charge. Defaults to the connected bexio user.

**Outputs**

- `note` (object): The note

**Example output**

```json
{
  "note": {
    "contact_id": 2,
    "entry_id": 1,
    "event_start": "2026-11-17 10:00:00",
    "id": 6,
    "info": "Interested in a quote",
    "module_id": 1,
    "project_id": 1,
    "subject": "Met at the trade fair",
    "user_id": 1
  }
}
```

### Create offer

Create a draft offer (quote) for a contact with one or more lines. A draft offer can still be deleted.

**Inputs**

- Contact (`contact_id`, text, required): The contact. Pick one, or give its id from an earlier step.
- VAT rate (`tax_id`, text, required): The VAT rate for the lines. A line in 'Lines' may name its own tax_id.
- Line description (`line_text`, text): What the first line is for, such as 'Consulting'.
- Line quantity (`line_quantity`, number): How many. Defaults to 1.
- Line unit price (`line_unit_price`, number): The price of one.
- More lines (`lines`, list): Extra lines as a list such as [{"text": "Design", "amount": 2, "unit_price": 150}]. A line takes text, amount, unit_price, discount_in_percent and tax_id.
- Title (`title`, text): The heading shown on the document.
- VAT (`vat_mode`, text): Whether the prices include VAT. Defaults to including. One of: `including` (Prices include VAT (default)), `excluding` (Prices exclude VAT), `exempt` (No VAT).
- Document date (`valid_from`, date): The date on the document. Defaults to today.
- Valid until (`valid_until`, date): How long the offer stands. Defaults to two weeks.
- Responsible user (`responsible_user_id`, text): The bexio user in charge. Defaults to the connected bexio user.

**Outputs**

- `offer` (object): The offer

**Example output**

```json
{
  "offer": {
    "api_reference": "",
    "bank_account_id": 1,
    "contact_address": "",
    "contact_id": 2,
    "contact_sub_id": 1,
    "currency_id": 1,
    "delivery_address": "",
    "document_nr": "AN-00009",
    "footer": "",
    "header": "",
    "id": 9,
    "is_valid_from": "2026-11-17",
    "is_valid_until": "2026-12-01",
    "kb_item_status_id": 1,
    "language_id": 1,
    "logopaper_id": 1,
    "mwst_is_net": false,
    "mwst_type": 0,
    "network_link": "",
    "payment_type_id": 1,
    "positions": [
      {
        "account_id": 1,
        "amount": "2",
        "discount_in_percent": "",
        "id": 7,
        "internal_pos": 1,
        "is_optional": false,
        "parent_id": 1,
        "pos": "",
        "position_total": "300",
        "tax_id": 14,
        "tax_value": "8.10",
        "text": "Consulting",
        "type": "KbPositionCustom",
        "unit_id": 1,
        "unit_name": "",
        "unit_price": "150"
      }
    ],
    "project_id": 1,
    "show_position_taxes": false,
    "taxs": [
      {
        "percentage": "8.10",
        "value": "22.4709"
      }
    ],
    "template_slug": "",
    "title": "Website quote",
    "total": "300",
    "total_gross": "300",
    "total_net": "277.53",
    "total_taxes": "",
    "updated_at": "",
    "user_id": 1
  }
}
```

### Create project

Create a project for a customer.

**Inputs**

- Name (`name`, text, required): The project's name.
- Contact (`contact_id`, text, required): The customer the project is for.
- Project type (`project_type_id`, text): Internal or customer project, or one you made. Defaults to the first type in your account.
- Status (`state`, text): Defaults to open. One of: `open`, `active`, `archived`.
- Start date (`start_date`, date): When the project starts.
- End date (`end_date`, date): When the project ends.
- Comment (`comment`, text): Notes about the project.
- Responsible user (`responsible_user_id`, text): The bexio user in charge. Defaults to the connected bexio user.

**Outputs**

- `project` (object): The project

**Example output**

```json
{
  "project": {
    "comment": "",
    "contact_id": 2,
    "contact_sub_id": 1,
    "end_date": "",
    "id": 4,
    "name": "Website relaunch",
    "nr": "000004",
    "pr_budget_type_amount": 1,
    "pr_budget_type_id": 1,
    "pr_invoice_type_amount": 1,
    "pr_invoice_type_id": 1,
    "pr_project_type_id": 2,
    "pr_state_id": 1,
    "start_date": "",
    "user_id": 1,
    "uuid": ""
  }
}
```

### Create task

Create a task, optionally for a contact or project.

**Inputs**

- Subject (`subject`, text, required): What needs doing.
- Details (`info`, text): More about the task.
- Due date (`finish_date`, date): When it is due.
- Status (`status`, text): Defaults to open. One of: `open`, `done`.
- Priority (`priority`, text): How urgent it is. One of: `none`, `low`, `normal`, `high`, `very_high` (Very high).
- Contact (`contact_id`, text): The contact it is about.
- Project (`project_id`, text): The project it belongs to.
- Responsible user (`responsible_user_id`, text): The bexio user in charge. Defaults to the connected bexio user.

**Outputs**

- `task` (object): The task

**Example output**

```json
{
  "task": {
    "communication_kind_id": 1,
    "contact_id": 1,
    "finish_date": "",
    "has_reminder": "false",
    "id": 5,
    "info": "",
    "place": "",
    "project_id": 1,
    "sub_contact_id": 1,
    "subject": "Call the customer",
    "todo_priority_id": 3,
    "todo_status_id": 1,
    "user_id": 1
  }
}
```

### Delete article

Permanently delete a article.

**Inputs**

- Article ID (`article_id`, text, required): The article's id, from 'List articles' or an earlier step.

**Outputs**

- `article_id` (number): The id that was deleted
- `deleted` (true/false): Always true once bexio removed it

**Example output**

```json
{
  "article_id": 1,
  "deleted": true
}
```

### Delete contact

Permanently delete a contact. bexio refuses if invoices or projects still use the contact.

**Inputs**

- Contact (`contact_id`, text, required): The contact. Pick one, or give its id from an earlier step.

**Outputs**

- `contact_id` (number): The id that was deleted
- `deleted` (true/false): Always true once bexio removed it

**Example output**

```json
{
  "contact_id": 1,
  "deleted": true
}
```

### Delete invoice

Permanently delete a invoice. Only a draft can be deleted; cancel an issued invoice instead.

**Inputs**

- Invoice ID (`invoice_id`, text, required): The invoice's id, from 'List invoices' or an earlier step.

**Outputs**

- `deleted` (true/false): Always true once bexio removed it
- `invoice_id` (number): The id that was deleted

**Example output**

```json
{
  "deleted": true,
  "invoice_id": 1
}
```

### Delete invoice payment

Delete a payment recorded on an invoice, for example one entered by mistake. An invoice with a payment cannot be canceled until it is deleted.

**Inputs**

- Invoice ID (`invoice_id`, text, required): The invoice's id, from 'List invoices' or an earlier step.
- Payment ID (`payment_id`, text, required): The payment's id, from 'Record invoice payment' or an earlier step.

**Outputs**

- `deleted` (true/false): Always true once bexio removed it
- `invoice_id` (number): The invoice it was on
- `payment_id` (number): The payment that was deleted

**Example output**

```json
{
  "deleted": true,
  "invoice_id": 8,
  "payment_id": 10
}
```

### Delete note

Permanently delete a note.

**Inputs**

- Note ID (`note_id`, text, required): The note's id, from 'List notes' or an earlier step.

**Outputs**

- `deleted` (true/false): Always true once bexio removed it
- `note_id` (number): The id that was deleted

**Example output**

```json
{
  "deleted": true,
  "note_id": 1
}
```

### Delete offer

Permanently delete a offer. Only a draft can be deleted.

**Inputs**

- Offer ID (`offer_id`, text, required): The offer's id, from 'List offers' or an earlier step.

**Outputs**

- `deleted` (true/false): Always true once bexio removed it
- `offer_id` (number): The id that was deleted

**Example output**

```json
{
  "deleted": true,
  "offer_id": 1
}
```

### Delete project

Permanently delete a project.

**Inputs**

- Project (`project_id`, text, required): The project. Pick one, or give its id from an earlier step.

**Outputs**

- `deleted` (true/false): Always true once bexio removed it
- `project_id` (number): The id that was deleted

**Example output**

```json
{
  "deleted": true,
  "project_id": 1
}
```

### Delete task

Permanently delete a task.

**Inputs**

- Task ID (`task_id`, text, required): The task's id, from 'List tasks' or an earlier step.

**Outputs**

- `deleted` (true/false): Always true once bexio removed it
- `task_id` (number): The id that was deleted

**Example output**

```json
{
  "deleted": true,
  "task_id": 1
}
```

### Get article

Get one article with its prices and stock.

**Inputs**

- Article ID (`article_id`, text, required): The article's id, from 'List articles' or an earlier step.

**Outputs**

- `article` (object): The article

**Example output**

```json
{
  "article": {
    "account_id": 1,
    "article_group_id": 1,
    "article_type_id": 2,
    "contact_id": 1,
    "currency_id": 1,
    "deliverer_code": "",
    "deliverer_description": "",
    "deliverer_name": "",
    "delivery_price": "",
    "expense_account_id": 1,
    "html_text": "",
    "id": 3,
    "intern_code": "A-100",
    "intern_description": "",
    "intern_name": "Consulting hour",
    "is_stock": false,
    "purchase_price": "",
    "purchase_total": "",
    "remarks": "",
    "sale_price": "150.00",
    "sale_total": "",
    "stock_available_nr": 1,
    "stock_id": 1,
    "stock_min_nr": 1,
    "stock_nr": 1,
    "stock_place_id": 1,
    "stock_reserved_nr": 1,
    "tax_expense_id": 1,
    "tax_id": 1,
    "tax_income_id": 1,
    "unit_id": 2,
    "user_id": 1
  }
}
```

### Get company profile

Get your company's profile: name, address, contact details and tax numbers.

**Inputs**: None.

**Outputs**

- `company` (object): The company profile

**Example output**

```json
{
  "company": {
    "address": "",
    "address_nr": "",
    "city": "Zurich",
    "country_id": 1,
    "country_name": "Switzerland",
    "description": "",
    "fax": "",
    "id": 1,
    "legal_form": "AG",
    "mail": "",
    "mwst_nr": "",
    "name": "Muster AG",
    "phone_fixed": "",
    "phone_mobile": "",
    "postcode": "8000",
    "trade_register_nr": "",
    "url": "",
    "ust_id_nr": ""
  }
}
```

### Get contact

Get one contact with its address, phone numbers and groups.

**Inputs**

- Contact (`contact_id`, text, required): The contact. Pick one, or give its id from an earlier step.

**Outputs**

- `contact` (object): The contact

**Example output**

```json
{
  "contact": {
    "address": "",
    "address_addition": "",
    "birthday": "",
    "city": "Zurich",
    "contact_branch_ids": "",
    "contact_group_ids": "1",
    "contact_type_id": 2,
    "country_id": 1,
    "fax": "",
    "house_number": "",
    "id": 2,
    "is_lead": false,
    "language_id": 1,
    "mail": "anna@example.com",
    "mail_second": "",
    "name_1": "Muster",
    "name_2": "Anna",
    "nr": "000002",
    "owner_id": 1,
    "phone_fixed": "",
    "phone_fixed_second": "",
    "phone_mobile": "",
    "postcode": "8000",
    "remarks": "",
    "salutation_id": 1,
    "skype_name": "",
    "street_name": "",
    "title_id": 1,
    "updated_at": "2026-11-17 10:00:00",
    "url": "",
    "user_id": 1
  }
}
```

### Get current user

Get the bexio user that's connected: name, email and whether they are an administrator.

**Inputs**: None.

**Outputs**

- `user` (object): The connected user

**Example output**

```json
{
  "user": {
    "email": "anna@example.com",
    "firstname": "Anna",
    "id": 1,
    "is_accountant": false,
    "is_superadmin": true,
    "lastname": "Muster",
    "salutation_type": "female"
  }
}
```

### Get invoice

Get one invoice with its lines, totals and status.

**Inputs**

- Invoice ID (`invoice_id`, text, required): The invoice's id, from 'List invoices' or an earlier step.

**Outputs**

- `invoice` (object): The invoice

**Example output**

```json
{
  "invoice": {
    "api_reference": "",
    "bank_account_id": 1,
    "contact_address": "",
    "contact_id": 2,
    "contact_sub_id": 1,
    "currency_id": 1,
    "document_nr": "RE-00008",
    "footer": "",
    "header": "",
    "id": 8,
    "is_valid_from": "2026-11-17",
    "is_valid_to": "2026-12-17",
    "kb_item_status_id": 7,
    "language_id": 1,
    "logopaper_id": 1,
    "mwst_is_net": false,
    "mwst_type": 0,
    "network_link": "",
    "payment_type_id": 1,
    "positions": [
      {
        "account_id": 1,
        "amount": "2",
        "discount_in_percent": "",
        "id": 7,
        "internal_pos": 1,
        "is_optional": false,
        "parent_id": 1,
        "pos": "",
        "position_total": "300",
        "tax_id": 14,
        "tax_value": "8.10",
        "text": "Consulting",
        "type": "KbPositionCustom",
        "unit_id": 1,
        "unit_name": "",
        "unit_price": "150"
      }
    ],
    "project_id": 1,
    "reference": "",
    "show_position_taxes": false,
    "taxs": [
      {
        "percentage": "8.10",
        "value": "22.4709"
      }
    ],
    "template_slug": "",
    "title": "Consulting November",
    "total": "300",
    "total_credit_vouchers": "",
    "total_gross": "300",
    "total_net": "277.53",
    "total_received_payments": "",
    "total_remaining_payments": "300",
    "total_taxes": "22.4709",
    "updated_at": "",
    "user_id": 1
  }
}
```

### Get project

Get one project with its customer, dates and status.

**Inputs**

- Project (`project_id`, text, required): The project. Pick one, or give its id from an earlier step.

**Outputs**

- `project` (object): The project

**Example output**

```json
{
  "project": {
    "comment": "",
    "contact_id": 2,
    "contact_sub_id": 1,
    "end_date": "",
    "id": 4,
    "name": "Website relaunch",
    "nr": "000004",
    "pr_budget_type_amount": 1,
    "pr_budget_type_id": 1,
    "pr_invoice_type_amount": 1,
    "pr_invoice_type_id": 1,
    "pr_project_type_id": 2,
    "pr_state_id": 1,
    "start_date": "",
    "user_id": 1,
    "uuid": ""
  }
}
```

### Issue invoice

Issue a draft invoice so it becomes final and awaits payment. An issued invoice can be canceled but no longer deleted.

**Inputs**

- Invoice ID (`invoice_id`, text, required): The invoice's id, from 'List invoices' or an earlier step.

**Outputs**

- `invoice` (object): The invoice

**Example output**

```json
{
  "invoice": {
    "api_reference": "",
    "bank_account_id": 1,
    "contact_address": "",
    "contact_id": 2,
    "contact_sub_id": 1,
    "currency_id": 1,
    "document_nr": "RE-00008",
    "footer": "",
    "header": "",
    "id": 8,
    "is_valid_from": "2026-11-17",
    "is_valid_to": "2026-12-17",
    "kb_item_status_id": 8,
    "language_id": 1,
    "logopaper_id": 1,
    "mwst_is_net": false,
    "mwst_type": 0,
    "network_link": "",
    "payment_type_id": 1,
    "positions": [
      {
        "account_id": 1,
        "amount": "2",
        "discount_in_percent": "",
        "id": 7,
        "internal_pos": 1,
        "is_optional": false,
        "parent_id": 1,
        "pos": "",
        "position_total": "300",
        "tax_id": 14,
        "tax_value": "8.10",
        "text": "Consulting",
        "type": "KbPositionCustom",
        "unit_id": 1,
        "unit_name": "",
        "unit_price": "150"
      }
    ],
    "project_id": 1,
    "reference": "",
    "show_position_taxes": false,
    "taxs": [
      {
        "percentage": "8.10",
        "value": "22.4709"
      }
    ],
    "template_slug": "",
    "title": "Consulting November",
    "total": "300",
    "total_credit_vouchers": "",
    "total_gross": "300",
    "total_net": "277.53",
    "total_received_payments": "",
    "total_remaining_payments": "300",
    "total_taxes": "22.4709",
    "updated_at": "",
    "user_id": 1
  }
}
```

### List articles

List the articles (products and services you sell), newest first. Gets one page; to see more, run it again with the next offset it gives.

**Inputs**

- Page size (`limit`, number): How many to return, 1 to 500. Defaults to 100. From 1 to 500.
- Start at (`offset`, number): How many records to skip, to get a later page. Use 'next_offset' from the previous page. At least 0.
- Order (`order`, text): Sort by when the record was created. Defaults to newest first. One of: `newest` (Newest first (default)), `oldest` (Oldest first).

**Outputs**

- `articles` (list): The articles
- `count` (number): How many records this page holds
- `has_more` (true/false): Whether another page may follow (this one was full)
- `next_offset` (number): The offset to give to get the next page

**Example output**

```json
{
  "articles": [
    {
      "account_id": 1,
      "article_group_id": 1,
      "article_type_id": 2,
      "contact_id": 1,
      "currency_id": 1,
      "deliverer_code": "",
      "deliverer_description": "",
      "deliverer_name": "",
      "delivery_price": "",
      "expense_account_id": 1,
      "html_text": "",
      "id": 3,
      "intern_code": "A-100",
      "intern_description": "",
      "intern_name": "Consulting hour",
      "is_stock": false,
      "purchase_price": "",
      "purchase_total": "",
      "remarks": "",
      "sale_price": "150.00",
      "sale_total": "",
      "stock_available_nr": 1,
      "stock_id": 1,
      "stock_min_nr": 1,
      "stock_nr": 1,
      "stock_place_id": 1,
      "stock_reserved_nr": 1,
      "tax_expense_id": 1,
      "tax_id": 1,
      "tax_income_id": 1,
      "unit_id": 2,
      "user_id": 1
    }
  ],
  "count": 1,
  "has_more": false,
  "next_offset": 1
}
```

### List contacts

List the contacts (customers, suppliers and people), newest first. Gets one page; to see more, run it again with the next offset it gives.

**Inputs**

- Page size (`limit`, number): How many to return, 1 to 500. Defaults to 100. From 1 to 500.
- Start at (`offset`, number): How many records to skip, to get a later page. Use 'next_offset' from the previous page. At least 0.
- Order (`order`, text): Sort by when the record was created. Defaults to newest first. One of: `newest` (Newest first (default)), `oldest` (Oldest first).

**Outputs**

- `contacts` (list): The contacts
- `count` (number): How many records this page holds
- `has_more` (true/false): Whether another page may follow (this one was full)
- `next_offset` (number): The offset to give to get the next page

**Example output**

```json
{
  "contacts": [
    {
      "address": "",
      "address_addition": "",
      "birthday": "",
      "city": "Zurich",
      "contact_branch_ids": "",
      "contact_group_ids": "1",
      "contact_type_id": 2,
      "country_id": 1,
      "fax": "",
      "house_number": "",
      "id": 2,
      "is_lead": false,
      "language_id": 1,
      "mail": "anna@example.com",
      "mail_second": "",
      "name_1": "Muster",
      "name_2": "Anna",
      "nr": "000002",
      "owner_id": 1,
      "phone_fixed": "",
      "phone_fixed_second": "",
      "phone_mobile": "",
      "postcode": "8000",
      "remarks": "",
      "salutation_id": 1,
      "skype_name": "",
      "street_name": "",
      "title_id": 1,
      "updated_at": "2026-11-17 10:00:00",
      "url": "",
      "user_id": 1
    }
  ],
  "count": 1,
  "has_more": false,
  "next_offset": 1
}
```

### List invoices

List the invoices, newest first. Gets one page; to see more, run it again with the next offset it gives.

**Inputs**

- Page size (`limit`, number): How many to return, 1 to 500. Defaults to 100. From 1 to 500.
- Start at (`offset`, number): How many records to skip, to get a later page. Use 'next_offset' from the previous page. At least 0.
- Order (`order`, text): Sort by when the record was created. Defaults to newest first. One of: `newest` (Newest first (default)), `oldest` (Oldest first).

**Outputs**

- `count` (number): How many records this page holds
- `has_more` (true/false): Whether another page may follow (this one was full)
- `invoices` (list): The invoices
- `next_offset` (number): The offset to give to get the next page

**Example output**

```json
{
  "count": 1,
  "has_more": false,
  "invoices": [
    {
      "api_reference": "",
      "bank_account_id": 1,
      "contact_address": "",
      "contact_id": 2,
      "contact_sub_id": 1,
      "currency_id": 1,
      "document_nr": "RE-00008",
      "footer": "",
      "header": "",
      "id": 8,
      "is_valid_from": "2026-11-17",
      "is_valid_to": "2026-12-17",
      "kb_item_status_id": 7,
      "language_id": 1,
      "logopaper_id": 1,
      "mwst_is_net": false,
      "mwst_type": 0,
      "network_link": "",
      "payment_type_id": 1,
      "positions": [
        {
          "account_id": 1,
          "amount": "2",
          "discount_in_percent": "",
          "id": 7,
          "internal_pos": 1,
          "is_optional": false,
          "parent_id": 1,
          "pos": "",
          "position_total": "300",
          "tax_id": 14,
          "tax_value": "8.10",
          "text": "Consulting",
          "type": "KbPositionCustom",
          "unit_id": 1,
          "unit_name": "",
          "unit_price": "150"
        }
      ],
      "project_id": 1,
      "reference": "",
      "show_position_taxes": false,
      "taxs": [
        {
          "percentage": "8.10",
          "value": "22.4709"
        }
      ],
      "template_slug": "",
      "title": "Consulting November",
      "total": "300",
      "total_credit_vouchers": "",
      "total_gross": "300",
      "total_net": "277.53",
      "total_received_payments": "",
      "total_remaining_payments": "300",
      "total_taxes": "22.4709",
      "updated_at": "",
      "user_id": 1
    }
  ],
  "next_offset": 1
}
```

### List notes

List the notes, newest first. Gets one page; to see more, run it again with the next offset it gives.

**Inputs**

- Page size (`limit`, number): How many to return, 1 to 500. Defaults to 100. From 1 to 500.
- Start at (`offset`, number): How many records to skip, to get a later page. Use 'next_offset' from the previous page. At least 0.
- Order (`order`, text): Sort by when the record was created. Defaults to newest first. One of: `newest` (Newest first (default)), `oldest` (Oldest first).

**Outputs**

- `count` (number): How many records this page holds
- `has_more` (true/false): Whether another page may follow (this one was full)
- `next_offset` (number): The offset to give to get the next page
- `notes` (list): The notes

**Example output**

```json
{
  "count": 1,
  "has_more": false,
  "next_offset": 1,
  "notes": [
    {
      "contact_id": 2,
      "entry_id": 1,
      "event_start": "2026-11-17 10:00:00",
      "id": 6,
      "info": "Interested in a quote",
      "module_id": 1,
      "project_id": 1,
      "subject": "Met at the trade fair",
      "user_id": 1
    }
  ]
}
```

### List offers

List the offers (quotes), newest first. Gets one page; to see more, run it again with the next offset it gives.

**Inputs**

- Page size (`limit`, number): How many to return, 1 to 500. Defaults to 100. From 1 to 500.
- Start at (`offset`, number): How many records to skip, to get a later page. Use 'next_offset' from the previous page. At least 0.
- Order (`order`, text): Sort by when the record was created. Defaults to newest first. One of: `newest` (Newest first (default)), `oldest` (Oldest first).

**Outputs**

- `count` (number): How many records this page holds
- `has_more` (true/false): Whether another page may follow (this one was full)
- `next_offset` (number): The offset to give to get the next page
- `offers` (list): The offers

**Example output**

```json
{
  "count": 1,
  "has_more": false,
  "next_offset": 1,
  "offers": [
    {
      "api_reference": "",
      "bank_account_id": 1,
      "contact_address": "",
      "contact_id": 2,
      "contact_sub_id": 1,
      "currency_id": 1,
      "delivery_address": "",
      "document_nr": "AN-00009",
      "footer": "",
      "header": "",
      "id": 9,
      "is_valid_from": "2026-11-17",
      "is_valid_until": "2026-12-01",
      "kb_item_status_id": 1,
      "language_id": 1,
      "logopaper_id": 1,
      "mwst_is_net": false,
      "mwst_type": 0,
      "network_link": "",
      "payment_type_id": 1,
      "positions": [
        {
          "account_id": 1,
          "amount": "2",
          "discount_in_percent": "",
          "id": 7,
          "internal_pos": 1,
          "is_optional": false,
          "parent_id": 1,
          "pos": "",
          "position_total": "300",
          "tax_id": 14,
          "tax_value": "8.10",
          "text": "Consulting",
          "type": "KbPositionCustom",
          "unit_id": 1,
          "unit_name": "",
          "unit_price": "150"
        }
      ],
      "project_id": 1,
      "show_position_taxes": false,
      "taxs": [
        {
          "percentage": "8.10",
          "value": "22.4709"
        }
      ],
      "template_slug": "",
      "title": "Website quote",
      "total": "300",
      "total_gross": "300",
      "total_net": "277.53",
      "total_taxes": "",
      "updated_at": "",
      "user_id": 1
    }
  ]
}
```

### List projects

List the projects, newest first. Gets one page; to see more, run it again with the next offset it gives.

**Inputs**

- Page size (`limit`, number): How many to return, 1 to 500. Defaults to 100. From 1 to 500.
- Start at (`offset`, number): How many records to skip, to get a later page. Use 'next_offset' from the previous page. At least 0.
- Order (`order`, text): Sort by when the record was created. Defaults to newest first. One of: `newest` (Newest first (default)), `oldest` (Oldest first).

**Outputs**

- `count` (number): How many records this page holds
- `has_more` (true/false): Whether another page may follow (this one was full)
- `next_offset` (number): The offset to give to get the next page
- `projects` (list): The projects

**Example output**

```json
{
  "count": 1,
  "has_more": false,
  "next_offset": 1,
  "projects": [
    {
      "comment": "",
      "contact_id": 2,
      "contact_sub_id": 1,
      "end_date": "",
      "id": 4,
      "name": "Website relaunch",
      "nr": "000004",
      "pr_budget_type_amount": 1,
      "pr_budget_type_id": 1,
      "pr_invoice_type_amount": 1,
      "pr_invoice_type_id": 1,
      "pr_project_type_id": 2,
      "pr_state_id": 1,
      "start_date": "",
      "user_id": 1,
      "uuid": ""
    }
  ]
}
```

### List tasks

List the tasks. Gets one page; to see more, run it again with the next offset it gives.

**Inputs**

- Page size (`limit`, number): How many to return, 1 to 500. Defaults to 100. From 1 to 500.
- Start at (`offset`, number): How many records to skip, to get a later page. Use 'next_offset' from the previous page. At least 0.

**Outputs**

- `count` (number): How many records this page holds
- `has_more` (true/false): Whether another page may follow (this one was full)
- `next_offset` (number): The offset to give to get the next page
- `tasks` (list): The tasks

**Example output**

```json
{
  "count": 1,
  "has_more": false,
  "next_offset": 1,
  "tasks": [
    {
      "communication_kind_id": 1,
      "contact_id": 1,
      "finish_date": "",
      "has_reminder": "false",
      "id": 5,
      "info": "",
      "place": "",
      "project_id": 1,
      "sub_contact_id": 1,
      "subject": "Call the customer",
      "todo_priority_id": 3,
      "todo_status_id": 1,
      "user_id": 1
    }
  ]
}
```

### List VAT rates

List the active sales VAT rates of your company. Use an id as the 'VAT rate' of an invoice or offer.

**Inputs**: None.

**Outputs**

- `count` (number): How many rates there are
- `vat_rates` (list): The active sales VAT rates

**Example output**

```json
{
  "count": 1,
  "vat_rates": [
    {
      "account_id": 1,
      "code": "UN81",
      "digit": "",
      "display_name": "UN81 - Revenue (NS) 8.10%",
      "end_year": 1,
      "id": 14,
      "is_active": true,
      "name": "",
      "start_year": 1,
      "type": "sales_tax",
      "uuid": "",
      "value": 8.1
    }
  ]
}
```

### Record invoice payment

Record a payment received for an issued invoice. Several payments can be recorded until it is paid.

**Inputs**

- Invoice ID (`invoice_id`, text, required): The invoice's id, from 'List invoices' or an earlier step.
- Amount (`amount`, number, required): The amount received.
- Payment date (`payment_date`, date): When it was received. Defaults to today.
- Bank account (`bank_account_id`, text): The account it arrived in.

**Outputs**

- `payment` (object): The payment

**Example output**

```json
{
  "payment": {
    "bank_account_id": 1,
    "date": "2026-11-17",
    "id": 10,
    "is_cash_discount": false,
    "is_client_account_redemption": false,
    "kb_bill_id": 1,
    "kb_credit_voucher_id": 1,
    "kb_credit_voucher_text": "",
    "kb_invoice_id": 8,
    "payment_service_id": 1,
    "title": "Payment receipt",
    "value": "100"
  }
}
```

### Search contacts

Find contacts whose name, email, city or another detail contains or equals a value. Gets one page.

**Inputs**

- Search for (`value`, text, required): The text to look for.
- Look in (`search_field`, text): Which detail to search. Defaults to the company or last name. One of: `name_1` (Company or last name), `name_2` (First name), `mail` (Email), `nr` (Contact number), `city`, `postcode`, `phone_mobile` (Mobile phone), `remarks`.
- Match (`criteria`, text): How to compare. Defaults to contains. One of: `like` (Contains (default)), `=` (Is exactly), `!=` (Is not).
- Page size (`limit`, number): How many to return, 1 to 500. Defaults to 100. From 1 to 500.
- Start at (`offset`, number): How many records to skip, to get a later page. Use 'next_offset' from the previous page. At least 0.
- Order (`order`, text): Sort by when the record was created. Defaults to newest first. One of: `newest` (Newest first (default)), `oldest` (Oldest first).

**Outputs**

- `contacts` (list): The matching contacts
- `count` (number): How many records this page holds
- `has_more` (true/false): Whether another page may follow (this one was full)
- `next_offset` (number): The offset to give to get the next page

**Example output**

```json
{
  "contacts": [
    {
      "address": "",
      "address_addition": "",
      "birthday": "",
      "city": "Zurich",
      "contact_branch_ids": "",
      "contact_group_ids": "1",
      "contact_type_id": 2,
      "country_id": 1,
      "fax": "",
      "house_number": "",
      "id": 2,
      "is_lead": false,
      "language_id": 1,
      "mail": "anna@example.com",
      "mail_second": "",
      "name_1": "Muster",
      "name_2": "Anna",
      "nr": "000002",
      "owner_id": 1,
      "phone_fixed": "",
      "phone_fixed_second": "",
      "phone_mobile": "",
      "postcode": "8000",
      "remarks": "",
      "salutation_id": 1,
      "skype_name": "",
      "street_name": "",
      "title_id": 1,
      "updated_at": "2026-11-17 10:00:00",
      "url": "",
      "user_id": 1
    }
  ],
  "count": 1,
  "has_more": false,
  "next_offset": 1
}
```

### Update article

Change a article. Fields left empty keep what is there.

**Inputs**

- Article ID (`article_id`, text, required): The article's id, from 'List articles' or an earlier step.
- Name (`name`, text): The article's name. Leave empty to keep it.
- Type (`article_type`, text): Goods or a service. Leave empty to keep it. One of: `goods`, `service`.
- Article number (`code`, text): Your own code for the article. Leave empty to keep it.
- Description (`description`, text): What the article is. Leave empty to keep it.
- Sale price (`sale_price`, number): The price you sell it at. Leave empty to keep it.
- Purchase price (`purchase_price`, number): What it costs you. Leave empty to keep it.
- Unit (`unit_id`, text): The unit it is counted in, such as pieces or hours. Leave empty to keep it.
- Remarks (`remarks`, text): Internal notes. Leave empty to keep it.

**Outputs**

- `article` (object): The article

**Example output**

```json
{
  "article": {
    "account_id": 1,
    "article_group_id": 1,
    "article_type_id": 2,
    "contact_id": 1,
    "currency_id": 1,
    "deliverer_code": "",
    "deliverer_description": "",
    "deliverer_name": "",
    "delivery_price": "",
    "expense_account_id": 1,
    "html_text": "",
    "id": 3,
    "intern_code": "A-100",
    "intern_description": "",
    "intern_name": "Consulting hour",
    "is_stock": false,
    "purchase_price": "",
    "purchase_total": "",
    "remarks": "",
    "sale_price": "150.00",
    "sale_total": "",
    "stock_available_nr": 1,
    "stock_id": 1,
    "stock_min_nr": 1,
    "stock_nr": 1,
    "stock_place_id": 1,
    "stock_reserved_nr": 1,
    "tax_expense_id": 1,
    "tax_id": 1,
    "tax_income_id": 1,
    "unit_id": 2,
    "user_id": 1
  }
}
```

### Update contact

Change a contact. Fields left empty keep what is there.

**Inputs**

- Contact (`contact_id`, text, required): The contact. Pick one, or give its id from an earlier step.
- Type (`contact_type`, text): A company or a person. Leave empty to keep it. One of: `company`, `person`.
- Company or last name (`name`, text): The company's name, or a person's last name. Leave empty to keep it.
- First name (`first_name`, text): A person's first name. Leave empty to keep it.
- Email (`email`, text): The main email address. Leave empty to keep it.
- Phone (`phone`, text): The landline number. Leave empty to keep it.
- Mobile phone (`mobile`, text): The mobile number. Leave empty to keep it.
- Website (`website`, text): The website address. Leave empty to keep it.
- Street (`street`, text): The street name, without the house number. Leave empty to keep it.
- House number (`house_number`, text): The house number. Leave empty to keep it.
- Postcode (`postcode`, text): The postcode. Leave empty to keep it.
- City (`city`, text): The city. Leave empty to keep it.
- Country (`country_id`, text): The country. Leave empty to keep it.
- Salutation (`salutation_id`, text): How to address them. Leave empty to keep it.
- Language (`language_id`, text): The language to write to them in. Leave empty to keep it.
- Birthday (`birthday`, date): A person's birthday. Leave empty to keep it.
- Groups (`group_ids`, list): The contact groups to put them in. Replaces their groups.
- Remarks (`remarks`, text): Notes about the contact. Leave empty to keep it.

**Outputs**

- `contact` (object): The contact

**Example output**

```json
{
  "contact": {
    "address": "",
    "address_addition": "",
    "birthday": "",
    "city": "Zurich",
    "contact_branch_ids": "",
    "contact_group_ids": "1",
    "contact_type_id": 2,
    "country_id": 1,
    "fax": "",
    "house_number": "",
    "id": 2,
    "is_lead": false,
    "language_id": 1,
    "mail": "anna@example.com",
    "mail_second": "",
    "name_1": "Muster",
    "name_2": "Anna",
    "nr": "000002",
    "owner_id": 1,
    "phone_fixed": "",
    "phone_fixed_second": "",
    "phone_mobile": "",
    "postcode": "8000",
    "remarks": "",
    "salutation_id": 1,
    "skype_name": "",
    "street_name": "",
    "title_id": 1,
    "updated_at": "2026-11-17 10:00:00",
    "url": "",
    "user_id": 1
  }
}
```

### Update project

Change a project. Fields left empty keep what is there.

**Inputs**

- Project (`project_id`, text, required): The project. Pick one, or give its id from an earlier step.
- Name (`name`, text): The project's name. Leave empty to keep it.
- Contact (`contact_id`, text): The customer the project is for. Leave empty to keep it.
- Project type (`project_type_id`, text): Internal or customer project, or one you made. Leave empty to keep it.
- Status (`state`, text): Leave empty to keep it. One of: `open`, `active`, `archived`.
- Start date (`start_date`, date): When the project starts. Leave empty to keep it.
- End date (`end_date`, date): When the project ends. Leave empty to keep it.
- Comment (`comment`, text): Notes about the project. Leave empty to keep it.

**Outputs**

- `project` (object): The project

**Example output**

```json
{
  "project": {
    "comment": "",
    "contact_id": 2,
    "contact_sub_id": 1,
    "end_date": "",
    "id": 4,
    "name": "Website relaunch",
    "nr": "000004",
    "pr_budget_type_amount": 1,
    "pr_budget_type_id": 1,
    "pr_invoice_type_amount": 1,
    "pr_invoice_type_id": 1,
    "pr_project_type_id": 2,
    "pr_state_id": 1,
    "start_date": "",
    "user_id": 1,
    "uuid": ""
  }
}
```

### Update task

Change a task. Fields left empty keep what is there.

**Inputs**

- Task ID (`task_id`, text, required): The task's id, from 'List tasks' or an earlier step.
- Subject (`subject`, text): What needs doing. Leave empty to keep it.
- Details (`info`, text): More about the task. Leave empty to keep it.
- Due date (`finish_date`, date): When it is due. Leave empty to keep it.
- Status (`status`, text): Leave empty to keep it. One of: `open`, `done`.
- Priority (`priority`, text): How urgent it is. Leave empty to keep it. One of: `none`, `low`, `normal`, `high`, `very_high` (Very high).
- Contact (`contact_id`, text): The contact it is about. Leave empty to keep it.
- Project (`project_id`, text): The project it belongs to. Leave empty to keep it.

**Outputs**

- `task` (object): The task

**Example output**

```json
{
  "task": {
    "communication_kind_id": 1,
    "contact_id": 1,
    "finish_date": "",
    "has_reminder": "false",
    "id": 5,
    "info": "",
    "place": "",
    "project_id": 1,
    "sub_contact_id": 1,
    "subject": "Call the customer",
    "todo_priority_id": 3,
    "todo_status_id": 1,
    "user_id": 1
  }
}
```
