> 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.

### Create a rule set

1. Navigate to **CDRs → Configuration**.
2. Click **Add rule**.
3. Select the target partner:
   * **Everyone** — applies to all your partnerships. The default starting point.
   * **Specific partner** — applies only to CDRs from one partner. Useful for relationships with negotiated tolerances.
4. Toggle on the rules you want and set their parameters. See [Validation Rules Reference](/cdr-clearing/validation-rules-reference.md) for each rule's options.
5. Save.

<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">

&#x20;

<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

For a new configuration:

* Start with the default **Everyone** rule set.
* 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](/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](/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.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
