Skip to content

Transaction.attached

Emitted each time a Transaction is attached.

Transaction.attach emits Transaction.attached when it completes on a Transaction.

PropertyValue
Emitted byTransaction.attach
NounTransaction
WakesNone.

Payload

Each delivery is an Event record. data holds what Transaction.attach returns.

FieldTypeRequiredDescription
namestringrequiredTransaction.attached.
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.transactionTransactionrequiredThe Transaction with its receipt.
data.transaction.kindstringrequiredOne of charge, refund, payout, or transfer.
data.transaction.amountmoneyrequiredThe amount moved.
data.transaction.receiptFileThe receipt matched to a card Transaction.
data.transaction.settledAtdatetimeWhen the money became available in a cash Account.

Example

JSON
{
  "$id": "https://api.sb/tutorloop.com/events/event_1",
  "$type": "Event",
  "name": "Transaction.attached",
  "at": "2026-10-22T12:00:00Z",
  "data": {
    "transaction": {
      "$id": "https://api.sb/tutorloop.com/transactions/transaction_1",
      "$type": "Transaction",
      "kind": "charge",
      "amount": {
        "amount": 60,
        "currency": "USD"
      },
      "receipt": "file_1",
      "settledAt": "2026-10-22T12:00:00Z"
    }
  },
  "seq": 1
}