Marketing Consent Schema
Felder
Marketing Consent Schema
Per-(person × org × category × channel) marketing consent with double-opt-in lifecycle (ADR 0290).
personPartyId
ID of the PERSON party the consent belongs to.
organizationPartyId
ID of the ORGANIZATION party the person relates to (the consent is scoped to the work context). Null for a person without an org relationship.
contactRelationshipId
ID of the party_relationship whose marketingConsent cache is recomputed from this record.
category
NEWSLETTERPRODUCT_UPDATESSALES_OUTREACHEVENTSSURVEYSchannel
EMAILstatus
PENDINGGRANTEDREVOKEDEXPIREDlegalBasis
CONSENTLEGITIMATE_INTERESTEXISTING_CUSTOMERsource
WEB_FORMSALES_MANUALPHONECONTRACTIMPORTSYSTEMinitiatedByUserId
User who initiated the sign-up (e.g. the salesperson).
email
Email the consent was captured for (denormalized for the DOI mail + audit).
consentText
Exact wording the person agreed to (accountability).
consentTextVersion
doiToken
Opaque single-use confirmation token; cleared on confirm/expiry.
doiSentAt
doiExpiresAt
confirmedAt
proofIp
Client IP recorded at the PENDING → GRANTED transition.
proofUserAgent
revokedAt
revokedReason
notes
Keine Felder passen zum Filter.
Standard-Endpoints
Diese Resource folgt dem generischen CRUD-Vertrag der Plattform. Lesen Sie die Konventionen für Pagination, Idempotenz, Optimistic Locking und Audit. Die wichtigsten Endpoints:
GET /api/v1/marketing_consents— Liste, paginiert + filterbarGET /api/v1/marketing_consents/<id>— Einzelne EntityPOST /api/v1/marketing_consents— AnlegenPATCH /api/v1/marketing_consents/<id>— Teil-UpdateDELETE /api/v1/marketing_consents/<id>— Soft-DeleteGET /api/v1/marketing_consents/<id>/timeline— Audit + Aktivitäten