Facturas de Venta electrónicas

Endpoint para emitir una factura electrónica a la DIAN

Changed on

Este endpoint permite emitir una factura electrónica a la DIAN.

Recuerda visitar previamente las guías de Inicio y la guía de Habilitación en la DIAN - Factura Electronica

post/invoices

Request

  • Base URL
    https://sandbox-api.alegra.com/e-provider/col/v1
  • URL
    https://sandbox-api.alegra.com/e-provider/col/v1/invoices
  • Auth
    HTTP bearer

Parameters

#/paths/~1events/post/parameters/0 (unresolved $ref)

Request body

documentType'01' | '02' | '03' | '04' | '05' | '06' | '07' | '08' required

Tipo de Documento / Factura. 01: Estándar, 02: Exportación, 03: Mandato, 04: Contingencia Facturador Electrónico, 05: Transporte, 06: AIU, 07: Factura electrónica de Compra de divisa, 08: Factura electrónica de Venta de divisa

numbernumber double required

Número de la factura electrónica. <br><i>Campo oficial DIAN <ID></i>

notestring[]

Notas o información adicional: Texto libre, relativo al documento. Máximo 5000 caracteres por nota. <br><i>Campo oficial DIAN <Note></i>

dueDiligenceCode'01' | '02' | '03' | '04'

Identifica el código de debida diligencia del control cambiario. Es obligatorio cuando documentType ∈ {'07', '08'}. Este elemento acepta una de las siguientes opciones:<br>- <b>01</b> Debida Diligencia del Cliente – DDC General<br>- <b>02</b> Debida Diligencia del Cliente – DDC Reforzada<br>- <b>03</b> Debida diligencia intensificada por razón de la cuantía de las operaciones – DDC intensificada<br>- <b>04</b> Debida Diligencia del Cliente – DDC simplificada. <br><i>Grupo de información oficial DIAN <DebidaDiligencia en UBLExtension></i>

Response

Objeto que representa la respuesta cuando se envía una factura electrónica a la DIAN

Changes

    • breaking

      the response property / became nullable for the status

    • breaking

      the response property / became nullable for the status

    • breaking

      the response property / became nullable for the status

    • warning

      the / request property's exclusiveMinimum was set to true

    • warning

      the / request property's maxLength was set to 5000

    • info

      added the new optional header request parameter Idempotency-Key

    • info

      added the new optional request property

    • info

      added the new optional request property /

    • info

      added the new optional request property //

    • info

      added the new optional request property //

    • info

      the /// request property format was generalized from float to no format

    • info

      the / request property format was generalized from float to no format

    • info

      the / request property format was generalized from float to no format

    • info

      the / request property format was generalized from float to no format

    • info

      the / request property format was generalized from float to no format

    • info

      the / request property format was generalized from float to no format

    • info

      the / request property format was generalized from float to no format

    • info

      the / request property format was generalized from float to no format

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status