Electronic Invoice Schema Guide
Electronic Invoice Schema Guide
xsd
element FacturaElectronica
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
content complex
prope
rties
children Clave CodigoActividad NumeroConsecutivo FechaEmision Emisor Receptor CondicionVenta PlazoCredito
MedioPago DetalleServicio OtrosCargos ResumenFactura InformacionReferencia Otros ds:Signature
documentation
annot Elemento Raiz de la Facturacion Electrónica
ation
source <xs:element name="FacturaElectronica">
<xs:annotation>
<xs:documentation>Elemento Raiz de la Facturacion
Electrónica</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Clave" type="ClaveType">
<xs:annotation>
<xs:documentation>Corresponde a la clave del comprobante. Es un
campo de 50 posiciones y se tiene que utilizar para la consulta del código
QR. Ver nota 1 y 4.1</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="CodigoActividad">
<xs:annotation>
<xs:documentation>Se debe indicar el código de la actividad
económica a la cual corresponde el comprobante electrónico</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="6"/>
<xs:minLength value="6"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="NumeroConsecutivo" type="NumeroConsecutivoType">
<xs:annotation>
<xs:documentation>Numeración consecutiva del
comprobante</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="FechaEmision" type="xs:dateTime"/>
<xs:element name="Emisor" type="EmisorType">
<xs:annotation>
<xs:documentation>Emisor del documento</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Receptor" type="ReceptorType">
<xs:annotation>
<xs:documentation>Receptor del documento</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="CondicionVenta">
<xs:annotation>
<xs:documentation>Condiciones de la venta: 01 Contado, 02 Crédito,
03 Consignación, 04 Apartado, 05 Arrendamiento con opción de compra, 06
Arrendamiento en función financiera, 07 Cobro a favor de un tercero, 08
servicxios prestados al estado a credito, 09 pago del servicio prestado al
estado, 99 Otros</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="01">
<xs:annotation>
<xs:documentation>Contado</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="02">
<xs:annotation>
<xs:documentation>Crédito</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="03">
<xs:annotation>
<xs:documentation>Consignación</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="04">
<xs:annotation>
<xs:documentation>Apartado</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="05">
<xs:annotation>
<xs:documentation>Arrendamiento con opción de
compra</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="06">
<xs:annotation>
<xs:documentation>Arrendamiento en función
financiera</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="07">
<xs:annotation>
<xs:documentation>Cobro a favor de un
tercero</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="08">
<xs:annotation>
<xs:documentation>Servicios prestados al Estado a crédito
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="09">
<xs:annotation>
<xs:documentation>Pago del servicios prestado al Estado
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="99">
<xs:annotation>
<xs:documentation>Otros</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="PlazoCredito" minOccurs="0">
<xs:annotation>
<xs:documentation>Plazo del crédito, es obligatorio cuando la venta
del producto o prestación del servicio sea a crédito</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="10"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="MedioPago" maxOccurs="4">
<xs:annotation>
<xs:documentation>Corresponde al medio de pago empleado: 01
Efectivo, 02 Tarjeta, 03 Cheque, 04 Transferencia - depósito bancario, 05 -
Recaudado por terceros, 99 Otros</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="01">
<xs:annotation>
<xs:documentation>Efectivo</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="02">
<xs:annotation>
<xs:documentation> Tarjeta</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="03">
<xs:annotation>
<xs:documentation>Cheque</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="04">
<xs:annotation>
<xs:documentation>Transferencia - depósito
bancario</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="05">
<xs:annotation>
<xs:documentation>Recaudado por terceros</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="99">
<xs:annotation>
<xs:documentation>Otros</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="DetalleServicio" minOccurs="0">
<xs:annotation>
<xs:documentation>Detalle de la mercancia o servicio
prestado.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="LineaDetalle" maxOccurs="1000">
<xs:annotation>
<xs:documentation>Cada línea del detalle de la mercancia o
servicio prestado.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="NumeroLinea" type="xs:positiveInteger">
<xs:annotation>
<xs:documentation>Número de línea del
detalle</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Codigo">
<xs:annotation>
<xs:documentation>Código de Producto/servicio
</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="13"/>
<xs:minLength value="13"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CodigoComercial" type="CodigoType"
minOccurs="0" maxOccurs="5"/>
<xs:element name="Cantidad">
<xs:annotation>
<xs:documentation>Cantidad</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:decimal">
<xs:totalDigits value="16"/>
<xs:fractionDigits value="3"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="UnidadMedida" type="UnidadMedidaType">
<xs:annotation>
<xs:documentation>Unidad de medida </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="UnidadMedidaComercial" minOccurs="0">
<xs:annotation>
<xs:documentation>Unidad de medida
comercial</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="20"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Detalle">
<xs:annotation>
<xs:documentation>Detalle de la mercancia transferida o
servicio prestado</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="200"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="PrecioUnitario" type="DecimalDineroType">
<xs:annotation>
<xs:documentation>Precio Unitario</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="MontoTotal" type="DecimalDineroType">
<xs:annotation>
<xs:documentation>Se obtiene de multiplicar el campo
cantidad por el campo precio unitario</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Descuento" type="DescuentoType"
minOccurs="0" maxOccurs="5"/>
<xs:element name="SubTotal" type="DecimalDineroType">
<xs:annotation>
<xs:documentation>Se obtiene de la resta del campo
monto total menos monto de descuento concedido</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="BaseImponible" type="DecimalDineroType"
minOccurs="0">
<xs:annotation>
<xs:documentation>Base imponible
especial</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Impuesto" type="ImpuestoType"
minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Cuando el producto o servicio este
gravado con algún impuesto se debe indicar cada uno de
ellos.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ImpuestoNeto" type="DecimalDineroType"
minOccurs="0">
<xs:annotation>
<xs:documentation>Impuesto Neto</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="MontoTotalLinea"
type="DecimalDineroType">
<xs:annotation>
<xs:documentation>Existe dos maneras de obtener el
resultado del campo:
- Cuando no existe exoneración, se obtiene de la sumatoria de los campos
“subtotal”, “monto del impuesto” .
- Cuando posee una exoneración, se obtiene de la sumatoria de los campos
“Subtotal”, “Impuesto Neto”.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="OtrosCargos" type="OtrosCargosType" minOccurs="0"
maxOccurs="15">
<xs:annotation>
<xs:documentation>Información sobre otros cargos</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ResumenFactura">
<xs:complexType>
<xs:sequence>
<xs:element name="CodigoTipoMoneda" type="CodigoMonedaType"
minOccurs="0"/>
<xs:element name="TotalServGravados" type="DecimalDineroType"
minOccurs="0">
<xs:annotation>
<xs:documentation>Total de los servicios gravados con
IV</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TotalServExentos" type="DecimalDineroType"
minOccurs="0">
<xs:annotation>
<xs:documentation>Total de los servicios exentos de
IV</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TotalServExonerado" type="DecimalDineroType"
minOccurs="0">
<xs:annotation>
<xs:documentation>Total servicios exonerados del
IVA</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TotalMercanciasGravadas"
type="DecimalDineroType" minOccurs="0">
<xs:annotation>
<xs:documentation>Total mercancias gravadas con
IV</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TotalMercanciasExentas"
type="DecimalDineroType" minOccurs="0">
<xs:annotation>
<xs:documentation>Total mercancias exentas de
IV</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TotalMercExonerada" type="DecimalDineroType"
minOccurs="0">
<xs:annotation>
<xs:documentation>Total mercancías exoneradas del
IVA</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TotalGravado" type="DecimalDineroType"
minOccurs="0">
<xs:annotation>
<xs:documentation>Total gravado. se obtiene de la suma del
total servicios gravados con IV + total mercancias gravadas con
IV</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TotalExento" type="DecimalDineroType"
minOccurs="0">
<xs:annotation>
<xs:documentation>Total Exento, se obtiene de la suma de los
campos total servicios exentos IV mas total mercancias exentas
IV</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TotalExonerado" type="DecimalDineroType"
minOccurs="0">
<xs:annotation>
<xs:documentation>Se obtiene de la suma de los campos “total
servicios exonerados de IVA” mas “total de mercancías exoneradas del
IVA”.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TotalVenta" type="DecimalDineroType">
<xs:annotation>
<xs:documentation>Se obtiene de la sumatoria de los campos
“total gravado”, “total exento” y “Total Exonerado”.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TotalDescuentos" type="DecimalDineroType"
minOccurs="0">
<xs:annotation>
<xs:documentation>Se obtiene de la suma de todos los campo de
monto de descuento concedido</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TotalVentaNeta" type="DecimalDineroType">
<xs:annotation>
<xs:documentation>Se obtiene de la resta de los campos total
venta menos total descuento</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TotalImpuesto" type="DecimalDineroType"
minOccurs="0">
<xs:annotation>
<xs:documentation>Se obtiene de la suma de todos campos monto
del impuesto</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TotalIVADevuelto" type="DecimalDineroType"
minOccurs="0">
<xs:annotation>
<xs:documentation>IVA Devuelto</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TotalOtrosCargos" type="DecimalDineroType"
minOccurs="0">
<xs:annotation>
<xs:documentation>Total Otros Cargos </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TotalComprobante" type="DecimalDineroType">
<xs:annotation>
<xs:documentation>Se obtiene de la suma de los campos “total
venta neta”, “monto total del impuesto” y “total otros cargos” menos “total
IVA devuelto”, en caso de contar con dichos campos.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="InformacionReferencia" minOccurs="0" maxOccurs="10">
<xs:complexType>
<xs:sequence>
<xs:element name="TipoDoc">
<xs:annotation>
<xs:documentation>Tipo de documento de referencia. 01 Factura
electrónica, 02 Nota de débito electrónica, 03 nota de crédito electrónica,
04 Tiquete electrónico, 05 Nota de despacho, 06 Contrato, 07 Procedimiento,
08 Comprobante emitido en contigencia, 09 Devoluicion mercaderia, 10
Sustituye factura rechazada poir Ministerio de Hacienda, 11 Sustituye factura
rechazada por el receptor del comprobante, 12 Sustituye factura de
exportacion, 13 facturacion mes vencido, 99 otros</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="01">
<xs:annotation>
<xs:documentation>Factura
electrónica</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="02">
<xs:annotation>
<xs:documentation>Nota de debido
electrónica</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="03">
<xs:annotation>
<xs:documentation>nota de crédito
electrónica</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="04">
<xs:annotation>
<xs:documentation>Tiquete
electrónico</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="05">
<xs:annotation>
<xs:documentation>Nota de despacho</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="06">
<xs:annotation>
<xs:documentation>Contrato</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="07">
<xs:annotation>
<xs:documentation>Procedimiento</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="08">
<xs:annotation>
<xs:documentation>Comprobante emitido en
contigencia</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="09"/>
<xs:enumeration value="10"/>
<xs:enumeration value="11"/>
<xs:enumeration value="12"/>
<xs:enumeration value="13"/>
<xs:enumeration value="99">
<xs:annotation>
<xs:documentation>Otros</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="14"/>
<xs:enumeration value="15"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Numero" minOccurs="0">
<xs:annotation>
<xs:documentation>Número de documento de
referencia</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="FechaEmision" type="xs:dateTime">
<xs:annotation>
<xs:documentation>Fecha y hora de emisión del documento de
referencia</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Codigo" minOccurs="0">
<xs:annotation>
<xs:documentation>Código de referencia. 01 Anula documento de
referencia, 02 Corrige texto de documento de referencia, 03 Corrige monto, 04
Referencia a otro documento, 05 Sustituye comprobante provisional por
contigencia, 99 Otros</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="01">
<xs:annotation>
<xs:documentation>Anula documento de
referencia</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="02">
<xs:annotation>
<xs:documentation>Corrige texto de ocumento de
referencia</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="03">
<xs:annotation>
<xs:documentation>Corrige monto</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="04">
<xs:annotation>
<xs:documentation>Referencia a otro
documento</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="05">
<xs:annotation>
<xs:documentation>Sustituye comprobante provisional por
contigencia</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="99">
<xs:annotation>
<xs:documentation>Otros</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Razon" minOccurs="0">
<xs:annotation>
<xs:documentation>Razón de referencia</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="180"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Otros" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="OtroTexto" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Elemento opcional que se puede utilizar la
almacenar texto.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="codigo" type="xs:string">
<xs:annotation>
<xs:documentation>Código opcional para facilitar la
identificación del elemento.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="OtroContenido" minOccurs="0"
maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Elemento opcional que se puede utilizar
para almacenar contenido estructurado.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:any namespace="##other" processContents="lax"/>
</xs:sequence>
<xs:attribute name="codigo" type="xs:string">
<xs:annotation>
<xs:documentation>Código opcional para facilitar la
identificación del elemento.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element ref="ds:Signature" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
element FacturaElectronica/Clave
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type ClaveType
content simple
prope
rties
Kind Value Annotation
facet pattern \d{50,50}
s
documentation
annot Corresponde a la clave del comprobante. Es un campo de 50 posiciones y se tiene que utilizar para la consulta del código
ation QR. Ver nota 1 y 4.1
element FacturaElectronica/CodigoActividad
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element FacturaElectronica/NumeroConsecutivo
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type NumeroConsecutivoType
content simple
prope
rties
Kind Value Annotation
facet
pattern \d{20,20}
s
documentation
annot Numeración consecutiva del comprobante
ation
source <xs:element name="NumeroConsecutivo" type="NumeroConsecutivoType">
<xs:annotation>
<xs:documentation>Numeración consecutiva del
comprobante</xs:documentation>
</xs:annotation>
</xs:element>
element FacturaElectronica/FechaEmision
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type xs:dateTime
content simple
prope
rties
source <xs:element name="FechaEmision" type="xs:dateTime"/>
element FacturaElectronica/Emisor
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type EmisorType
content complex
prope
rties
children Nombre Identificacion NombreComercial Ubicacion Telefono Fax CorreoElectronico
documentation
annot Emisor del documento
ation
source <xs:element name="Emisor" type="EmisorType">
<xs:annotation>
<xs:documentation>Emisor del documento</xs:documentation>
</xs:annotation>
</xs:element>
element FacturaElectronica/Receptor
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type ReceptorType
content complex
prope
rties
children Nombre Identificacion IdentificacionExtranjero NombreComercial Ubicacion OtrasSenasExtranjero Telefono Fax
CorreoElectronico
documentation
annot Receptor del documento
ation
source <xs:element name="Receptor" type="ReceptorType">
<xs:annotation>
<xs:documentation>Receptor del documento</xs:documentation>
</xs:annotation>
</xs:element>
element FacturaElectronica/CondicionVenta
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element FacturaElectronica/PlazoCredito
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element FacturaElectronica/MedioPago
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element FacturaElectronica/DetalleServicio
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
minOcc 0
prope maxOcc 1
rties content complex
children LineaDetalle
documentation
annot Detalle de la mercancia o servicio prestado.
ation
source <xs:element name="DetalleServicio" minOccurs="0">
<xs:annotation>
<xs:documentation>Detalle de la mercancia o servicio
prestado.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="LineaDetalle" maxOccurs="1000">
<xs:annotation>
<xs:documentation>Cada línea del detalle de la mercancia o servicio
prestado.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="NumeroLinea" type="xs:positiveInteger">
<xs:annotation>
<xs:documentation>Número de línea del
detalle</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Codigo">
<xs:annotation>
<xs:documentation>Código de Producto/servicio
</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="13"/>
<xs:minLength value="13"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CodigoComercial" type="CodigoType"
minOccurs="0" maxOccurs="5"/>
<xs:element name="Cantidad">
<xs:annotation>
<xs:documentation>Cantidad</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:decimal">
<xs:totalDigits value="16"/>
<xs:fractionDigits value="3"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="UnidadMedida" type="UnidadMedidaType">
<xs:annotation>
<xs:documentation>Unidad de medida </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="UnidadMedidaComercial" minOccurs="0">
<xs:annotation>
<xs:documentation>Unidad de medida
comercial</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="20"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Detalle">
<xs:annotation>
<xs:documentation>Detalle de la mercancia transferida o
servicio prestado</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="200"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="PrecioUnitario" type="DecimalDineroType">
<xs:annotation>
<xs:documentation>Precio Unitario</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="MontoTotal" type="DecimalDineroType">
<xs:annotation>
<xs:documentation>Se obtiene de multiplicar el campo cantidad
por el campo precio unitario</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Descuento" type="DescuentoType" minOccurs="0"
maxOccurs="5"/>
<xs:element name="SubTotal" type="DecimalDineroType">
<xs:annotation>
<xs:documentation>Se obtiene de la resta del campo monto
total menos monto de descuento concedido</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="BaseImponible" type="DecimalDineroType"
minOccurs="0">
<xs:annotation>
<xs:documentation>Base imponible especial</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Impuesto" type="ImpuestoType" minOccurs="0"
maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Cuando el producto o servicio este gravado
con algún impuesto se debe indicar cada uno de ellos.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ImpuestoNeto" type="DecimalDineroType"
minOccurs="0">
<xs:annotation>
<xs:documentation>Impuesto Neto</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="MontoTotalLinea" type="DecimalDineroType">
<xs:annotation>
<xs:documentation>Existe dos maneras de obtener el resultado
del campo:
- Cuando no existe exoneración, se obtiene de la sumatoria de los campos
“subtotal”, “monto del impuesto” .
- Cuando posee una exoneración, se obtiene de la sumatoria de los campos
“Subtotal”, “Impuesto Neto”.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
element FacturaElectronica/DetalleServicio/LineaDetalle
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
minOcc 1
prope maxOcc 1000
rties content complex
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type xs:positiveInteger
content simple
prope
rties
documentation
annot Número de línea del detalle
ation
source <xs:element name="NumeroLinea" type="xs:positiveInteger">
<xs:annotation>
<xs:documentation>Número de línea del detalle</xs:documentation>
</xs:annotation>
</xs:element>
element FacturaElectronica/DetalleServicio/LineaDetalle/Codigo
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type CodigoType
minOcc 0
prope maxOcc 5
rties content complex
element FacturaElectronica/DetalleServicio/LineaDetalle/Cantidad
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type UnidadMedidaType
content simple
prope
rties
Kind Value Annotation
facet enumeration Al documentation
s Alquiler de uso habitacional
enumeration Alc documentation
Alquiler de uso comercial
enumeration Cm documentation
Comisiones
enumeration I documentation
Intereses
enumeration Os documentation
Otro tipo de servicios
enumeration Sp documentation
Servicios Profesionales
enumeration Spe documentation
Servicios Personales
enumeration St documentation
Servicios Técnicos
enumeration d documentation
Día
enumeration m documentation
Metro
enumeration kg documentation
Kilogramo
enumeration s documentation
Segundo
enumeration A documentation
Ampere
enumeration K documentation
Kelvin
enumeration mol documentation
Mol
enumeration cd documentation
Candela
enumeration m² documentation
metro cuadrado
enumeration m³ documentation
metro cúbico
enumeration m/s documentation
metro por segundo
enumeration m/s² documentation
metro por segundo cuadrado
enumeration 1/m documentation
1 por metro
enumeration kg/m³ documentation
kilogramo por metro cúbico
enumeration A/m² documentation
ampere por metro cuadrado
enumeration A/m documentation
ampere por metro
enumeration mol/ documentation
mol por metro cúbico
m³
enumeration cd/m² documentation
candela por metro cuadrado
enumeration 1 documentation
uno (indice de refracción)
enumeration rad documentation
radián
enumeration sr documentation
estereorradián
enumeration Hz documentation
hertz
enumeration N documentation
newton
enumeration Pa documentation
pascal
enumeration J documentation
Joule
enumeration W documentation
Watt
enumeration C documentation
coulomb
enumeration V documentation
volt
enumeration F documentation
farad
enumeration Ω documentation
ohm
enumeration S documentation
siemens
enumeration Wb documentation
weber
enumeration T documentation
tesla
enumeration H documentation
henry
enumeration °C documentation
grado Celsius
enumeration lm documentation
lumen
enumeration lx documentation
lux
enumeration Bq documentation
Becquerel
enumeration Gy documentation
gray
enumeration Sv documentation
sievert
enumeration kat documentation
katal
enumeration Pa·s documentation
pascal segundo
enumeration N·m documentation
newton metro
enumeration N/m documentation
newton por metro
enumeration rad/s documentation
radián por segundo
enumeration rad/ documentation
radián por segundo cuadrado
s²
enumeration W/m² documentation
watt por metro cuadrado
enumeration J/K documentation
joule por kelvin
enumeration J/ documentation
joule por kilogramo
(kg·K kelvin
)
enumeration J/kg documentation
joule por kilogramo
enumeration W/ documentation
watt por metro kevin
(m·K)
enumeration J/m³ documentation
joule por metro cúbico
enumeration V/m documentation
volt por metro
enumeration C/m³ documentation
coulomb por metro cúbico
enumeration C/m² documentation
coulomb por metro cuadrado
enumeration F/m documentation
farad por metro
enumeration H/m documentation
henry por
metro
enumeration J/mol documentation
joule por mol
enumeration J/ documentation
joule por mol
(mol· kelvin
K)
enumeration C/kg documentation
coulomb por kilogramo
enumeration Gy/s documentation
gray por segundo
enumeration W/sr documentation
watt por estereorradián
enumeration W/ documentation
watt por metro cuadrado estereorradián
(m²·s
r)
enumeration kat/ documentation
katal por metro cúbico
m³
enumeration min documentation
minuto
enumeration h documentation
hora
enumeration d documentation
día
enumeration º documentation
grado
enumeration ´ documentation
minuto
enumeration ´´ documentation
segundo
enumeration L documentation
litro
enumeration t documentation
tonelada
enumeration Np documentation
neper
enumeration B documentation
bel
enumeration eV documentation
electronvolt
enumeration u documentation
unidad de masa atómica unificada
enumeration ua documentation
unidad astronómica
enumeration Unid documentation
unidad
enumeration Gal documentation
galón
enumeration g documentation
gramo
enumeration Km documentation
kilometro
enumeration Kw documentation
kilovatios
enumeration ln documentation
pulgada
enumeration cm documentation
centimetro
enumeration mL documentation
mililitro
enumeration mm documentation
milimetro
enumeration Oz documentation
onzas
enumeration Otros
documentation
annot Unidad de medida
ation
source <xs:element name="UnidadMedida" type="UnidadMedidaType">
<xs:annotation>
<xs:documentation>Unidad de medida </xs:documentation>
</xs:annotation>
</xs:element>
element
FacturaElectronica/DetalleServicio/LineaDetalle/UnidadMedidaComercial
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element FacturaElectronica/DetalleServicio/LineaDetalle/Detalle
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type DecimalDineroType
content simple
prope
rties
Kind Value Annotation
facet minInclusive 0
s maxInclusive 9999999999999.9999
9
totalDigits 18
fractionDigits 5
documentation
annot Precio Unitario
ation
source <xs:element name="PrecioUnitario" type="DecimalDineroType">
<xs:annotation>
<xs:documentation>Precio Unitario</xs:documentation>
</xs:annotation>
</xs:element>
element FacturaElectronica/DetalleServicio/LineaDetalle/MontoTotal
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type DecimalDineroType
content simple
prope
rties
Kind Value Annotation
facet minInclusive 0
s maxInclusive 9999999999999.9999
9
totalDigits 18
fractionDigits 5
documentation
annot Se obtiene de multiplicar el campo cantidad por el campo precio unitario
ation
source <xs:element name="MontoTotal" type="DecimalDineroType">
<xs:annotation>
<xs:documentation>Se obtiene de multiplicar el campo cantidad por el
campo precio unitario</xs:documentation>
</xs:annotation>
</xs:element>
element FacturaElectronica/DetalleServicio/LineaDetalle/Descuento
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type DescuentoType
minOcc 0
prope maxOcc 5
rties content complex
element FacturaElectronica/DetalleServicio/LineaDetalle/SubTotal
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type DecimalDineroType
content simple
prope
rties
Kind Value Annotation
facet minInclusive 0
s maxInclusive 9999999999999.9999
9
totalDigits 18
fractionDigits 5
documentation
annot Se obtiene de la resta del campo monto total menos monto de descuento concedido
ation
source <xs:element name="SubTotal" type="DecimalDineroType">
<xs:annotation>
<xs:documentation>Se obtiene de la resta del campo monto total menos
monto de descuento concedido</xs:documentation>
</xs:annotation>
</xs:element>
element FacturaElectronica/DetalleServicio/LineaDetalle/BaseImponible
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type DecimalDineroType
minOcc 0
prope maxOcc 1
rties content simple
Kind Value Annotation
facet minInclusive 0
s maxInclusive 9999999999999.9999
9
totalDigits 18
fractionDigits 5
documentation
annot Base imponible especial
ation
source <xs:element name="BaseImponible" type="DecimalDineroType" minOccurs="0">
<xs:annotation>
<xs:documentation>Base imponible especial</xs:documentation>
</xs:annotation>
</xs:element>
element FacturaElectronica/DetalleServicio/LineaDetalle/Impuesto
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type ImpuestoType
minOcc 0
prope maxOcc unbounded
rties content complex
element FacturaElectronica/DetalleServicio/LineaDetalle/ImpuestoNeto
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type DecimalDineroType
minOcc 0
prope maxOcc 1
rties content simple
Kind Value Annotation
facet minInclusive 0
s maxInclusive 9999999999999.9999
9
totalDigits 18
fractionDigits 5
documentation
annot Impuesto Neto
ation
source <xs:element name="ImpuestoNeto" type="DecimalDineroType" minOccurs="0">
<xs:annotation>
<xs:documentation>Impuesto Neto</xs:documentation>
</xs:annotation>
</xs:element>
element FacturaElectronica/DetalleServicio/LineaDetalle/MontoTotalLinea
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type DecimalDineroType
content simple
prope
rties
Kind Value Annotation
facet minInclusive 0
s maxInclusive 9999999999999.9999
9
totalDigits 18
fractionDigits 5
documentation
annot Existe dos maneras de obtener el resultado del campo:
ation - Cuando no existe exoneración, se obtiene de la sumatoria de los campos “subtotal”, “monto del impuesto” .
- Cuando posee una exoneración, se obtiene de la sumatoria de los campos “Subtotal”, “Impuesto Neto”.
element FacturaElectronica/OtrosCargos
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type OtrosCargosType
minOcc 0
prope maxOcc 15
rties content complex
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
content complex
prope
rties
children CodigoTipoMoneda TotalServGravados TotalServExentos TotalServExonerado TotalMercanciasGravadas
TotalMercanciasExentas TotalMercExonerada TotalGravado TotalExento TotalExonerado TotalVenta
TotalDescuentos TotalVentaNeta TotalImpuesto TotalIVADevuelto TotalOtrosCargos TotalComprobante
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type CodigoMonedaType
minOcc 0
prope maxOcc 1
rties content complex
element FacturaElectronica/ResumenFactura/TotalServGravados
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type DecimalDineroType
minOcc 0
prope maxOcc 1
rties content simple
Kind Value Annotation
facet minInclusive 0
s maxInclusive 9999999999999.9999
9
totalDigits 18
fractionDigits 5
documentation
annot Total de los servicios gravados con IV
ation
source <xs:element name="TotalServGravados" type="DecimalDineroType" minOccurs="0">
<xs:annotation>
<xs:documentation>Total de los servicios gravados con
IV</xs:documentation>
</xs:annotation>
</xs:element>
element FacturaElectronica/ResumenFactura/TotalServExentos
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type DecimalDineroType
minOcc 0
prope maxOcc 1
rties content simple
Kind Value Annotation
facet minInclusive 0
s maxInclusive 9999999999999.9999
9
totalDigits 18
fractionDigits 5
documentation
annot Total de los servicios exentos de IV
ation
source <xs:element name="TotalServExentos" type="DecimalDineroType" minOccurs="0">
<xs:annotation>
<xs:documentation>Total de los servicios exentos de IV</xs:documentation>
</xs:annotation>
</xs:element>
element FacturaElectronica/ResumenFactura/TotalServExonerado
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type DecimalDineroType
minOcc 0
prope maxOcc 1
rties content simple
Kind Value Annotation
facet minInclusive 0
s maxInclusive 9999999999999.9999
9
totalDigits 18
fractionDigits 5
documentation
annot Total servicios exonerados del IVA
ation
source <xs:element name="TotalServExonerado" type="DecimalDineroType" minOccurs="0">
<xs:annotation>
<xs:documentation>Total servicios exonerados del IVA</xs:documentation>
</xs:annotation>
</xs:element>
element FacturaElectronica/ResumenFactura/TotalMercanciasGravadas
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type DecimalDineroType
minOcc 0
prope maxOcc 1
rties content simple
Kind Value Annotation
facet minInclusive 0
s maxInclusive 9999999999999.9999
9
totalDigits 18
fractionDigits 5
documentation
annot Total mercancias gravadas con IV
ation
source <xs:element name="TotalMercanciasGravadas" type="DecimalDineroType"
minOccurs="0">
<xs:annotation>
<xs:documentation>Total mercancias gravadas con IV</xs:documentation>
</xs:annotation>
</xs:element>
element FacturaElectronica/ResumenFactura/TotalMercanciasExentas
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type DecimalDineroType
minOcc 0
prope maxOcc 1
rties content simple
Kind Value Annotation
facet minInclusive 0
s maxInclusive 9999999999999.9999
9
totalDigits 18
fractionDigits 5
documentation
annot Total mercancias exentas de IV
ation
source <xs:element name="TotalMercanciasExentas" type="DecimalDineroType"
minOccurs="0">
<xs:annotation>
<xs:documentation>Total mercancias exentas de IV</xs:documentation>
</xs:annotation>
</xs:element>
element FacturaElectronica/ResumenFactura/TotalMercExonerada
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type DecimalDineroType
minOcc 0
prope maxOcc 1
rties content simple
Kind Value Annotation
facet minInclusive 0
s maxInclusive 9999999999999.9999
9
totalDigits 18
fractionDigits 5
documentation
annot Total mercancías exoneradas del IVA
ation
source <xs:element name="TotalMercExonerada" type="DecimalDineroType" minOccurs="0">
<xs:annotation>
<xs:documentation>Total mercancías exoneradas del IVA</xs:documentation>
</xs:annotation>
</xs:element>
element FacturaElectronica/ResumenFactura/TotalGravado
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type DecimalDineroType
minOcc 0
prope maxOcc 1
rties content simple
Kind Value Annotation
facet minInclusive 0
s maxInclusive 9999999999999.9999
9
totalDigits 18
fractionDigits 5
documentation
annot Total gravado. se obtiene de la suma del total servicios gravados con IV + total mercancias gravadas con IV
ation
source <xs:element name="TotalGravado" type="DecimalDineroType" minOccurs="0">
<xs:annotation>
<xs:documentation>Total gravado. se obtiene de la suma del total
servicios gravados con IV + total mercancias gravadas con
IV</xs:documentation>
</xs:annotation>
</xs:element>
element FacturaElectronica/ResumenFactura/TotalExento
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type DecimalDineroType
minOcc 0
prope maxOcc 1
rties content simple
Kind Value Annotation
facet minInclusive 0
s maxInclusive 9999999999999.9999
9
totalDigits 18
fractionDigits 5
documentation
annot Total Exento, se obtiene de la suma de los campos total servicios exentos IV mas total mercancias exentas IV
ation
source <xs:element name="TotalExento" type="DecimalDineroType" minOccurs="0">
<xs:annotation>
<xs:documentation>Total Exento, se obtiene de la suma de los campos total
servicios exentos IV mas total mercancias exentas IV</xs:documentation>
</xs:annotation>
</xs:element>
element FacturaElectronica/ResumenFactura/TotalExonerado
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type DecimalDineroType
minOcc 0
prope maxOcc 1
rties content simple
Kind Value Annotation
facet minInclusive 0
maxInclusive 9999999999999.9999
s 9
totalDigits 18
fractionDigits 5
documentation
annot Se obtiene de la suma de los campos “total servicios exonerados de IVA” mas “total de mercancías exoneradas del IVA”.
ation
source <xs:element name="TotalExonerado" type="DecimalDineroType" minOccurs="0">
<xs:annotation>
<xs:documentation>Se obtiene de la suma de los campos “total servicios
exonerados de IVA” mas “total de mercancías exoneradas del
IVA”.</xs:documentation>
</xs:annotation>
</xs:element>
element FacturaElectronica/ResumenFactura/TotalVenta
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type DecimalDineroType
content simple
prope
rties
Kind Value Annotation
facet minInclusive 0
s maxInclusive 9999999999999.9999
9
totalDigits 18
fractionDigits 5
documentation
annot Se obtiene de la sumatoria de los campos “total gravado”, “total exento” y “Total Exonerado”.
ation
source <xs:element name="TotalVenta" type="DecimalDineroType">
<xs:annotation>
<xs:documentation>Se obtiene de la sumatoria de los campos “total
gravado”, “total exento” y “Total Exonerado”.</xs:documentation>
</xs:annotation>
</xs:element>
element FacturaElectronica/ResumenFactura/TotalDescuentos
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type DecimalDineroType
minOcc 0
prope maxOcc 1
rties content simple
Kind Value Annotation
facet minInclusive 0
s maxInclusive 9999999999999.9999
9
totalDigits 18
fractionDigits 5
documentation
annot Se obtiene de la suma de todos los campo de monto de descuento concedido
ation
source <xs:element name="TotalDescuentos" type="DecimalDineroType" minOccurs="0">
<xs:annotation>
<xs:documentation>Se obtiene de la suma de todos los campo de monto de
descuento concedido</xs:documentation>
</xs:annotation>
</xs:element>
element FacturaElectronica/ResumenFactura/TotalVentaNeta
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type DecimalDineroType
content simple
prope
rties
Kind Value Annotation
facet minInclusive 0
s maxInclusive 9999999999999.9999
9
totalDigits 18
fractionDigits 5
documentation
annot Se obtiene de la resta de los campos total venta menos total descuento
ation
source <xs:element name="TotalVentaNeta" type="DecimalDineroType">
<xs:annotation>
<xs:documentation>Se obtiene de la resta de los campos total venta menos
total descuento</xs:documentation>
</xs:annotation>
</xs:element>
element FacturaElectronica/ResumenFactura/TotalImpuesto
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type DecimalDineroType
minOcc 0
prope maxOcc 1
rties content simple
Kind Value Annotation
facet minInclusive 0
s maxInclusive 9999999999999.9999
9
totalDigits 18
fractionDigits 5
documentation
annot Se obtiene de la suma de todos campos monto del impuesto
ation
source <xs:element name="TotalImpuesto" type="DecimalDineroType" minOccurs="0">
<xs:annotation>
<xs:documentation>Se obtiene de la suma de todos campos monto del
impuesto</xs:documentation>
</xs:annotation>
</xs:element>
element FacturaElectronica/ResumenFactura/TotalIVADevuelto
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type DecimalDineroType
minOcc 0
prope maxOcc 1
rties content simple
Kind Value Annotation
facet minInclusive 0
s maxInclusive 9999999999999.9999
9
totalDigits 18
fractionDigits 5
documentation
annot IVA Devuelto
ation
source <xs:element name="TotalIVADevuelto" type="DecimalDineroType" minOccurs="0">
<xs:annotation>
<xs:documentation>IVA Devuelto</xs:documentation>
</xs:annotation>
</xs:element>
element FacturaElectronica/ResumenFactura/TotalOtrosCargos
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type DecimalDineroType
minOcc 0
prope maxOcc 1
rties content simple
Kind Value Annotation
facet minInclusive 0
s maxInclusive 9999999999999.9999
9
totalDigits 18
fractionDigits 5
documentation
annot Total Otros Cargos
ation
source <xs:element name="TotalOtrosCargos" type="DecimalDineroType" minOccurs="0">
<xs:annotation>
<xs:documentation>Total Otros Cargos </xs:documentation>
</xs:annotation>
</xs:element>
element FacturaElectronica/ResumenFactura/TotalComprobante
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type DecimalDineroType
content simple
prope
rties
Kind Value Annotation
facet minInclusive 0
s maxInclusive 9999999999999.9999
9
totalDigits 18
fractionDigits 5
documentation
annot Se obtiene de la suma de los campos “total venta neta”, “monto total del impuesto” y “total otros cargos” menos “total
ation IVA devuelto”, en caso de contar con dichos campos.
element FacturaElectronica/InformacionReferencia
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
minOcc 0
prope maxOcc 10
rties content complex
element FacturaElectronica/InformacionReferencia/TipoDoc
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element FacturaElectronica/InformacionReferencia/Numero
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element FacturaElectronica/InformacionReferencia/FechaEmision
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type xs:dateTime
content simple
prope
rties
documentation
annot Fecha y hora de emisión del documento de referencia
ation
source <xs:element name="FechaEmision" type="xs:dateTime">
<xs:annotation>
<xs:documentation>Fecha y hora de emisión del documento de
referencia</xs:documentation>
</xs:annotation>
</xs:element>
element FacturaElectronica/InformacionReferencia/Codigo
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element FacturaElectronica/InformacionReferencia/Razon
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element FacturaElectronica/Otros
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
minOcc 0
prope maxOcc 1
rties content complex
element FacturaElectronica/Otros/OtroTexto
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
attribute FacturaElectronica/Otros/OtroTexto/@codigo
type xs:string
documentation
annot Código opcional para facilitar la identificación del elemento.
ation
source <xs:attribute name="codigo" type="xs:string">
<xs:annotation>
<xs:documentation>Código opcional para facilitar la identificación del
elemento.</xs:documentation>
</xs:annotation>
</xs:attribute>
element FacturaElectronica/Otros/OtroContenido
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
minOcc 0
prope maxOcc unbounded
rties content complex
Name Type Use Default Fixed Annotation
attri codigo xs:string documentation
butes Código
opcional para
facilitar la
identificación
del elemento.
documentation
annot Elemento opcional que se puede utilizar para almacenar contenido estructurado.
ation
source <xs:element name="OtroContenido" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Elemento opcional que se puede utilizar para almacenar
contenido estructurado.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:any namespace="##other" processContents="lax"/>
</xs:sequence>
<xs:attribute name="codigo" type="xs:string">
<xs:annotation>
<xs:documentation>Código opcional para facilitar la identificación
del elemento.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
attribute FacturaElectronica/Otros/OtroContenido/@codigo
type xs:string
documentation
annot Código opcional para facilitar la identificación del elemento.
ation
source <xs:attribute name="codigo" type="xs:string">
<xs:annotation>
<xs:documentation>Código opcional para facilitar la identificación del
elemento.</xs:documentation>
</xs:annotation>
</xs:attribute>
complexType CodigoMonedaType
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element CodigoMonedaType/TipoCambio
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type DecimalDineroType
content simple
prope
rties
Kind Value Annotation
facet minInclusive 0
maxInclusive 9999999999999.9999
s 9
totalDigits 18
fractionDigits 5
documentation
annot Tipo de cambio
ation
source <xs:element name="TipoCambio" type="DecimalDineroType">
<xs:annotation>
<xs:documentation>Tipo de cambio</xs:documentation>
</xs:annotation>
</xs:element>
complexType CodigoType
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element CodigoType/Tipo
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element CodigoType/Codigo
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
complexType DescuentoType
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element DescuentoType/MontoDescuento
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type DecimalDineroType
content simple
prope
rties
Kind Value Annotation
facet minInclusive 0
s maxInclusive 9999999999999.9999
9
totalDigits 18
fractionDigits 5
documentation
annot Monto de descuento concedido, el cual es obligatorio si existe descuento
ation
source <xs:element name="MontoDescuento" type="DecimalDineroType">
<xs:annotation>
<xs:documentation>Monto de descuento concedido, el cual es obligatorio si
existe descuento</xs:documentation>
</xs:annotation>
</xs:element>
element DescuentoType/NaturalezaDescuento
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
complexType EmisorType
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element EmisorType/Nombre
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element EmisorType/Identificacion
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type IdentificacionType
content complex
prope
rties
children Tipo Numero
element EmisorType/NombreComercial
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element EmisorType/Ubicacion
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type UbicacionType
content complex
prope
rties
children Provincia Canton Distrito Barrio OtrasSenas
element EmisorType/Telefono
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type TelefonoType
minOcc 0
prope maxOcc 1
rties content complex
nillable true
children CodigoPais NumTelefono
source <xs:element name="Telefono" type="TelefonoType" nillable="true"
minOccurs="0"/>
element EmisorType/Fax
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type TelefonoType
minOcc 0
prope maxOcc 1
rties content complex
nillable true
children CodigoPais NumTelefono
element EmisorType/CorreoElectronico
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
complexType ExoneracionType
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element ExoneracionType/TipoDocumento
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element ExoneracionType/NumeroDocumento
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element ExoneracionType/NombreInstitucion
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element ExoneracionType/FechaEmision
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type xs:dateTime
content simple
prope
rties
documentation
annot Fecha y hora de la emisión del documento de exoneración o autorización.
ation
source <xs:element name="FechaEmision" type="xs:dateTime">
<xs:annotation>
<xs:documentation>Fecha y hora de la emisión del documento de exoneración
o autorización.</xs:documentation>
</xs:annotation>
</xs:element>
element ExoneracionType/PorcentajeExoneracion
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type restriction of xs:positiveInteger
content simple
prope
rties
Kind Value Annotation
facet totalDigits 3
s
documentation
annot Porcentaje de la exoneración
ation
source <xs:element name="PorcentajeExoneracion">
<xs:annotation>
<xs:documentation>Porcentaje de la exoneración</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:positiveInteger">
<xs:totalDigits value="3"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
element ExoneracionType/MontoExoneracion
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type DecimalDineroType
content simple
prope
rties
Kind Value Annotation
facet minInclusive 0
s maxInclusive 9999999999999.9999
9
totalDigits 18
fractionDigits 5
documentation
annot Monto del impuesto exonerado
ation
source <xs:element name="MontoExoneracion" type="DecimalDineroType">
<xs:annotation>
<xs:documentation>Monto del impuesto exonerado</xs:documentation>
</xs:annotation>
</xs:element>
complexType IdentificacionType
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element IdentificacionType/Tipo
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element IdentificacionType/Numero
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element ImpuestoType/CodigoTarifa
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element ImpuestoType/Tarifa
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element ImpuestoType/FactorIVA
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element ImpuestoType/Monto
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type DecimalDineroType
content simple
prope
rties
Kind Value Annotation
facet minInclusive 0
s maxInclusive 9999999999999.9999
9
totalDigits 18
fractionDigits 5
documentation
annot Monto del impuesto
ation
source <xs:element name="Monto" type="DecimalDineroType">
<xs:annotation>
<xs:documentation>Monto del impuesto</xs:documentation>
</xs:annotation>
</xs:element>
element ImpuestoType/Exoneracion
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type ExoneracionType
minOcc 0
prope maxOcc 1
rties content complex
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element OtrosCargosType/TipoDocumento
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element OtrosCargosType/NumeroIdentidadTercero
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element OtrosCargosType/NombreTercero
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element OtrosCargosType/Detalle
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element OtrosCargosType/Porcentaje
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type DecimalDineroType
content simple
prope
rties
Kind Value Annotation
facet minInclusive 0
s maxInclusive 9999999999999.9999
9
totalDigits 18
fractionDigits 5
documentation
annot Monto del cargo
ation
source <xs:element name="MontoCargo" type="DecimalDineroType">
<xs:annotation>
<xs:documentation>Monto del cargo</xs:documentation>
</xs:annotation>
</xs:element>
complexType ReceptorType
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
children Nombre Identificacion IdentificacionExtranjero NombreComercial Ubicacion OtrasSenasExtranjero Telefono Fax
CorreoElectronico
element FacturaElectronica/Receptor
used
by
source <xs:complexType name="ReceptorType">
<xs:sequence>
<xs:element name="Nombre" nillable="false">
<xs:annotation>
<xs:documentation>Nombre o razon social</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="100"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Identificacion" type="IdentificacionType"/>
<xs:element name="IdentificacionExtranjero" minOccurs="0">
<xs:annotation>
<xs:documentation>Este campo será de condición obligatoria, cuando el
cliente lo requiera</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="20"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="NombreComercial" minOccurs="0">
<xs:annotation>
<xs:documentation>En caso de que se cuente con nombre comercial debe
indicarse</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="80"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Ubicacion" type="UbicacionType" minOccurs="0"/>
<xs:element name="OtrasSenasExtranjero" minOccurs="0">
<xs:annotation>
<xs:documentation>Campo para incluir la direccion del extranjero, en
caso de requerirse.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="300"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Telefono" type="TelefonoType" minOccurs="0"/>
<xs:element name="Fax" type="TelefonoType" minOccurs="0"/>
<xs:element name="CorreoElectronico" minOccurs="0">
<xs:annotation>
<xs:documentation>Este campo será de condición obligatoria, cuando el
cliente lo requiera. Debe cumplir con la siguiente estructura:
\s*\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*\s*
</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="160"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
element ReceptorType/Nombre
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type IdentificacionType
content complex
prope
rties
children Tipo Numero
element ReceptorType/IdentificacionExtranjero
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element ReceptorType/Ubicacion
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type UbicacionType
minOcc 0
prope maxOcc 1
rties content complex
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element ReceptorType/Telefono
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type TelefonoType
minOcc 0
prope maxOcc 1
rties content complex
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
type TelefonoType
minOcc 0
prope maxOcc 1
rties content complex
element ReceptorType/CorreoElectronico
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
complexType TelefonoType
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element TelefonoType/CodigoPais
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element TelefonoType/NumTelefono
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element UbicacionType/Provincia
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element UbicacionType/Canton
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element UbicacionType/Barrio
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element UbicacionType/OtrasSenas
diagram
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
simpleType ClaveType
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
simpleType DecimalDineroType
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
simpleType NumeroConsecutivoType
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
simpleType UnidadMedidaType
namespac https://cdn.comprobanteselectronicos.go.cr/xml-schemas/v4.3/facturaElectronica
e
element CanonicalizationMethod
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type ds:CanonicalizationMethodType
content complex
prope mixed true
rties
complexType SignedInfoType
used
by
Name Type Use Default Fixed Annotation
attri Algorithm xs:anyURI required
butes
source <xs:element name="CanonicalizationMethod"
type="ds:CanonicalizationMethodType"/>
element DigestMethod
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type ds:DigestMethodType
content complex
prope mixed true
rties
complexType ReferenceType
used
by
Name Type Use Default Fixed Annotation
attri
Algorithm xs:anyURI required
butes
source <xs:element name="DigestMethod" type="ds:DigestMethodType"/>
element DigestValue
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type ds:DigestValueType
content simple
prope
rties
complexType ReferenceType
used
by
source <xs:element name="DigestValue" type="ds:DigestValueType"/>
element DSAKeyValue
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type ds:DSAKeyValueType
content complex
prope
rties
children ds:P ds:Q ds:G ds:Y ds:J ds:Seed ds:PgenCounter
complexType KeyValueType
used
by
source <xs:element name="DSAKeyValue" type="ds:DSAKeyValueType"/>
element KeyInfo
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type ds:KeyInfoType
content complex
prope mixed true
rties
children ds:KeyName ds:KeyValue ds:RetrievalMethod ds:X509Data ds:PGPData ds:SPKIData ds:MgmtData
complexType SignatureType
used
by
Name Type Use Default Fixed Annotation
attri Id xs:ID optional
butes
source <xs:element name="KeyInfo" type="ds:KeyInfoType"/>
element KeyName
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type xs:string
content simple
prope
rties
complexType KeyInfoType
used
by
source <xs:element name="KeyName" type="string"/>
element KeyValue
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type ds:KeyValueType
content complex
prope mixed true
rties
children ds:DSAKeyValue ds:RSAKeyValue
complexType KeyInfoType
used
by
source <xs:element name="KeyValue" type="ds:KeyValueType"/>
element Manifest
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type ds:ManifestType
content complex
prope
rties
children ds:Reference
Name Type Use Default Fixed Annotation
attri Id xs:ID optional
butes
source <xs:element name="Manifest" type="ds:ManifestType"/>
element MgmtData
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type xs:string
content simple
prope
rties
complexType KeyInfoType
used
by
source <xs:element name="MgmtData" type="string"/>
element Object
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type ds:ObjectType
content complex
prope mixed true
rties
complexType SignatureType
used
by
Name Type Use Default Fixed Annotation
attri Id xs:ID optional
butes MimeType xs:string optional
Encoding xs:anyURI optional
source <xs:element name="Object" type="ds:ObjectType"/>
element PGPData
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type ds:PGPDataType
content complex
prope
rties
children ds:PGPKeyID ds:PGPKeyPacket ds:PGPKeyPacket
complexType KeyInfoType
used
by
source <xs:element name="PGPData" type="ds:PGPDataType"/>
element Reference
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type ds:ReferenceType
content complex
prope
rties
children ds:Transforms ds:DigestMethod ds:DigestValue
complexTypes ManifestType SignedInfoType
used
by
Name Type Use Default Fixed Annotation
attri Id xs:ID optional
butes URI xs:anyURI optional
Type xs:anyURI optional
source <xs:element name="Reference" type="ds:ReferenceType"/>
element RetrievalMethod
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type ds:RetrievalMethodType
content complex
prope
rties
children ds:Transforms
complexType KeyInfoType
used
by
Name Type Use Default Fixed Annotation
attri URI xs:anyURI
butes Type xs:anyURI optional
element RSAKeyValue
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type ds:RSAKeyValueType
content complex
prope
rties
children ds:Modulus ds:Exponent
complexType KeyValueType
used
by
source <xs:element name="RSAKeyValue" type="ds:RSAKeyValueType"/>
element Signature
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type ds:SignatureType
content complex
prope
rties
children ds:SignedInfo ds:SignatureValue ds:KeyInfo ds:Object
element FacturaElectronic
used a
by
Name Type Use Default Fixed Annotation
attri Id xs:ID optional
butes
source <xs:element name="Signature" type="ds:SignatureType"/>
element SignatureMethod
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type ds:SignatureMethodType
content complex
prope mixed true
rties
children ds:HMACOutputLength
complexType SignedInfoType
used
by
Name Type Use Default Fixed Annotation
attri Algorithm xs:anyURI required
butes
source <xs:element name="SignatureMethod" type="ds:SignatureMethodType"/>
element SignatureProperties
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type ds:SignaturePropertiesType
content complex
prope
rties
children ds:SignatureProperty
Name Type Use Default Fixed Annotation
attri Id xs:ID optional
butes
source <xs:element name="SignatureProperties" type="ds:SignaturePropertiesType"/>
element SignatureProperty
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type ds:SignaturePropertyType
content complex
prope mixed true
rties
complexType SignaturePropertiesType
used
by
Name Type Use Default Fixed Annotation
attri Target xs:anyURI required
butes Id xs:ID optional
element SignatureValue
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type ds:SignatureValueType
content complex
prope
rties
complexType SignatureType
used
by
Name Type Use Default Fixed Annotation
attri Id xs:ID optional
butes
source <xs:element name="SignatureValue" type="ds:SignatureValueType"/>
element SignedInfo
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type ds:SignedInfoType
content complex
prope
rties
children ds:CanonicalizationMethod ds:SignatureMethod ds:Reference
complexType SignatureType
used
by
Name Type Use Default Fixed Annotation
attri Id xs:ID optional
butes
source <xs:element name="SignedInfo" type="ds:SignedInfoType"/>
element SPKIData
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type ds:SPKIDataType
content complex
prope
rties
children ds:SPKISexp
complexType KeyInfoType
used
by
source <xs:element name="SPKIData" type="ds:SPKIDataType"/>
element Transform
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type ds:TransformType
content complex
prope mixed true
rties
children ds:XPath
complexType TransformsType
used
by
Name Type Use Default Fixed Annotation
attri Algorithm xs:anyURI required
butes
source <xs:element name="Transform" type="ds:TransformType"/>
element Transforms
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type ds:TransformsType
content complex
prope
rties
children ds:Transform
complexTypes ReferenceType RetrievalMethodType
used
by
source <xs:element name="Transforms" type="ds:TransformsType"/>
element X509Data
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type ds:X509DataType
content complex
prope
rties
children ds:X509IssuerSerial ds:X509SKI ds:X509SubjectName ds:X509Certificate ds:X509CRL
complexType KeyInfoType
used
by
source <xs:element name="X509Data" type="ds:X509DataType"/>
complexType CanonicalizationMethodType
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
mixed true
prope
rties
element CanonicalizationMetho
used d
by
Name Type Use Default Fixed Annotation
attri Algorithm xs:anyURI required
butes
source <xs:complexType name="CanonicalizationMethodType" mixed="true">
<xs:sequence>
<xs:any namespace="##any" minOccurs="0" maxOccurs="unbounded"/>
<!-- (0,unbounded) elements from (1,1) namespace -->
</xs:sequence>
<xs:attribute name="Algorithm" type="anyURI" use="required"/>
</xs:complexType>
attribute CanonicalizationMethodType/@Algorithm
type xs:anyURI
use required
prope
rties
source <xs:attribute name="Algorithm" type="anyURI" use="required"/>
complexType DigestMethodType
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
mixed true
prope
rties
element DigestMethod
used
by
Name Type Use Default Fixed Annotation
attri Algorithm xs:anyURI required
butes
source <xs:complexType name="DigestMethodType" mixed="true">
<xs:sequence>
<xs:any namespace="##other" processContents="lax" minOccurs="0"
maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Algorithm" type="anyURI" use="required"/>
</xs:complexType>
attribute DigestMethodType/@Algorithm
type xs:anyURI
use required
prope
rties
source <xs:attribute name="Algorithm" type="anyURI" use="required"/>
complexType DSAKeyValueType
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
element DSAKeyValueType/P
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type ds:CryptoBinary
content simple
prope
rties
source <xs:element name="P" type="ds:CryptoBinary"/>
element DSAKeyValueType/Q
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type ds:CryptoBinary
content simple
prope
rties
source <xs:element name="Q" type="ds:CryptoBinary"/>
element DSAKeyValueType/G
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type ds:CryptoBinary
minOcc 0
prope maxOcc 1
rties content simple
namespac http://www.w3.org/2000/09/xmldsig#
e
type ds:CryptoBinary
content simple
prope
rties
source <xs:element name="Y" type="ds:CryptoBinary"/>
element DSAKeyValueType/J
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type ds:CryptoBinary
minOcc 0
prope maxOcc 1
rties content simple
element DSAKeyValueType/Seed
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type ds:CryptoBinary
content simple
prope
rties
source <xs:element name="Seed" type="ds:CryptoBinary"/>
element DSAKeyValueType/PgenCounter
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type ds:CryptoBinary
content simple
prope
rties
source <xs:element name="PgenCounter" type="ds:CryptoBinary"/>
complexType KeyInfoType
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
mixed true
prope
rties
children ds:KeyName ds:KeyValue ds:RetrievalMethod ds:X509Data ds:PGPData ds:SPKIData ds:MgmtData
element KeyInfo
used
by
Name Type Use Default Fixed Annotation
attri Id xs:ID optional
butes
source <xs:complexType name="KeyInfoType" mixed="true">
<xs:choice maxOccurs="unbounded">
<xs:element ref="ds:KeyName"/>
<xs:element ref="ds:KeyValue"/>
<xs:element ref="ds:RetrievalMethod"/>
<xs:element ref="ds:X509Data"/>
<xs:element ref="ds:PGPData"/>
<xs:element ref="ds:SPKIData"/>
<xs:element ref="ds:MgmtData"/>
<xs:any namespace="##other" processContents="lax"/>
<!-- (1,1) elements from (0,unbounded) namespaces -->
</xs:choice>
<xs:attribute name="Id" type="ID" use="optional"/>
</xs:complexType>
attribute KeyInfoType/@Id
type xs:ID
use optional
prope
rties
source <xs:attribute name="Id" type="ID" use="optional"/>
complexType KeyValueType
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
mixed true
prope
rties
children ds:DSAKeyValue ds:RSAKeyValue
element KeyValue
used
by
source <xs:complexType name="KeyValueType" mixed="true">
<xs:choice>
<xs:element ref="ds:DSAKeyValue"/>
<xs:element ref="ds:RSAKeyValue"/>
<xs:any namespace="##other" processContents="lax"/>
</xs:choice>
</xs:complexType>
complexType ManifestType
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
children ds:Reference
element Manifest
used
by
Name Type Use Default Fixed Annotation
attri Id xs:ID optional
butes
source <xs:complexType name="ManifestType">
<xs:sequence>
<xs:element ref="ds:Reference" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Id" type="ID" use="optional"/>
</xs:complexType>
attribute ManifestType/@Id
type xs:ID
use optional
prope
rties
source <xs:attribute name="Id" type="ID" use="optional"/>
complexType ObjectType
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
mixed true
prope
rties
element Object
used
by
Name Type Use Default Fixed Annotation
attri Id xs:ID optional
butes MimeType xs:string optional
Encoding xs:anyURI optional
source <xs:complexType name="ObjectType" mixed="true">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:any namespace="##any" processContents="lax"/>
</xs:sequence>
<xs:attribute name="Id" type="ID" use="optional"/>
<xs:attribute name="MimeType" type="string" use="optional"/>
<xs:attribute name="Encoding" type="anyURI" use="optional"/>
<!-- add a grep facet -->
</xs:complexType>
attribute ObjectType/@Id
type xs:ID
use optional
prope
rties
source <xs:attribute name="Id" type="ID" use="optional"/>
attribute ObjectType/@MimeType
type xs:string
use optional
prope
rties
source <xs:attribute name="MimeType" type="string" use="optional"/>
attribute ObjectType/@Encoding
type xs:anyURI
use optional
prope
rties
source <xs:attribute name="Encoding" type="anyURI" use="optional"/>
complexType PGPDataType
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
element PGPDataType/PGPKeyID
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type xs:base64Binary
content simple
prope
rties
source <xs:element name="PGPKeyID" type="base64Binary"/>
element PGPDataType/PGPKeyPacket
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type xs:base64Binary
minOcc 0
prope maxOcc 1
rties content simple
element PGPDataType/PGPKeyPacket
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type xs:base64Binary
content simple
prope
rties
source <xs:element name="PGPKeyPacket" type="base64Binary"/>
complexType ReferenceType
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
attribute ReferenceType/@Id
type xs:ID
use optional
prope
rties
source <xs:attribute name="Id" type="ID" use="optional"/>
attribute ReferenceType/@URI
type xs:anyURI
use optional
prope
rties
source <xs:attribute name="URI" type="anyURI" use="optional"/>
attribute ReferenceType/@Type
type xs:anyURI
use optional
prope
rties
source <xs:attribute name="Type" type="anyURI" use="optional"/>
complexType RetrievalMethodType
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
children ds:Transforms
element RetrievalMethod
used
by
Name Type Use Default Fixed Annotation
attri URI xs:anyURI
butes Type xs:anyURI optional
attribute RetrievalMethodType/@URI
type xs:anyURI
attribute RetrievalMethodType/@Type
type xs:anyURI
use optional
prope
rties
source <xs:attribute name="Type" type="anyURI" use="optional"/>
complexType RSAKeyValueType
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
element RSAKeyValueType/Modulus
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type ds:CryptoBinary
content simple
prope
rties
source <xs:element name="Modulus" type="ds:CryptoBinary"/>
element RSAKeyValueType/Exponent
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type ds:CryptoBinary
content simple
prope
rties
source <xs:element name="Exponent" type="ds:CryptoBinary"/>
complexType SignatureMethodType
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
mixed true
prope
rties
children ds:HMACOutputLength
element SignatureMethod
used
by
Name Type Use Default Fixed Annotation
attri Algorithm xs:anyURI required
butes
source <xs:complexType name="SignatureMethodType" mixed="true">
<xs:sequence>
<xs:element name="HMACOutputLength" type="ds:HMACOutputLengthType"
minOccurs="0"/>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
<!-- (0,unbounded) elements from (1,1) external namespace -->
</xs:sequence>
<xs:attribute name="Algorithm" type="anyURI" use="required"/>
</xs:complexType>
attribute SignatureMethodType/@Algorithm
type xs:anyURI
use required
prope
rties
source <xs:attribute name="Algorithm" type="anyURI" use="required"/>
element SignatureMethodType/HMACOutputLength
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type ds:HMACOutputLengthType
minOcc 0
prope maxOcc 1
rties content simple
source <xs:element name="HMACOutputLength" type="ds:HMACOutputLengthType"
minOccurs="0"/>
complexType SignaturePropertiesType
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
children ds:SignatureProperty
element SignatureProperties
used
by
Name Type Use Default Fixed Annotation
attri Id xs:ID optional
butes
source <xs:complexType name="SignaturePropertiesType">
<xs:sequence>
<xs:element ref="ds:SignatureProperty" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Id" type="ID" use="optional"/>
</xs:complexType>
attribute SignaturePropertiesType/@Id
type xs:ID
use optional
prope
rties
source <xs:attribute name="Id" type="ID" use="optional"/>
complexType SignaturePropertyType
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
mixed true
prope
rties
element SignaturePropert
used y
by
Name Type Use Default Fixed Annotation
attri Target xs:anyURI required
butes Id xs:ID optional
attribute SignaturePropertyType/@Target
type xs:anyURI
use required
prope
rties
source <xs:attribute name="Target" type="anyURI" use="required"/>
attribute SignaturePropertyType/@Id
type xs:ID
use optional
prope
rties
source <xs:attribute name="Id" type="ID" use="optional"/>
complexType SignatureType
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
attribute SignatureType/@Id
type xs:ID
use optional
prope
rties
source <xs:attribute name="Id" type="ID" use="optional"/>
complexType SignatureValueType
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
complexType SignedInfoType
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
attribute SignedInfoType/@Id
type xs:ID
use optional
prope
rties
source <xs:attribute name="Id" type="ID" use="optional"/>
complexType SPKIDataType
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
children ds:SPKISexp
element SPKIDat
used a
by
source <xs:complexType name="SPKIDataType">
<xs:sequence maxOccurs="unbounded">
<xs:element name="SPKISexp" type="base64Binary"/>
<xs:any namespace="##other" processContents="lax" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
element SPKIDataType/SPKISexp
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type xs:base64Binary
content simple
prope
rties
source <xs:element name="SPKISexp" type="base64Binary"/>
complexType TransformsType
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
children ds:Transform
element Transforms
used
by
source <xs:complexType name="TransformsType">
<xs:sequence>
<xs:element ref="ds:Transform" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
complexType TransformType
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
mixed true
prope
rties
children ds:XPath
element Transform
used
by
Name Type Use Default Fixed Annotation
attri Algorithm xs:anyURI required
butes
source <xs:complexType name="TransformType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:any namespace="##other" processContents="lax"/>
<!-- (1,1) elements from (0,unbounded) namespaces -->
<xs:element name="XPath" type="string"/>
</xs:choice>
<xs:attribute name="Algorithm" type="anyURI" use="required"/>
</xs:complexType>
attribute TransformType/@Algorithm
type xs:anyURI
use required
prope
rties
source <xs:attribute name="Algorithm" type="anyURI" use="required"/>
element TransformType/XPath
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type xs:string
content simple
prope
rties
source <xs:element name="XPath" type="string"/>
complexType X509DataType
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
element X509DataType/X509IssuerSerial
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type ds:X509IssuerSerialType
content complex
prope
rties
children ds:X509IssuerName ds:X509SerialNumber
namespac http://www.w3.org/2000/09/xmldsig#
e
type xs:base64Binary
content simple
prope
rties
source <xs:element name="X509SKI" type="base64Binary"/>
element X509DataType/X509SubjectName
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type xs:string
content simple
prope
rties
source <xs:element name="X509SubjectName" type="string"/>
element X509DataType/X509Certificate
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type xs:base64Binary
content simple
prope
rties
source <xs:element name="X509Certificate" type="base64Binary"/>
element X509DataType/X509CRL
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type xs:base64Binary
content simple
prope
rties
source <xs:element name="X509CRL" type="base64Binary"/>
complexType X509IssuerSerialType
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
element X509IssuerSerialType/X509IssuerName
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type xs:string
content simple
prope
rties
source <xs:element name="X509IssuerName" type="string"/>
element X509IssuerSerialType/X509SerialNumber
diagram
namespac http://www.w3.org/2000/09/xmldsig#
e
type xs:integer
content simple
prope
rties
source <xs:element name="X509SerialNumber" type="integer"/>
simpleType CryptoBinary
namespac http://www.w3.org/2000/09/xmldsig#
e
type xs:base64Binary
base base64Binary
prope
rties
elements RSAKeyValueType/Exponent DSAKeyValueType/G DSAKeyValueType/J RSAKeyValueType/Modulus
used DSAKeyValueType/P DSAKeyValueType/PgenCounter DSAKeyValueType/Q DSAKeyValueType/Seed
by DSAKeyValueType/Y
simpleType DigestValueType
namespac http://www.w3.org/2000/09/xmldsig#
e
type xs:base64Binary
base base64Binary
prope
rties
element DigestValue
used
by
source <xs:simpleType name="DigestValueType">
<xs:restriction base="base64Binary"/>
</xs:simpleType>
simpleType HMACOutputLengthType
namespac http://www.w3.org/2000/09/xmldsig#
e
type xs:integer
base integer
prope
rties
element SignatureMethodType/HMACOutputLength
used
by
source <xs:simpleType name="HMACOutputLengthType">
<xs:restriction base="integer"/>
</xs:simpleType>