Вы находитесь на странице: 1из 16

GUIA SIMPLE DEL PROGRAMADOR

FACTURA ELECTRONICA DIAN COLOMBIA 1.0


FIRMAR XML

Algoritmo de Firma: sha256


Canonizado: CN14
Formato: XADES-EPES: extiende a XADES-BES
Mediante incorporation de SignaturePolicyIdentifier

xmlns ordenados alfabéticamente:


xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2"
xmlns:fe="http://www.dian.gov.co/contratos/facturaelectronica/v1"
xmlns:sts="http://www.dian.gov.co/contratos/facturaelectronica/v1/Structures"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.dian.gov.co/contratos/facturaelectronica/v1 ../xsd/DIAN_UBL.xsd
urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2

Política de firma DIAN COLOMBIA

NOMBRE POLITICA DE FIRMA: Política de firma para facturas electrónicas de la República de Colombia.
URL POLITICA DE FIRMA: https://facturaelectronica.dian.gov.co/politicadefirma/v2/politicadefirmav2.pdf
DIGESTVALUE (SHA256) POLITICA DE FIRMA: dMoMvtcG5aIzgYo0tIsSQeVJBDnUnfSOfBpxXrmor0Y=

Documento sin firma debe contener:

<ext:UBLExtension><ext:ExtensionContent></ext:ExtensionContent></ext:UBLExtension>

Generar el Digestvalue al documento sin firmar

Aplicar formula canónica (CN14) XML codificación UTF-8


Aplicar sha256
Codificar en base 64
• Obtendremos el DIGESTVALUE DEL DOCUMENTO
Generar un identificador de la forma: 6c90c972-efaf-000e-a2a9-20c891992b6a para:
Id="xmldsig-identificador-signedprops"
Id="xmldsig-identificador-keyinfo"
Id="xmldsig-identificador-ref0"
URI="#xmldsig-identificador-keyinfo"
URI="#xmldsig-identificador-signedprops"
Id="xmldsig-identificador
Id="xmldsig-identificador-sigvalue"
Id="xmldsig-identificador"

Obtener datos del certificado digital .PFX o .PEM


Opción: Herramienta openssl

CERTIFICADO PEM
SUJETO AL QUE LE EXPIDIERON EL CERTIFICADO
NUMERO DE SERIE DEL CERTIFICADO
EMISOR DEL CERTIFICADO
DIGESTVALUE DEL CERTIFICADO (aplicando sha256 codificando en base 64)

Generar KEYINFO:

<ds:KeyInfo Id="xmldsig-identificador -keyinfo">


<ds:X509Data>
<ds:X509Certificate>CERTIFICADO PEM</ds:X509Certificate>
<ds:X509SubjectName>SUJETO AL QUE LE EXPIDIERON EL CERTIFICADO </ds:X509SubjectName>
<ds:X509IssuerSerial>
<ds:X509IssuerName> EMISOR DEL CERTIFICADO</ds:X509IssuerName>
<ds:X509SerialNumber>NUMERO DE SERIE DEL CERTIFICADO</ds:X509SerialNumber>
</ds:X509IssuerSerial>
</ds:X509Data>
</ds:KeyInfo>
Generar digestvalue para KEYINFO con los xmlns:

<ds:KeyInfo
xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2"'
xmlns:fe="'.self::$SCHEMA_NS[$this->version].'"
xmlns:sts="http://www.dian.gov.co/contratos/facturaelectronica/v1/Structures"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Id="xmldsig-identificador -keyinfo">
<ds:X509Data>
<ds:X509Certificate>CERTIFICADO PEM</ds:X509Certificate>
<ds:X509SubjectName>SUJETO AL QUE LE EXPIDIERON EL CERTIFICADO </ds:X509SubjectName>
<ds:X509IssuerSerial>
<ds:X509IssuerName></ds:X509IssuerName>
<ds:X509SerialNumber>NUMERO DE SERIE DEL CERTIFICADO</ds:X509SerialNumber>
</ds:X509IssuerSerial>
</ds:X509Data>
</ds:KeyInfo>

Aplicar formula canónica (CN14) XML codificación UTF-8


Aplicar sha256
Codificar en base 64
• Obtendremos el DIGESTVALUE DE KEYINFO
Generar SIGNEDPROPERTIES:

<xades:SignedProperties Id="xmldsig-identificador-signedprops">
<xades:SignedSignatureProperties>
<xades:SigningTime>2018-09-02T00:08:06.960-05:00</xades:SigningTime> .960 milisegundos-05:00 GTM
<xades:SigningCertificate>
<xades:Cert>
<xades:CertDigest>
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></ds:DigestMethod>
<ds:DigestValue>DIGESTVALUE DEL CERTIFICADO</ds:DigestValue>
</xades:CertDigest>
<xades:IssuerSerial>
<ds:X509IssuerName>EMISOR DEL CERTIFICADO </ds:X509IssuerName>
<ds:X509SerialNumber>NUMERO DE SERIE DEL CERTIFICADO </ds:X509SerialNumber>
</xades:IssuerSerial>
</xades:Cert>
</xades:SigningCertificate>
<xades:SignaturePolicyIdentifier>
<xades:SignaturePolicyId>
<xades:SigPolicyId>
<xades:Identifier>URL POLITICA DE FIRMA</xades:Identifier>
<xades:Description>NOMBRE POLITICA DE FIRMA</xades:Description>
</xades:SigPolicyId>
<xades:SigPolicyHash>
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></ds:DigestMethod>
<ds:DigestValue>DIGESTVALUE (SHA256) POLITICA DE FIRMA</ds:DigestValue>
</xades:SigPolicyHash>
</xades:SignaturePolicyId>
</xades:SignaturePolicyIdentifier>
<xades:SignerRole>
<xades:ClaimedRoles>
<xades:ClaimedRole>supplier</xades:ClaimedRole>
</xades:ClaimedRoles>
</xades:SignerRole>
</xades:SignedSignatureProperties>
</xades:SignedProperties
Generar digestvalue para SIGNEDPROPERTIES con los xmlns:

<xades:SignedProperties
xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2"
xmlns:fe="'.self::$SCHEMA_NS[$this->version].'"
xmlns:sts="http://www.dian.gov.co/contratos/facturaelectronica/v1/Structures"
xmlns:xades="http://uri.etsi.org/01903/v1.3.2#"
xmlns:xades141="http://uri.etsi.org/01903/v1.4.1#"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Id="xmldsig-identificador-signedprops">
<xades:SignedSignatureProperties>
<xades:SigningTime>2018-09-02T00:08:06.960-05:00</xades:SigningTime> .960 milisegundos-05:00 GTM
<xades:SigningCertificate>
<xades:Cert>
<xades:CertDigest>
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></ds:DigestMethod>
<ds:DigestValue>DIGESTVALUE DEL CERTIFICADO</ds:DigestValue>
</xades:CertDigest>
<xades:IssuerSerial>
<ds:X509IssuerName>EMISOR DEL CERTIFICADO </ds:X509IssuerName>
<ds:X509SerialNumber>NUMERO DE SERIE DEL CERTIFICADO </ds:X509SerialNumber>
</xades:IssuerSerial>
</xades:Cert>
</xades:SigningCertificate>
<xades:SignaturePolicyIdentifier>
<xades:SignaturePolicyId>
<xades:SigPolicyId>
<xades:Identifier>URL POLITICA DE FIRMA</xades:Identifier>
<xades:Description>NOMBRE POLITICA DE FIRMA</xades:Description>
</xades:SigPolicyId>
<xades:SigPolicyHash>
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></ds:DigestMethod>
<ds:DigestValue>DIGESTVALUE (SHA256) POLITICA DE FIRMA</ds:DigestValue>
</xades:SigPolicyHash>
</xades:SignaturePolicyId>
</xades:SignaturePolicyIdentifier>
<xades:SignerRole>
<xades:ClaimedRoles>
<xades:ClaimedRole>supplier</xades:ClaimedRole>
</xades:ClaimedRoles>
</xades:SignerRole>
</xades:SignedSignatureProperties>
</xades:SignedProperties

Aplicar formula canónica (CN14) XML codificación UTF-8


Aplicar sha256
Codificar en base 64
• Obtendremos el DIGESTVALUE DE SIGNEDPROPERTIES

Generar SIGNEDIFNO

<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"></ds:CanonicalizationMethod>
<ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"></ds:SignatureMethod>
<ds:Reference Id="xmldsig- identificador -ref0" URI="">
<ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"></ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></ds:DigestMethod>
<ds:DigestValue>DIGESVALUE DEL DOCUMENTO</ds:DigestValue></ds:Reference>
<ds:Reference URI="#xmldsig- identificador -keyinfo">
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></ds:DigestMethod>
<ds:DigestValue>DIGESTVALUE DE KEYINFO</ds:DigestValue></ds:Reference>
<ds:Reference URI="#xmldsig- identificador -signedprops" Type="http://uri.etsi.org/01903#SignedProperties">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"></ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></ds:DigestMethod>
<ds:DigestValue>DIGESTVALUE DE SIGNEDPROPERTIES</ds:DigestValue></ds:Reference>
</ds:SignedInfo>
Generar el SIGNATUREVALUE con los xmls:

<ds:SignedInfo
xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2"'
xmlns:fe="'.self::$SCHEMA_NS[$this->version].'"
xmlns:sts="http://www.dian.gov.co/contratos/facturaelectronica/v1/Structures"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"></ds:CanonicalizationMethod>
<ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"></ds:SignatureMethod>
<ds:Reference Id="xmldsig- identificador -ref0" URI="">
<ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"></ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></ds:DigestMethod>
<ds:DigestValue>DIGESVALUE DEL DOCUMENTO</ds:DigestValue></ds:Reference>
<ds:Reference URI="#xmldsig- identificador -keyinfo">
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></ds:DigestMethod>
<ds:DigestValue>DIGESTVALUE DE KEYINFO</ds:DigestValue></ds:Reference>
<ds:Reference URI="#xmldsig- identificador -signedprops" Type="http://uri.etsi.org/01903#SignedProperties">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"></ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></ds:DigestMethod>
<ds:DigestValue>DIGESTVALUE DE SIGNEDPROPERTIES</ds:DigestValue></ds:Reference>
</ds:SignedInfo>

Aplicar formula para canonizar cn14 para eliminar caracteres no deseados


Aplicar la firma con el CERTIFICADO (openssl_sign)
Codificar en base 64
• Obtendremos el SIGNATUREVALUE
Generar SIGNATURE

<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="xmldsig- identificador ">'.


SIGNEDINFO GENERADO
'<ds:SignatureValue Id="xmldsig- identificador -sigvalue">SIGNATUREVALUE</ds:SignatureValue>'.
KEYINFO GENERADO
'<ds:Object>'.
'<xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" xmlns:xades141="http://uri.etsi.org/01903/v1.4.1#"
Target="#xmldsig- identificador ">
SIGNEDPROPERTIES GENERADO
'</xades:QualifyingProperties>
</ds:Object>
</ds:Signature>';

Después de generar la firma del documento:


<ext:UBLExtension><ext:ExtensionContent>INSERTAR AQUI SIGNATURE </ext:ExtensionContent></ext:UBLExtension>
Herramienta en línea para verificar la firma:

https://www.aleksey.com/xmlsec/xmldsig-verifier.html

• Abrir el xml en el bloc de notas y pegar información para validar


Nota: no acepta acentos en el documento
EJEMPLO XML GENERADO Y FIRMADO

<?xml version="1.0" encoding="UTF-8" standalone="no"?>


<fe:Invoice
xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2"
xmlns:fe="http://www.dian.gov.co/contratos/facturaelectronica/v1"
xmlns:sts="http://www.dian.gov.co/contratos/facturaelectronica/v1/Structures"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.dian.gov.co/contratos/facturaelectronica/v1 ../xsd/DIAN_UBL.xsd
urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2
../../ubl2/common/UnqualifiedDataTypeSchemaModule-2.0.xsd urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2
../../ubl2/common/UBL-QualifiedDatatypes-2.0.xsd">
<ext:UBLExtensions>
<ext:UBLExtension>
<ext:ExtensionContent>
<sts:DianExtensions>
<sts:InvoiceControl>
<sts:InvoiceAuthorization>9000000108565807</sts:InvoiceAuthorization>
<sts:AuthorizationPeriod><cbc:StartDate>2018-07-26</cbc:StartDate>
<cbc:EndDate>2019-07-26</cbc:EndDate>
</sts:AuthorizationPeriod>
<sts:AuthorizedInvoices>
<sts:Prefix>PRUE</sts:Prefix>
<sts:From>980000000</sts:From>
<sts:To>985000000</sts:To>
</sts:AuthorizedInvoices>
</sts:InvoiceControl>
<sts:InvoiceSource>
<cbc:IdentificationCode listAgencyID="6" listAgencyName="United Nations Economic
Commission for Europe" listSchemeURI="urn:oasis:names:specification:ubl:codelist:gc:CountryIdentificationCode-
2.0">CO</cbc:IdentificationCode>
</sts:InvoiceSource>
<sts:SoftwareProvider>
<sts:ProviderID schemeAgencyID="195" schemeAgencyName="CO, DIAN (Direccion de
Impuestos y Aduanas Nacionales)">900529513</sts:ProviderID>
<sts:SoftwareID schemeAgencyID="195" schemeAgencyName="CO, DIAN (Direccion de
Impuestos y Aduanas Nacionales)">91d78388-1bbf-47b1-a1d9-2c38e0ad83ec</sts:SoftwareID>
</sts:SoftwareProvider>
<sts:SoftwareSecurityCode schemeAgencyID="195" schemeAgencyName="CO, DIAN (Direccion de
Impuestos y Aduanas
Nacionales)">a34d4307671afa5897dc4d197afa85de2f21dbabbcdfda2d18825199e2ade21ba42e0a8facef1732e7de416aee3772ac</st
s:SoftwareSecurityCode>
</sts:DianExtensions>
</ext:ExtensionContent>
</ext:UBLExtension>

<ext:UBLExtension>
<ext:ExtensionContent>
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="xmldsig-6c90c972-efaf-000e-a2a9-
20c891992b6a"><ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-
20010315"></ds:CanonicalizationMethod>
<ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-
sha256"></ds:SignatureMethod>
<ds:Reference Id="xmldsig-6c90c972-efaf-000e-a2a9-20c891992b6a-ref0" URI="">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-
signature"></ds:Transform>
</ds:Transforms>
<ds:DigestMethod
Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></ds:DigestMethod>
<ds:DigestValue>jyeg4FbWhDSML9wOiauTbCIhZVdu0EIeFcFiYaYllAI=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#xmldsig-6c90c972-efaf-000e-a2a9-20c891992b6a-keyinfo">
<ds:DigestMethod
Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></ds:DigestMethod>
<ds:DigestValue>7O+qyrzSFLQw4McX+Uygls2+IiFI9+PKoZmLA/2RGQA=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#xmldsig-6c90c972-efaf-000e-a2a9-20c891992b6a-signedprops"
Type="http://uri.etsi.org/01903#SignedProperties">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-
20010315"></ds:Transform>
</ds:Transforms>
<ds:DigestMethod
Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></ds:DigestMethod>
<ds:DigestValue>AT+BCUcgN4AdJlPrCq618EYAas/Xct8nwQmoyk/D7+8=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>

<ds:SignatureValue Id="xmldsig-6c90c972-efaf-000e-a2a9-20c891992b6a-
sigvalue">Q6cYa8qd9UmEDe3/umby44y34GHGqBrVLCE0TuCYD7Vm4NYgEBSMOwepVEMCrYLXA1jCXk7fZ7hjZA+698FOjGQAJAL8x9TV
zIw4tNgjwoikPOIiwkNBi1jRpxGq+2kkZLlZjUMGp27YEb3+OPoIoVS1q1vdB4aeTQEUWvdJbNzZLXCdyx+wBZOtYK3PQq0bpSJ6j6Hz0Z3NG
MKHVOWkCfMCDw7vDca+JATmEhpBbkXqku5Z2DpCJc55X9/xql9WHLKwIBw2ODO7G2mv9tXYDzjxUAOPXKIPGwNQvpszF15U1Fis8ZiGH
ODWx9Jrft1e78wEp9IZXG6UxUEqNjptHQ==</ds:SignatureValue>
<ds:KeyInfo Id="xmldsig-6c90c972-efaf-000e-a2a9-20c891992b6a-keyinfo">
<ds:X509Data>

<ds:X509Certificate>MIIG3TCCBcWgAwIBAgIQQ0+iXH7y/xNbbLOpSjQyuzANBgkqhkiG9w0BAQsFADCBqDEcMBoGA1UECQwTd
3d3LmNlcnRpY2FtYXJhLmNvbTEPMA0GA1UEBwwGQk9HT1RBMRkwFwYDVQQIDBBESVNUUklUTyBDQVBJVEFMMQswCQYDVQQ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0TMB3eTynt8Dd8ibfoy6ot+aQpqoXnbRoQSsyA93GH7k3DyAIc/T4NubaPVUySjnuhO7mv2FEF1oi</ds:X509C
ertificate>
<ds:X509SubjectName>CN=COMERCIO E MASSIVO SAS, C=CO,
emailAddress=COMERCIO.MASSIVO@HOTMAIL.COM, L=TOLIMA, O=COMERCIO E MASSIVO SAS, UNDEF=9005295133,
serialNumber=897201, OU=CERTIFACTURA, ST=IBAGUE</ds:X509SubjectName>
<ds:X509IssuerSerial>
<ds:X509IssuerName>CN=AC SUB CERTICAMARA, O=CERTICAMARA S.A, OU=NIT
830084433-7, C=CO, ST=DISTRITO CAPITAL, L=BOGOTA, street=www.certicamara.com</ds:X509IssuerName>

<ds:X509SerialNumber>89471760248049233596502046283767493307</ds:X509SerialNumber>
</ds:X509IssuerSerial>
</ds:X509Data>
</ds:KeyInfo>

<ds:Object>
<xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#"
xmlns:xades141="http://uri.etsi.org/01903/v1.4.1#" Target="#xmldsig-6c90c972-efaf-000e-a2a9-20c891992b6a">
<xades:SignedProperties Id="xmldsig-6c90c972-efaf-000e-a2a9-20c891992b6a-
signedprops">
<xades:SignedSignatureProperties><xades:SigningTime>2018-09-02T00:08:06.960-
05:00</xades:SigningTime>
<xades:SigningCertificate>
<xades:Cert>
<xades:CertDigest>
<ds:DigestMethod
Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></ds:DigestMethod>

<ds:DigestValue>bikeZ032bNPTC9HcuevEuCnrbICo2bWUVhvcwroeTU0=</ds:DigestValue>
</xades:CertDigest>
<xades:IssuerSerial>
<ds:X509IssuerName>CN=AC SUB CERTICAMARA,
O=CERTICAMARA S.A, OU=NIT 830084433-7, C=CO, ST=DISTRITO CAPITAL, L=BOGOTA,
street=www.certicamara.com</ds:X509IssuerName>

<ds:X509SerialNumber>89471760248049233596502046283767493307</ds:X509SerialNumber>
</xades:IssuerSerial>
</xades:Cert>
</xades:SigningCertificate>
<xades:SignaturePolicyIdentifier>
<xades:SignaturePolicyId>
<xades:SigPolicyId>

<xades:Identifier>https://facturaelectronica.dian.gov.co/politicadefirma/v2/politicadefirmav2.pdf</xades:Identifier>
<xades:Description>Política de firma para facturas
electrónicas de la República de Colombia.</xades:Description>
</xades:SigPolicyId>
<xades:SigPolicyHash>
<ds:DigestMethod
Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></ds:DigestMethod>

<ds:DigestValue>dMoMvtcG5aIzgYo0tIsSQeVJBDnUnfSOfBpxXrmor0Y=</ds:DigestValue>
</xades:SigPolicyHash>
</xades:SignaturePolicyId>
</xades:SignaturePolicyIdentifier>
<xades:SignerRole>
<xades:ClaimedRoles>
<xades:ClaimedRole>supplier</xades:ClaimedRole>
</xades:ClaimedRoles>
</xades:SignerRole>
</xades:SignedSignatureProperties>
</xades:SignedProperties>
</xades:QualifyingProperties>
</ds:Object></ds:Signature>
</ext:ExtensionContent>
</ext:UBLExtension>
</ext:UBLExtensions>

<cbc:UBLVersionID>UBL 2.0</cbc:UBLVersionID>
<cbc:ProfileID>DIAN 1.0</cbc:ProfileID>
<cbc:ID>PRUE980000086</cbc:ID>
<cbc:UUID schemeName="CUFE">9e0d32bf712c543ab3bcc9af619e5fd071c16203</cbc:UUID>
<cbc:IssueDate>2018-09-02</cbc:IssueDate>
<cbc:IssueTime>06:00:00</cbc:IssueTime>
<cbc:InvoiceTypeCode listAgencyID="195" listAgencyName="CO, DIAN (Direccion de Impuestos y Aduanas Nacionales)"
listSchemeURI="http://www.dian.gov.co/contratos/facturaelectronica/v1/InvoiceType">1</cbc:InvoiceTypeCode>
<cbc:Note>1\IVA - REGIMEN COMUN</cbc:Note>
<cbc:Note>2\Factura Electronica - Res.DIAN No.9000000108565807 de 2017-07-15 habilitada del PRUE-980000000 al PRUE-
985000000</cbc:Note>
<cbc:Note>3\NO SOMOS AUTORETENEDORES</cbc:Note>
<cbc:Note>4\900529513</cbc:Note>
<cbc:Note>5\Calle 13 No. 6-85 Cel. 3208467114</cbc:Note>
<cbc:Note>6\COMERCIO E-MASSIVO S.A.S.</cbc:Note>
<cbc:Note>7\Desarrollado para el facturador por Comercio e-Massivo SAS Nit. 900.529.513-3 www.e-massivo.com</cbc:Note>
<cbc:Note>8\PRUE980000086</cbc:Note>
<cbc:Note>9\NumFac: PRUE980000086 FecFac: 20180902060000 ValFac: 2543103.36 CodImp1: 01 ValImp1: 483189.64 CodImp2: 02
ValImp2: 0.00 CodImp3: 03 ValImp3: 0.00 ValImp: 3026293.00 NitOFE: 900529513 TipAdq: 13 NumAdq: 7730203 String:
PRUE980000086201809020600002543103.3601483189.64020.00030.003026293.00900529513137730203dd85db55545bd6566f36b
0fd3be9fd8555c36e</cbc:Note>
<cbc:DocumentCurrencyCode>COP</cbc:DocumentCurrencyCode>
<fe:AccountingSupplierParty>
<cbc:AdditionalAccountID>1</cbc:AdditionalAccountID>
<fe:Party>
<cac:PartyIdentification>
<cbc:ID schemeAgencyID="195" schemeAgencyName="CO, DIAN (Direccion de Impuestos y Aduanas
Nacionales)" schemeID="31">900529513</cbc:ID>
</cac:PartyIdentification>
<fe:PhysicalLocation>
<cbc:Description>Calle 13 No. 6-85 Cel. 3208467114</cbc:Description>
<fe:Address>
<cbc:Department>Tolima</cbc:Department>
<cbc:CitySubdivisionName></cbc:CitySubdivisionName>
<cbc:CityName>Ibague</cbc:CityName>
<cac:AddressLine>
<cbc:Line>Calle 13 No. 6-85 Cel. 3208467114</cbc:Line>
</cac:AddressLine>
<cac:Country>
<cbc:IdentificationCode>CO</cbc:IdentificationCode>
</cac:Country>
</fe:Address>
</fe:PhysicalLocation>
<fe:PartyTaxScheme>
<cbc:TaxLevelCode>2</cbc:TaxLevelCode>
<cac:TaxScheme></cac:TaxScheme>
</fe:PartyTaxScheme>
<fe:PartyLegalEntity>
<cbc:RegistrationName>COMERCIO E-MASSIVO S.A.S.</cbc:RegistrationName>
</fe:PartyLegalEntity>
<cac:Contact>
<cbc:Name></cbc:Name>
<cbc:Telephone></cbc:Telephone>
<cbc:ElectronicMail>comercio.massivo@hotmail.com</cbc:ElectronicMail>
</cac:Contact>
</fe:Party>
</fe:AccountingSupplierParty>
<fe:AccountingCustomerParty>
<cbc:AdditionalAccountID>2</cbc:AdditionalAccountID>
<fe:Party>
<cac:PartyIdentification><cbc:ID schemeAgencyID="195" schemeAgencyName="CO, DIAN (Direccion de Impuestos y
Aduanas Nacionales)" schemeID="13">7730203</cbc:ID>
</cac:PartyIdentification>
<fe:PhysicalLocation>
<cbc:Description>Cra. 7 No. 6-51</cbc:Description>
<fe:Address>
<cbc:Department>HUILA</cbc:Department>
<cbc:CitySubdivisionName></cbc:CitySubdivisionName>
<cbc:CityName>NEIVA</cbc:CityName>
<cac:AddressLine>
<cbc:Line>Cra. 7 No. 6-51</cbc:Line>
</cac:AddressLine>
<cac:Country>
<cbc:IdentificationCode>CO</cbc:IdentificationCode>
</cac:Country>
</fe:Address>
</fe:PhysicalLocation>
<fe:PartyTaxScheme>
<cbc:TaxLevelCode>2</cbc:TaxLevelCode>
<cac:TaxScheme></cac:TaxScheme>
</fe:PartyTaxScheme>
<fe:PartyLegalEntity>
<cbc:RegistrationName>HIPOLITO ARMANDO SANTOFIMIO GUZMAN</cbc:RegistrationName>
</fe:PartyLegalEntity>
<cac:Contact><cbc:Name>HIPOLITO ARMANDO SANTOFIMIO GUZMAN</cbc:Name>
<cbc:Telephone></cbc:Telephone>
<cbc:ElectronicMail>compucargasneiva@hotmail.com</cbc:ElectronicMail>
</cac:Contact>
<fe:Person><cbc:FirstName>HIPOLITO ARMANDO SANTOFIMIO GUZMAN</cbc:FirstName>
<cbc:FamilyName>HIPOLITO ARMANDO SANTOFIMIO GUZMAN</cbc:FamilyName>
</fe:Person>
</fe:Party>
</fe:AccountingCustomerParty>
<cac:PaymentExchangeRate>
<cbc:SourceCurrencyCode>COP</cbc:SourceCurrencyCode>
<cbc:TargetCurrencyCode>COP</cbc:TargetCurrencyCode>
<cbc:CalculationRate>1.000</cbc:CalculationRate>
<cbc:Date>2018-09-02</cbc:Date></cac:PaymentExchangeRate>
<fe:TaxTotal><cbc:TaxAmount currencyID="COP">483189.64</cbc:TaxAmount>
<cbc:TaxEvidenceIndicator>false</cbc:TaxEvidenceIndicator>
<fe:TaxSubtotal><cbc:TaxableAmount currencyID="COP">2543103.36</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="COP">483189.64</cbc:TaxAmount>
<cbc:Percent>19</cbc:Percent>
<cac:TaxCategory><cac:TaxScheme><cbc:ID>01</cbc:ID>
<cbc:TaxTypeCode>01</cbc:TaxTypeCode></cac:TaxScheme>
</cac:TaxCategory>
</fe:TaxSubtotal>
</fe:TaxTotal>
<fe:LegalMonetaryTotal>
<cbc:LineExtensionAmount currencyID="COP">2543103.36</cbc:LineExtensionAmount>
<cbc:TaxExclusiveAmount currencyID="COP">2543103.36</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID="COP">3026293.00</cbc:TaxInclusiveAmount>
<cbc:PayableAmount currencyID="COP">3026293.00</cbc:PayableAmount>
</fe:LegalMonetaryTotal>
<fe:InvoiceLine>
<cbc:ID>1</cbc:ID>
<cbc:InvoicedQuantity unitCode="WSD">1.00</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="COP">2543103.36</cbc:LineExtensionAmount>
<cbc:FreeOfChargeIndicator>false</cbc:FreeOfChargeIndicator>
<cac:PricingReference></cac:PricingReference>
<fe:Item><cbc:Description>MIKRO KIOSCO MOTOROLA </cbc:Description>
<cac:SellersItemIdentification>
<cbc:ID>1116</cbc:ID>
</cac:SellersItemIdentification>
</fe:Item>
<fe:Price>
<cbc:PriceAmount currencyID="COP">2543103.36</cbc:PriceAmount>
</fe:Price>
</fe:InvoiceLine>
</fe:Invoice>
Créditos:

COMERCIO E-MASSIVO SAS


JOHN MAURICIO ARCINIEGAS ROMERO
INGENIERO DE SISTEMAS

comercio.massivo@hotmail.com
mauricio778@hotmail.com

https://www.e-massivo.com/

Вам также может понравиться