contacts_anonymise
Anonymises a contact for a valid revDSG deletion request: blanks personal fields, redacts activity bodies, keeps row IDs for document links. Refuses if open receivables or obligations exist.
Instructions
Anonymise a contact on a valid revDSG deletion request, bounded by OR 958f: blanks the personal fields and redacts the activity bodies while keeping the row ids so posted-document FKs stay intact. Erases the whole merge identity (the contact plus every duplicate merged into it), so pass the SURVIVOR: a merge tombstone is refused and names it. Refuses while any unsettled receivable or obligation is still live (draft, issued, sent, accepted, confirmed, partially_paid), because an unpaid claim is an overriding interest and OR 958f Abs. 3 needs the retained record to stay readable. CONSEQUENCE: Erases this person's personal data and the notes about them, merged duplicates included, once nothing is still open with them. Booked documents stay on record without those details; there is no way back.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contactId | Yes | ||
| workspaceId | Yes | ||
| idempotencyKey | Yes |