---
title: "Generate Xml"
method: POST
path: "/admin/documents/generate-xml"
tags: ["Ventas"]
---

# Generate Xml

`POST /admin/documents/generate-xml`

Enviar documentos

## Request body

- DocumentSendSupplier
  - `document_id` integer, required

## Response `200`

Successful Response

- DocumentApiOut
  - `exito` boolean
  - `mensaje` string
  - `data` DocumentDataOut, required
    - `numero` string, required
    - `archivo` string, required
    - `letras` string, nullable
    - `hash` string
    - `qr` string
    - `tipo_estado` string
    - `descripcion_estado` string
  - `archivos` DocumentFileOut, required
    - `pdf` string, nullable
    - `descargar_pdf` string
    - `xml` string
    - `cdr` string
  - `eventos` unknown[]
    - unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/factpro/apis/note-service-api.md) · [All operations](https://skmtc.net/factpro/apis/note-service-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/factpro/note-service-api/revisions/d88e14b2de42/schema)
