Skip to content
Docs menu

Finance webhook events

The events Petawork Finance sends to your organisation's webhooks, when each fires, and exactly what each payload carries. Ids, amounts and status, never bank details or document contents.

View .md

Finance tells your other systems when something happens by sending an event to the webhooks your organisation set up in Settings > Webhooks. There is nothing else to switch on and nothing new that leaves Petawork: an event goes only to the endpoints you subscribed to that type, signed and retried like every other webhook (see the signature and retry rules). An organisation with no endpoint subscribed to a type has nothing recorded or sent for it.

Every Finance event type starts with finance.. Tick the ones you want when you add or edit an endpoint; they appear as "Finance: ...".

What a payload carries

  • Ids, amounts and status. The ids of the record and what it belongs to (entity, party), its status, dates, and amounts as a whole number of minor units sent as text ("12500" is 125.00 in a two-decimal currency) with the three-letter currency beside them.
  • chain_seq. The number of the event chain row that recorded the same change, so you can match an event to the audit trail.
  • Never more. No bank account number, nothing sealed in the vault, no token or secret, no document file or its extracted text, and no free text a person typed. The payload is checked against the fields listed below before it is sent. A field that is not on the list, or whose name looks sealed or secret, is dropped and one line naming the field (never its value) goes to the log; a payload missing a field marked required is not sent.

Sent exactly once

Each event is tied to the event chain row of the change that caused it and goes out after that change is saved. If the change is rolled back, nothing is sent. If the same change is announced twice, for instance because a request was retried, your endpoint still receives it once.

The events

Event When it fires Fields
finance.document.confirmed A person confirms a document in the inbox document_id*, entity_id, document_kind, party_id, status, amount_minor, currency
finance.bill.approved A supplier bill finishes its approval route bill_id*, entity_id, party_id, status, due_date, approval_request_id, amount_minor, currency
finance.bill.paid A supplier bill is paid in full bill_id*, entity_id, party_id, status, paid_at, payment_run_id, amount_minor, currency
finance.expense_report.approved An expense report finishes its approval route expense_report_id*, entity_id, member, status, approval_request_id, amount_minor, currency
finance.payment_run.released A payment run is released payment_run_id*, entity_id, status, item_count, released_at, amount_minor, currency
finance.payment_run.settled A released payment run settles payment_run_id*, entity_id, status, item_count, settled_at, amount_minor, currency
finance.invoice.issued A sales invoice is issued invoice_id*, entity_id, party_id, number, status, due_date, amount_minor, currency
finance.invoice.paid A sales invoice is paid in full invoice_id*, entity_id, party_id, status, paid_at, amount_minor, currency
finance.invoice.overdue A sales invoice passes its due date unpaid, once per invoice invoice_id*, entity_id, party_id, status, due_date, days_overdue, amount_minor, currency
finance.recon_run.completed A reconciliation run finishes recon_run_id*, entity_id, account_id, status, matched_count, unmatched_count, exception_count
finance.recon_case.opened A reconciliation case is opened for a difference recon_case_id*, recon_run_id, entity_id, kind, status, amount_minor, currency
finance.recon_case.recovered A reconciliation case is closed with money recovered recon_case_id*, recon_run_id, entity_id, kind, status, recovered_minor, currency
finance.exception.opened A new exception lands on the exceptions queue; raising the same problem again does not send it twice exception_id, kind, severity, module, risk_score, entity_id, subject_kind, subject_id, expected_minor, actual_minor, currency
finance.period.locked An accounting period of an entity is locked entity_id, period, status, locked_by, locked_at

A star marks a required field. Every payload also carries chain_seq.

Which events are live

The list above is the full set Finance sends. Each is sent by the module that owns the record, so an event starts arriving when its module is available in your organisation. Today these are sent: finance.exception.opened and finance.period.locked; with Capture, finance.document.confirmed; with Billing, finance.invoice.issued, finance.invoice.paid and finance.invoice.overdue; with Payables, finance.bill.approved; with Expenses, finance.expense_report.approved; with Payments, finance.payment_run.released, and from settlement finance.payment_run.settled and finance.bill.paid; with Reconciliation, finance.recon_run.completed, finance.recon_case.opened and finance.recon_case.recovered. The others follow as their modules arrive.

For agents

Events are an outbound feed, not a tool: there is no new MCP tool or route for them. Create the endpoint with the webhook routes in Admin API: observability and webhooks and list the Finance types in its events.