Consent.withdrawn
Emitted each time a Consent is withdrawn.
Consent.withdraw emits Consent.withdrawn when it completes on a Consent.
| Property | Value |
|---|---|
| Emitted by | Consent.withdraw |
| Noun | Consent |
| Wakes | None. |
Payload
Each delivery is an Event record. data holds what Consent.withdraw returns.
| Field | Type | Required | Description |
|---|---|---|---|
name | string | required | Consent.withdrawn. |
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.consent | Consent | required | The withdrawn Consent. |
data.consent.basis | string | required | The lawful basis, such as consent or contract. |
data.consent.region | string | The jurisdiction whose rules apply. | |
data.consent.withdrawnAt | datetime | When the person withdrew it. |
Example
{
"$id": "https: //api.sb/ petpantry.shop/ events/ event_1",
"$type": "Event",
"name": "Consent.withdrawn",
"at": "2026-10-22T12: 00: 00Z",
"data": {
"consent": {
"$id": "https: //api.sb/ petpantry.shop/ consents/ consent_1",
"$type": "Consent",
"basis": "Example basis",
"region": "Example region",
"withdrawnAt": "2026-10-22T12: 00: 00Z"
}
},
"seq": 1
}