Skip to content

Bill.approved

Emitted each time a Bill is approved.

Bill.approve emits Bill.approved when it completes on a Bill.

PropertyValue
Emitted byBill.approve
NounBill
MovesBill received to approved
WakesNone.

Payload

Each delivery is an Event record. data holds what Bill.approve returns, and previous holds the state it left.

FieldTypeRequiredDescription
namestringrequiredBill.approved.
atdatetimerequiredWhen it happened.
seqintegerIts position in the namespace, one more than the Event before; any seq is a cursor into the history.
datajsonrequiredThe Thing as the Action left it.
data.billBillrequiredThe approved Bill, scheduled for its due date.
data.bill.organizationOrganizationrequiredThe Organization the Startup owes.
data.bill.amountmoneyrequiredWhat the Bill asks for, in its currency.
data.bill.dueOndaterequiredThe date payment is due; an approved Bill is paid on it.
data.bill.accountstringThe chart-of-accounts code it is coded to, such as expense.hosting.
data.bill.statusstringrequiredWhere the Bill stands; only an approved Bill is paid.
data.bill.fileFileThe File the Bill arrived as: an email attachment or an upload.
data.previous.statusstringrequiredThe status before this Event: received.

Example

JSON
{
  "$id": "https://api.sb/routewise.dev/events/event_1",
  "$type": "Event",
  "name": "Bill.approved",
  "at": "2026-10-22T12:00:00Z",
  "data": {
    "bill": {
      "$id": "https://api.sb/routewise.dev/bills/bill_1",
      "$type": "Bill",
      "organization": "organization_1",
      "amount": {
        "amount": 25,
        "currency": "USD"
      },
      "dueOn": "2026-10-22",
      "account": "expense.hosting",
      "status": "approved",
      "file": "file_1"
    },
    "previous": {
      "status": "received"
    }
  },
  "seq": 1
}