1. Home
  2. Docs
  3. Documentación de API externa de EWÁ.
  4. Recepción de documentos electrónicos.
  5. Consultar facturas:

Consultar facturas:

Por medio de este endpoint se podrá consultar las facturas enviadas hacienda por rango de fechas determinados en formato timestamp.

Especificaciones:

  • TimeStamp desde: Marca el tiempo como un limite de las facturas a mostrar. donde quiere empezar.
  • TimeStamp hasta: Marca el tiempo como un limite de las facturas a mostrar. donde quiere terminar.
  • license: Provista por Outer Space Coders.
  • domain: Dominio de la Aplicacion.

Conjunto de funciones con su respectivo payload.

URL:https://facturaelectronica.outerspacecoders.com/wp-json/facturaelectronica/v1/consultar-facturas

Body:

Sintaxis JSON para consultar las facturas:

{  
    "desde":"1565024314",
    "hasta":"1565027231"
    "license":"7889ed934869f0f253d66497",
    "domain":"facturacioncliente.lndo.site"
}

Resultado:

{
     "respuesta": [
         {
             "id": "6",
             "estado_hacienda": "aceptado",
             "consecutivo": "00100001010000000943",
             "tipo_comprobante": "01",
             "razon": "",
             "licencia": "7889ed934869f0f253d66497",
             "xml_acuse": "  ",
             "xml_firmado": "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPEZhY3R1cmFFbGVjdHJvbmljYSB4bWxuczp4c2Q9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hIiB4bWxuczp4c2k9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0iaHR0cHM6Ly9jZG4uY29tcHJvYmFudGVzZWxlY3Ryb25pY29zLmdvLmNyL3htbC1zY2hlbWFzL3Y0LjMvZmFjdHVyYUVsZWN0cm9uaWNhIj48Q2xhdmU+NTA2MDUwODE5MDAwNTA0MTIwOTg0MDAxMDAwMDEwMTAwMDAwMDA5NDMxMjI5OTk5MDU8L0NsYXZlPjxDb2RpZ29BY3RpdmlkYWQ+NzIyMDAzPC9Db2RpZ29BY3RpdmlkYWQ+PE51bWVyb0NvbnNlY3V0aXZvPjAwMTAwMDAxMDEwMDAwMDAwOTQzPC9OdW1lcm9Db25zZWN1dGl2bz48RmVjaGFFbWlzaW9uPjIwMTktMDgtMDVUMTE6MDQ6MjctMDY6MDA8L0ZlY2hhRW1pc2lvbj48RW1pc29yPjxOb21icmU+SnVhbiBDYXJsb3MgQXJjZSBDcnV6PC9Ob21icmU+PElkZW50aWZpY2FjaW9uPjxUaXBvPjAxPC9UaXBvPjxOdW1lcm8+NTA0MTIwOTg0PC9OdW1lcm8+PC9JZGVudGlmaWNhY2lvbj48Tm9tYnJlQ29tZXJjaWFsPkp1YW4gQ2FybG9zIEFyY2UgQ3J1ejwvTm9tYnJlQ29tZXJjaWFsPjxVYmljYWNpb24+PFByb3ZpbmNpYT41PC9Qcm92aW5jaWE+PENhbnRvbj4wODwvQ2FudG9uPjxEaXN0cml0bz4wMzwvRGlzdHJpdG8+PEJhcnJpbz4wMTwvQmFycmlvPjxPdHJhc1NlbmFzPjc1",
             "error": "",
             "timestamp": "1565024672"
         },
         {
             "id": "12",
             "estado_hacienda": "rechazado",
             "consecutivo": "00100001010000000944",
             "tipo_comprobante": "01",
             "razon": "",
             "licencia": "7889ed934869f0f253d66497",
             "xml_acuse": " PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPE1lbnNhamVIYWNpZW5kYSB4bWxucz0iaHR0cHM6Ly9jZG4uY29tcHJvYmFudGVzZWxlY3Ryb25pY29zLmdvLmNyL3htbC1zY2hlbWFzL3Y0LjMvbWVuc2FqZUhhY2llbmRhIj4KICAgIDxDbGF2ZT41MDYwNTA4MTkwMDA1MDQxMjA5ODQwMDEwMDAwMTAxMDAwMDAwMDk0NDEyMjk5OTkwNTwvQ2xhdmU+CiAgICA8Tm9tYnJlRW1pc29yPkRFU0NPTk9DSURPPC9Ob21icmVFbWlzb3I+CiAgICA8VGlwb0lkZW50aWZpY2FjaW9uRW1pc29yPjAxPC9UaXBvSWRlbnRpZmljYWNpb25FbWlzb3I+C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Q+PE51bWVyb0NvbnNlY3V0aXZvPjAwMTAwMDAxMDEwMDAwMDAwOTQ0PC9OdW1lcm9Db25zZWN1dGl2bz48RmVjaGFFbWlzaW9uPjIwMTktMDgtMDVUMTE6MTA6NTUtMDY6MDA8L0ZlY2hhRW1pc2lvbj48RW1pc29yPjxOb21icmU+SnVhbiBDYXJsb3MgQXJjZSBDcnV6PC9Ob21icmU+PElkZW50aWZpY2FjaW9uPjxUaXBvPjAxPC9UaXBvPjxOdW1lcm8+NTA0MTIwOTg0PC9OdW1lcm8+PC9JZGVudGlmaWNhY2lvbj48Tm9tYnJlQ29tZXJjaWFsPkp1YW4gQ2FybG9zIEFyY2UgQ3J1ejwvTm9tYnJlQ29tZXJjaWFsPjxVYmljYWNpb24+PFByb3ZpbmNpYT41PC9Qcm92aW5jaWE+PENhbnRvbj4wODwvQ2FudG9uPjxEaXN0cml0bz4wMzwvRGlzdHJpdG8+PEJhcnJpbz4wMTwvQmFycmlvPjxPdHJhc1NlbmFzPjc1",
             "error": "cvc-pattern-valid: Value 005 is not facet-valid with respect to pattern d for type #AnonType_ProvinciaUbicacionType.",
             "timestamp": "1565025068"
         }
}
Was this article helpful to you? Yes No

How can we help?