Skip to content

Consent.withdrawn

Emitted each time a Consent is withdrawn.

Consent.withdraw emits Consent.withdrawn when it completes on a Consent.

PropertyValue
Emitted byConsent.withdraw
NounConsent
WakesNone.

Payload

Each delivery is an Event record. data holds what Consent.withdraw returns.

FieldTypeRequiredDescription
namestringrequiredConsent.withdrawn.
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.consentConsentrequiredThe withdrawn Consent.
data.consent.basisstringrequiredThe lawful basis, such as consent or contract.
data.consent.regionstringThe jurisdiction whose rules apply.
data.consent.withdrawnAtdatetimeWhen the person withdrew it.

Example

JSON
{
  "$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
}