Quotes, Bills, Budgets and Journals
Read the rest of your organisation's books (quotes, supplier bills, budgets and posted journals) from your own systems.
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.
| What | List | One |
|---|---|---|
| Quotes | GET/quotes | GET/quotes/{id} |
| Bills | GET/bills | GET/bills/{id} |
| Budgets | GET/budgets | GET/budgets/{id} |
| Journals | GET/journals | GET/journals/{id} |
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:
state | Meaning |
|---|---|
draft | Recorded, not yet sent for approval. |
pending_approval | Waiting for someone to approve it for payment. |
approved | Approved for payment. |
void | Voided. |
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.