First-party app
Quaderno

Quaderno

Create invoices, credit notes and expenses, manage contacts and products, and calculate sales tax with Quaderno.

stable Finance & AccountingCommerce & Payments

About

Quaderno ships in the w6w first-party pack. It declares 24 actions, 3 health checks, and the host runs its code in a sandbox that never sees the credential.

App id
io.w6w.quaderno
Version
0.1.0
Author
w6w
Licence
MIT
Categories
Finance & Accounting · Commerce & Payments

Overview

Quaderno handles tax-compliant billing: it works out the right VAT, GST or sales tax for each sale and issues the invoice. This app lets a workflow manage customers and vendors (contacts), create, fetch, list, email, void and record payments on invoices, and raise credit notes to refund them.

It also creates and lists expenses and estimates (Quaderno calls them proformas), reads the product catalog, and calls the tax calculator on its own to get the rate and tax amount for a sale to any location before an invoice exists. Webhook endpoints can be listed.

Connects with an API key and the account name from your Quaderno URL (acme.quadernoapp.com). Quaderno limits calls to 100 per 15 seconds.

Build with Quaderno

Three routes to the same 24 actions. The Workflow tab is generated from Quaderno's own manifest and carries its real ids, so it is copy-pasteable; the Code and CLI examples are the same call for any action on any app, so every app-specific value in them is a blank you fill in.

Create Contact

contact-create

Create a customer or vendor contact.

Delete Contact

contact-delete

Permanently delete a contact. This cannot be undone.

Get Contact

contact-get

Fetch a single contact by ID.

List Contacts

contact-list

List contacts, newest first. Optionally filter by name, email or tax ID.

Update Contact

contact-update

Update a contact. Fields left blank are unchanged.

Create Credit Note

credit-create

Refund an invoice by issuing a credit note against it.

Get Credit Note

credit-get

Fetch a single credit note by ID.

List Credit Notes

credit-list

List credit notes, newest first.

Create Estimate

estimate-create

Create an estimate (Quaderno calls them proformas).

Get Estimate

estimate-get

Fetch a single estimate (proforma) by ID.

List Estimates

estimate-list

List estimates (Quaderno calls them proformas), newest first.

Create Expense

expense-create

Record an expense from a provider (the contact).

Get Expense

expense-get

Fetch a single expense by ID.

List Expenses

expense-list

List expenses, newest first, with optional filters.

Create Invoice

invoice-create

Create an invoice. Quaderno calculates the taxes. Optionally record a full payment at creation.

Deliver Invoice

invoice-deliver

Email the invoice to the customer using the account's invoice template. The contact needs an email address.

Get Invoice

invoice-get

Fetch a single invoice by ID.

List Invoices

invoice-list

List invoices, newest first, with optional filters.

Record Invoice Payment

invoice-record-payment

Record a payment against an invoice.

Void Invoice

invoice-void

Void an invoice. A reason is required.

Get Item

item-get

Fetch a single product (item) by ID.

List Items

item-list

List products (items) in the catalog, newest first.

Calculate Tax

tax-calculate

Calculate the tax rate and amount for a sale to a given location.

List Webhooks

webhook-list

List the account's webhook endpoints.

A workflow step names the app and the action, and the editor fills in the connection when you pick one. This is the Step shape from the workflow spec, carrying Quaderno's real ids.

{
  "manifestVersion": "2",
  "name": "quaderno-example",
  "steps": [
    {
      "id": "contact-create",
      "uses": {
        "app": "io.w6w.quaderno",
        "action": "contact-create",
        "connection": "conn_YOUR_CONNECTION_ID"
      },
      "with": {
        "firstName": "<firstName>"
      }
    }
  ]
}

Here are some of the things you can do

  • Create Contact

    perform
    contact-create
  • Get Contact

    read
    contact-get
  • List Contacts

    search
    contact-list
  • Update Contact

    perform
    contact-update
  • Create Credit Note

    perform
    credit-create

+19 more actions available

Every app-specific value here is a blank you have to fill in. An app action is reached through the connection that authenticates it, so the address is a connection id, not the app id — and connections belong to your account, so a public page cannot know yours. Create one for Quaderno, then fill in the three blanks: conn_YOUR_CONNECTION_ID, the action key, and the parameters that action declares. The call itself is real — the shape is transcribed from the studio's own snippet builder, which prints the same kind of blanks — but nothing in it is specific to Quaderno. The Workflow tab is where this app's real ids are.

Install
npm install @w6w/sdk
yarn add @w6w/sdk
pnpm add @w6w/sdk
deno add npm:@w6w/sdk
Code
import { W6wClient, isActionRun } from "@w6w/sdk";

// Reads W6W_BASE_URL and W6W_TOKEN from the environment when omitted.
const client = new W6wClient();

const envelope = await client.run({
  urn: "conn_YOUR_CONNECTION_ID",
  action: "contact-create",
  payload: {
    firstName: "<value>",
    // kind: "<value>",
    // lastName: "<value>",
    // email: "<value>",
    // phone: "<value>",
    // country: "<value>",
    // region: "<value>",
    // city: "<value>",
    // postalCode: "<value>",
    // streetLine1: "<value>",
    // streetLine2: "<value>",
    // taxId: "<value>",
    // taxStatus: "<value>",
    // language: "<value>",
    // web: "<value>",
    // notes: "<value>",
    // processorId: "<value>",
  },
});

if (isActionRun(envelope)) console.log(envelope.value);
Install the CLI
npm install -g @w6w/cli
CLI
w6w run conn_YOUR_CONNECTION_ID --action contact-create --payload '{"firstName":"<value>"}'

Give an AI agent Quaderno — without giving it Quaderno's credentials. One MCP endpoint exposes every app, function and workflow the caller is entitled to, as tools it can discover and run. Access is granted per team while we onboard.

One tool call
{
  "name": "w6w_invoke",
  "arguments": {
    "ref": "app:io.w6w.quaderno#contact-create",
    "input": {
      "firstName": "<firstName>"
    }
  }
}

Every tool names its target with a single ref. The app: form above doesn't name a connection at all — the host resolves which of the caller's Quaderno connections to sign with, and refuses rather than guesses when the answer is ambiguous.

What the agent gets

Credentials it can't read

The token is attached host-side, at the moment of the call. It is never a tool argument, never in the model's context, and never in a transcript — so a prompt injection has nothing to exfiltrate.

A tool surface scoped to the caller

Tools are derived per end user from what that person has actually connected and is entitled to — not one shared bot identity carrying the union of everyone's access.

A durable workflow in one call

Multi-step work runs on the workflow engine and returns a run handle the agent can poll — retries, branching and state survive the conversation that started them.

Health-aware discovery

Quaderno's declared health checks are on the surface too, so an agent can tell "the vendor is down" from "your credential expired" before it burns a retry on either.

The MCP surface is part of the hosted platform. Quaderno itself is MIT, and the runtime that executes it is source-available (FSL).

Request MCP access

Health checks

Quaderno declares its own checks, so its health is a property of the app rather than something the host guesses at.

service

Quaderno API status

The `Quaderno APIs` component on quaderno.statuspage.io.

quota

API rate-limit headroom

Calls remaining in the current 15-second window, from `X-RateLimit-*` on `/ping`.

dependency

Account host reachable

Unauthenticated request to this connection's Quaderno host. A JSON `401` passes — it proves the API is answering; credential validity is the `auth:*` check's job.