Action.done
An Action’s work finished and its effects are written.
Payload
Each delivery is an Event record. data holds the Action as it stands, and previous holds the state it left.
| Field | Type | Required | Description |
|---|---|---|---|
name | string | required | Action.done. |
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.action | Action | required | The Action as the change left it. |
data.action.status | string | required | One of pending, done, failed, canceled, or refused. |
data.action.reason | string | Why a pending Action waits: queued, running, retrying, awaitingWorker, awaitingInput, awaitingSource, awaitingAction, or awaitingTime. | |
data.action.mode | string | required | How the caller invoked it: try, send, or do. |
data.action.by | Worker | The Worker that performed it. | |
data.action.for | Party | The Party it was done on behalf of. | |
data.action.via | string | The Interface or request it arrived through. | |
data.action.on | string | The Action or Event that caused it, such as the failed attempt a retry follows. | |
data.action.thing | string | The record, at the Version the Action was decided against. | |
data.action.input | json | The input it was called with. | |
data.action.createdAt | datetime | When it was called. | |
data.action.reserved | money | The most this Action may cost, held against its Limits from the check until it settles, billed misses included. | |
data.previous.status | string | required | The status before this Event: pending. |
Example
{
"$id": "https: //api.sb/ leaseline.app/ events/ evt_2khYBCEQo0",
"$type": "Event",
"name": "Action.done",
"at": "2026-10-01T08: 00: 00Z",
"data": {
"action": {
"$id": "https: //api.sb/ leaseline.app/ actions/ act_br07HsG8MG",
"$type": "Action",
"status": "done",
"reason": "queued",
"mode": "try",
"by": "worker_whZFpOKWIV",
"for": "party_hmQWaPrAyZ",
"via": "API",
"on": "Invoice.overdue",
"thing": "inv_9sfvgeRT7L@v3",
"input": {},
"createdAt": "2026-10-22T12: 00: 00Z",
"reserved": {
"amount": 29,
"currency": "USD"
}
},
"previous": {
"status": "pending"
}
},
"seq": 7
}