Account.swept
Emitted each time an Account is swept.
Account.sweep emits Account.swept when it completes on an Account.
| Property | Value |
|---|---|
| Emitted by | Account.sweep |
| Noun | Account |
| Wakes | None. |
Payload
Each delivery is an Event record. data holds what Account.sweep returns.
| Field | Type | Required | Description |
|---|---|---|---|
name | string | required | Account.swept. |
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.account | Account | required | The to Account, with the money landed. |
data.account.class | string | required | One of cash, asset, receivable, liability, equity, revenue, or expense. |
data.account.heldAt | string | One of payments, cards, treasury, bank, or company (a share of the holding Company’s cash): where a cash Account is held. | |
data.account.balance | money | Computed on read from Entries; never stored. | |
data.account.pending | money | Computed: money on its way in that has not settled yet. | |
data.account.payoutSchedule | string | One of daily, weekly, monthly, or manual: when the payments balance pays out. | |
data.transaction | Transaction | required | The move, reconciled on both Accounts. |
Example
{
"$id": "https: //api.sb/ routewise.dev/ events/ event_1",
"$type": "Event",
"name": "Account.swept",
"at": "2026-10-22T12: 00: 00Z",
"data": {
"account": {
"$id": "https: //api.sb/ routewise.dev/ accounts/ account_1",
"$type": "Account",
"class": "cash",
"heldAt": "payments",
"balance": {
"amount": 25,
"currency": "USD"
},
"pending": {
"amount": 25,
"currency": "USD"
},
"payoutSchedule": "daily"
},
"transaction": {
"$id": "https: //api.sb/ routewise.dev/ transactions/ transaction_1",
"$type": "Transaction",
"kind": "charge",
"amount": {
"amount": 25,
"currency": "USD"
}
}
},
"seq": 1
}