> For the complete documentation index, see [llms.txt](https://docs.docbits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docbits.com/administration-and-setup/settings/global-settings/document-types/edi/supported-electronic-documents/peru-cpe.md).

# PERU CPE

PERU CPE electronic document support in DocBits

{% hint style="info" %}
Check the country guide for version limits, effective configuration and the country explainer. [Peru](/administration-and-setup/settings/global-settings/document-types/edi/supported-electronic-documents/peru.md). Select the actual UBL version and document structure. Processing a file does not prove acceptance by SUNAT.
{% endhint %}

| Property             | Value                                 |
| -------------------- | ------------------------------------- |
| **Country / Region** | Peru                                  |
| **Document Types**   | Invoice, Credit Note, Debit Note      |
| **Format**           | UBL XML                               |
| **Standard**         | CPE (Comprobante de Pago Electrónico) |

CPE (Comprobante de Pago Electrónico) is the Peruvian electronic payment voucher standard regulated by SUNAT. DocBits supports both UBL 2.0 and 2.1 versions used for electronic invoicing in Peru.

## Support Status

| Component        | Status      |
| ---------------- | ----------- |
| Preview          | ✅ Supported |
| Field Extraction | ✅ Supported |
| Transformation   | ✅ Supported |

## Default Preview

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-a77e3821133ef60f7aa3132aa729dbc01d7bd404%2Fperu-cpe-preview.png?alt=media" alt="Peru CPE invoice preview in DocBits"><figcaption><p>Default DocBits preview for a Peru CPE invoice</p></figcaption></figure>

## Related

* [Supported Electronic Documents](/administration-and-setup/settings/global-settings/document-types/edi/supported-electronic-documents.md)
* [Peru CPE UBL 2.0](/administration-and-setup/settings/global-settings/document-types/edi/supported-electronic-documents/peru-cpe-ubl-2-0.md)
* [Peru CPE UBL 2.1](/administration-and-setup/settings/global-settings/document-types/edi/supported-electronic-documents/peru-cpe-ubl-2-1.md)


---

# 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.docbits.com/administration-and-setup/settings/global-settings/document-types/edi/supported-electronic-documents/peru-cpe.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.
