API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen
Entity · marketing_consents

Marketing Consent Schema

Schema-ID
marketing_consent
Collection
marketing_consents
Permissions
  • Lezenmarketing_consent_view
  • Aanmakenmarketing_consent_create
  • Wijzigenmarketing_consent_edit
  • Verwijderenmarketing_consent_delete

Velden

Marketing Consent Schema

marketing_consents4 permissions

Per-(person × org × category × channel) marketing consent with double-opt-in lifecycle (ADR 0290).

personPartyIduuidvereist

ID of the PERSON party the consent belongs to.

organizationPartyIduuidoptioneel

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.

nullable
contactRelationshipIduuidoptioneel

ID of the party_relationship whose marketingConsent cache is recomputed from this record.

nullable
categorystringvereist
NEWSLETTERPRODUCT_UPDATESSALES_OUTREACHEVENTSSURVEYS
channelstringvereist
EMAIL
Default: "EMAIL"
statusstringvereist
PENDINGGRANTEDREVOKEDEXPIRED
Default: "PENDING"
legalBasisstringoptioneel
CONSENTLEGITIMATE_INTERESTEXISTING_CUSTOMER
Default: "CONSENT"nullable
sourcestringoptioneel
WEB_FORMSALES_MANUALPHONECONTRACTIMPORTSYSTEM
nullable
initiatedByUserIduuidoptioneel

User who initiated the sign-up (e.g. the salesperson).

nullable
emailstringoptioneel

Email the consent was captured for (denormalized for the DOI mail + audit).

max. 320 tekensnullable
consentTextstringoptioneel

Exact wording the person agreed to (accountability).

max. 4000 tekensnullable
consentTextVersionstringoptioneel
max. 64 tekensnullable
doiTokenstringoptioneel

Opaque single-use confirmation token; cleared on confirm/expiry.

max. 128 tekensread-onlynullable
doiSentAtdatetimeoptioneel
read-onlynullable
doiExpiresAtdatetimeoptioneel
read-onlynullable
confirmedAtdatetimeoptioneel
read-onlynullable
proofIpstringoptioneel

Client IP recorded at the PENDING → GRANTED transition.

max. 64 tekensread-onlynullable
proofUserAgentstringoptioneel
max. 512 tekensread-onlynullable
revokedAtdatetimeoptioneel
read-onlynullable
revokedReasonstringoptioneel
max. 500 tekensnullable
notesstringoptioneel
max. 1000 tekensnullable

Standaard-endpoints

Deze resource volgt het generieke CRUD-contract van het platform. Lees de conventies voor paginering, idempotentie, optimistic locking en audit. De belangrijkste endpoints:

  • GET /api/v1/marketing_consents — Lijst, gepagineerd + filterbaar
  • GET /api/v1/marketing_consents/<id> — Enkele entity
  • POST /api/v1/marketing_consents — Aanmaken
  • PATCH /api/v1/marketing_consents/<id> — Gedeeltelijke update
  • DELETE /api/v1/marketing_consents/<id> — Soft-delete
  • GET /api/v1/marketing_consents/<id>/timeline — Audit + activiteiten

Zoeken