# Opt out of receipts, and what that costs

> Declare that a site keeps no consent receipts, and understand what you give up before you do.

Declare that a site keeps no consent receipts, and understand what you give up before you do.

A registry with a consent purpose must say where receipts go or that it keeps none. Leaving the section out is not an option: the registry does not validate (`receipts/not-stated`). The opt-out is the explicit "none", with a reason.

## What it costs

Read this part first.

Without receipts, the only record of a visitor's decision is the consent cookie in the visitor's own browser. That has consequences:

- **You cannot show what a visitor chose.** If someone asks you to demonstrate that consent was given for a purpose, on which text and when, you have nothing of your own to point to. A controller that relies on consent is expected to be able to demonstrate it.
- **You cannot show a refusal either**, or that a withdrawal was received.
- **Nothing ties a decision to a policy version.** A receipt carries the policy hash and the version of every purpose. Without it, the release history in `privacy.lock.json` still says what you published and when, but not who decided on which release.
- **The audit cannot check it.** Its receipt check becomes a warning.
- **It is announced on every run.** `check` and `build` print a warning each time, and the audit report states the opt-out, with your reason, before any check. Anyone who reads your CI output sees it.

Whether you can do without your own record is a legal question for your situation. The opt-out exists for cases where proof is kept elsewhere, or where a deliberate, tracked decision was made to add an endpoint later. It is not a way to make the requirement go away.

## When it is reasonable

- Another system records the decisions: a parent site's consent service, or a platform your site is embedded in.
- You are building the site and the endpoint is not there yet. Say so, with the ticket.

## 1. Declare it

```yaml
receipts:
  optOut:
    reason: Decisions are recorded by the parent site's consent service (PRIV-12).
```

The reason is addressed to your own team and your auditors. Say why this site can do without proof of its visitors' decisions: where else they are recorded, or the ticket that tracks adding an endpoint.

A stock non-reason is refused:

```
privacy.registry.yaml:80:13  receipts/vague-reason  The reason for keeping no consent receipts is just "na". Say why this site can do without proof of its visitors' decisions, e.g. where else they are recorded, or the ticket that tracks adding an endpoint.
```

"n/a", "none", "not needed", "TODO", "later" and their German counterparts are on the list, and so is a reason that says nothing at all.

## 2. Confirm it

On a registry that has not been released, there is nothing to confirm. `check` passes with the warning.

On a released registry that had an endpoint, switching to the opt-out is a change that a person has to confirm:

```
Changes since revision 1 (released 2026-11-28T12:16:14.120Z):

Needs confirmation (presumed not material): 1
  receipts.opted_out@receipts.optOut  [not acknowledged]
      {"endpoint":"/consent-receipts"} -> {"optOut":{"reason":"Decisions are recorded by the parent site's consent service (PRIV-12)."}}
      reading_position (consent): confirmation

Visitors will not be asked again: revision stays at 1.

error  confirmation/unacknowledged  "receipts.opted_out@receipts.optOut" is presumed not material but nobody confirmed it. Add its key to "acknowledged" in privacy.review.json, or escalate it under "overrides".
warning  receipts/opted-out  No consent receipts are kept: the registry opts out, so nothing proves what a visitor decided beyond the consent cookie in their own browser. Reason given: Decisions are recorded by the parent site's consent service (PRIV-12). Declare "receipts: { endpoint: <path or https URL> }" once the site can store them.

check failed: 1 error, 1 warning
```

Add the key to `privacy.review.json`:

```json
{
  "acknowledged": ["receipts.opted_out@receipts.optOut"]
}
```

The change says nothing new to visitors, so nobody is asked again and no purpose version changes. It needs a confirmation because it gives up the proof of every decision.

## 3. Build

```sh
npx consent-kit build
```

What changes in the generated files:

- `cookieconsent.config.gen.ts` no longer imports or installs the receipt sender. No request is sent on a decision.
- `receipts.manifest.gen.json` is no longer generated. `build` does not delete files, so remove the old one from the output directory yourself.
- A third-party receipt origin is no longer added to `connect-src`.

In the documents, the privacy policy's section on withdrawing consent says nothing about a record. Your reason is never printed in a document.

## What you see from then on

Every `check` and `build`:

```
warning  receipts/opted-out  No consent receipts are kept: the registry opts out, so nothing proves what a visitor decided beyond the consent cookie in their own browser. Reason given: Decisions are recorded by the parent site's consent service (PRIV-12). Declare "receipts: { endpoint: <path or https URL> }" once the site can store them.

check passed, 1 warning
```

`check --json` carries the section as `receipts`. The audit report starts with `CONSENT RECEIPTS NOT KEPT: the registry opts out. Reason given: …`, and its check "Consent receipts: one per decision" is a warning that carries the reason. A warning does not fail the audit, not even with `--strict`, so the opt-out never turns a build red by itself.

Rewording the reason later is `receipts.opt_out_reason_changed`: not material, no sign-off.

## Going back

Declare an endpoint:

```yaml
receipts:
  endpoint: /consent-receipts
```

That is `receipts.endpoint_declared`: not material, no confirmation, nobody is asked again. Then [deploy the receipt endpoint](/docs/manual/guides/deploy-the-receipt-endpoint/).

Receipts start with the next decision. Nothing is sent retroactively for visitors who decided while the site kept none; their choice is in their cookie, and no record of it exists on your side.

A release made under the opt-out is recorded in the lock's history with `sendsReceipts: false` and is left out of the receipt manifest.

## Related

- [Consent receipts](/docs/manual/concepts/receipts/)
- [Registry reference](/docs/manual/reference/registry/#receipts)
