> For the complete documentation index, see [llms.txt](https://docs.enapi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.enapi.com/cdr-clearing/setting-up-cdr-clearing.md).

# Setting Up CDR Clearing

Configure which rules run on your CDRs and how strict they are.

### Your Default rule set

Every organisation gets a **Default** rule set when it joins ENAPI. It applies to every partner you haven't created a partner-specific rule set for, and it starts with ENAPI's default values. See [Validation Rules Reference](https://docs.enapi.com/cdr-clearing/validation-rules-reference.md) for each rule and its default.

To review or change it:

1. Navigate to **CDRs → Configuration**.
2. Open the row with target **Default**.
3. Toggle rules on or off and adjust their parameters.
4. Click **Save configuration**.

<img src="https://content.gitbook.com/content/heBP0sH0U1Rrp1jIot9S/blobs/uKLwpRgFVEcteIzF7Hwz/43ba571f%20644c%204175%20b3a3%2020b2df235261%201773945237181%20Screenshot2026%2001%2013at14.53.03.png%20cb8c2878%20e33f%204b5e%20af90%20bb0a7fe7d898" alt="CDR configuration overview page." width="563">

### Create a partner-specific rule set

Use a partner-specific rule set for relationships with negotiated tolerances. For that partner, it replaces your Default rule set.

1. Navigate to **CDRs → Configuration**.
2. Click **Add rule**.
3. Select the target partner.
4. The new rule set starts with ENAPI's default values. Toggle on the rules you want and set their parameters.
5. Save.

<img src="https://content.gitbook.com/content/heBP0sH0U1Rrp1jIot9S/blobs/eyPI4qz9Dwk4To7up38r/cffc6c50%20e1e2%20429d%2084b8%203a535a838bcb%201773945215645%20Screenshot2026%2001%2013at14.54.47.png%2015350cb3%204561%204fe0%2095b5%20ade0d1c254c8" alt="Select target partner of the new CDR rule configuration." width="563">

### Recommended setup

* Review your **Default** rule set first.
* Enable **Energy**, **Cost**, **Duration**, and **Timestamp** validation as your baseline.
* Enable **Tariff Cost Consistency** — in our experience, the single highest-value rule.
* Create **partner-specific rule sets** for relationships where the baseline doesn't fit — for example, a partner running ultra-fast chargers where the default energy upper bound is too low.

See [Validation Rules Reference](https://docs.enapi.com/cdr-clearing/validation-rules-reference.md) for what each rule checks. Once CDRs are flagged for review, use the patterns in your CDR Inbox to refine your setup. See [How to Handle Flagged CDRs](https://docs.enapi.com/cdr-clearing/how-to-handle-flagged-cdrs.md).

### CDR quarantine (CPOs only)

Enable quarantine if you want flagged CDRs held on your side before they're sent to the eMSP. This gives you a chance to fix issues — recalculate cost, supply missing fields, correct tariffs — before the eMSP ever sees the CDR. Without quarantine, flagged CDRs are delivered to the eMSP immediately and show up in both inboxes. Quarantine is off by default.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.enapi.com/cdr-clearing/setting-up-cdr-clearing.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
