Bill.paid
Emitted each time a Bill is paid.
Bill.pay emits Bill.paid when it completes on a Bill.
Payload
Each delivery is an Event record. data holds what Bill.pay returns, and previous holds the state it left.
| Field | Type | Required | Description |
|---|---|---|---|
name | string | required | Bill.paid. |
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.transaction | Transaction | required | The payment Transaction. |
data.bill | Bill | required | The Bill, now paid. |
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: approved. |
Example
{
"$id": "https: //api.sb/ routewise.dev/ events/ event_1",
"$type": "Event",
"name": "Bill.paid",
"at": "2026-10-22T12: 00: 00Z",
"data": {
"transaction": {
"$id": "https: //api.sb/ routewise.dev/ transactions/ transaction_1",
"$type": "Transaction",
"kind": "charge",
"amount": {
"amount": 25,
"currency": "USD"
}
},
"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": "paid",
"file": "file_1"
},
"previous": {
"status": "approved"
}
},
"seq": 1
}