> For the complete documentation index, see [llms.txt](https://docs.apisunat.pe/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.apisunat.pe/integracion/facturacion-electronica/anular-comprobante.md).

# Anular comprobante

***

## Ambientes disponibles

Cada RUC dispone de un token único para ambos ambientes: Pruebas y Producción. Para obtener más detalles sobre el uso de la API, visite la siguiente página.&#x20;

{% content-ref url="/pages/51jsU0jAzTH1blqVrvyp" %}
[Configuración API](/integracion/facturacion-electronica/configuracion-api.md)
{% endcontent-ref %}

***

## Ejemplos JSON

{% content-ref url="/pages/szilKSB4i4i5izOjJUwh" %}
[Anular Factura](/integracion/facturacion-electronica/anular-comprobante/anular-factura.md)
{% endcontent-ref %}

{% content-ref url="/pages/ByfXZKBUE4BIQ98CK5mA" %}
[Anular Boleta](/integracion/facturacion-electronica/anular-comprobante/anular-boleta.md)
{% endcontent-ref %}

<table><thead><tr><th width="262">Name</th><th>Description</th></tr></thead><tbody><tr><td>documento<mark style="color:red;">*</mark></td><td>factura</td></tr><tr><td>motivo<mark style="color:red;">*</mark></td><td>Motivo principal por el cual se anula el comprobante, por defecto se envía "ANULACIÓN DE OPERACIÓN"</td></tr><tr><td><a data-footnote-ref href="#user-content-fn-1"><strong>documento_afectado</strong></a></td><td></td></tr><tr><td>documento<mark style="color:red;">*</mark></td><td>boleta<br>factura<br>nota_credito<br>nota_debito</td></tr><tr><td>serie<mark style="color:red;">*</mark></td><td>serie de 4 dígitos del comprobante a anular</td></tr><tr><td>numero<mark style="color:red;">*</mark></td><td>correlativo del comprobante a anular</td></tr></tbody></table>

[^1]:


---

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

```
GET https://docs.apisunat.pe/integracion/facturacion-electronica/anular-comprobante.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.
