POST CreateCreditNote

Crea una nota de crédito, relacionada a una factura, la envia a la DIAN, y al adquiriente.

Request Information

URI Parameters

None.

Body Parameters

Información para generar la nota

CreditNote
NameDescriptionTypeAdditional information
sendToDian

Indica si el documento se debe enviar a la DIAN. Sino, el envío se hará después. El estado se podrá consultar con GetDocumentStatus. Por defecto: true.

boolean

Optional

emailForRejectionNotification

Email al que se debe notificar si se rechaza el documento

string

String length: inclusive between 0 and 100

sendAlertTo

Correos electrónicos a los que se debe notificar la generación del documento. Por defecto, se usan los correos de los contactos del adquirente. Si se usa este campo, se ignorarán los correos de los contactos. Obligatorio cuando se trata de un documento a consumidor final. Pueden enviarse varios correos, separados por ;

string

String length: inclusive between 0 and 500

fiscalLocationAcquirer

Localización fiscal del adquirente. Sólo aplica para consumidor final.

Location

Optional

physicalLocationAcquirer

Localización fisica del adquirente. Si no se envía, se usa la primer dirección física del adquirente. (sólo es requerido, cuando el tipo de operación es nota sin referencia a factura)

Location

Optional

valueTRM

Valor TRM de la moneda

decimal number

Range: inclusive between 0 and 1E+18

dateTRM

Fecha del TRM

date

Optional

currency

Moneda a usar (sólo es requerido, cuando el tipo de operación es nota sin referencia a factura)

string

Optional

currencyCodeLocal

Código de la moneda local independiente de el codigo de moneda de cambio

string

Optional

acquirer

Tipo de documento del adquirente (sólo es requerido, cuando el tipo de operación es nota sin referencia a factura)

IdentificationRequest

Optional

paymentMethodCode

Código de método de pago

string

Optional

paymentMeanCode

Código de medio de pago

string

Optional

paymentId

Identificador de pago

string

Optional

expirationDate

Fecha de vencimiento

date

Optional

additionalAcquirers

Listado de adquirentes, si se quiere facturar a varios. Los porcentajes deben sumar 100%. El adquirente de la factura, se usará como adquirente principal, y debe estar incluido en esta lista

Collection of AdditionalAcquirer

Optional

operationTypeCode

Código tipo de operación

string

Required

String length: inclusive between 0 and 10

invoiceNumber

Número de factura

string

String length: inclusive between 0 and 45

prefix

prefijo para el cual se realizara la factura

string

String length: inclusive between 0 and 5

creditNoteNumber

Número de factura

string

String length: inclusive between 0 and 45

causeCode

Causa de la nota 1 2 3 4 5 6 Otro

string

String length: inclusive between 0 and 10

note

Nota para ser visualizada en la representación gráfica

string

Optional

issueDate

Fecha de emisión de la nota

date

Required

Range: inclusive between 1/1/2000 and 1/1/5000

Location

Localizacion de la compañia

Location

Optional

anexo

Documento .zip convertido en base64

string

Optional

startInvoicePeriod

Periodo de Facturacion fecha inicial

date

Optional

endInvoicePeriod

Periodo de Facturacion fecha inicial

date

Optional

observations

Observaciones

Observations

Optional

items

Lista de productos

Collection of Item

Required

allowancesOrCharges

Cargos y Descuentos

Collection of AllowancesOrCharges

Optional

xmlAdditionals

Adicionales de XML

Collection of XmlAdditional

Optional

roundingAmount

Valor de redondeo de la factura, si aplica

decimal number

Optional

subTotalAmount

Subtotal de la facura

decimal number

Required

Range: inclusive between 0 and 1E+18

subtotalLocal

Valor de Subtotal para moneda local

decimal number

Range: inclusive between 0 and 1E+18

taxTotalAmount

Total de impuestos de la facura

decimal number

Required

Range: inclusive between 0 and 1E+18

taxesTotalLocal

Total de impuestos para moneda local

decimal number

Range: inclusive between 0 and 1E+18

totalAmount

Total de la factura

decimal number

Required

Range: inclusive between 0 and 1E+18

totalLocal

Total con retenciones para moneda local. Campo opcional. Valor por defecto 0

decimal number

Range: inclusive between 0 and 1E+18

sectorAdditionals

Adicionales del sector

SectorAdditionals

Optional

totalesCop

TotalesCop

TotalesCop

Optional

bussinesLine

Línea de negocio a mostrar en el asunto

string

String length: inclusive between 0 and 500

Request Formats

application/json, text/json

Sample:
{
  "sendToDian": true,
  "emailForRejectionNotification": "sample string 1",
  "sendAlertTo": "sample string 2",
  "fiscalLocationAcquirer": {
    "countryCode": "sample string 1",
    "state": "sample string 2",
    "city": "sample string 3",
    "postalZone": "sample string 4",
    "address": "sample string 5"
  },
  "physicalLocationAcquirer": {
    "countryCode": "sample string 1",
    "state": "sample string 2",
    "city": "sample string 3",
    "postalZone": "sample string 4",
    "address": "sample string 5"
  },
  "valueTRM": 3.0,
  "dateTRM": "2024-12-21T12:54:48.9636247-05:00",
  "currency": "sample string 4",
  "currencyCodeLocal": "sample string 5",
  "acquirer": {
    "documentTypeCode": "sample string 1",
    "documentNumber": "sample string 2"
  },
  "paymentMethodCode": "sample string 6",
  "paymentMeanCode": "sample string 7",
  "paymentId": "sample string 8",
  "expirationDate": "2024-12-21T12:54:48.9636247-05:00",
  "additionalAcquirers": [
    {
      "Name": "sample string 1",
      "DocumentTypeCode": "sample string 2",
      "DocumentNumber": "sample string 3",
      "DocumentNumberCheck": "sample string 4",
      "MerchantRegister": "sample string 5",
      "ParticipationPercent": 1.0
    },
    {
      "Name": "sample string 1",
      "DocumentTypeCode": "sample string 2",
      "DocumentNumber": "sample string 3",
      "DocumentNumberCheck": "sample string 4",
      "MerchantRegister": "sample string 5",
      "ParticipationPercent": 1.0
    }
  ],
  "operationTypeCode": "sample string 10",
  "invoiceNumber": "sample string 11",
  "prefix": "sample string 12",
  "creditNoteNumber": "sample string 13",
  "causeCode": "sample string 14",
  "note": "sample string 15",
  "issueDate": "2024-12-21T12:54:48.9636247-05:00",
  "Location": {
    "countryCode": "sample string 1",
    "state": "sample string 2",
    "city": "sample string 3",
    "postalZone": "sample string 4",
    "address": "sample string 5"
  },
  "anexo": "sample string 17",
  "startInvoicePeriod": "2024-12-21T12:54:48.9636247-05:00",
  "endInvoicePeriod": "2024-12-21T12:54:48.9636247-05:00",
  "observations": {
    "observation1": "sample string 1",
    "observation2": "sample string 2",
    "observation3": "sample string 3",
    "observation4": "sample string 4",
    "observation5": "sample string 5",
    "observation6": "sample string 6",
    "observation7": "sample string 7",
    "observation8": "sample string 8",
    "observation9": "sample string 9",
    "observation10": "sample string 10",
    "observation11": "sample string 11"
  },
  "items": [
    {
      "description": "sample string 1",
      "quantity": 2.0,
      "priceAmount": 3.0,
      "note": "sample string 4",
      "schemeTypeCode": "sample string 5",
      "scheme": "sample string 6",
      "quantityCode": "sample string 7",
      "brandName": "sample string 8",
      "modelName": "sample string 9",
      "transportRecordTypeId": 1,
      "mandateTypeId": 1,
      "pricingReferenceCode": "sample string 10",
      "pricingReferenceAmount": 11.0,
      "subtotal": 12.0,
      "observations": {
        "observation1": "sample string 1",
        "observation2": "sample string 2",
        "observation3": "sample string 3",
        "observation4": "sample string 4"
      },
      "allowancesOrCharges": [
        {
          "codeType": "sample string 1",
          "motive": "sample string 2",
          "codeAllowanceDIAN": "sample string 3",
          "amount": 4.0,
          "observations": "sample string 5"
        },
        {
          "codeType": "sample string 1",
          "motive": "sample string 2",
          "codeAllowanceDIAN": "sample string 3",
          "amount": 4.0,
          "observations": "sample string 5"
        }
      ],
      "taxesAndRetentions": [
        {
          "code": "sample string 1",
          "baseG": 2.0,
          "factor": 3.0,
          "total": 4.0
        },
        {
          "code": "sample string 1",
          "baseG": 2.0,
          "factor": 3.0,
          "total": 4.0
        }
      ],
      "mandateDocumentNumber": "sample string 13",
      "mandateVerificationDigit": "sample string 14",
      "additionalItemProperties": [
        {
          "Name": "sample string 1",
          "Value": "sample string 2",
          "ValueQuantity": 1,
          "unitCode": "sample string 3",
          "TransportRemittanceId": 1,
          "transportRemittanceCode": "sample string 4"
        },
        {
          "Name": "sample string 1",
          "Value": "sample string 2",
          "ValueQuantity": 1,
          "unitCode": "sample string 3",
          "TransportRemittanceId": 1,
          "transportRemittanceCode": "sample string 4"
        }
      ],
      "invoicePeriod": {
        "StartDate": "2024-12-21T12:54:48.9792513-05:00",
        "DescriptionCode": 2
      }
    },
    {
      "description": "sample string 1",
      "quantity": 2.0,
      "priceAmount": 3.0,
      "note": "sample string 4",
      "schemeTypeCode": "sample string 5",
      "scheme": "sample string 6",
      "quantityCode": "sample string 7",
      "brandName": "sample string 8",
      "modelName": "sample string 9",
      "transportRecordTypeId": 1,
      "mandateTypeId": 1,
      "pricingReferenceCode": "sample string 10",
      "pricingReferenceAmount": 11.0,
      "subtotal": 12.0,
      "observations": {
        "observation1": "sample string 1",
        "observation2": "sample string 2",
        "observation3": "sample string 3",
        "observation4": "sample string 4"
      },
      "allowancesOrCharges": [
        {
          "codeType": "sample string 1",
          "motive": "sample string 2",
          "codeAllowanceDIAN": "sample string 3",
          "amount": 4.0,
          "observations": "sample string 5"
        },
        {
          "codeType": "sample string 1",
          "motive": "sample string 2",
          "codeAllowanceDIAN": "sample string 3",
          "amount": 4.0,
          "observations": "sample string 5"
        }
      ],
      "taxesAndRetentions": [
        {
          "code": "sample string 1",
          "baseG": 2.0,
          "factor": 3.0,
          "total": 4.0
        },
        {
          "code": "sample string 1",
          "baseG": 2.0,
          "factor": 3.0,
          "total": 4.0
        }
      ],
      "mandateDocumentNumber": "sample string 13",
      "mandateVerificationDigit": "sample string 14",
      "additionalItemProperties": [
        {
          "Name": "sample string 1",
          "Value": "sample string 2",
          "ValueQuantity": 1,
          "unitCode": "sample string 3",
          "TransportRemittanceId": 1,
          "transportRemittanceCode": "sample string 4"
        },
        {
          "Name": "sample string 1",
          "Value": "sample string 2",
          "ValueQuantity": 1,
          "unitCode": "sample string 3",
          "TransportRemittanceId": 1,
          "transportRemittanceCode": "sample string 4"
        }
      ],
      "invoicePeriod": {
        "StartDate": "2024-12-21T12:54:48.9792513-05:00",
        "DescriptionCode": 2
      }
    }
  ],
  "allowancesOrCharges": [
    {
      "codeType": "sample string 1",
      "motive": "sample string 2",
      "codeAllowanceDIAN": "sample string 3",
      "amount": 4.0,
      "observations": "sample string 5"
    },
    {
      "codeType": "sample string 1",
      "motive": "sample string 2",
      "codeAllowanceDIAN": "sample string 3",
      "amount": 4.0,
      "observations": "sample string 5"
    }
  ],
  "xmlAdditionals": [
    {
      "Code": "sample string 1",
      "Value": "sample string 2",
      "IssueDate": "2024-12-21T12:54:48.9792513-05:00",
      "Cufe": "sample string 3"
    },
    {
      "Code": "sample string 1",
      "Value": "sample string 2",
      "IssueDate": "2024-12-21T12:54:48.9792513-05:00",
      "Cufe": "sample string 3"
    }
  ],
  "roundingAmount": 1.0,
  "subTotalAmount": 18.0,
  "subtotalLocal": 19.0,
  "taxTotalAmount": 20.0,
  "taxesTotalLocal": 21.0,
  "totalAmount": 22.0,
  "totalLocal": 23.0,
  "sectorAdditionals": {
    "SectorName": "sample string 1",
    "AdditionalCollections": [
      {
        "CollectionName": "sample string 1",
        "Additionals": [
          {
            "Name": "sample string 1",
            "Value": "sample string 2"
          },
          {
            "Name": "sample string 1",
            "Value": "sample string 2"
          }
        ]
      },
      {
        "CollectionName": "sample string 1",
        "Additionals": [
          {
            "Name": "sample string 1",
            "Value": "sample string 2"
          },
          {
            "Name": "sample string 1",
            "Value": "sample string 2"
          }
        ]
      }
    ]
  },
  "totalesCop": {
    "fctConvCop": 1.0,
    "monedaCop": "sample string 2",
    "subTotalCop": 3.0,
    "descuentoDetalleCop": 4.0,
    "recargoDetalleCop": 5.0,
    "totalBrutoFacturaCop": 6.0,
    "totIvaCop": 7.0,
    "totIncCop": 8.0,
    "totBolCop": 9.0,
    "impOtroCop": 10.0,
    "mntImpCop": 11.0,
    "totalNetoFacturaCop": 12.0,
    "mntDctoCop": 13.0,
    "mntRcgoCop": 14.0,
    "vlrPagarCop": 15.0,
    "reteFueCop": 16.0,
    "reteIvaCop": 17.0,
    "reteIcaCop": 18.0,
    "totAnticiposCop": 19.0,
    "interoperability": {
      "ResponsiblePerson": "sample string 1",
      "DepartureLocation": "sample string 2",
      "MeansOfTransport": "sample string 3",
      "TypeOfTransportDoc": "sample string 4",
      "TransportDocNumber": "sample string 5",
      "CarrierOrHandler": "sample string 6",
      "CountryOfOriginOfGoods": "sample string 7",
      "Destination": "sample string 8",
      "TermsOfPayment": "sample string 9",
      "Insurance": "sample string 10",
      "Observations": "sample string 11"
    }
  },
  "bussinesLine": "sample string 24"
}

application/xml, text/xml

Sample:
<CreditNote xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIRestUBL21.Models">
  <Location>
    <address>sample string 5</address>
    <city>sample string 3</city>
    <countryCode>sample string 1</countryCode>
    <postalZone>sample string 4</postalZone>
    <state>sample string 2</state>
  </Location>
  <acquirer>
    <documentNumber>sample string 2</documentNumber>
    <documentTypeCode>sample string 1</documentTypeCode>
  </acquirer>
  <additionalAcquirers xmlns:d2p1="http://schemas.datacontract.org/2004/07/APIRestUBL21.Models.Requests.Transverse">
    <d2p1:AdditionalAcquirer>
      <d2p1:DocumentNumber>sample string 3</d2p1:DocumentNumber>
      <d2p1:DocumentNumberCheck>sample string 4</d2p1:DocumentNumberCheck>
      <d2p1:DocumentTypeCode>sample string 2</d2p1:DocumentTypeCode>
      <d2p1:MerchantRegister>sample string 5</d2p1:MerchantRegister>
      <d2p1:Name>sample string 1</d2p1:Name>
      <d2p1:ParticipationPercent>1</d2p1:ParticipationPercent>
    </d2p1:AdditionalAcquirer>
    <d2p1:AdditionalAcquirer>
      <d2p1:DocumentNumber>sample string 3</d2p1:DocumentNumber>
      <d2p1:DocumentNumberCheck>sample string 4</d2p1:DocumentNumberCheck>
      <d2p1:DocumentTypeCode>sample string 2</d2p1:DocumentTypeCode>
      <d2p1:MerchantRegister>sample string 5</d2p1:MerchantRegister>
      <d2p1:Name>sample string 1</d2p1:Name>
      <d2p1:ParticipationPercent>1</d2p1:ParticipationPercent>
    </d2p1:AdditionalAcquirer>
  </additionalAcquirers>
  <allowancesOrCharges>
    <AllowancesOrCharges>
      <amount>4</amount>
      <codeAllowanceDIAN>sample string 3</codeAllowanceDIAN>
      <codeType>sample string 1</codeType>
      <motive>sample string 2</motive>
      <observations>sample string 5</observations>
    </AllowancesOrCharges>
    <AllowancesOrCharges>
      <amount>4</amount>
      <codeAllowanceDIAN>sample string 3</codeAllowanceDIAN>
      <codeType>sample string 1</codeType>
      <motive>sample string 2</motive>
      <observations>sample string 5</observations>
    </AllowancesOrCharges>
  </allowancesOrCharges>
  <anexo>sample string 17</anexo>
  <bussinesLine>sample string 24</bussinesLine>
  <causeCode>sample string 14</causeCode>
  <creditNoteNumber>sample string 13</creditNoteNumber>
  <currency>sample string 4</currency>
  <currencyCodeLocal>sample string 5</currencyCodeLocal>
  <dateTRM>2024-12-21T12:54:48.9636247-05:00</dateTRM>
  <emailForRejectionNotification>sample string 1</emailForRejectionNotification>
  <endInvoicePeriod>2024-12-21T12:54:48.9636247-05:00</endInvoicePeriod>
  <expirationDate>2024-12-21T12:54:48.9636247-05:00</expirationDate>
  <fiscalLocationAcquirer>
    <address>sample string 5</address>
    <city>sample string 3</city>
    <countryCode>sample string 1</countryCode>
    <postalZone>sample string 4</postalZone>
    <state>sample string 2</state>
  </fiscalLocationAcquirer>
  <invoiceNumber>sample string 11</invoiceNumber>
  <issueDate>2024-12-21T12:54:48.9636247-05:00</issueDate>
  <items>
    <Item>
      <additionalItemProperties xmlns:d4p1="http://schemas.datacontract.org/2004/07/APIRestUBL21.Models.Requests.Transverse">
        <d4p1:AdditionalItemProperty>
          <d4p1:Name>sample string 1</d4p1:Name>
          <d4p1:TransportRemittanceId>1</d4p1:TransportRemittanceId>
          <d4p1:Value>sample string 2</d4p1:Value>
          <d4p1:ValueQuantity>1</d4p1:ValueQuantity>
          <d4p1:transportRemittanceCode>sample string 4</d4p1:transportRemittanceCode>
          <d4p1:unitCode>sample string 3</d4p1:unitCode>
        </d4p1:AdditionalItemProperty>
        <d4p1:AdditionalItemProperty>
          <d4p1:Name>sample string 1</d4p1:Name>
          <d4p1:TransportRemittanceId>1</d4p1:TransportRemittanceId>
          <d4p1:Value>sample string 2</d4p1:Value>
          <d4p1:ValueQuantity>1</d4p1:ValueQuantity>
          <d4p1:transportRemittanceCode>sample string 4</d4p1:transportRemittanceCode>
          <d4p1:unitCode>sample string 3</d4p1:unitCode>
        </d4p1:AdditionalItemProperty>
      </additionalItemProperties>
      <allowancesOrCharges>
        <AllowancesOrCharges>
          <amount>4</amount>
          <codeAllowanceDIAN>sample string 3</codeAllowanceDIAN>
          <codeType>sample string 1</codeType>
          <motive>sample string 2</motive>
          <observations>sample string 5</observations>
        </AllowancesOrCharges>
        <AllowancesOrCharges>
          <amount>4</amount>
          <codeAllowanceDIAN>sample string 3</codeAllowanceDIAN>
          <codeType>sample string 1</codeType>
          <motive>sample string 2</motive>
          <observations>sample string 5</observations>
        </AllowancesOrCharges>
      </allowancesOrCharges>
      <brandName>sample string 8</brandName>
      <description>sample string 1</description>
      <invoicePeriod>
        <DescriptionCode>2</DescriptionCode>
        <StartDate>2024-12-21T12:54:48.9792513-05:00</StartDate>
      </invoicePeriod>
      <mandateDocumentNumber>sample string 13</mandateDocumentNumber>
      <mandateTypeId>1</mandateTypeId>
      <mandateVerificationDigit>sample string 14</mandateVerificationDigit>
      <modelName>sample string 9</modelName>
      <note>sample string 4</note>
      <observations>
        <observation1>sample string 1</observation1>
        <observation2>sample string 2</observation2>
        <observation3>sample string 3</observation3>
        <observation4>sample string 4</observation4>
      </observations>
      <priceAmount>3</priceAmount>
      <pricingReferenceAmount>11</pricingReferenceAmount>
      <pricingReferenceCode>sample string 10</pricingReferenceCode>
      <quantity>2</quantity>
      <quantityCode>sample string 7</quantityCode>
      <scheme>sample string 6</scheme>
      <schemeTypeCode>sample string 5</schemeTypeCode>
      <subtotal>12</subtotal>
      <taxesAndRetentions>
        <Tax>
          <baseG>2</baseG>
          <code>sample string 1</code>
          <factor>3</factor>
          <total>4</total>
        </Tax>
        <Tax>
          <baseG>2</baseG>
          <code>sample string 1</code>
          <factor>3</factor>
          <total>4</total>
        </Tax>
      </taxesAndRetentions>
      <transportRecordTypeId>1</transportRecordTypeId>
    </Item>
    <Item>
      <additionalItemProperties xmlns:d4p1="http://schemas.datacontract.org/2004/07/APIRestUBL21.Models.Requests.Transverse">
        <d4p1:AdditionalItemProperty>
          <d4p1:Name>sample string 1</d4p1:Name>
          <d4p1:TransportRemittanceId>1</d4p1:TransportRemittanceId>
          <d4p1:Value>sample string 2</d4p1:Value>
          <d4p1:ValueQuantity>1</d4p1:ValueQuantity>
          <d4p1:transportRemittanceCode>sample string 4</d4p1:transportRemittanceCode>
          <d4p1:unitCode>sample string 3</d4p1:unitCode>
        </d4p1:AdditionalItemProperty>
        <d4p1:AdditionalItemProperty>
          <d4p1:Name>sample string 1</d4p1:Name>
          <d4p1:TransportRemittanceId>1</d4p1:TransportRemittanceId>
          <d4p1:Value>sample string 2</d4p1:Value>
          <d4p1:ValueQuantity>1</d4p1:ValueQuantity>
          <d4p1:transportRemittanceCode>sample string 4</d4p1:transportRemittanceCode>
          <d4p1:unitCode>sample string 3</d4p1:unitCode>
        </d4p1:AdditionalItemProperty>
      </additionalItemProperties>
      <allowancesOrCharges>
        <AllowancesOrCharges>
          <amount>4</amount>
          <codeAllowanceDIAN>sample string 3</codeAllowanceDIAN>
          <codeType>sample string 1</codeType>
          <motive>sample string 2</motive>
          <observations>sample string 5</observations>
        </AllowancesOrCharges>
        <AllowancesOrCharges>
          <amount>4</amount>
          <codeAllowanceDIAN>sample string 3</codeAllowanceDIAN>
          <codeType>sample string 1</codeType>
          <motive>sample string 2</motive>
          <observations>sample string 5</observations>
        </AllowancesOrCharges>
      </allowancesOrCharges>
      <brandName>sample string 8</brandName>
      <description>sample string 1</description>
      <invoicePeriod>
        <DescriptionCode>2</DescriptionCode>
        <StartDate>2024-12-21T12:54:48.9792513-05:00</StartDate>
      </invoicePeriod>
      <mandateDocumentNumber>sample string 13</mandateDocumentNumber>
      <mandateTypeId>1</mandateTypeId>
      <mandateVerificationDigit>sample string 14</mandateVerificationDigit>
      <modelName>sample string 9</modelName>
      <note>sample string 4</note>
      <observations>
        <observation1>sample string 1</observation1>
        <observation2>sample string 2</observation2>
        <observation3>sample string 3</observation3>
        <observation4>sample string 4</observation4>
      </observations>
      <priceAmount>3</priceAmount>
      <pricingReferenceAmount>11</pricingReferenceAmount>
      <pricingReferenceCode>sample string 10</pricingReferenceCode>
      <quantity>2</quantity>
      <quantityCode>sample string 7</quantityCode>
      <scheme>sample string 6</scheme>
      <schemeTypeCode>sample string 5</schemeTypeCode>
      <subtotal>12</subtotal>
      <taxesAndRetentions>
        <Tax>
          <baseG>2</baseG>
          <code>sample string 1</code>
          <factor>3</factor>
          <total>4</total>
        </Tax>
        <Tax>
          <baseG>2</baseG>
          <code>sample string 1</code>
          <factor>3</factor>
          <total>4</total>
        </Tax>
      </taxesAndRetentions>
      <transportRecordTypeId>1</transportRecordTypeId>
    </Item>
  </items>
  <note>sample string 15</note>
  <observations>
    <observation1>sample string 1</observation1>
    <observation10>sample string 10</observation10>
    <observation11>sample string 11</observation11>
    <observation2>sample string 2</observation2>
    <observation3>sample string 3</observation3>
    <observation4>sample string 4</observation4>
    <observation5>sample string 5</observation5>
    <observation6>sample string 6</observation6>
    <observation7>sample string 7</observation7>
    <observation8>sample string 8</observation8>
    <observation9>sample string 9</observation9>
  </observations>
  <operationTypeCode>sample string 10</operationTypeCode>
  <paymentId>sample string 8</paymentId>
  <paymentMeanCode>sample string 7</paymentMeanCode>
  <paymentMethodCode>sample string 6</paymentMethodCode>
  <physicalLocationAcquirer>
    <address>sample string 5</address>
    <city>sample string 3</city>
    <countryCode>sample string 1</countryCode>
    <postalZone>sample string 4</postalZone>
    <state>sample string 2</state>
  </physicalLocationAcquirer>
  <prefix>sample string 12</prefix>
  <roundingAmount>1</roundingAmount>
  <sectorAdditionals xmlns:d2p1="http://schemas.datacontract.org/2004/07/APIRestUBL21.Models.Requests.Transverse">
    <d2p1:AdditionalCollections>
      <d2p1:AdditionalCollections>
        <d2p1:Additionals>
          <d2p1:NameValuePair>
            <d2p1:Name>sample string 1</d2p1:Name>
            <d2p1:Value>sample string 2</d2p1:Value>
          </d2p1:NameValuePair>
          <d2p1:NameValuePair>
            <d2p1:Name>sample string 1</d2p1:Name>
            <d2p1:Value>sample string 2</d2p1:Value>
          </d2p1:NameValuePair>
        </d2p1:Additionals>
        <d2p1:CollectionName>sample string 1</d2p1:CollectionName>
      </d2p1:AdditionalCollections>
      <d2p1:AdditionalCollections>
        <d2p1:Additionals>
          <d2p1:NameValuePair>
            <d2p1:Name>sample string 1</d2p1:Name>
            <d2p1:Value>sample string 2</d2p1:Value>
          </d2p1:NameValuePair>
          <d2p1:NameValuePair>
            <d2p1:Name>sample string 1</d2p1:Name>
            <d2p1:Value>sample string 2</d2p1:Value>
          </d2p1:NameValuePair>
        </d2p1:Additionals>
        <d2p1:CollectionName>sample string 1</d2p1:CollectionName>
      </d2p1:AdditionalCollections>
    </d2p1:AdditionalCollections>
    <d2p1:SectorName>sample string 1</d2p1:SectorName>
  </sectorAdditionals>
  <sendAlertTo>sample string 2</sendAlertTo>
  <sendToDian>true</sendToDian>
  <startInvoicePeriod>2024-12-21T12:54:48.9636247-05:00</startInvoicePeriod>
  <subTotalAmount>18</subTotalAmount>
  <subtotalLocal>19</subtotalLocal>
  <taxTotalAmount>20</taxTotalAmount>
  <taxesTotalLocal>21</taxesTotalLocal>
  <totalAmount>22</totalAmount>
  <totalLocal>23</totalLocal>
  <totalesCop xmlns:d2p1="http://schemas.datacontract.org/2004/07/APIRestUBL21.Models.Requests.Transverse">
    <d2p1:descuentoDetalleCop>4</d2p1:descuentoDetalleCop>
    <d2p1:fctConvCop>1</d2p1:fctConvCop>
    <d2p1:impOtroCop>10</d2p1:impOtroCop>
    <d2p1:interoperability>
      <d2p1:CarrierOrHandler>sample string 6</d2p1:CarrierOrHandler>
      <d2p1:CountryOfOriginOfGoods>sample string 7</d2p1:CountryOfOriginOfGoods>
      <d2p1:DepartureLocation>sample string 2</d2p1:DepartureLocation>
      <d2p1:Destination>sample string 8</d2p1:Destination>
      <d2p1:Insurance>sample string 10</d2p1:Insurance>
      <d2p1:MeansOfTransport>sample string 3</d2p1:MeansOfTransport>
      <d2p1:Observations>sample string 11</d2p1:Observations>
      <d2p1:ResponsiblePerson>sample string 1</d2p1:ResponsiblePerson>
      <d2p1:TermsOfPayment>sample string 9</d2p1:TermsOfPayment>
      <d2p1:TransportDocNumber>sample string 5</d2p1:TransportDocNumber>
      <d2p1:TypeOfTransportDoc>sample string 4</d2p1:TypeOfTransportDoc>
    </d2p1:interoperability>
    <d2p1:mntDctoCop>13</d2p1:mntDctoCop>
    <d2p1:mntImpCop>11</d2p1:mntImpCop>
    <d2p1:mntRcgoCop>14</d2p1:mntRcgoCop>
    <d2p1:monedaCop>sample string 2</d2p1:monedaCop>
    <d2p1:recargoDetalleCop>5</d2p1:recargoDetalleCop>
    <d2p1:reteFueCop>16</d2p1:reteFueCop>
    <d2p1:reteIcaCop>18</d2p1:reteIcaCop>
    <d2p1:reteIvaCop>17</d2p1:reteIvaCop>
    <d2p1:subTotalCop>3</d2p1:subTotalCop>
    <d2p1:totAnticiposCop>19</d2p1:totAnticiposCop>
    <d2p1:totBolCop>9</d2p1:totBolCop>
    <d2p1:totIncCop>8</d2p1:totIncCop>
    <d2p1:totIvaCop>7</d2p1:totIvaCop>
    <d2p1:totalBrutoFacturaCop>6</d2p1:totalBrutoFacturaCop>
    <d2p1:totalNetoFacturaCop>12</d2p1:totalNetoFacturaCop>
    <d2p1:vlrPagarCop>15</d2p1:vlrPagarCop>
  </totalesCop>
  <valueTRM>3</valueTRM>
  <xmlAdditionals xmlns:d2p1="http://schemas.datacontract.org/2004/07/APIRestUBL21.Models.Requests.Transverse">
    <d2p1:XmlAdditional>
      <d2p1:Code>sample string 1</d2p1:Code>
      <d2p1:Cufe>sample string 3</d2p1:Cufe>
      <d2p1:IssueDate>2024-12-21T12:54:48.9792513-05:00</d2p1:IssueDate>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:XmlAdditional>
    <d2p1:XmlAdditional>
      <d2p1:Code>sample string 1</d2p1:Code>
      <d2p1:Cufe>sample string 3</d2p1:Cufe>
      <d2p1:IssueDate>2024-12-21T12:54:48.9792513-05:00</d2p1:IssueDate>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:XmlAdditional>
  </xmlAdditionals>
</CreditNote>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AnswerService
NameDescriptionTypeAdditional information
cude

CUDE

string

Optional

cufe

CUFE

string

Optional

result

Estado de aceptación del documento en la DIAN. (true) Aceptado, (false) Rechazado.

boolean

Optional

isPendingDian

Indica si el documento queda pendiente por enviar a la DIAN. (true) Aceptado, (false) Rechazado.

boolean

Optional

sentToDian

Indica si el documento fue enviado a la DIAN

boolean

Optional

isContingency

Indica si el documento fue emitido en contingencia

boolean

Optional

prefix

Indica el prefijo que se usó, para generar el documento

string

Optional

savedInDatabase

Indica si el documento se guardo en la base de datos.

boolean

Optional

documentNumber

Indica el número de documento que se usó

string

Optional

relatedDocumentPrefix

Indica el prefijo del documento referenciado, en caso de que sea contingencia del facturador

string

Optional

relatedDocumentNumber

Indica el número del documento referenciado, en caso de que sea contingencia del facturador

string

Optional

messages

Motivos por el cual se rechaza la factura, o precauciones de la aceptación.

Collection of string

Optional

Response Formats

application/json, text/json

Sample:
{
  "cude": "sample string 1",
  "cufe": "sample string 2",
  "result": true,
  "isPendingDian": true,
  "sentToDian": true,
  "isContingency": true,
  "prefix": "sample string 7",
  "savedInDatabase": true,
  "documentNumber": "sample string 9",
  "relatedDocumentPrefix": "sample string 10",
  "relatedDocumentNumber": "sample string 11",
  "messages": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<AnswerService xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIRestUBL21.Models">
  <cude>sample string 1</cude>
  <cufe>sample string 2</cufe>
  <documentNumber>sample string 9</documentNumber>
  <isContingency>true</isContingency>
  <isPendingDian>true</isPendingDian>
  <messages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </messages>
  <prefix>sample string 7</prefix>
  <relatedDocumentNumber>sample string 11</relatedDocumentNumber>
  <relatedDocumentPrefix>sample string 10</relatedDocumentPrefix>
  <result>true</result>
  <savedInDatabase>true</savedInDatabase>
  <sentToDian>true</sentToDian>
</AnswerService>