Skip to content

CreditGrant.applied

Emitted each time a Credit Grant is applied.

CreditGrant.apply emits CreditGrant.applied when it completes on a Credit Grant.

PropertyValue
Emitted byCreditGrant.apply
NounCredit Grant
WakesNone.

Payload

Each delivery is an Event record. data holds what CreditGrant.apply returns.

FieldTypeRequiredDescription
namestringrequiredCreditGrant.applied.
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.appliedmoneyrequiredThe total the grants paid toward the Invoice.
data.creditGrantslist of Credit GrantrequiredEach grant drawn, with its new remaining balance.

Example

JSON
{
  "$id": "https://api.sb/tutorloop.com/events/event_1",
  "$type": "Event",
  "name": "CreditGrant.applied",
  "at": "2026-10-22T12:00:00Z",
  "data": {
    "applied": {
      "amount": 60,
      "currency": "USD"
    },
    "creditGrants": [
      {
        "$id": "https://api.sb/tutorloop.com/credit-grants/credit_grant_1",
        "$type": "CreditGrant",
        "amount": {
          "amount": 60,
          "currency": "USD"
        },
        "category": "paid"
      }
    ]
  },
  "seq": 1
}