Guía de Integración a Nivel de Línea (Main)

Guía de Integración a Nivel de Línea (Main)#

Detalle de productos o servicios a nivel de línea de una Nota de Ajuste#

Main#

Especificación y definición de datos del Main de la Nota de Ajuste al documento Soporte en Adquisiciones efectuadas a sujetos no obligados a Facturar.

mainNADS

1 - 8. Datos de Lineas (NADS)
{
	"Lines": [
		{
			"Number": "1", //( 1 )
			"Quantity": "5,00", //( 5 )
			"QuantityUnitOfMeasure": "NAR", //( 4 )
			"TaxSubTotals": [
				{
					"TaxCategory": "01",
					"TaxPercentage": "19.00",
					"TaxableAmount": "100000.00",
					"TaxAmount": "19000.00"
				}
			],
			"TaxTotals": [
				{
					"TaxCategory": "01", //( 7 ) 
					"TaxAmount": "19000.00",
					"RoundingAmount": "0.00"
				}
			],
			"UnitPrice": "100000.00", //( 6 )
			"GrossAmount": "100000.00", //( 8 )
			"NetAmount": "100000.00",
			"Item": {
				"Gtin": "xxxxx", //( 2 )
				"Description": "Servicio 1" //( 3 )
			},
			"InvoicePeriod": {
				"From": "2022-01-07", //( a )
				"DescriptionCode": "1" //( b ) 
			}
		}
	]
}
<cac:Invoice>
	<cbc:ID>1</cbc:ID> <!-- ( 1 ) -->
	<cbc:InvoicedQuantity unitCode="NAR">5,00</cbc:InvoicedQuantity> <!-- ( 4 ) , ( 5 ) -->
	<cbc:LineExtensionAmount currencyID="COP">100000.00</cbc:LineExtensionAmount> <!-- ( 8 ) -->
	<cbc:FreeOfChargeIndicator>false</cbc:FreeOfChargeIndicator>
	<cac:TaxTotal>
		<cbc:TaxAmount currencyID="COP">100000.00</cbc:TaxAmount> <!-- ( 7 ) --> 
		<cbc:TaxEvidenceIndicator>false</cbc:TaxEvidenceIndicator>
		<cac:TaxSubtotal>
			<cbc:TaxableAmount currencyID="COP">485000.00</cbc:TaxableAmount>
			<cbc:TaxAmount currencyID="COP">92150.00</cbc:TaxAmount>
			<cbc:Percent>19.00</cbc:Percent>
			<cac:TaxCategory>
				<cbc:Percent>19.0</cbc:Percent>
				<cac:TaxScheme>
					<cbc:ID>01</cbc:ID>
					<cbc:Name>IVA</cbc:Name>
				</cac:TaxScheme>
			</cac:TaxCategory>
		</cac:TaxSubtotal>
	</cac:TaxTotal>
	<cac:Item>
		<cbc:Description> Servicio 1</cbc:Description> <!-- ( 3 ) --> 
		<cac:SellersItemIdentification>
			<cbc:ID schemeID="010"
			        schemeName="GTIN"
			        schemeAgencyID="9">xxxxx</cbc:ID> <!-- ( 2 ) --> 
		</cac:SellersItemIdentification>
	</cac:Item>
	<cac:InvoicePeriod>
		<cbc:StartDate>2022-01-07</cbc:StartDate> <!-- ( a ) --> 
		<cbc:DescriptionCode>1</cbc:DescriptionCode> <!-- ( b ) --> 
		<cbc:Description> </cbc:Description>
	</cac:InvoicePeriod>
	<cac:Price>
		<cbc:PriceAmount currencyID="COP">100000.00</cbc:PriceAmount> <!-- ( 6 ) -->
		<cbc:BaseQuantity unitCode="NAR">5.00 </cbc:BaseQuantity>
	</cac:Price>
</cac:InvoiceLine>
</Invoice>

Number (ID): Número de Línea.

Gtin (SellersItemIdentification .ID): Grupo de datos de identificación del artículo o servicio de acuerdo con un estándar.

Description: Descripción del artículo o servicio a que se refiere esta línea de la factura debe ser informada.

QuantityUnitOfMeasure (unitCode): Identificación de la unidad de medida, el listado de los tipos de UnitOfMeasure están disponibles en el método del WEB API de Saphety: UnitOfMeasure.

Quantity (InvoicedQuantity): Cantidad del producto o servicio.

UnitPrice (PriceAmount): Valor del artículo o servicio.

TaxAmount: Valor del tributo: producto del porcentaje aplicado sobre la base imponible.

  • Formula: Valor del impuesto de la línea (TaxAmount) = Porcentaje del impuesto (TaxPercentage) * Base para calcular el impuesto en la línea (Taxableamount).

TaxCategory: Identificador del tributo, el listado de los tipos de TaxCategory están disponibles en el método del WEB API de Saphety: TaxCategory.

NetAmount (LineExtensionAmount): Total Valor Bruto antes de tributos.

  • Formula: Valor Neto de la línea (NetAmount) = valor bruto de la línea (GrossAmount) – Descuentos de la línea (Allowance) + Cargos de la línea (Charges).

InvoicePeriod.From: Grupop para informar el periodod del entrega del servicio.

  • 1 por operacion (En linea).

  • 2 acumulado (Del mismo proveedor hasta 6 hacia atras).

(InvoicePeriod .StartDate): Fecha de compra, formato permitido: aaaa-mm-dd.

  • 1 por operación (En linea) debe tener la fecha del dia encurso.

  • 2 acumulado (Del mismo proveedor hasta 6 hacia atras) fecha debe ser maximo 6 hacia atras.

InvoicePeriod.DescriptionCode: Código de descripción de la transacción.

  • 1 por operacion (En linea).

  • 2 acumulado (Del mismo proveedor hasta 6 hacia atras).

  • 1: 3 dígitos

  • 2: 2 líneas 10 Caracteres c/u

  • 3: No tiene límite de caracteres

  • 4: 8 Caracteres

  • 5: 10 Dígitos incluidos los separadores

  • 6: 23 Dígitos incluidos los separadores

  • 7: 23 Dígitos incluidos los separadores

  • 8: 23 Dígitos incluidos los separadores

  • 9: 23 Dígitos incluidos los separadores

  • 10: 23 Dígitos incluidos los separadores

  • 11: 23 Dígitos incluidos los separadores