Docs
Workspace

Quotes, Bills, Budgets and Journals

Read the rest of your organisation's books (quotes, supplier bills, budgets and posted journals) from your own systems.

Preview· P9For developers

This is a published preview. Names and fields may still change before general availability; changes will be listed in the changelog.

Alongside invoices, the API reads the rest of the books. Every operation here needs finance:read, takes legal_entity_id when the organisation keeps books for more than one legal entity, and returns documents newest first.

A single quote, bill or budget comes with its lines, taxes and history. A document your key can't see doesn't exist for it (not_found). Amounts are whole minor units with their currency, and states are named; see how Workspace objects look.

Quotes

What your organisation has offered a customer, with its revisions. A quote that's accepted can become an invoice or start a project in Agoo; sending, accepting and converting happen there, not through the API.

Bills

What your suppliers have asked you to pay. kind is bill, or credit for a supplier's credit note. state is one of:

stateMeaning
draftRecorded, not yet sent for approval.
pending_approvalWaiting for someone to approve it for payment.
approvedApproved for payment.
voidVoided.

What's still owed is total_minor - paid_minor - credited_minor. Approving and paying a bill are done by people in Agoo, never through the API.

Budgets

The budgets your organisation plans against, with their lines. Read only.

Journals

Posted journals: what entered the books, each with its source and what it reverses or was reversed by. kind is effect (posted from its source document, such as an issued invoice), manual (a reviewed manual journal) or reversal.

Journals page by date: pass the last journal's posting date as before_date and its ID as before_id to get the next page. There's no operation to post a journal: the books post from their sources, and a manual journal is reviewed and posted by a person in Agoo. Each journal keeps the version of the rule it was posted under for good (see versioning).

Webhooks and the change feed

bill.created, bill.updated, bill.approved, bill.voided and journal.posted tell you as things happen (event catalogue). To keep a full copy, take a snapshot with quotes, bills and journals and follow the feed.

On this page