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

# Reenviar DE a SIFEN

> Reintenta el envío de un DE rechazado o colgado.

Reencola el envío de un DE a SIFEN. Útil cuando:

* El DE quedó **colgado** en estado `P` o `E` (SIFEN estaba caído cuando se intentó el primer envío, o el callback async se perdió).
* El DE fue **rechazado** (estado `R`) por un motivo transitorio (ej. timbrado momentáneamente caído en padrón) y querés reintentar tal cual.

Si querés **modificar el contenido** del DE antes de reenviarlo (datos corregidos), no uses este endpoint — usá [`POST /v1/de/emitir`](/api-reference/emitir) con `?edit_cdc=...` y el body actualizado.

## Diferencia con `edit_cdc`

| Endpoint               | Cambia contenido | CDC nuevo     | Cuándo usarlo                         |
| ---------------------- | ---------------- | ------------- | ------------------------------------- |
| `/reenviar`            | No               | No            | Mismo XML, mismo CDC, reintento puro. |
| `/emitir?edit_cdc=...` | Sí               | Sí (regenera) | Corregir datos antes del reenvío.     |

## Body

Generalmente vacío.

## Errores frecuentes

| Status | Causa                                                       |
| ------ | ----------------------------------------------------------- |
| `400`  | El DE está en un estado que no permite reenvío (`A` o `C`). |
| `409`  | Ya hay un reintento en curso para este DE.                  |


## OpenAPI

````yaml POST /v1/de/{cdc}/reenviar
openapi: 3.1.0
info:
  title: eMiti API
  description: >-
    API de emisión de Documentos Tributarios Electrónicos (DTE) bajo SIFEN/DNIT
    Paraguay.
  version: 1.1.0
servers:
  - url: https://api.emiti.fravelabs.com
    description: Producción
  - url: https://api.qa.emiti.fravelabs.com
    description: QA
  - url: https://api.dev.emiti.fravelabs.com
    description: Desarrollo (Homologación SIFEN)
security:
  - ApiKeyAuth: []
paths:
  /v1/de/{cdc}/reenviar:
    post:
      summary: POST /v1/de/{cdc}/reenviar
      operationId: reenviar_factura_v1_de__cdc__reenviar_post
      parameters:
        - required: true
          schema:
            type: string
            title: Cdc
          name: cdc
          in: path
      responses:
        '200':
          description: Successful Response
          content:
            application/json: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization

````