> ## Documentation Index
> Fetch the complete documentation index at: https://docs.filexpress.app/llms.txt
> Use this file to discover all available pages before exploring further.

# DTE events: returns and special operations

> Report to the Ministry of Finance (Hacienda) goods returns on invoices and simplified sales invoices (El Salvador, electronic invoicing v2)

Version 2 of El Salvador's electronic invoicing adds two **events** that are transmitted to the Ministry of Finance (Hacienda) and receive their own reception stamp: the **return event** and the **special operations event**. You can find them in **DTE events**.

> [!NOTE]
>
> They are only available to companies in **El Salvador** migrated to version 2 ([Migration to DTE v2](https://docs.filexpress.app/en/docs/sistema/migracion-dte-v2.md)) with electronic invoicing active and in normal mode. They are a **notice to Hacienda**: they do not move inventory, accounts receivable or accounting, and they do not generate a credit note.

## Return event

Use it when **refunds** occur, **deposits on containers or packaging are recovered**, or, in exports, the amount exported decreases. If what you need is to return the entire sale or correct an invoice, use [invalidation](https://docs.filexpress.app/en/docs/sistema/migracion-dte-v2.md) or a credit note.

| Rule | Detail |
| - | - |
| **Documents** | Invoices, export invoices or excluded-subject invoices that already have a reception stamp and are not invalidated. |
| **Quantity** | Up to **50 documents** per event, all of the **same type** and the **same recipient**. |
| **Deadline** | Up to **3 months** from the document's reception stamp. |
| **Amount** | You can apply several returns to a document, as long as **the sum does not exceed its total**. |

**1. Open DTE events → New return**

Choose whether the return is on invoices and exports (sales) or on excluded-subject invoices (purchases).

**2. Select the documents**

Search by control number or generation code. Only documents that still have a balance to return and are within the deadline are listed.

**3. Indicate what is returned**

Each document brings its lines: adjust the quantity, price and discount of what is actually returned. The system shows you the document's available amount live.

**4. Issue**

The event is signed, transmitted and saved with its stamp. If Hacienda rejects it, you will see all its observations.

## Special operations event

It is used to report **simplified sales invoices** and **internal control vouchers** issued outside the normal flow. You can detail a document per line or a **range** with *Doc. From* and *Doc. To*: the quantity is calculated automatically.

| Field | What to enter |
| - | - |
| **Document type** | Simplified sales invoice or internal control voucher. |
| **Doc. From / Doc. To** | First and last number of the range, or the same number if it is a single one. |
| **Unit price** | The price of each document in the range, excluding VAT (IVA). |
| **Sale type** | Taxable, exempt or non-subject. VAT is calculated only on the taxable portion. |

An event supports up to 2,000 lines.

## Invalidate an event

In the event detail, **Invalidate** sends the invalidation event. Hacienda accepts it until 23:59:59 on the **tenth business day of the month following** the period in which the event received its stamp; the system tells you the deadline and does not allow transmitting after it. You must indicate who performs and who requests the invalidation (name, document type and number). Events have no replacement document.

The detail of an invalidated event shows the **event date**, the **moment Hacienda received the invalidation** and its **stamp**.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.