none
XML de ejemplo en la Retencion RRS feed

  • Debate general

  • Agradecere una orientacion

    Estoy usando el ejemplo de prueba que esta en la guia de la SUNAT del xml

    para la retencion, usando el usuario y la clave de prueba con el servicio de prueba

    y me da el error 2335, que es el mismo que me da cuando envio mi formato xml

    con los datos de la empresa, coloco el xml de prueba identico al que esta en la guia

    de la sunat (le di copy y paste)

    <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
    <Retention
    xmlns="urn:sunat:names:specification:ubl:peru:schema:xsd:Retention-1"
    xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
    xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
    xmlns:ccts="urn:un:unece:uncefact:documentation:2"
    xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
    xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2"
    xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2"
    xmlns:sac="urn:sunat:names:specification:ubl:peru:schema:xsd:SunatAggregateComponents-1"
    xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <ext:UBLExtensions>
    <ext:UBLExtension>
    <ext:ExtensionContent>
    <ds:Signature Id="signatureKG">
    <ds:SignedInfo>
    <ds:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"/>
    <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#dsa-sha1"/>
    <ds:Reference URI="">
    <ds:Transforms>
    <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
    </ds:Transforms>
    <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
    <ds:DigestValue>+pruib33lOapq6GSw58GgQLR8VGIGqANloj4EqB1cb4=</ds:DigestValue>
    </ds:Reference>
    </ds:SignedInfo>
    <ds:SignatureValue>Oatv5xMfFInuGqiX9SoLDTy2yuLf0tTlMFkWtkdw1z/Ss6kiDz+vIgZhgKfIaxp+JbVy57GT52f1
    8D6+WMYZ0xOxTK2mojNkJNewwTTXzqOqrrAlObs9YoS5JAQAMi/TwkR4brNniU9tVwyybirHxw0H
    WVzN2bB43yQd9hOlXzRUYpC8/sXw78h7ME3E/zeu882aOFySOnHWB63imBQGcYBV+LIGR/JW8ER+
    0VLMLatdwPVRbrWmz1/NIy5CWp1xWMaM6fC/9SXV0O1Lqopk0UeX2I2yuf05QhmVfjgUu6GnS3m6
    o6zM9J36iDvMVZyj7vbJTwI8SfWjTSNqxXlqPQ==</ds:SignatureValue>
    <ds:KeyInfo>
    <ds:X509Data>
    <ds:X509Certificate>MIIF9TCCBN2gAwIBAgIGAK0oRTg/MA0GCSqGSIb3DQEBCwUAMFkxCzAJBgNVBAYTAlRSMUowSAYD
    VQQDDEFNYWxpIE3DvGjDvHIgRWxla3Ryb25payBTZXJ0aWZpa2EgSGl6bWV0IFNhxJ9sYXnEsWPE
    sXPEsSAtIFRlc3QgMTAeFw0wOTEwMjAxMTM3MTJaFw0xNDEwMTkxMTM3MTJaMIGgMRowGAYDVQQL
    DBFHZW5lbCBNw7xkw7xybMO8azEUMBIGA1UEBRMLMTAwMDAwMDAwMDIxbDBqBgNVBAMMY0F5ZMSx
    biBHcm91cCAtIFR1cml6bSDEsHRoYWxhdCDEsGhyYWNhdCBUZWtzdGlsIMSwbsWfYWF0IFBhemFy
    bGFtYSBEYW7EscWfbWFubMSxayDFnmlya2V0bGVyIEd1cnVidTCCASIwDQYJKoZIhvcNAQEBBQAD
    ggEPADCCAQoCggEBAKDt8WamB8ZCGqkLVP0rzY/BHGEXy8lT56m2dK7tswsvZxZYkV2qLGAxRlIY
    m6BR6bhJ7EWxbEbN+JTvyN+GF+hHjDivfslyAyHFkj0SSzv8ZZueMolkGBMchnk+AVt7NLOWDfQ7
    Z4w8eoKVlTnm/Oc0mwNlD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QYJKoZIhvcNAQELBQADggEBAGCcBJ7cEfYc2MaPchbc1yPXku8V8SOWpjg+jrTXBW98dy9HvciW
    iMwtPnC2DRjdsyGv3bxwRZr9wXMRrMNwRjyFe9JPA7bSscEgaXwzDUG5FCvfS/PNT+XCce+VECAx
    6Q3R1ZRSA49fYz6tDB4Ia5HVBXZODmrCs26XisHF6kuS5N/yGg8E7VC1BRr/SmxXeLTdjQYAfo7l
    xCz4dT6wP5TOiBvF+lyWW1bi9nbliXyb/e5HjCp4k/ra9LTskjbY/Ukl5O8G9JEAViZkjvxDX7T0
    yVRHgMGiioIKVMwU6Lrtln607BNurLwED0OeoZ4wBgkBiB5vXofreXrfN2pHZ24=
    </ds:X509Certificate>
    </ds:X509Data>
    </ds:KeyInfo>
    </ds:Signature>
    </ext:ExtensionContent>
    </ext:UBLExtension>
    </ext:UBLExtensions>
    <cbc:UBLVersionID>2.0</cbc:UBLVersionID>
    <cbc:CustomizationID>1.0</cbc:CustomizationID>
    <cac:Signature>
    <cbc:ID>IDSignKG</cbc:ID>
    <cac:SignatoryParty>
    <cac:PartyIdentification>
    <cbc:ID>20100113612</cbc:ID>
    </cac:PartyIdentification>
    <cac:PartyName>
    <cbc:Name><![CDATA[K&G Laboratorios]]></cbc:Name>
    </cac:PartyName>
    </cac:SignatoryParty>
    <cac:DigitalSignatureAttachment>
    <cac:ExternalReference>
    <cbc:URI>#signatureKG</cbc:URI>
    </cac:ExternalReference>
    </cac:DigitalSignatureAttachment>
    </cac:Signature>
    <cbc:ID>R001-123</cbc:ID>
    <cbc:IssueDate>2015-12-24</cbc:IssueDate>
    <cac:AgentParty>
    <cac:PartyIdentification>
    <cbc:ID schemeID="6">20100113612</cbc:ID>
    </cac:PartyIdentification>
    <cac:PartyName>
    <cbc:Name><![CDATA[K&G Laboratorios]]></cbc:Name>
    </cac:PartyName>
    <cac:PostalAddress>
    <cbc:ID>150114</cbc:ID>
    <cbc:StreetName>AV. LOS OLIVOS 767</cbc:StreetName>
    <cbc:CitySubdivisionName>URB. SANTA FELICIA</cbc:CitySubdivisionName>
    <cbc:CityName>LIMA</cbc:CityName>
    <cbc:CountrySubentity>LIMA</cbc:CountrySubentity>
    <cbc:District>MOLINA</cbc:District>
    <cac:Country>
    <cbc:IdentificationCode>PE</cbc:IdentificationCode>
    </cac:Country>
    </cac:PostalAddress>
    <cac:PartyLegalEntity>
    <cbc:RegistrationName><![CDATA[K&G Asociados S. A.]]></cbc:RegistrationName>
    </cac:PartyLegalEntity>
    </cac:AgentParty>
    <cac:ReceiverParty>
    <cac:PartyIdentification>
    <cbc:ID schemeID="6">20100070970</cbc:ID>
    </cac:PartyIdentification>
    <cac:PartyName>
    <cbc:Name><![CDATA[SUPERMERCADOS PERUANOS SOCIEDAD ANONIMA O S.P.S.A.]]></cbc:Name>
    </cac:PartyName>
    <cac:PostalAddress>
    <cbc:ID>150130</cbc:ID>
    <cbc:StreetName>CAL. CALLE MORELLI 181 INT. P-2 </cbc:StreetName>
    <cbc:CitySubdivisionName>- </cbc:CitySubdivisionName>
    <cbc:CityName>LIMA</cbc:CityName>
    <cbc:CountrySubentity>LIMA</cbc:CountrySubentity>
    <cbc:District>SAN BORJA</cbc:District>
    <cac:Country>
    <cbc:IdentificationCode>PE</cbc:IdentificationCode>
    </cac:Country>
    </cac:PostalAddress>
    <cac:PartyLegalEntity>
    <cbc:RegistrationName><![CDATA[SUPERMERCADOS PERUANOS SOCIEDAD ANONIMA O S.P.S.A.]]></cbc:RegistrationName>
    </cac:PartyLegalEntity>
    </cac:ReceiverParty>
    <sac:SUNATRetentionSystemCode>01</sac:SUNATRetentionSystemCode>
    <sac:SUNATRetentionPercent>3</sac:SUNATRetentionPercent>
    <cbc:Note>Se emite con facturas del periodo 12/2015</cbc:Note>
    <cbc:TotalInvoiceAmount currencyID="PEN">517.50</cbc:TotalInvoiceAmount>
    <sac:SUNATTotalPaid currencyID="PEN">16732.50</sac:SUNATTotalPaid>
    <sac:SUNATRetentionDocumentReference>
    <cbc:ID schemeID="01">0001-14</cbc:ID>
    <cbc:IssueDate>2015-12-22</cbc:IssueDate>
    <cbc:TotalInvoiceAmount currencyID="PEN">23000.00</cbc:TotalInvoiceAmount>
    <cac:Payment>
    <cbc:ID>1</cbc:ID>
    <cbc:PaidAmount currencyID="PEN">14000.00</cbc:PaidAmount>
    <cbc:PaidDate>2015-12-24</cbc:PaidDate>
    </cac:Payment>
    <sac:SUNATRetentionInformation>
    <sac:SUNATRetentionAmount currencyID="PEN">420.00</sac:SUNATRetentionAmount>
    <sac:SUNATRetentionDate>2015-12-24</sac:SUNATRetentionDate>
    <sac:SUNATNetTotalPaid currencyID="PEN">13580.00</sac:SUNATNetTotalPaid>
    <cac:ExchangeRate>
    <cbc:SourceCurrencyCode>PEN</cbc:SourceCurrencyCode>
    <cbc:TargetCurrencyCode>PEN</cbc:TargetCurrencyCode>
    <cbc:CalculationRate>1.00</cbc:CalculationRate>
    <cbc:Date>2015-12-24</cbc:Date>
    </cac:ExchangeRate>
    </sac:SUNATRetentionInformation>
    </sac:SUNATRetentionDocumentReference>
    <sac:SUNATRetentionDocumentReference>
    <cbc:ID schemeID="01">E001-457</cbc:ID>
    <cbc:IssueDate>2015-12-10</cbc:IssueDate>
    <cbc:TotalInvoiceAmount currencyID="USD">1000.00</cbc:TotalInvoiceAmount>
    <cac:Payment>
    <cbc:ID>1</cbc:ID>
    <cbc:PaidAmount currencyID="USD">1000.00</cbc:PaidAmount>
    <cbc:PaidDate>2015-12-24</cbc:PaidDate>
    </cac:Payment>
    <sac:SUNATRetentionInformation>
    <sac:SUNATRetentionAmount currencyID="PEN">97.50</sac:SUNATRetentionAmount>
    <sac:SUNATRetentionDate>2015-12-24</sac:SUNATRetentionDate>
    <sac:SUNATNetTotalPaid currencyID="PEN">3152.50</sac:SUNATNetTotalPaid>
    <cac:ExchangeRate>
    <cbc:SourceCurrencyCode>USD</cbc:SourceCurrencyCode>
    <cbc:TargetCurrencyCode>PEN</cbc:TargetCurrencyCode>
    <cbc:CalculationRate>3.25</cbc:CalculationRate>
    <cbc:Date>2015-12-24</cbc:Date>
    </cac:ExchangeRate>
    </sac:SUNATRetentionInformation>
    </sac:SUNATRetentionDocumentReference>
    </Retention>

    lunes, 4 de julio de 2016 18:33