fulfillPrivacyRequest
mutation · in the family Privacy and compliance
What it does
Mark a privacy request fulfilled, with the evidence.
Mark an in_progress PrivacyRequest fulfilled: the affected records link back via the refs (the de-identified Consumer, the export target, the rectified records — provable which request drove which scrubbing). affectedRefs ≥1 required — an evidence-less fulfill refuses CONFLICT/INCOMPLETE (retryable: finish the actions, fulfill again); refs are advisory + tombstone-tolerant. Template class (privacy & compliance).
Before you call
A bearer session from an API key (see Authentication and key hygiene) or a signed-in user.
Capability area: Privacy and compliance — Tax and fiscal configuration, certificates and privacy requests.
Roles that may call it:
- Owner
- System Administrator
- An API key whose scope allows
api:fulfillPrivacyRequest
What happens
List the records the work touched — the erased customer, the export, the corrections; at least one is required.
Careful
A fulfilled request is kept permanently and becomes immutable — the compliance proof.
Arguments
| Name | Type | Required | Notes |
|---|---|---|---|
id | ID ID! | yes | The id of the record. |
revision | ID ID! | yes | The revision id you read on the record; the change is refused if an edit landed in the meantime. |
affectedRefs | TaskConstructRefInput [TaskConstructRefInput!]! | yes | Construct-ref input. |
reason | String | no |
Concurrency
Send the record’s current revision from your last read as revision. A stale revision is refused as CONFLICT/REVISION_STALE — read the record again and retry with the new value.
Returns
PrivacyRequest PrivacyRequest! — A PrivacyRequest — the GDPR/CCPA request register: every data-subject request received (erasure · access · portability · rectification · opt_out) is recorded with full provenance — the regime (gdpr · ccpa), the arrival channel, the received instant, and the subject. The ladder: verify (the identity gate — v1 the verifier's assertion, the proof narrative on the revision cause) → start → fulfill; reject serves received AND verified (ONE op, two edges — the reason is required: a refused privacy request states its grounds). The FULFILLMENT mechanics stay the existing ops — the register records and links, it never executes. NOT searchable (a compliance register holding subject PII — the gated paginated listing); the listing pages newest-first; rejected drops per page as doomed while fulfilled records stay listed.
Example request
mutation ExampleFulfillPrivacyRequest($id: ID!, $revision: ID!, $affectedRefs: [TaskConstructRefInput!]!, $reason: String) {
fulfillPrivacyRequest(id: $id, revision: $revision, affectedRefs: $affectedRefs, reason: $reason) {
id
sysId
type
caption
status
parentId
rootId
createdAt
updatedAt
revisionNum
revision
requestType
regime
channel
receivedAt
consumerId
subjectRef
subjectOrderId
}
}Variables:
{
"id": "01900000-0000-7000-8000-22f6d6580000",
"revision": "01900000-0000-7000-8000-b7960e180000",
"affectedRefs": [
{
"type": "<type>",
"id": "01900000-0000-7000-8000-22f6d6580000"
}
],
"reason": "Correcting a miscount."
}Send it with the envelope naming the version: "extensions": {"at": {"version": {"name":"genesis","number":0}}}.
Example response
{
"data": {
"fulfillPrivacyRequest": {
"id": "01900000-0000-7000-8000-22f6d6580000",
"sysId": "PV-EXMP-0000-000F",
"type": "PrivacyRequest",
"caption": "Blue jeans",
"status": "received",
"parentId": "01900000-0000-7000-8000-eacdfcfd0000",
"rootId": "01900000-0000-7000-8000-a1295a650000",
"createdAt": "2027-01-31T00:00:00.000Z",
"updatedAt": "2027-01-31T00:00:00.000Z",
"revisionNum": 1,
"revision": "01900000-0000-7000-8000-53c6eea90000",
"requestType": "<request type>",
"regime": "<regime>",
"channel": "<channel>",
"receivedAt": "2027-01-31T00:00:00.000Z",
"consumerId": "01900000-0000-7000-8000-3cbb3ce90000",
"subjectRef": "<subject ref>",
"subjectOrderId": "01900000-0000-7000-8000-b42b04c10000"
}
},
"extensions": {
"at": {
"callId": "01EXAMPLE-CALL-ID",
"version": {
"requested": {
"name": "genesis",
"number": 0
},
"serviced": {
"name": "genesis",
"number": 0
}
}
}
}
}Errors this call can answer
VALIDATION/INVALID— Something in the request is not valid. Retry: no. (VALIDATION)AUTHN/REQUIRED— Sign in to do this. Retry: no. (AUTHN)AUTHZ/FORBIDDEN— Your role does not allow this action. Retry: no. (AUTHZ)RATE_LIMIT/THROTTLED— Too many requests in a short time. Retry: yes. (RATE_LIMIT)NOT_FOUND/*— That record could not be found. Retry: no. (NOT_FOUND)CONFLICT/*— The record’s state, or a change made in the meantime, does not allow this; the codes are on the CONFLICT page. (CONFLICT)VALIDATION/VERSION_REQUIRED— The request did not say which app version it came from. Retry: no. (VALIDATION)