sfVerifactu / ConsultaFactuSistemaFacturacion
ASP AutoIt C C (Unicode) C++ C++ (Unicode) C# DataFlex Delphi Foxpro Go Java Node.js Objective-C Perl PHP Extension PowerBuilder Powershell PureBasic Python CkPython Ruby SQL Server Swift TCL VB.NET VB6 VBScript Xojo
Use ChilkatAx-win32.pkg
Procedure Test
Handle hoXml
Boolean iSuccess
String sSoapRequestBody
String sEndpoint
String sSoapAction
String sContentType
Handle hoHttp
Handle hoResp
onseXml Handle hoResponseXml
Integer iStatusCode
String sIDVersion
String sNombreRazon
String sNIF
String sIndicadorRepresentante
String sEjercicio
Integer iPeriodo
String sIndicadorPaginacion
String sResultadoConsulta
String sIDEmisorFactura
String sNumSerieFactura
String sFechaExpedicionFactura
String sNombreRazonEmisor
String sRefExterna
String sSubsanacion
String sRechazoPrevio
String sSinRegistroPrevio
String sGeneradoPor
String sTipoFactura
String sTipoRectificativa
String sBaseRectificada
String sCuotaRectificada
String sCuotaRecargoRectificado
String sFechaOperacion
String sDescripcionOperacion
String sFacturaSimplificadaArt7273
String sFacturaSinIdentifDestinatarioArt61d
String sMacrodato
String sEmitidaPorTerceroODestinatario
String sCupon
Integer iImpuesto
Integer iClaveRegimen
String sCalificacionOperacion
String sTipoImpositivo
String sBaseImponibleOimporteNoSujeto
String sBaseImponibleACoste
String sCuotaRepercutida
String sTipoRecargoEquivalencia
String sCuotaRecargoEquivalencia
String sCuotaTotal
String sImporteTotal
String sNombreSistemaInformatico
String sIdSistemaInformatico
String sVersion
String sNumeroInstalacion
String sTipoUsoPosibleSoloVerifactu
String sTipoUsoPosibleMultiOT
String sIndicadorMultiplesOT
String sFechaHoraHusoGenRegistro
String sNumRegistroAcuerdoFacturacion
String sIdAcuerdoSistemaInformatico
Integer iTipoHuella
String sHuella
String sNifRepresentante
String sFechaFinVeriFactu
String sIncidencia
String sNIFPresentador
String sTimestampPresentacion
String sIdPeticion
String sTimestampUltimaModificacion
String sEstadoRegistro
String sCodigoErrorRegistro
String sDescripcionErrorRegistro
String sTemp1
Get Create (RefClass(cComChilkatXml)) To hoXml
If (Not(IsComObjectCreated(hoXml))) Begin
Send CreateComObject of hoXml
End
Set ComTag Of hoXml To "soapenv:Envelope"
Get ComAddAttribute Of hoXml "xmlns:soapenv" "http://schemas.xmlsoap.org/soap/envelope/" To iSuccess
Get ComAddAttribute Of hoXml "xmlns:sfLRC" "https://www2.agenciatributaria.gob.es/static_files/common/internet/dep/aplicaciones/es/aeat/tike/cont/ws/ConsultaLR.xsd" To iSuccess
Get ComAddAttribute Of hoXml "xmlns:sf" "https://www2.agenciatributaria.gob.es/static_files/common/internet/dep/aplicaciones/es/aeat/tike/cont/ws/SuministroInformacion.xsd" To iSuccess
Send ComUpdateChildContent To hoXml "soapenv:Header" ""
Send ComUpdateChildContent To hoXml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:Cabecera|sf:IDVersion" "1.0"
Send ComUpdateChildContent To hoXml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:Cabecera|sf:ObligadoEmision|sf:NombreRazon" "string"
Send ComUpdateChildContent To hoXml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:Cabecera|sf:ObligadoEmision|sf:NIF" "string"
Send ComUpdateChildContent To hoXml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:Cabecera|sf:IndicadorRepresentante" "S"
Send ComUpdateChildContent To hoXml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:PeriodoImputacion|sf:Ejercicio" "string"
Send ComUpdateChildContentInt To hoXml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:PeriodoImputacion|sf:Periodo" 01
Send ComUpdateChildContent To hoXml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:NumSerieFactura" "string"
Send ComUpdateChildContent To hoXml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:Contraparte|sf:NombreRazon" "string"
Send ComUpdateChildContent To hoXml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:Contraparte|sf:NIF" "string"
Send ComUpdateChildContent To hoXml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:FechaExpedicionFactura" ""
Send ComUpdateChildContent To hoXml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:NombreRazon" "string"
Send ComUpdateChildContent To hoXml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:NIF" "string"
Send ComUpdateChildContent To hoXml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:NombreSistemaInformatico" "string"
Send ComUpdateChildContent To hoXml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:IdSistemaInformatico" "string"
Send ComUpdateChildContent To hoXml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:Version" "string"
Send ComUpdateChildContent To hoXml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:NumeroInstalacion" "string"
Send ComUpdateChildContent To hoXml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:TipoUsoPosibleSoloVerifactu" "S"
Send ComUpdateChildContent To hoXml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:TipoUsoPosibleMultiOT" "S"
Send ComUpdateChildContent To hoXml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:IndicadorMultiplesOT" "S"
Send ComUpdateChildContent To hoXml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:RefExterna" "string"
Send ComUpdateChildContent To hoXml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:ClavePaginacion|sf:IDEmisorFactura" "string"
Send ComUpdateChildContent To hoXml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:ClavePaginacion|sf:NumSerieFactura" "string"
Send ComUpdateChildContent To hoXml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:ClavePaginacion|sf:FechaExpedicionFactura" "string"
Send ComUpdateChildContent To hoXml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:DatosAdicionalesRespuesta|sfLRC:MostrarNombreRazonEmisor" "S"
Send ComUpdateChildContent To hoXml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:DatosAdicionalesRespuesta|sfLRC:MostrarSistemaInformatico" "S"
// In a SOAP HTTP request, including the XML declaration (<?xml version="1.0" encoding="UTF-8"?>) in the XML body is generally not required.
Set ComEmitXmlDecl Of hoXml To False
Get ComGetXml Of hoXml To sSoapRequestBody
Move "https://www1.agenciatributaria.gob.es/wlpl/TIKE-CONT/ws/SistemaFacturacion/VerifactuSOAP" To sEndpoint
Move "" To sSoapAction
// For SOAP requests, the standard Content-Type is usually set to "text/xml" or "application/soap+xml"
Move "text/xml" To sContentType
Get Create (RefClass(cComChilkatHttp)) To hoHttp
If (Not(IsComObjectCreated(hoHttp))) Begin
Send CreateComObject of hoHttp
End
Send ComClearHeaders To hoHttp
Send ComSetRequestHeader To hoHttp "Content-Type" sContentType
Send ComSetRequestHeader To hoHttp "SOAPAction" sSoapAction
Get Create (RefClass(cComChilkatHttpResponse)) To hoResp
If (Not(IsComObjectCreated(hoResp))) Begin
Send CreateComObject of hoResp
End
ERROR: Undefined variable(success)
ERROR: Undefined variable(success)
If (ERROR: Undefined variable(success)
= False) Begin
Get ComLastErrorText Of hoHttp To sTemp1
Showln sTemp1
Showln "Failed to send SOAP request."
Procedure_Return
End
// Get the XML response body.
Get Create (RefClass(cComChilkatXml)) To hoResponseXml
If (Not(IsComObjectCreated(hoResponseXml))) Begin
Send CreateComObject of hoResponseXml
End
Get pvComObject of hoResponseXml to vResponseXml
Get ComGetBodyXml Of hoResp vResponseXml To iSuccess
Get ComStatusCode Of hoResp To iStatusCode
Showln "response status code: " iStatusCode
// If the status code does not indicate succcess, then show the response XML,
// which probably contains error information.
If (iStatusCode <> 200) Begin
Get ComGetXml Of hoResponseXml To sTemp1
Showln sTemp1
Procedure_Return
End
Get ComGetXml Of hoResponseXml To sTemp1
Showln sTemp1
// Parse the successful SOAP response XML.
// This is a sample of the response XML, but the namespace prefixes will be different.
// We can parse the result using "*" for the namespace prefixes (see below).
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:Cabecera|*:IDVersion" To sIDVersion
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:Cabecera|*:ObligadoEmision|*:NombreRazon" To sNombreRazon
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:Cabecera|*:ObligadoEmision|*:NIF" To sNIF
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:Cabecera|*:IndicadorRepresentante" To sIndicadorRepresentante
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:PeriodoImputacion|*:Ejercicio" To sEjercicio
Get ComGetChildIntValue Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:PeriodoImputacion|*:Periodo" To iPeriodo
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:IndicadorPaginacion" To sIndicadorPaginacion
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:ResultadoConsulta" To sResultadoConsulta
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:IDFactura|*:IDEmisorFactura" To sIDEmisorFactura
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:IDFactura|*:NumSerieFactura" To sNumSerieFactura
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:IDFactura|*:FechaExpedicionFactura" To sFechaExpedicionFactura
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:NombreRazonEmisor" To sNombreRazonEmisor
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:RefExterna" To sRefExterna
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Subsanacion" To sSubsanacion
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:RechazoPrevio" To sRechazoPrevio
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SinRegistroPrevio" To sSinRegistroPrevio
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:GeneradoPor" To sGeneradoPor
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Generador|*:NombreRazon" To sNombreRazon
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Generador|*:NIF" To sNIF
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:TipoFactura" To sTipoFactura
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:TipoRectificativa" To sTipoRectificativa
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FacturasRectificadas|*:IDFacturaRectificada|*:IDEmisorFactura" To sIDEmisorFactura
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FacturasRectificadas|*:IDFacturaRectificada|*:NumSerieFactura" To sNumSerieFactura
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FacturasRectificadas|*:IDFacturaRectificada|*:FechaExpedicionFactura" To sFechaExpedicionFactura
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FacturasSustituidas|*:IDFacturaSustituida|*:IDEmisorFactura" To sIDEmisorFactura
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FacturasSustituidas|*:IDFacturaSustituida|*:NumSerieFactura" To sNumSerieFactura
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FacturasSustituidas|*:IDFacturaSustituida|*:FechaExpedicionFactura" To sFechaExpedicionFactura
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:ImporteRectificacion|*:BaseRectificada" To sBaseRectificada
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:ImporteRectificacion|*:CuotaRectificada" To sCuotaRectificada
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:ImporteRectificacion|*:CuotaRecargoRectificado" To sCuotaRecargoRectificado
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FechaOperacion" To sFechaOperacion
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:DescripcionOperacion" To sDescripcionOperacion
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FacturaSimplificadaArt7273" To sFacturaSimplificadaArt7273
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FacturaSinIdentifDestinatarioArt61d" To sFacturaSinIdentifDestinatarioArt61d
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Macrodato" To sMacrodato
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:EmitidaPorTerceroODestinatario" To sEmitidaPorTerceroODestinatario
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Tercero|*:NombreRazon" To sNombreRazon
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Tercero|*:NIF" To sNIF
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Destinatarios|*:IDDestinatario|*:NombreRazon" To sNombreRazon
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Destinatarios|*:IDDestinatario|*:NIF" To sNIF
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Cupon" To sCupon
Get ComGetChildIntValue Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Desglose|*:DetalleDesglose|*:Impuesto" To iImpuesto
Get ComGetChildIntValue Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Desglose|*:DetalleDesglose|*:ClaveRegimen" To iClaveRegimen
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Desglose|*:DetalleDesglose|*:CalificacionOperacion" To sCalificacionOperacion
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Desglose|*:DetalleDesglose|*:TipoImpositivo" To sTipoImpositivo
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Desglose|*:DetalleDesglose|*:BaseImponibleOimporteNoSujeto" To sBaseImponibleOimporteNoSujeto
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Desglose|*:DetalleDesglose|*:BaseImponibleACoste" To sBaseImponibleACoste
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Desglose|*:DetalleDesglose|*:CuotaRepercutida" To sCuotaRepercutida
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Desglose|*:DetalleDesglose|*:TipoRecargoEquivalencia" To sTipoRecargoEquivalencia
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Desglose|*:DetalleDesglose|*:CuotaRecargoEquivalencia" To sCuotaRecargoEquivalencia
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:CuotaTotal" To sCuotaTotal
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:ImporteTotal" To sImporteTotal
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SistemaInformatico|*:NombreRazon" To sNombreRazon
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SistemaInformatico|*:NIF" To sNIF
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SistemaInformatico|*:NombreSistemaInformatico" To sNombreSistemaInformatico
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SistemaInformatico|*:IdSistemaInformatico" To sIdSistemaInformatico
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SistemaInformatico|*:Version" To sVersion
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SistemaInformatico|*:NumeroInstalacion" To sNumeroInstalacion
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SistemaInformatico|*:TipoUsoPosibleSoloVerifactu" To sTipoUsoPosibleSoloVerifactu
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SistemaInformatico|*:TipoUsoPosibleMultiOT" To sTipoUsoPosibleMultiOT
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SistemaInformatico|*:IndicadorMultiplesOT" To sIndicadorMultiplesOT
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FechaHoraHusoGenRegistro" To sFechaHoraHusoGenRegistro
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:NumRegistroAcuerdoFacturacion" To sNumRegistroAcuerdoFacturacion
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:IdAcuerdoSistemaInformatico" To sIdAcuerdoSistemaInformatico
Get ComGetChildIntValue Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:TipoHuella" To iTipoHuella
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Huella" To sHuella
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:NifRepresentante" To sNifRepresentante
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FechaFinVeriFactu" To sFechaFinVeriFactu
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Incidencia" To sIncidencia
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosPresentacion|*:NIFPresentador" To sNIFPresentador
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosPresentacion|*:TimestampPresentacion" To sTimestampPresentacion
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosPresentacion|*:IdPeticion" To sIdPeticion
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:EstadoRegistro|*:TimestampUltimaModificacion" To sTimestampUltimaModificacion
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:EstadoRegistro|*:EstadoRegistro" To sEstadoRegistro
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:EstadoRegistro|*:CodigoErrorRegistro" To sCodigoErrorRegistro
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:EstadoRegistro|*:DescripcionErrorRegistro" To sDescripcionErrorRegistro
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:ClavePaginacion|*:IDEmisorFactura" To sIDEmisorFactura
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:ClavePaginacion|*:NumSerieFactura" To sNumSerieFactura
Get ComGetChildContent Of hoResponseXml "*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:ClavePaginacion|*:FechaExpedicionFactura" To sFechaExpedicionFactura
End_Procedure
Request XML
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sfLRC="https://www2.agenciatributaria.gob.es/static_files/common/internet/dep/aplicaciones/es/aeat/tike/cont/ws/ConsultaLR.xsd" xmlns:sf="https://www2.agenciatributaria.gob.es/static_files/common/internet/dep/aplicaciones/es/aeat/tike/cont/ws/SuministroInformacion.xsd">
<soapenv:Header/>
<soapenv:Body>
<sfLRC:ConsultaFactuSistemaFacturacion>
<sfLRC:Cabecera>
<sf:IDVersion>1.0</sf:IDVersion>
<sf:ObligadoEmision>
<sf:NombreRazon>string</sf:NombreRazon>
<sf:NIF>string</sf:NIF>
</sf:ObligadoEmision>
<sf:IndicadorRepresentante>S</sf:IndicadorRepresentante>
</sfLRC:Cabecera>
<sfLRC:FiltroConsulta>
<sfLRC:PeriodoImputacion>
<sf:Ejercicio>string</sf:Ejercicio>
<sf:Periodo>01</sf:Periodo>
</sfLRC:PeriodoImputacion>
<sfLRC:NumSerieFactura>string</sfLRC:NumSerieFactura>
<sfLRC:Contraparte>
<sf:NombreRazon>string</sf:NombreRazon>
<sf:NIF>string</sf:NIF>
</sfLRC:Contraparte>
<sfLRC:FechaExpedicionFactura/>
<sfLRC:SistemaInformatico>
<sf:NombreRazon>string</sf:NombreRazon>
<sf:NIF>string</sf:NIF>
<sf:NombreSistemaInformatico>string</sf:NombreSistemaInformatico>
<sf:IdSistemaInformatico>string</sf:IdSistemaInformatico>
<sf:Version>string</sf:Version>
<sf:NumeroInstalacion>string</sf:NumeroInstalacion>
<sf:TipoUsoPosibleSoloVerifactu>S</sf:TipoUsoPosibleSoloVerifactu>
<sf:TipoUsoPosibleMultiOT>S</sf:TipoUsoPosibleMultiOT>
<sf:IndicadorMultiplesOT>S</sf:IndicadorMultiplesOT>
</sfLRC:SistemaInformatico>
<sfLRC:RefExterna>string</sfLRC:RefExterna>
<sfLRC:ClavePaginacion>
<sf:IDEmisorFactura>string</sf:IDEmisorFactura>
<sf:NumSerieFactura>string</sf:NumSerieFactura>
<sf:FechaExpedicionFactura>string</sf:FechaExpedicionFactura>
</sfLRC:ClavePaginacion>
</sfLRC:FiltroConsulta>
<sfLRC:DatosAdicionalesRespuesta>
<sfLRC:MostrarNombreRazonEmisor>S</sfLRC:MostrarNombreRazonEmisor>
<sfLRC:MostrarSistemaInformatico>S</sfLRC:MostrarSistemaInformatico>
</sfLRC:DatosAdicionalesRespuesta>
</sfLRC:ConsultaFactuSistemaFacturacion>
</soapenv:Body>
</soapenv:Envelope>
Response XML
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sfLRRC="https://www2.agenciatributaria.gob.es/static_files/common/internet/dep/aplicaciones/es/aeat/tike/cont/ws/RespuestaConsultaLR.xsd" xmlns:sf="https://www2.agenciatributaria.gob.es/static_files/common/internet/dep/aplicaciones/es/aeat/tike/cont/ws/SuministroInformacion.xsd">
<soapenv:Header/>
<soapenv:Body>
<sfLRRC:RespuestaConsultaFactuSistemaFacturacion>
<sfLRRC:Cabecera>
<sf:IDVersion>1.0</sf:IDVersion>
<sf:ObligadoEmision>
<sf:NombreRazon>string</sf:NombreRazon>
<sf:NIF>string</sf:NIF>
</sf:ObligadoEmision>
<sf:IndicadorRepresentante>S</sf:IndicadorRepresentante>
</sfLRRC:Cabecera>
<sfLRRC:PeriodoImputacion>
<sfLRRC:Ejercicio>string</sfLRRC:Ejercicio>
<sfLRRC:Periodo>01</sfLRRC:Periodo>
</sfLRRC:PeriodoImputacion>
<sfLRRC:IndicadorPaginacion>S</sfLRRC:IndicadorPaginacion>
<sfLRRC:ResultadoConsulta>ConDatos</sfLRRC:ResultadoConsulta>
<sfLRRC:RegistroRespuestaConsultaFactuSistemaFacturacion>
<sfLRRC:IDFactura>
<sf:IDEmisorFactura>string</sf:IDEmisorFactura>
<sf:NumSerieFactura>string</sf:NumSerieFactura>
<sf:FechaExpedicionFactura>string</sf:FechaExpedicionFactura>
</sfLRRC:IDFactura>
<sfLRRC:DatosRegistroFacturacion>
<sfLRRC:NombreRazonEmisor>string</sfLRRC:NombreRazonEmisor>
<sfLRRC:RefExterna>string</sfLRRC:RefExterna>
<sfLRRC:Subsanacion>S</sfLRRC:Subsanacion>
<sfLRRC:RechazoPrevio>N</sfLRRC:RechazoPrevio>
<sfLRRC:SinRegistroPrevio>S</sfLRRC:SinRegistroPrevio>
<sfLRRC:GeneradoPor>E</sfLRRC:GeneradoPor>
<sfLRRC:Generador>
<sf:NombreRazon>string</sf:NombreRazon>
<sf:NIF>string</sf:NIF>
</sfLRRC:Generador>
<sfLRRC:TipoFactura>F1</sfLRRC:TipoFactura>
<sfLRRC:TipoRectificativa>S</sfLRRC:TipoRectificativa>
<sfLRRC:FacturasRectificadas>
<sfLRRC:IDFacturaRectificada>
<sf:IDEmisorFactura>string</sf:IDEmisorFactura>
<sf:NumSerieFactura>string</sf:NumSerieFactura>
<sf:FechaExpedicionFactura>string</sf:FechaExpedicionFactura>
</sfLRRC:IDFacturaRectificada>
</sfLRRC:FacturasRectificadas>
<sfLRRC:FacturasSustituidas>
<sfLRRC:IDFacturaSustituida>
<sf:IDEmisorFactura>string</sf:IDEmisorFactura>
<sf:NumSerieFactura>string</sf:NumSerieFactura>
<sf:FechaExpedicionFactura>string</sf:FechaExpedicionFactura>
</sfLRRC:IDFacturaSustituida>
</sfLRRC:FacturasSustituidas>
<sfLRRC:ImporteRectificacion>
<sf:BaseRectificada>string</sf:BaseRectificada>
<sf:CuotaRectificada>string</sf:CuotaRectificada>
<sf:CuotaRecargoRectificado>string</sf:CuotaRecargoRectificado>
</sfLRRC:ImporteRectificacion>
<sfLRRC:FechaOperacion>string</sfLRRC:FechaOperacion>
<sfLRRC:DescripcionOperacion>string</sfLRRC:DescripcionOperacion>
<sfLRRC:FacturaSimplificadaArt7273>S</sfLRRC:FacturaSimplificadaArt7273>
<sfLRRC:FacturaSinIdentifDestinatarioArt61d>S</sfLRRC:FacturaSinIdentifDestinatarioArt61d>
<sfLRRC:Macrodato>S</sfLRRC:Macrodato>
<sfLRRC:EmitidaPorTerceroODestinatario>D</sfLRRC:EmitidaPorTerceroODestinatario>
<sfLRRC:Tercero>
<sf:NombreRazon>string</sf:NombreRazon>
<sf:NIF>string</sf:NIF>
</sfLRRC:Tercero>
<sfLRRC:Destinatarios>
<sfLRRC:IDDestinatario>
<sf:NombreRazon>string</sf:NombreRazon>
<sf:NIF>string</sf:NIF>
</sfLRRC:IDDestinatario>
</sfLRRC:Destinatarios>
<sfLRRC:Cupon>S</sfLRRC:Cupon>
<sfLRRC:Desglose>
<sf:DetalleDesglose>
<sf:Impuesto>01</sf:Impuesto>
<sf:ClaveRegimen>01</sf:ClaveRegimen>
<sf:CalificacionOperacion>S1</sf:CalificacionOperacion>
<sf:TipoImpositivo>string</sf:TipoImpositivo>
<sf:BaseImponibleOimporteNoSujeto>string</sf:BaseImponibleOimporteNoSujeto>
<sf:BaseImponibleACoste>string</sf:BaseImponibleACoste>
<sf:CuotaRepercutida>string</sf:CuotaRepercutida>
<sf:TipoRecargoEquivalencia>string</sf:TipoRecargoEquivalencia>
<sf:CuotaRecargoEquivalencia>string</sf:CuotaRecargoEquivalencia>
</sf:DetalleDesglose>
</sfLRRC:Desglose>
<sfLRRC:CuotaTotal>string</sfLRRC:CuotaTotal>
<sfLRRC:ImporteTotal>string</sfLRRC:ImporteTotal>
<sfLRRC:Encadenamiento/>
<sfLRRC:SistemaInformatico>
<sf:NombreRazon>string</sf:NombreRazon>
<sf:NIF>string</sf:NIF>
<sf:NombreSistemaInformatico>string</sf:NombreSistemaInformatico>
<sf:IdSistemaInformatico>string</sf:IdSistemaInformatico>
<sf:Version>string</sf:Version>
<sf:NumeroInstalacion>string</sf:NumeroInstalacion>
<sf:TipoUsoPosibleSoloVerifactu>S</sf:TipoUsoPosibleSoloVerifactu>
<sf:TipoUsoPosibleMultiOT>S</sf:TipoUsoPosibleMultiOT>
<sf:IndicadorMultiplesOT>S</sf:IndicadorMultiplesOT>
</sfLRRC:SistemaInformatico>
<sfLRRC:FechaHoraHusoGenRegistro>dateTime</sfLRRC:FechaHoraHusoGenRegistro>
<sfLRRC:NumRegistroAcuerdoFacturacion>string</sfLRRC:NumRegistroAcuerdoFacturacion>
<sfLRRC:IdAcuerdoSistemaInformatico>string</sfLRRC:IdAcuerdoSistemaInformatico>
<sfLRRC:TipoHuella>01</sfLRRC:TipoHuella>
<sfLRRC:Huella>string</sfLRRC:Huella>
<sfLRRC:NifRepresentante>string</sfLRRC:NifRepresentante>
<sfLRRC:FechaFinVeriFactu>string</sfLRRC:FechaFinVeriFactu>
<sfLRRC:Incidencia>S</sfLRRC:Incidencia>
</sfLRRC:DatosRegistroFacturacion>
<sfLRRC:DatosPresentacion>
<sf:NIFPresentador>string</sf:NIFPresentador>
<sf:TimestampPresentacion>dateTime</sf:TimestampPresentacion>
<sf:IdPeticion>string</sf:IdPeticion>
</sfLRRC:DatosPresentacion>
<sfLRRC:EstadoRegistro>
<sfLRRC:TimestampUltimaModificacion>dateTime</sfLRRC:TimestampUltimaModificacion>
<sfLRRC:EstadoRegistro>Correcto</sfLRRC:EstadoRegistro>
<sfLRRC:CodigoErrorRegistro>integer</sfLRRC:CodigoErrorRegistro>
<sfLRRC:DescripcionErrorRegistro>string</sfLRRC:DescripcionErrorRegistro>
</sfLRRC:EstadoRegistro>
</sfLRRC:RegistroRespuestaConsultaFactuSistemaFacturacion>
<sfLRRC:ClavePaginacion>
<sf:IDEmisorFactura>string</sf:IDEmisorFactura>
<sf:NumSerieFactura>string</sf:NumSerieFactura>
<sf:FechaExpedicionFactura>string</sf:FechaExpedicionFactura>
</sfLRRC:ClavePaginacion>
</sfLRRC:RespuestaConsultaFactuSistemaFacturacion>
</soapenv:Body>
</soapenv:Envelope>