Bill.approved
Emitted each time a Bill is approved.
Bill.approve emits Bill.approved when it completes on a Bill.
| Property | Value |
|---|---|
| Emitted by | Bill.approve |
| Noun | Bill |
| Moves | Bill received to approved |
| Wakes | None. |
Payload
Each delivery is an Event record. data holds what Bill.approve returns, and previous holds the state it left.
| Field | Type | Required | Description |
|---|---|---|---|
name | string | required | Bill.approved. |
at | datetime | required | When it happened. |
seq | integer | Its position in the namespace, one more than the Event before; any seq is a cursor into the history. | |
data | json | required | The Thing as the Action left it. |
data.bill | Bill | required | The approved Bill, scheduled for its due date. |
data.bill.organization | Organization | required | The Organization the Startup owes. |
data.bill.amount | money | required | What the Bill asks for, in its currency. |
data.bill.dueOn | date | required | The date payment is due; an approved Bill is paid on it. |
data.bill.account | string | The chart-of-accounts code it is coded to, such as expense.hosting. | |
data.bill.status | string | required | Where the Bill stands; only an approved Bill is paid. |
data.bill.file | File | The File the Bill arrived as: an email attachment or an upload. | |
data.previous.status | string | required | The status before this Event: received. |
Example
{
"$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
}