quaderno integration.
There is no shared host. Every account answers on its own subdomain, so
the plugin needs the account name as a second credential: set
quaderno({ account: 'acme' }) or store it with keys.set_account_name. A
key alone can find its account through authorization, whose identity.href
is that account’s base URL.
Documents are legal records. Quaderno cannot delete an invoice once issued,
because tax law requires keeping it: invoices.void reverses it by recording
an offset payment and issuing a credit note beside it, and void_reason is
required. Creating any invoice, receipt or credit note consumes a document
number. A credit note is issued against an existing invoice (invoice_id),
and a receipt needs a payment_method because it records a sale that is
already paid.
The deliver operations email a document to the address on file for its
contact. They answer delivered: true and no document, and they are never
retried, because a second call sends a second email.
Lists answer a bare array, not an envelope. Page with created_before,
passing the previous page’s next_created_before, which is null on the last
page. No route here takes a cursor parameter.
A missing record answers 401, not 404, and so does a wrong key. The plugin
reads the message to tell them apart, so a bad id is reported as
not_found_or_denied rather than as an auth failure.
What you get:
- 48 typed API operations
Setup
1
Install
2
Add the plugin
corsair.ts
multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.3
Choose authentication
- API Key (Recommended)
No setup required yet. When you make your first request as a tenant, Corsair prompts for the API key.More: API Key
4
Connect a tenant
Mint a connect link and send the tenant to it. Hub hosts the page and delivers the result to your app — see Connect / OAuth.
Example API calls
List outstanding invoicesWhat’s next
API reference
Every
quaderno.api.* operation with input and output types.Connect / OAuth
createLink, Hub delivery, and tenant connect flows.
Use with agents
Expose this plugin’s operations as MCP tools.