# CPE

Consulta integrada de validez de comprobante de pago desde servidores SUNAT.

{% openapi src="/files/JRRVSjH5YkzgRHy9S3HZ" path="/cpe" method="post" %}
[api.yml](https://18901306-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FP3czhYJkm8INW9o43n3W%2Fuploads%2F9aUYgwf4QSDgm4YbJ22m%2Fapi.yml?alt=media\&token=0f8e4366-c169-4838-9ed6-c2c495931339)
{% endopenapi %}

### Tipo de comprobante

| Código | Descripción           |
| ------ | --------------------- |
| 01     | FACTURA               |
| 03     | BOLETA DE VENTA       |
| 07     | NOTA DE CREDITO       |
| 08     | NOTA DE DEBITO        |
| R1     | RECIBO POR HONORARIOS |

### Estado del comprobante

| Código | Descripción   | Detalle                      |
| ------ | ------------- | ---------------------------- |
| 0      | NO EXISTE     | Comprobante no informado     |
| 1      | ACEPTADO      | Comprobante aceptado         |
| 2      | ANULADO       | Comunicado en una baja       |
| 3      | AUTORIZADO    | Con autorización de imprenta |
| 4      | NO AUTORIZADO | No autorizado por imprenta   |

### Estado del contribuyente

| Código | Descripción             |
| ------ | ----------------------- |
| 00     | ACTIVO                  |
| 01     | BAJA PROVISIONAL        |
| 02     | BAJA PROV. POR OFICIO   |
| 03     | SUSPENSION TEMPORAL     |
| 10     | BAJA DEFINITIVA         |
| 11     | BAJA DE OFICIO          |
| 22     | INHABILITADO-VENT.UNICA |

### Condición de Domicilio del Contribuyente

| Código | Descripción   |
| ------ | ------------- |
| 00     | HABIDO        |
| 09     | PENDIENTE     |
| 11     | POR VERIFICAR |
| 12     | NO HABIDO     |
| 20     | NO HALLADO    |


---

# Agent Instructions: 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:

```
GET https://docs.migo.pe/comprobante-electronico/cpe.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
