CreditGrant.applied
Emitted each time a Credit Grant is applied.
CreditGrant.apply emits CreditGrant.applied when it completes on a Credit Grant.
| Property | Value |
|---|---|
| Emitted by | CreditGrant.apply |
| Noun | Credit Grant |
| Wakes | None. |
Payload
Each delivery is an Event record. data holds what CreditGrant.apply returns.
| Field | Type | Required | Description |
|---|---|---|---|
name | string | required | CreditGrant.applied. |
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.applied | money | required | The total the grants paid toward the Invoice. |
data.creditGrants | list of Credit Grant | required | Each grant drawn, with its new remaining balance. |
Example
{
"$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
}