---
title: "POST /api/v1/dian/documents"
method: POST
path: "/api/v1/dian/documents"
tags: ["dian-document-controller"]
---

# POST /api/v1/dian/documents

`POST /api/v1/dian/documents`

## Request body

- GetDianDocumentsRequestDTO
  - `idEmpresa` integer, required
  - `fechaInicial` string, date-time, required
  - `fechaFinal` string, date-time, required
  - `tipoDocumento` string, required

## Response `200`

OK

- ApiResponseDTODianDocumentsResponseDTO
  - `success` boolean
  - `data` DianDocumentsResponseDTO
    - `success` boolean
    - `documents` DianDocumentDTO[]
      - `id` string
      - `issueDate` string
      - `issueTime` string
      - `invoiceTypeCode` string
      - `documentCurrencyCode` string
      - `lineCountNumeric` integer
      - `supplierName` string
      - `supplierNit` string
      - `customerName` string
      - `customerNit` string
      - `payableAmount` string
      - `taxExclusiveAmount` string
      - `taxInclusiveAmount` string
      - `clientLicense` string
      - `idEmpresa` integer
      - `identificationCompany` string
      - `syncStatus` string
      - `createdAt` string
      - `updatedAt` string
      - `errorsSync` ErrorSyncModel[]
        - `code` string
        - `message` string
        - `details` object
        - `solved` boolean
      - `etag` string
      - `documentNumber` string
      - `cufe` string
    - `error` string
    - `errorCode` string
    - `totalDocuments` integer
  - `message` string
  - `errorCode` string

## Other responses

- `400` — Bad Request
- `409` — Conflict
- `500` — Internal Server Error

---

[API](https://skmtc.dev/worldoffice/apis/world-office-api.md) · [All operations](https://skmtc.dev/worldoffice/apis/world-office-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/worldoffice/world-office-api/revisions/ab962606cb0a/schema)
