# Quaderno

> Work with your Quaderno sales tax and invoicing: manage contacts and products, issue, email, pay and void invoices, read credit notes, record expenses, calculate the tax on a sale, validate tax numbers and manage webhooks.

App · 30 actions. Web page: https://docs.lodol.com/docs/integrations/quaderno

## Actions

### Calculate tax

Work out the tax rate for a sale from the customer's address and a tax class, and the tax and total if an amount is given. It only applies tax where your account is registered; elsewhere the status says why the rate is 0.

**Inputs**

- Customer country (`to_country`, text, required): Where the customer is. One of: `AF` (Afghanistan (AF)), `AX` (Åland Islands (AX)), `AL` (Albania (AL)), `DZ` (Algeria (DZ)), `AD` (Andorra (AD)), `AO` (Angola (AO)), `AI` (Anguilla (AI)), `AQ` (Antarctica (AQ)), `AG` (Antigua & Barbuda (AG)), `AR` (Argentina (AR)), and 239 more.
- Customer postal code (`to_postal_code`, text): The customer's ZIP or postal code.
- Customer city (`to_city`, text): Recommended for US sales tax.
- Customer street (`to_street`, text): Recommended for US sales tax.
- Amount (`amount`, number): The sale's amount. Give it to also get the tax amount and total. At least 0.
- Currency (`currency`, text): A three-letter code such as EUR. Defaults to your account's.
- Tax class (`tax_code`, text): Which tax rules apply. Defaults to your account's. One of: `standard` (Standard goods and services), `consulting`, `eservice` (Electronic services), `ebook` (E-books), `saas` (Software as a service), `reduced` (Reduced rate), `exempt`.
- Taxes (`tax_behavior`, text): Whether the amount already includes tax. Defaults to added on top. One of: `exclusive` (Added on top of the price), `inclusive` (Included in the price).
- Type (`product_type`, text): A service or a physical good. Defaults to your account's. One of: `service`, `good` (Physical good).
- Customer tax ID (`tax_id`, text): A business customer's VAT or GST number, which can switch to reverse charge.
- Seller country (`from_country`, text): Defaults to your account's country. One of: `AF` (Afghanistan (AF)), `AX` (Åland Islands (AX)), `AL` (Albania (AL)), `DZ` (Algeria (DZ)), `AD` (Andorra (AD)), `AO` (Angola (AO)), `AI` (Anguilla (AI)), `AQ` (Antarctica (AQ)), `AG` (Antigua & Barbuda (AG)), `AR` (Argentina (AR)), and 239 more.
- Seller postal code (`from_postal_code`, text): Defaults to your account's postal code.
- Date of sale (`date_of_sale`, date): Defaults to today.

**Outputs**

- `tax_rate` (object): The tax rate and its status

**Example output**

```json
{
  "tax_rate": {
    "additional_name": null,
    "additional_rate": null,
    "additional_tax_amount": null,
    "additional_taxable_part": null,
    "city": "Madrid",
    "country": "ES",
    "county": null,
    "currency": "EUR",
    "name": "VAT",
    "notes": null,
    "notice": null,
    "product_type": "service",
    "rate": 21.0,
    "region": null,
    "status": "taxable",
    "subtotal": 100.0,
    "tax_amount": 21.0,
    "tax_behavior": "exclusive",
    "tax_code": "consulting",
    "taxable_part": 100.0,
    "total_amount": 121.0
  }
}
```

### Create contact

Create a customer or vendor. The country and postal code decide the taxes on their invoices.

**Inputs**

- First name or company name (`first_name`, text, required): A person's first name, or the company's name for a company.
- Kind (`contact_kind`, text): A person or a company. Defaults to person. One of: `person`, `company`.
- Last name (`last_name`, text): For a person. Leave empty for a company.
- Contact person (`contact_person`, text): For a company: who to address.
- Email (`email`, text): The contact's email address. Needed to email invoices.
- Phone (`phone`, text): The contact's phone number.
- Website (`web`, text): The contact's website.
- Address line 1 (`street_line_1`, text): Street address or PO box.
- Address line 2 (`street_line_2`, text): Apartment, suite, unit or building.
- City (`city`, text): City, town or village.
- State or region (`region`, text): State, province or region.
- Postal code (`postal_code`, text): ZIP or postal code. Quaderno uses it to work out taxes.
- Country (`country`, text): The contact's country. Quaderno uses it to work out taxes. One of: `AF` (Afghanistan (AF)), `AX` (Åland Islands (AX)), `AL` (Albania (AL)), `DZ` (Algeria (DZ)), `AD` (Andorra (AD)), `AO` (Angola (AO)), `AI` (Anguilla (AI)), `AQ` (Antarctica (AQ)), `AG` (Antigua & Barbuda (AG)), `AR` (Argentina (AR)), and 239 more.
- Tax ID (`tax_id`, text): VAT, GST or other tax number. Quaderno checks EU VAT, ABN and NZBN numbers.
- Tax status (`tax_status`, text): Taxable (default), exempt, or reverse charge. One of: `taxable`, `exempt`, `reverse` (Reverse charge).
- Notes (`notes`, text): Internal notes about the contact.

**Outputs**

- `contact` (object): The contact

**Example output**

```json
{
  "contact": {
    "city": "Madrid",
    "contact_person": null,
    "country": "ES",
    "created_at": 1794930364,
    "department": null,
    "email": "billing@example.com",
    "first_name": "Acme Ltd",
    "full_name": "Acme Ltd",
    "id": 9811402,
    "kind": "company",
    "language": "EN",
    "last_name": null,
    "notes": null,
    "permalink": "https://acme.quadernoapp.com/billing/abc",
    "phone_1": "+34600000000",
    "postal_code": "28001",
    "processor": null,
    "processor_id": null,
    "region": null,
    "street_line_1": "Calle 1",
    "street_line_2": null,
    "tax_id": null,
    "tax_status": "taxable",
    "web": null
  }
}
```

### Create expense

Record an expense, optionally for a vendor and already paid.

**Inputs**

- Vendor (`contact_id`, text): The contact you paid. Pick one, or give its id.
- First line description (`description`, text): What the first line is for, shown on the document.
- First line quantity (`quantity`, number): How many. Defaults to 1. At least 0.
- First line unit price (`unit_price`, number): The price of one, before tax, in the document's currency. At least 0.
- First line product (`product_code`, text): A product's code, to record sales per product.
- First line tax class (`tax_class`, text): Which tax rules apply. Leave empty for your account's default. One of: `standard` (Standard goods and services), `consulting`, `eservice` (Electronic services), `ebook` (E-books), `saas` (Software as a service), `reduced` (Reduced rate).
- More lines (`more_items`, list): Further lines, as a list of objects with description and unit_price, and optionally quantity, product_code, tax_class and discount_rate (0 to 100).
- Currency (`currency`, text): A three-letter code such as EUR. Defaults to your account's.
- Issue date (`issue_date`, date): Defaults to today.
- Purchase order number (`po_number`, text): A purchase order number for reference.
- Subject (`subject`, text): A short summary shown on the document.
- Notes (`notes`, text): Notes about the document.
- Payment details (`payment_details`, text): How the customer can pay, shown on the document.
- Tags (`tags`, text): Tags separated by commas.
- Already paid by (`payment_method`, text): Record the full amount as paid with this method. Leave empty if unpaid. One of: `credit_card` (Credit card), `cash`, `wire_transfer` (Wire transfer), `direct_debit` (Direct debit), `check`, `paypal`, `iou`, `other`.

**Outputs**

- `expense` (object): The expense

**Example output**

```json
{
  "expense": {
    "blocked": false,
    "city": "Madrid",
    "contact": {
      "contact_person": null,
      "email": "billing@example.com",
      "full_name": "Acme Ltd",
      "id": 9811402,
      "kind": "company",
      "permalink": "https://acme.quadernoapp.com/billing/abc",
      "phone_1": null,
      "tax_id": null,
      "tax_status": "taxable"
    },
    "country": "ES",
    "created_at": 1794930371,
    "currency": "EUR",
    "custom_metadata": {},
    "discount_cents": 0,
    "due_date": null,
    "exchange_rate": 1.0989,
    "id": 632094,
    "issue_date": "2026-11-17",
    "items": [
      {
        "description": "Consulting, March",
        "discount_cents": 0,
        "gross_amount_cents": 20000,
        "id": 854888,
        "product_code": null,
        "quantity": 2.0,
        "subtotal_cents": 20000,
        "tax_1_country": "ES",
        "tax_1_name": "VAT",
        "tax_1_rate": 21.0,
        "tax_1_region": null,
        "tax_1_transaction_type": "consulting",
        "tax_2_country": null,
        "tax_2_name": null,
        "tax_2_rate": null,
        "tax_2_region": null,
        "tax_2_transaction_type": "consulting",
        "unit_price_cents": 10000
      }
    ],
    "notes": null,
    "number": null,
    "payment_details": null,
    "payments": [],
    "po_number": null,
    "postal_code": "28001",
    "region": null,
    "state": "outstanding",
    "street_line_1": "Calle 1",
    "street_line_2": null,
    "subject": null,
    "subtotal_cents": 20000,
    "tag_list": [],
    "tax_id": null,
    "taxes": [
      {
        "amount_cents": 4200,
        "country": "ES",
        "county": null,
        "label": "VAT",
        "rate": 21.0,
        "region": null,
        "transaction_type": "consulting"
      }
    ],
    "total_cents": 24200,
    "url": "https://acme.quadernoapp.com/api/invoices/632092.json"
  }
}
```

### Create invoice

Issue an invoice to a contact. Quaderno works out the taxes from the contact's address and your registrations. An issued invoice is locked: it can be paid, emailed or voided, but not edited.

**Inputs**

- Contact (`contact_id`, text, required): The contact. Pick one, or give its id from an earlier step.
- First line description (`description`, text): What the first line is for, shown on the document.
- First line quantity (`quantity`, number): How many. Defaults to 1. At least 0.
- First line unit price (`unit_price`, number): The price of one, before tax, in the document's currency. At least 0.
- First line product (`product_code`, text): A product's code, to record sales per product.
- First line tax class (`tax_class`, text): Which tax rules apply. Leave empty for your account's default. One of: `standard` (Standard goods and services), `consulting`, `eservice` (Electronic services), `ebook` (E-books), `saas` (Software as a service), `reduced` (Reduced rate).
- More lines (`more_items`, list): Further lines, as a list of objects with description and unit_price, and optionally quantity, product_code, tax_class and discount_rate (0 to 100).
- Currency (`currency`, text): A three-letter code such as EUR. Defaults to your account's.
- Issue date (`issue_date`, date): Defaults to today.
- Due date (`due_date`, date): When payment is due. Leave empty for none.
- Purchase order number (`po_number`, text): A purchase order number for reference.
- Subject (`subject`, text): A short summary shown on the document.
- Notes (`notes`, text): Notes about the document.
- Payment details (`payment_details`, text): How the customer can pay, shown on the document.
- Tags (`tags`, text): Tags separated by commas.
- Already paid by (`payment_method`, text): Record the full amount as paid with this method. Leave empty if unpaid. One of: `credit_card` (Credit card), `cash`, `wire_transfer` (Wire transfer), `direct_debit` (Direct debit), `check`, `paypal`, `iou`, `other`.

**Outputs**

- `invoice` (object): The invoice

**Example output**

```json
{
  "invoice": {
    "blocked": true,
    "city": "Madrid",
    "contact": {
      "contact_person": null,
      "email": "billing@example.com",
      "full_name": "Acme Ltd",
      "id": 9811402,
      "kind": "company",
      "permalink": "https://acme.quadernoapp.com/billing/abc",
      "phone_1": null,
      "tax_id": null,
      "tax_status": "taxable"
    },
    "country": "ES",
    "created_at": 1794930371,
    "credits": [],
    "currency": "EUR",
    "custom_metadata": {},
    "delivery_state": null,
    "discount_cents": 0,
    "due_date": null,
    "exchange_rate": 1.0989,
    "id": 632092,
    "issue_date": "2026-11-17",
    "items": [
      {
        "description": "Consulting, March",
        "discount_cents": 0,
        "gross_amount_cents": 20000,
        "id": 854888,
        "product_code": null,
        "quantity": 2.0,
        "subtotal_cents": 20000,
        "tax_1_country": "ES",
        "tax_1_name": "VAT",
        "tax_1_rate": 21.0,
        "tax_1_region": null,
        "tax_1_transaction_type": "consulting",
        "tax_2_country": null,
        "tax_2_name": null,
        "tax_2_rate": null,
        "tax_2_region": null,
        "tax_2_transaction_type": "consulting",
        "unit_price_cents": 10000
      }
    ],
    "notes": null,
    "number": "I2026-00001",
    "payment_details": null,
    "payments": [],
    "pdf": "https://acme.quadernoapp.com/invoice/abc.pdf",
    "permalink": "https://acme.quadernoapp.com/invoice/abc",
    "po_number": null,
    "postal_code": "28001",
    "processor": null,
    "processor_id": null,
    "region": null,
    "state": "outstanding",
    "street_line_1": "Calle 1",
    "street_line_2": null,
    "subject": null,
    "subtotal_cents": 20000,
    "tag_list": [],
    "tax_id": null,
    "taxes": [
      {
        "amount_cents": 4200,
        "country": "ES",
        "county": null,
        "label": "VAT",
        "rate": 21.0,
        "region": null,
        "transaction_type": "consulting"
      }
    ],
    "total_cents": 24200,
    "url": "https://acme.quadernoapp.com/api/invoices/632092.json"
  }
}
```

### Create product

Create a product to track sales of and tax by.

**Inputs**

- Name (`name`, text, required): The product's name, shown to customers.
- Unit price (`unit_cost`, number, required): The price of one, in the product's currency. At least 0.
- Purchase type (`product_kind`, text): One-off purchase (default) or subscription. One of: `one_off` (One-off purchase), `subscription`.
- Product code (`code`, text): Your SKU for the product.
- Description (`description`, text): What the customer sees about the product.
- Currency (`currency`, text): A three-letter code such as EUR or USD. Defaults to your account's.
- Type (`product_type`, text): A service or a physical good. Taxes can differ. One of: `service`, `good` (Physical good).
- Tax class (`tax_class`, text): Which tax rules apply to the product. Defaults to your account's. One of: `standard` (Standard goods and services), `consulting`, `eservice` (Electronic services), `ebook` (E-books), `saas` (Software as a service), `reduced` (Reduced rate).
- Taxes (`tax_type`, text): Whether the price already includes tax. Defaults to added on top. One of: `excluded` (Added on top of the price), `included` (Included in the price).
- Stock (`stock`, number): How many are in stock, for a physical good. At least 0.

**Outputs**

- `product` (object): The product

**Example output**

```json
{
  "product": {
    "code": "CONSULT-1",
    "created_at": 1794930371,
    "currency": "EUR",
    "description": null,
    "id": 39051,
    "kind": "one_off",
    "name": "Consulting hour",
    "product_type": "service",
    "stock": null,
    "tax_based_on": "customer_country",
    "tax_class": "consulting",
    "tax_type": "excluded",
    "unit_cost": "100.0",
    "url": "https://acme.quadernoapp.com/api/items/39051"
  }
}
```

### Create webhook

Have Quaderno send the chosen events to a public https address. The address must answer a HEAD request with 200 OK when the webhook is created. The result includes the key each delivery is signed with.

**Inputs**

- Address (`url`, text, required): The public https:// address to send events to.
- Events (`events`, list, required): Which events to send. One or more of: `invoice.created` (Invoice created), `invoice.updated` (Invoice updated), `credit.created` (Credit note created), `credit.updated` (Credit note updated), `expense.created` (Expense created), `expense.updated` (Expense updated), `expense.deleted` (Expense deleted), `contact.created` (Contact created), `contact.updated` (Contact updated), `contact.deleted` (Contact deleted), and 9 more.

**Outputs**

- `webhook` (object): The webhook

**Example output**

```json
{
  "webhook": {
    "auth_key": "WtAh3ngAU1GhlMIvKcum9A",
    "created_at": "2026-11-17T15:46:41.000Z",
    "events_sent": 0,
    "events_types": [
      "invoice.created"
    ],
    "id": 1095,
    "last_error": null,
    "last_error_at": null,
    "last_sent_at": null,
    "updated_at": "2026-11-17T15:46:41.000Z",
    "url": "https://example.com/quaderno"
  }
}
```

### Delete contact

Delete a contact. Quaderno refuses if the contact has invoices, credit notes or expenses.

**Inputs**

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

**Outputs**

- `contact_id` (text): The id of the contact deleted
- `deleted` (true/false): Always true once deleted

**Example output**

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

### Delete expense

Delete an expense.

**Inputs**

- Expense ID (`expense_id`, text, required): The expense's id, from 'List expenses' or 'Create expense'.

**Outputs**

- `deleted` (true/false): Always true once deleted
- `expense_id` (text): The id of the expense deleted

**Example output**

```json
{
  "deleted": true,
  "expense_id": "632094"
}
```

### Delete product

Delete a product. Documents that already used it keep their lines.

**Inputs**

- Product (`product_id`, text, required): The product. Pick one, or give its id from an earlier step.

**Outputs**

- `deleted` (true/false): Always true once deleted
- `product_id` (text): The id of the product deleted

**Example output**

```json
{
  "deleted": true,
  "product_id": "39051"
}
```

### Delete webhook

Delete a webhook so Quaderno stops sending to it.

**Inputs**

- Webhook ID (`webhook_id`, text, required): The webhook's id, from 'List webhooks' or 'Create webhook'.

**Outputs**

- `deleted` (true/false): Always true once deleted
- `webhook_id` (text): The id of the webhook deleted

**Example output**

```json
{
  "deleted": true,
  "webhook_id": "1095"
}
```

### Email invoice

Email the invoice to its contact, who must have an email address. Returns the invoice with its delivery history.

**Inputs**

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

**Outputs**

- `invoice` (object): The invoice

**Example output**

```json
{
  "invoice": {
    "blocked": true,
    "city": "Madrid",
    "contact": {
      "contact_person": null,
      "email": "billing@example.com",
      "full_name": "Acme Ltd",
      "id": 9811402,
      "kind": "company",
      "permalink": "https://acme.quadernoapp.com/billing/abc",
      "phone_1": null,
      "tax_id": null,
      "tax_status": "taxable"
    },
    "country": "ES",
    "created_at": 1794930371,
    "credits": [],
    "currency": "EUR",
    "custom_metadata": {},
    "delivery_state": null,
    "discount_cents": 0,
    "due_date": null,
    "exchange_rate": 1.0989,
    "id": 632092,
    "issue_date": "2026-11-17",
    "items": [
      {
        "description": "Consulting, March",
        "discount_cents": 0,
        "gross_amount_cents": 20000,
        "id": 854888,
        "product_code": null,
        "quantity": 2.0,
        "subtotal_cents": 20000,
        "tax_1_country": "ES",
        "tax_1_name": "VAT",
        "tax_1_rate": 21.0,
        "tax_1_region": null,
        "tax_1_transaction_type": "consulting",
        "tax_2_country": null,
        "tax_2_name": null,
        "tax_2_rate": null,
        "tax_2_region": null,
        "tax_2_transaction_type": "consulting",
        "unit_price_cents": 10000
      }
    ],
    "notes": null,
    "number": "I2026-00001",
    "payment_details": null,
    "payments": [],
    "pdf": "https://acme.quadernoapp.com/invoice/abc.pdf",
    "permalink": "https://acme.quadernoapp.com/invoice/abc",
    "po_number": null,
    "postal_code": "28001",
    "processor": null,
    "processor_id": null,
    "region": null,
    "state": "outstanding",
    "street_line_1": "Calle 1",
    "street_line_2": null,
    "subject": null,
    "subtotal_cents": 20000,
    "tag_list": [],
    "tax_id": null,
    "taxes": [
      {
        "amount_cents": 4200,
        "country": "ES",
        "county": null,
        "label": "VAT",
        "rate": 21.0,
        "region": null,
        "transaction_type": "consulting"
      }
    ],
    "total_cents": 24200,
    "url": "https://acme.quadernoapp.com/api/invoices/632092.json"
  }
}
```

### Get contact

Get one contact with its address, tax ID and tax status.

**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": {
    "city": "Madrid",
    "contact_person": null,
    "country": "ES",
    "created_at": 1794930364,
    "department": null,
    "email": "billing@example.com",
    "first_name": "Acme Ltd",
    "full_name": "Acme Ltd",
    "id": 9811402,
    "kind": "company",
    "language": "EN",
    "last_name": null,
    "notes": null,
    "permalink": "https://acme.quadernoapp.com/billing/abc",
    "phone_1": "+34600000000",
    "postal_code": "28001",
    "processor": null,
    "processor_id": null,
    "region": null,
    "street_line_1": "Calle 1",
    "street_line_2": null,
    "tax_id": null,
    "tax_status": "taxable",
    "web": null
  }
}
```

### Get credit note

Get one credit note with its lines, taxes and the invoice it relates to.

**Inputs**

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

**Outputs**

- `credit` (object): The credit note

**Example output**

```json
{
  "credit": {
    "blocked": true,
    "city": "Madrid",
    "contact": {
      "contact_person": null,
      "email": "billing@example.com",
      "full_name": "Acme Ltd",
      "id": 9811402,
      "kind": "company",
      "permalink": "https://acme.quadernoapp.com/billing/abc",
      "phone_1": null,
      "tax_id": null,
      "tax_status": "taxable"
    },
    "country": "ES",
    "created_at": 1794930371,
    "currency": "EUR",
    "custom_metadata": {},
    "discount_cents": 0,
    "due_date": null,
    "exchange_rate": 1.0989,
    "id": 632093,
    "issue_date": "2026-11-17",
    "items": [
      {
        "description": "Consulting, March",
        "discount_cents": 0,
        "gross_amount_cents": 20000,
        "id": 854888,
        "product_code": null,
        "quantity": 2.0,
        "subtotal_cents": 20000,
        "tax_1_country": "ES",
        "tax_1_name": "VAT",
        "tax_1_rate": 21.0,
        "tax_1_region": null,
        "tax_1_transaction_type": "consulting",
        "tax_2_country": null,
        "tax_2_name": null,
        "tax_2_rate": null,
        "tax_2_region": null,
        "tax_2_transaction_type": "consulting",
        "unit_price_cents": 10000
      }
    ],
    "notes": null,
    "number": "C2026-00001",
    "payment_details": null,
    "payments": [],
    "pdf": "https://acme.quadernoapp.com/credit/abc.pdf",
    "permalink": "https://acme.quadernoapp.com/credit/abc",
    "po_number": null,
    "postal_code": "28001",
    "region": null,
    "related_document": {
      "id": 632092,
      "type": "Invoice"
    },
    "state": "outstanding",
    "street_line_1": "Calle 1",
    "street_line_2": null,
    "subject": null,
    "subtotal_cents": 20000,
    "tag_list": [],
    "tax_id": null,
    "taxes": [
      {
        "amount_cents": 4200,
        "country": "ES",
        "county": null,
        "label": "VAT",
        "rate": 21.0,
        "region": null,
        "transaction_type": "consulting"
      }
    ],
    "total_cents": 24200,
    "url": "https://acme.quadernoapp.com/api/invoices/632092.json"
  }
}
```

### Get expense

Get one expense with its lines, taxes and payments.

**Inputs**

- Expense ID (`expense_id`, text, required): The expense's id, from 'List expenses' or 'Create expense'.

**Outputs**

- `expense` (object): The expense

**Example output**

```json
{
  "expense": {
    "blocked": false,
    "city": "Madrid",
    "contact": {
      "contact_person": null,
      "email": "billing@example.com",
      "full_name": "Acme Ltd",
      "id": 9811402,
      "kind": "company",
      "permalink": "https://acme.quadernoapp.com/billing/abc",
      "phone_1": null,
      "tax_id": null,
      "tax_status": "taxable"
    },
    "country": "ES",
    "created_at": 1794930371,
    "currency": "EUR",
    "custom_metadata": {},
    "discount_cents": 0,
    "due_date": null,
    "exchange_rate": 1.0989,
    "id": 632094,
    "issue_date": "2026-11-17",
    "items": [
      {
        "description": "Consulting, March",
        "discount_cents": 0,
        "gross_amount_cents": 20000,
        "id": 854888,
        "product_code": null,
        "quantity": 2.0,
        "subtotal_cents": 20000,
        "tax_1_country": "ES",
        "tax_1_name": "VAT",
        "tax_1_rate": 21.0,
        "tax_1_region": null,
        "tax_1_transaction_type": "consulting",
        "tax_2_country": null,
        "tax_2_name": null,
        "tax_2_rate": null,
        "tax_2_region": null,
        "tax_2_transaction_type": "consulting",
        "unit_price_cents": 10000
      }
    ],
    "notes": null,
    "number": null,
    "payment_details": null,
    "payments": [],
    "po_number": null,
    "postal_code": "28001",
    "region": null,
    "state": "outstanding",
    "street_line_1": "Calle 1",
    "street_line_2": null,
    "subject": null,
    "subtotal_cents": 20000,
    "tag_list": [],
    "tax_id": null,
    "taxes": [
      {
        "amount_cents": 4200,
        "country": "ES",
        "county": null,
        "label": "VAT",
        "rate": 21.0,
        "region": null,
        "transaction_type": "consulting"
      }
    ],
    "total_cents": 24200,
    "url": "https://acme.quadernoapp.com/api/invoices/632092.json"
  }
}
```

### Get invoice

Get one invoice with its lines, taxes, payments and PDF link.

**Inputs**

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

**Outputs**

- `invoice` (object): The invoice

**Example output**

```json
{
  "invoice": {
    "blocked": true,
    "city": "Madrid",
    "contact": {
      "contact_person": null,
      "email": "billing@example.com",
      "full_name": "Acme Ltd",
      "id": 9811402,
      "kind": "company",
      "permalink": "https://acme.quadernoapp.com/billing/abc",
      "phone_1": null,
      "tax_id": null,
      "tax_status": "taxable"
    },
    "country": "ES",
    "created_at": 1794930371,
    "credits": [],
    "currency": "EUR",
    "custom_metadata": {},
    "delivery_state": null,
    "discount_cents": 0,
    "due_date": null,
    "exchange_rate": 1.0989,
    "id": 632092,
    "issue_date": "2026-11-17",
    "items": [
      {
        "description": "Consulting, March",
        "discount_cents": 0,
        "gross_amount_cents": 20000,
        "id": 854888,
        "product_code": null,
        "quantity": 2.0,
        "subtotal_cents": 20000,
        "tax_1_country": "ES",
        "tax_1_name": "VAT",
        "tax_1_rate": 21.0,
        "tax_1_region": null,
        "tax_1_transaction_type": "consulting",
        "tax_2_country": null,
        "tax_2_name": null,
        "tax_2_rate": null,
        "tax_2_region": null,
        "tax_2_transaction_type": "consulting",
        "unit_price_cents": 10000
      }
    ],
    "notes": null,
    "number": "I2026-00001",
    "payment_details": null,
    "payments": [],
    "pdf": "https://acme.quadernoapp.com/invoice/abc.pdf",
    "permalink": "https://acme.quadernoapp.com/invoice/abc",
    "po_number": null,
    "postal_code": "28001",
    "processor": null,
    "processor_id": null,
    "region": null,
    "state": "outstanding",
    "street_line_1": "Calle 1",
    "street_line_2": null,
    "subject": null,
    "subtotal_cents": 20000,
    "tag_list": [],
    "tax_id": null,
    "taxes": [
      {
        "amount_cents": 4200,
        "country": "ES",
        "county": null,
        "label": "VAT",
        "rate": 21.0,
        "region": null,
        "transaction_type": "consulting"
      }
    ],
    "total_cents": 24200,
    "url": "https://acme.quadernoapp.com/api/invoices/632092.json"
  }
}
```

### Get product

Get one product with its price, currency and tax class.

**Inputs**

- Product (`product_id`, text, required): The product. Pick one, or give its id from an earlier step.

**Outputs**

- `product` (object): The product

**Example output**

```json
{
  "product": {
    "code": "CONSULT-1",
    "created_at": 1794930371,
    "currency": "EUR",
    "description": null,
    "id": 39051,
    "kind": "one_off",
    "name": "Consulting hour",
    "product_type": "service",
    "stock": null,
    "tax_based_on": "customer_country",
    "tax_class": "consulting",
    "tax_type": "excluded",
    "unit_cost": "100.0",
    "url": "https://acme.quadernoapp.com/api/items/39051"
  }
}
```

### List contacts

List customers and vendors, newest first, optionally matching a name, email or tax ID. Gets one page; to see more, run it again with the next page cursor it gives.

**Inputs**

- Search (`q`, text): Only records matching this text. Leave empty for all.
- Page size (`limit`, number): How many to return, 1 to 100. Quaderno's default is 25. From 1 to 100.
- Next page cursor (`created_before`, text): The 'next_cursor' from an earlier page, to get the page after it.

**Outputs**

- `contacts` (list): The contacts
- `count` (number): How many on this page
- `has_more` (true/false): True if there are older records after this page
- `next_cursor` (text): Pass as 'Next page cursor' to get the page after this one; empty on the last page

**Example output**

```json
{
  "contacts": [
    {
      "city": "Madrid",
      "contact_person": null,
      "country": "ES",
      "created_at": 1794930364,
      "department": null,
      "email": "billing@example.com",
      "first_name": "Acme Ltd",
      "full_name": "Acme Ltd",
      "id": 9811402,
      "kind": "company",
      "language": "EN",
      "last_name": null,
      "notes": null,
      "permalink": "https://acme.quadernoapp.com/billing/abc",
      "phone_1": "+34600000000",
      "postal_code": "28001",
      "processor": null,
      "processor_id": null,
      "region": null,
      "street_line_1": "Calle 1",
      "street_line_2": null,
      "tax_id": null,
      "tax_status": "taxable",
      "web": null
    }
  ],
  "count": 1,
  "has_more": false,
  "next_cursor": ""
}
```

### List credit notes

List credit notes, newest first, filtered by search text, customer or issue date. Gets one page; to see more, run it again with the next page cursor it gives.

**Inputs**

- Search (`q`, text): Only records matching this text. Leave empty for all.
- Contact (`contact_id`, text): Only documents for this contact. Pick one, or give its id.
- Issued on or after (`from_date`, date): Only documents issued on or after this date.
- Issued on or before (`to_date`, date): Only documents issued on or before this date. Defaults to today.
- Page size (`limit`, number): How many to return, 1 to 100. Quaderno's default is 25. From 1 to 100.
- Next page cursor (`created_before`, text): The 'next_cursor' from an earlier page, to get the page after it.

**Outputs**

- `count` (number): How many on this page
- `credits` (list): The credit notes
- `has_more` (true/false): True if there are older records after this page
- `next_cursor` (text): Pass as 'Next page cursor' to get the page after this one; empty on the last page

**Example output**

```json
{
  "count": 1,
  "credits": [
    {
      "blocked": true,
      "city": "Madrid",
      "contact": {
        "contact_person": null,
        "email": "billing@example.com",
        "full_name": "Acme Ltd",
        "id": 9811402,
        "kind": "company",
        "permalink": "https://acme.quadernoapp.com/billing/abc",
        "phone_1": null,
        "tax_id": null,
        "tax_status": "taxable"
      },
      "country": "ES",
      "created_at": 1794930371,
      "currency": "EUR",
      "custom_metadata": {},
      "discount_cents": 0,
      "due_date": null,
      "exchange_rate": 1.0989,
      "id": 632093,
      "issue_date": "2026-11-17",
      "items": [
        {
          "description": "Consulting, March",
          "discount_cents": 0,
          "gross_amount_cents": 20000,
          "id": 854888,
          "product_code": null,
          "quantity": 2.0,
          "subtotal_cents": 20000,
          "tax_1_country": "ES",
          "tax_1_name": "VAT",
          "tax_1_rate": 21.0,
          "tax_1_region": null,
          "tax_1_transaction_type": "consulting",
          "tax_2_country": null,
          "tax_2_name": null,
          "tax_2_rate": null,
          "tax_2_region": null,
          "tax_2_transaction_type": "consulting",
          "unit_price_cents": 10000
        }
      ],
      "notes": null,
      "number": "C2026-00001",
      "payment_details": null,
      "payments": [],
      "pdf": "https://acme.quadernoapp.com/credit/abc.pdf",
      "permalink": "https://acme.quadernoapp.com/credit/abc",
      "po_number": null,
      "postal_code": "28001",
      "region": null,
      "related_document": {
        "id": 632092,
        "type": "Invoice"
      },
      "state": "outstanding",
      "street_line_1": "Calle 1",
      "street_line_2": null,
      "subject": null,
      "subtotal_cents": 20000,
      "tag_list": [],
      "tax_id": null,
      "taxes": [
        {
          "amount_cents": 4200,
          "country": "ES",
          "county": null,
          "label": "VAT",
          "rate": 21.0,
          "region": null,
          "transaction_type": "consulting"
        }
      ],
      "total_cents": 24200,
      "url": "https://acme.quadernoapp.com/api/invoices/632092.json"
    }
  ],
  "has_more": false,
  "next_cursor": ""
}
```

### List expenses

List expenses, newest first, filtered by search text, state, vendor or date. Gets one page; to see more, run it again with the next page cursor it gives.

**Inputs**

- Search (`q`, text): Only records matching this text. Leave empty for all.
- State (`state`, text): Only expenses in this state. One of: `outstanding`, `late`, `paid`.
- Contact (`contact_id`, text): Only documents for this contact. Pick one, or give its id.
- Issued on or after (`from_date`, date): Only documents issued on or after this date.
- Issued on or before (`to_date`, date): Only documents issued on or before this date. Defaults to today.
- Page size (`limit`, number): How many to return, 1 to 100. Quaderno's default is 25. From 1 to 100.
- Next page cursor (`created_before`, text): The 'next_cursor' from an earlier page, to get the page after it.

**Outputs**

- `count` (number): How many on this page
- `expenses` (list): The expenses
- `has_more` (true/false): True if there are older records after this page
- `next_cursor` (text): Pass as 'Next page cursor' to get the page after this one; empty on the last page

**Example output**

```json
{
  "count": 1,
  "expenses": [
    {
      "blocked": false,
      "city": "Madrid",
      "contact": {
        "contact_person": null,
        "email": "billing@example.com",
        "full_name": "Acme Ltd",
        "id": 9811402,
        "kind": "company",
        "permalink": "https://acme.quadernoapp.com/billing/abc",
        "phone_1": null,
        "tax_id": null,
        "tax_status": "taxable"
      },
      "country": "ES",
      "created_at": 1794930371,
      "currency": "EUR",
      "custom_metadata": {},
      "discount_cents": 0,
      "due_date": null,
      "exchange_rate": 1.0989,
      "id": 632094,
      "issue_date": "2026-11-17",
      "items": [
        {
          "description": "Consulting, March",
          "discount_cents": 0,
          "gross_amount_cents": 20000,
          "id": 854888,
          "product_code": null,
          "quantity": 2.0,
          "subtotal_cents": 20000,
          "tax_1_country": "ES",
          "tax_1_name": "VAT",
          "tax_1_rate": 21.0,
          "tax_1_region": null,
          "tax_1_transaction_type": "consulting",
          "tax_2_country": null,
          "tax_2_name": null,
          "tax_2_rate": null,
          "tax_2_region": null,
          "tax_2_transaction_type": "consulting",
          "unit_price_cents": 10000
        }
      ],
      "notes": null,
      "number": null,
      "payment_details": null,
      "payments": [],
      "po_number": null,
      "postal_code": "28001",
      "region": null,
      "state": "outstanding",
      "street_line_1": "Calle 1",
      "street_line_2": null,
      "subject": null,
      "subtotal_cents": 20000,
      "tag_list": [],
      "tax_id": null,
      "taxes": [
        {
          "amount_cents": 4200,
          "country": "ES",
          "county": null,
          "label": "VAT",
          "rate": 21.0,
          "region": null,
          "transaction_type": "consulting"
        }
      ],
      "total_cents": 24200,
      "url": "https://acme.quadernoapp.com/api/invoices/632092.json"
    }
  ],
  "has_more": false,
  "next_cursor": ""
}
```

### List invoices

List invoices, newest first, filtered by search text, state, customer or issue date. Gets one page; to see more, run it again with the next page cursor it gives.

**Inputs**

- Search (`q`, text): Only records matching this text. Leave empty for all.
- State (`state`, text): Only invoices in this state. One of: `outstanding`, `late`, `uncollectible`, `paid`.
- Contact (`contact_id`, text): Only documents for this contact. Pick one, or give its id.
- Issued on or after (`from_date`, date): Only documents issued on or after this date.
- Issued on or before (`to_date`, date): Only documents issued on or before this date. Defaults to today.
- Page size (`limit`, number): How many to return, 1 to 100. Quaderno's default is 25. From 1 to 100.
- Next page cursor (`created_before`, text): The 'next_cursor' from an earlier page, to get the page after it.

**Outputs**

- `count` (number): How many on this page
- `has_more` (true/false): True if there are older records after this page
- `invoices` (list): The invoices
- `next_cursor` (text): Pass as 'Next page cursor' to get the page after this one; empty on the last page

**Example output**

```json
{
  "count": 1,
  "has_more": false,
  "invoices": [
    {
      "blocked": true,
      "city": "Madrid",
      "contact": {
        "contact_person": null,
        "email": "billing@example.com",
        "full_name": "Acme Ltd",
        "id": 9811402,
        "kind": "company",
        "permalink": "https://acme.quadernoapp.com/billing/abc",
        "phone_1": null,
        "tax_id": null,
        "tax_status": "taxable"
      },
      "country": "ES",
      "created_at": 1794930371,
      "credits": [],
      "currency": "EUR",
      "custom_metadata": {},
      "delivery_state": null,
      "discount_cents": 0,
      "due_date": null,
      "exchange_rate": 1.0989,
      "id": 632092,
      "issue_date": "2026-11-17",
      "items": [
        {
          "description": "Consulting, March",
          "discount_cents": 0,
          "gross_amount_cents": 20000,
          "id": 854888,
          "product_code": null,
          "quantity": 2.0,
          "subtotal_cents": 20000,
          "tax_1_country": "ES",
          "tax_1_name": "VAT",
          "tax_1_rate": 21.0,
          "tax_1_region": null,
          "tax_1_transaction_type": "consulting",
          "tax_2_country": null,
          "tax_2_name": null,
          "tax_2_rate": null,
          "tax_2_region": null,
          "tax_2_transaction_type": "consulting",
          "unit_price_cents": 10000
        }
      ],
      "notes": null,
      "number": "I2026-00001",
      "payment_details": null,
      "payments": [],
      "pdf": "https://acme.quadernoapp.com/invoice/abc.pdf",
      "permalink": "https://acme.quadernoapp.com/invoice/abc",
      "po_number": null,
      "postal_code": "28001",
      "processor": null,
      "processor_id": null,
      "region": null,
      "state": "outstanding",
      "street_line_1": "Calle 1",
      "street_line_2": null,
      "subject": null,
      "subtotal_cents": 20000,
      "tag_list": [],
      "tax_id": null,
      "taxes": [
        {
          "amount_cents": 4200,
          "country": "ES",
          "county": null,
          "label": "VAT",
          "rate": 21.0,
          "region": null,
          "transaction_type": "consulting"
        }
      ],
      "total_cents": 24200,
      "url": "https://acme.quadernoapp.com/api/invoices/632092.json"
    }
  ],
  "next_cursor": ""
}
```

### List products

List products, newest first, optionally matching a name or code. Gets one page; to see more, run it again with the next page cursor it gives.

**Inputs**

- Search (`q`, text): Only records matching this text. Leave empty for all.
- Page size (`limit`, number): How many to return, 1 to 100. Quaderno's default is 25. From 1 to 100.
- Next page cursor (`created_before`, text): The 'next_cursor' from an earlier page, to get the page after it.

**Outputs**

- `count` (number): How many on this page
- `has_more` (true/false): True if there are older records after this page
- `next_cursor` (text): Pass as 'Next page cursor' to get the page after this one; empty on the last page
- `products` (list): The products

**Example output**

```json
{
  "count": 1,
  "has_more": false,
  "next_cursor": "",
  "products": [
    {
      "code": "CONSULT-1",
      "created_at": 1794930371,
      "currency": "EUR",
      "description": null,
      "id": 39051,
      "kind": "one_off",
      "name": "Consulting hour",
      "product_type": "service",
      "stock": null,
      "tax_based_on": "customer_country",
      "tax_class": "consulting",
      "tax_type": "excluded",
      "unit_cost": "100.0",
      "url": "https://acme.quadernoapp.com/api/items/39051"
    }
  ]
}
```

### List webhooks

List the account's webhooks with their addresses, events and signing keys.

**Inputs**: None.

**Outputs**

- `count` (number): How many
- `webhooks` (list): The webhooks

**Example output**

```json
{
  "count": 1,
  "webhooks": [
    {
      "auth_key": "WtAh3ngAU1GhlMIvKcum9A",
      "created_at": "2026-11-17T15:46:41.000Z",
      "events_sent": 0,
      "events_types": [
        "invoice.created"
      ],
      "id": 1095,
      "last_error": null,
      "last_error_at": null,
      "last_sent_at": null,
      "updated_at": "2026-11-17T15:46:41.000Z",
      "url": "https://example.com/quaderno"
    }
  ]
}
```

### Mark invoice uncollectible

Mark an unpaid invoice as uncollectible, for a debt you won't recover.

**Inputs**

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

**Outputs**

- `invoice` (object): The invoice

**Example output**

```json
{
  "invoice": {
    "blocked": true,
    "city": "Madrid",
    "contact": {
      "contact_person": null,
      "email": "billing@example.com",
      "full_name": "Acme Ltd",
      "id": 9811402,
      "kind": "company",
      "permalink": "https://acme.quadernoapp.com/billing/abc",
      "phone_1": null,
      "tax_id": null,
      "tax_status": "taxable"
    },
    "country": "ES",
    "created_at": 1794930371,
    "credits": [],
    "currency": "EUR",
    "custom_metadata": {},
    "delivery_state": null,
    "discount_cents": 0,
    "due_date": null,
    "exchange_rate": 1.0989,
    "id": 632092,
    "issue_date": "2026-11-17",
    "items": [
      {
        "description": "Consulting, March",
        "discount_cents": 0,
        "gross_amount_cents": 20000,
        "id": 854888,
        "product_code": null,
        "quantity": 2.0,
        "subtotal_cents": 20000,
        "tax_1_country": "ES",
        "tax_1_name": "VAT",
        "tax_1_rate": 21.0,
        "tax_1_region": null,
        "tax_1_transaction_type": "consulting",
        "tax_2_country": null,
        "tax_2_name": null,
        "tax_2_rate": null,
        "tax_2_region": null,
        "tax_2_transaction_type": "consulting",
        "unit_price_cents": 10000
      }
    ],
    "notes": null,
    "number": "I2026-00001",
    "payment_details": null,
    "payments": [],
    "pdf": "https://acme.quadernoapp.com/invoice/abc.pdf",
    "permalink": "https://acme.quadernoapp.com/invoice/abc",
    "po_number": null,
    "postal_code": "28001",
    "processor": null,
    "processor_id": null,
    "region": null,
    "state": "uncollectible",
    "street_line_1": "Calle 1",
    "street_line_2": null,
    "subject": null,
    "subtotal_cents": 20000,
    "tag_list": [],
    "tax_id": null,
    "taxes": [
      {
        "amount_cents": 4200,
        "country": "ES",
        "county": null,
        "label": "VAT",
        "rate": 21.0,
        "region": null,
        "transaction_type": "consulting"
      }
    ],
    "total_cents": 24200,
    "url": "https://acme.quadernoapp.com/api/invoices/632092.json"
  }
}
```

### Record invoice payment

Record a payment against an invoice. Once payments reach the invoice's total it turns paid. Returns the payment and the invoice as it now stands.

**Inputs**

- Invoice ID (`invoice_id`, text, required): The invoice's id, from 'List invoices' or 'Create invoice'.
- Amount (`amount`, number, required): The amount paid, in the invoice's currency (for example 12.50). At least 0.
- Payment method (`payment_method`, text): How it was paid. Defaults to other. One of: `credit_card` (Credit card), `cash`, `wire_transfer` (Wire transfer), `direct_debit` (Direct debit), `check`, `paypal`, `iou`, `other`.
- Payment date (`payment_date`, date): When it was paid. Defaults to today.

**Outputs**

- `invoice` (object): The invoice after the payment
- `payment` (object): The payment recorded

**Example output**

```json
{
  "invoice": {
    "blocked": true,
    "city": "Madrid",
    "contact": {
      "contact_person": null,
      "email": "billing@example.com",
      "full_name": "Acme Ltd",
      "id": 9811402,
      "kind": "company",
      "permalink": "https://acme.quadernoapp.com/billing/abc",
      "phone_1": null,
      "tax_id": null,
      "tax_status": "taxable"
    },
    "country": "ES",
    "created_at": 1794930371,
    "credits": [],
    "currency": "EUR",
    "custom_metadata": {},
    "delivery_state": null,
    "discount_cents": 0,
    "due_date": null,
    "exchange_rate": 1.0989,
    "id": 632092,
    "issue_date": "2026-11-17",
    "items": [
      {
        "description": "Consulting, March",
        "discount_cents": 0,
        "gross_amount_cents": 20000,
        "id": 854888,
        "product_code": null,
        "quantity": 2.0,
        "subtotal_cents": 20000,
        "tax_1_country": "ES",
        "tax_1_name": "VAT",
        "tax_1_rate": 21.0,
        "tax_1_region": null,
        "tax_1_transaction_type": "consulting",
        "tax_2_country": null,
        "tax_2_name": null,
        "tax_2_rate": null,
        "tax_2_region": null,
        "tax_2_transaction_type": "consulting",
        "unit_price_cents": 10000
      }
    ],
    "notes": null,
    "number": "I2026-00001",
    "payment_details": null,
    "payments": [
      {
        "amount_cents": 24200,
        "date": "2026-11-17",
        "id": 480090,
        "payment_method": "cash",
        "processor": null,
        "processor_id": null,
        "url": "https://acme.quadernoapp.com/api/invoices/632092/payments/480090.json"
      }
    ],
    "pdf": "https://acme.quadernoapp.com/invoice/abc.pdf",
    "permalink": "https://acme.quadernoapp.com/invoice/abc",
    "po_number": null,
    "postal_code": "28001",
    "processor": null,
    "processor_id": null,
    "region": null,
    "state": "paid",
    "street_line_1": "Calle 1",
    "street_line_2": null,
    "subject": null,
    "subtotal_cents": 20000,
    "tag_list": [],
    "tax_id": null,
    "taxes": [
      {
        "amount_cents": 4200,
        "country": "ES",
        "county": null,
        "label": "VAT",
        "rate": 21.0,
        "region": null,
        "transaction_type": "consulting"
      }
    ],
    "total_cents": 24200,
    "url": "https://acme.quadernoapp.com/api/invoices/632092.json"
  },
  "payment": {
    "amount_cents": 24200,
    "date": "2026-11-17",
    "id": 480090,
    "payment_method": "cash",
    "processor": null,
    "processor_id": null,
    "url": "https://acme.quadernoapp.com/api/invoices/632092/payments/480090.json"
  }
}
```

### Update contact

Change a contact's details. Only the fields given change.

**Inputs**

- Contact (`contact_id`, text, required): The contact. Pick one, or give its id from an earlier step.
- First name or company name (`first_name`, text): A new name. Leave empty to keep it.
- Kind (`contact_kind`, text): Change between person and company. Leave empty to keep it. One of: `person`, `company`.
- Last name (`last_name`, text): For a person. Leave empty for a company.
- Contact person (`contact_person`, text): For a company: who to address.
- Email (`email`, text): The contact's email address. Needed to email invoices.
- Phone (`phone`, text): The contact's phone number.
- Website (`web`, text): The contact's website.
- Address line 1 (`street_line_1`, text): Street address or PO box.
- Address line 2 (`street_line_2`, text): Apartment, suite, unit or building.
- City (`city`, text): City, town or village.
- State or region (`region`, text): State, province or region.
- Postal code (`postal_code`, text): ZIP or postal code. Quaderno uses it to work out taxes.
- Country (`country`, text): The contact's country. Quaderno uses it to work out taxes. One of: `AF` (Afghanistan (AF)), `AX` (Åland Islands (AX)), `AL` (Albania (AL)), `DZ` (Algeria (DZ)), `AD` (Andorra (AD)), `AO` (Angola (AO)), `AI` (Anguilla (AI)), `AQ` (Antarctica (AQ)), `AG` (Antigua & Barbuda (AG)), `AR` (Argentina (AR)), and 239 more.
- Tax ID (`tax_id`, text): VAT, GST or other tax number. Quaderno checks EU VAT, ABN and NZBN numbers.
- Tax status (`tax_status`, text): Taxable (default), exempt, or reverse charge. One of: `taxable`, `exempt`, `reverse` (Reverse charge).
- Notes (`notes`, text): Internal notes about the contact.

**Outputs**

- `contact` (object): The contact

**Example output**

```json
{
  "contact": {
    "city": "Madrid",
    "contact_person": null,
    "country": "ES",
    "created_at": 1794930364,
    "department": null,
    "email": "billing@example.com",
    "first_name": "Acme Ltd",
    "full_name": "Acme Ltd",
    "id": 9811402,
    "kind": "company",
    "language": "EN",
    "last_name": null,
    "notes": "Pays on time",
    "permalink": "https://acme.quadernoapp.com/billing/abc",
    "phone_1": "+34600000000",
    "postal_code": "28001",
    "processor": null,
    "processor_id": null,
    "region": null,
    "street_line_1": "Calle 1",
    "street_line_2": null,
    "tax_id": null,
    "tax_status": "taxable",
    "web": null
  }
}
```

### Update expense

Change an expense's date, reference, notes or tags. Only the fields given change.

**Inputs**

- Expense ID (`expense_id`, text, required): The expense's id, from 'List expenses' or 'Create expense'.
- Issue date (`issue_date`, date): A new issue date. Leave empty to keep it.
- Purchase order number (`po_number`, text): A purchase order number for reference.
- Subject (`subject`, text): A short summary shown on the document.
- Notes (`notes`, text): Notes about the document.
- Payment details (`payment_details`, text): How the customer can pay, shown on the document.
- Tags (`tags`, text): Tags separated by commas.

**Outputs**

- `expense` (object): The expense

**Example output**

```json
{
  "expense": {
    "blocked": false,
    "city": "Madrid",
    "contact": {
      "contact_person": null,
      "email": "billing@example.com",
      "full_name": "Acme Ltd",
      "id": 9811402,
      "kind": "company",
      "permalink": "https://acme.quadernoapp.com/billing/abc",
      "phone_1": null,
      "tax_id": null,
      "tax_status": "taxable"
    },
    "country": "ES",
    "created_at": 1794930371,
    "currency": "EUR",
    "custom_metadata": {},
    "discount_cents": 0,
    "due_date": null,
    "exchange_rate": 1.0989,
    "id": 632094,
    "issue_date": "2026-11-17",
    "items": [
      {
        "description": "Consulting, March",
        "discount_cents": 0,
        "gross_amount_cents": 20000,
        "id": 854888,
        "product_code": null,
        "quantity": 2.0,
        "subtotal_cents": 20000,
        "tax_1_country": "ES",
        "tax_1_name": "VAT",
        "tax_1_rate": 21.0,
        "tax_1_region": null,
        "tax_1_transaction_type": "consulting",
        "tax_2_country": null,
        "tax_2_name": null,
        "tax_2_rate": null,
        "tax_2_region": null,
        "tax_2_transaction_type": "consulting",
        "unit_price_cents": 10000
      }
    ],
    "notes": "Checked",
    "number": null,
    "payment_details": null,
    "payments": [],
    "po_number": null,
    "postal_code": "28001",
    "region": null,
    "state": "outstanding",
    "street_line_1": "Calle 1",
    "street_line_2": null,
    "subject": null,
    "subtotal_cents": 20000,
    "tag_list": [],
    "tax_id": null,
    "taxes": [
      {
        "amount_cents": 4200,
        "country": "ES",
        "county": null,
        "label": "VAT",
        "rate": 21.0,
        "region": null,
        "transaction_type": "consulting"
      }
    ],
    "total_cents": 24200,
    "url": "https://acme.quadernoapp.com/api/invoices/632092.json"
  }
}
```

### Update invoice

Change an issued invoice's notes, payment details, tags or metadata. Quaderno locks everything else once it is issued.

**Inputs**

- Invoice ID (`invoice_id`, text, required): The invoice's id, from 'List invoices' or 'Create invoice'.
- Notes (`notes`, text): New notes. Leave empty to keep them.
- Payment details (`payment_details`, text): New payment details. Leave empty to keep them.
- Tags (`tags`, text): Tags separated by commas. They replace the current tags.
- Metadata (`custom_metadata`, object): Your own keys and values to keep on the invoice.

**Outputs**

- `invoice` (object): The invoice

**Example output**

```json
{
  "invoice": {
    "blocked": true,
    "city": "Madrid",
    "contact": {
      "contact_person": null,
      "email": "billing@example.com",
      "full_name": "Acme Ltd",
      "id": 9811402,
      "kind": "company",
      "permalink": "https://acme.quadernoapp.com/billing/abc",
      "phone_1": null,
      "tax_id": null,
      "tax_status": "taxable"
    },
    "country": "ES",
    "created_at": 1794930371,
    "credits": [],
    "currency": "EUR",
    "custom_metadata": {},
    "delivery_state": null,
    "discount_cents": 0,
    "due_date": null,
    "exchange_rate": 1.0989,
    "id": 632092,
    "issue_date": "2026-11-17",
    "items": [
      {
        "description": "Consulting, March",
        "discount_cents": 0,
        "gross_amount_cents": 20000,
        "id": 854888,
        "product_code": null,
        "quantity": 2.0,
        "subtotal_cents": 20000,
        "tax_1_country": "ES",
        "tax_1_name": "VAT",
        "tax_1_rate": 21.0,
        "tax_1_region": null,
        "tax_1_transaction_type": "consulting",
        "tax_2_country": null,
        "tax_2_name": null,
        "tax_2_rate": null,
        "tax_2_region": null,
        "tax_2_transaction_type": "consulting",
        "unit_price_cents": 10000
      }
    ],
    "notes": "Paid by wire",
    "number": "I2026-00001",
    "payment_details": null,
    "payments": [],
    "pdf": "https://acme.quadernoapp.com/invoice/abc.pdf",
    "permalink": "https://acme.quadernoapp.com/invoice/abc",
    "po_number": null,
    "postal_code": "28001",
    "processor": null,
    "processor_id": null,
    "region": null,
    "state": "outstanding",
    "street_line_1": "Calle 1",
    "street_line_2": null,
    "subject": null,
    "subtotal_cents": 20000,
    "tag_list": [],
    "tax_id": null,
    "taxes": [
      {
        "amount_cents": 4200,
        "country": "ES",
        "county": null,
        "label": "VAT",
        "rate": 21.0,
        "region": null,
        "transaction_type": "consulting"
      }
    ],
    "total_cents": 24200,
    "url": "https://acme.quadernoapp.com/api/invoices/632092.json"
  }
}
```

### Update product

Change a product's name, price or tax settings. Only the fields given change.

**Inputs**

- Product (`product_id`, text, required): The product. Pick one, or give its id from an earlier step.
- Name (`name`, text): A new name. Leave empty to keep it.
- Unit price (`unit_cost`, number): A new price. Leave empty to keep it. At least 0.
- Product code (`code`, text): Your SKU for the product.
- Description (`description`, text): What the customer sees about the product.
- Currency (`currency`, text): A three-letter code such as EUR or USD. Defaults to your account's.
- Type (`product_type`, text): A service or a physical good. Taxes can differ. One of: `service`, `good` (Physical good).
- Tax class (`tax_class`, text): Which tax rules apply to the product. Defaults to your account's. One of: `standard` (Standard goods and services), `consulting`, `eservice` (Electronic services), `ebook` (E-books), `saas` (Software as a service), `reduced` (Reduced rate).
- Taxes (`tax_type`, text): Whether the price already includes tax. Defaults to added on top. One of: `excluded` (Added on top of the price), `included` (Included in the price).
- Stock (`stock`, number): How many are in stock, for a physical good. At least 0.

**Outputs**

- `product` (object): The product

**Example output**

```json
{
  "product": {
    "code": "CONSULT-1",
    "created_at": 1794930371,
    "currency": "EUR",
    "description": null,
    "id": 39051,
    "kind": "one_off",
    "name": "Consulting hour",
    "product_type": "service",
    "stock": null,
    "tax_based_on": "customer_country",
    "tax_class": "consulting",
    "tax_type": "excluded",
    "unit_cost": "120.0",
    "url": "https://acme.quadernoapp.com/api/items/39051"
  }
}
```

### Validate tax ID

Check whether a VAT, GST or other tax number is valid in a country.

**Inputs**

- Country (`country`, text, required): The country that issued the tax number. One of: `AF` (Afghanistan (AF)), `AX` (Åland Islands (AX)), `AL` (Albania (AL)), `DZ` (Algeria (DZ)), `AD` (Andorra (AD)), `AO` (Angola (AO)), `AI` (Anguilla (AI)), `AQ` (Antarctica (AQ)), `AG` (Antigua & Barbuda (AG)), `AR` (Argentina (AR)), and 239 more.
- Tax ID (`tax_id`, text, required): The tax number to check.

**Outputs**

- `country` (text): The country checked
- `tax_id` (text): The number checked
- `valid` (true/false): Whether the number is valid

**Example output**

```json
{
  "country": "DE",
  "tax_id": "DE811569869",
  "valid": true
}
```

### Void invoice

Cancel an invoice by issuing a credit note for it. Invoices can't be deleted, so this is how one is undone. It can't be reversed.

**Inputs**

- Invoice ID (`invoice_id`, text, required): The invoice's id, from 'List invoices' or 'Create invoice'.
- Reason (`reason`, text): Why the invoice is voided, kept on the credit note.

**Outputs**

- `invoice` (object): The invoice

**Example output**

```json
{
  "invoice": {
    "blocked": true,
    "city": "Madrid",
    "contact": {
      "contact_person": null,
      "email": "billing@example.com",
      "full_name": "Acme Ltd",
      "id": 9811402,
      "kind": "company",
      "permalink": "https://acme.quadernoapp.com/billing/abc",
      "phone_1": null,
      "tax_id": null,
      "tax_status": "taxable"
    },
    "country": "ES",
    "created_at": 1794930371,
    "credits": [
      {
        "id": 632093,
        "number": "C2026-00001",
        "total_cents": 24200
      }
    ],
    "currency": "EUR",
    "custom_metadata": {},
    "delivery_state": null,
    "discount_cents": 0,
    "due_date": null,
    "exchange_rate": 1.0989,
    "id": 632092,
    "issue_date": "2026-11-17",
    "items": [
      {
        "description": "Consulting, March",
        "discount_cents": 0,
        "gross_amount_cents": 20000,
        "id": 854888,
        "product_code": null,
        "quantity": 2.0,
        "subtotal_cents": 20000,
        "tax_1_country": "ES",
        "tax_1_name": "VAT",
        "tax_1_rate": 21.0,
        "tax_1_region": null,
        "tax_1_transaction_type": "consulting",
        "tax_2_country": null,
        "tax_2_name": null,
        "tax_2_rate": null,
        "tax_2_region": null,
        "tax_2_transaction_type": "consulting",
        "unit_price_cents": 10000
      }
    ],
    "notes": null,
    "number": "I2026-00001",
    "payment_details": null,
    "payments": [],
    "pdf": "https://acme.quadernoapp.com/invoice/abc.pdf",
    "permalink": "https://acme.quadernoapp.com/invoice/abc",
    "po_number": null,
    "postal_code": "28001",
    "processor": null,
    "processor_id": null,
    "region": null,
    "state": "paid",
    "street_line_1": "Calle 1",
    "street_line_2": null,
    "subject": null,
    "subtotal_cents": 20000,
    "tag_list": [],
    "tax_id": null,
    "taxes": [
      {
        "amount_cents": 4200,
        "country": "ES",
        "county": null,
        "label": "VAT",
        "rate": 21.0,
        "region": null,
        "transaction_type": "consulting"
      }
    ],
    "total_cents": 24200,
    "url": "https://acme.quadernoapp.com/api/invoices/632092.json"
  }
}
```
