Encabezados del XML Factura Electrónica Costa Rica 4.3

10
8270
Factura Electrónica Costa Rica

Para generar el XML de la factura electrónica de Costa Rica se debe de seguir un formato específico para que estas sean aprobadas por el sistema de Hacienda de Costa Rica. En esta nueva versión 4.3 se cambió la dirección de los schemas y se agregaron nuevos tipos de documento.

Una de las preguntas más frecuentes es sobre como debe de estar creado el encabezado del XML, aquí te dejamos los ejemplos respectivos.

[display-posts id=”737″ wrapper=”div” image_size=”thumbnail” include_excerpt=”true” excerpt_length=”15″]

Factura Electrónica – 01

<FacturaElectronica 
   xmlns="https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

Tiquete Electrónico – 04

<TiqueteElectronico
   xmlns="https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/tiqueteElectronico"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

Factura Electrónica de Compra – 08

<FacturaElectronicaCompra
   xmlns="https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronicaCompra"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

Factura Electrónica de Exportación – 09

<FacturaElectronicaExportacion
   xmlns="https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronicaExportacion"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

[display-posts id=”365″ wrapper=”div” image_size=”thumbnail” include_excerpt=”true” excerpt_length=”15″]

Nota de Débito Electrónica – 02

<NotaDebitoElectronica
   xmlns="https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/notaDebitoElectronica"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

Nota de Crédito Electrónica – 03

<NotaCreditoElectronica
    xmlns="https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/notaCreditoElectronica"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

Mensaje Receptor – 05

<MensajeReceptor
    xmlns="https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/mensajeReceptor"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

10 COMMENTS

  1. Buenos días. Roy. en la FE me esta saliendo este error:


    50604071900310162397100100001010000038616101003750
    DESCONOCIDO
    01
    000000000
    3
    El comprobante electrónico tiene los siguientes errores: [ codigo, mensaje, fila, columna -1, “cvc-elt.1.a: Cannot find the declaration of element ‘FacturaElectronica’.”, 1, 243 ]
    0
    0




    not(ancestor-or-self::ds:Signature)

    Y EL ENCABEZADO ES ASI:
    5060407190031016239710010000101000003861610100375052310100100001010000038616<

LEAVE A REPLY

Please enter your comment!
Please enter your name here