Skip to content

FousSRI en Línea

Get your SRI en Línea comprobantes through an API

Get the facturas and comprobantes de retención you received or issued in SRI en Línea as JSON, with clave de acceso, IVA and importe total. A workflow can post each weekday morning's new comprobantes recibidos to your accounting system.

Works with your own SRI en Línea account. Fous is an independent product.

What you can build on SRI en Línea

  • Get comprobantes electrónicos recibidos

    Build this

    Reads the list on Comprobantes electrónicos recibidos for one Periodo emisión and Tipo de comprobante, under Facturación Electrónica.

    Takes
    Year, month, day (optional), tipo de comprobante
    Returns
    Issuer RUC and razón social, type and series, clave de acceso, authorization date and time, issue date, valor sin impuestos, IVA, importe total
  • Get comprobantes electrónicos emitidos

    Build this

    Reads the authorized comprobantes your RUC issued on one Fecha emisión, filtered by Tipo de comprobante, Establecimiento and Punto de emisión.

    Takes
    Issue date, tipo de comprobante, establecimiento (optional), punto de emisión (optional)
    Returns
    Type and series, clave de acceso, authorization date and time, issue date, valor sin impuestos, IVA, importe total
  • Check a comprobante by clave de acceso

    Build this

    Looks up one clave de acceso on Validez de comprobantes and reads whether the comprobante is authorized.

    Takes
    Clave de acceso
    Returns
    Clave de acceso, authorization status
  • Upload the monthly ATS

    Build this

    Opens Anexos, chooses the Anexo Transaccional Simplificado and sends the ATmmaaaa.zip file for one period.

    Takes
    Year, month, ATS zip file
    Returns
    Period, file name, result message

Automate SRI en Línea with a workflow

A workflow runs your methods as one process, with nobody at the screen. A schedule or a call from your own system starts it, the steps run in order, and the result arrives in your inbox or in the systems you already use.

  • New comprobantes recibidos, sent to accounts payable

    Build this
    Starts
    Every weekday at 7:00
    Step 1
    Get the comprobantes electrónicos recibidos of type Factura for the current and the previous month.
    Step 2
    Keep the facturas that were not there on the last run.
    Step 3
    Post each one, with issuer RUC, clave de acceso, IVA and importe total, to your ERP webhook.
  • Last month's IVA totals, before the declaración

    Build this
    Starts
    Monthly on the 2nd at 8:00
    Step 1
    Get last month's comprobantes recibidos of type Factura, and the comprobantes emitidos for each day of that month.
    Step 2
    Add up valor sin impuestos, IVA and importe total for purchases and for sales.
    Step 3
    Email you both totals with the list of comprobantes behind them.
  • Supplier facturas checked before payment

    Build this
    Starts
    When your system calls the workflow's webhook with a list of claves de acceso
    Step 1
    For each clave de acceso, check the comprobante on Validez de comprobantes.
    Step 2
    Keep the ones that are not authorized.
    Step 3
    Post the clave de acceso and status back to your webhook.

You can run a workflow by hand on every plan, Free included. Schedules and webhook triggers come with the paid plans, from $29 a month.

Once built, one call from your code

Once you have built a method, it is one POST to /v1/runs from your backend, or a tool an AI agent calls over MCP. This is what “Get comprobantes electrónicos recibidos” would look like.

Example request
curl https://api.fous.com/v1/runs \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "method": "srienlinea.sri.gob.ec/get_comprobantes_recibidos",
    "input": {
      "year": 2026,
      "month": 11,
      "tipo_comprobante": "Factura"
    }
  }'
Example response
{
  "status": "completed",
  "data": {
    "periodo": "2026-11",
    "tipo_comprobante": "Factura",
    "comprobantes": [
      {
        "ruc_emisor": "1799999999001",
        "razon_social_emisor": "NORTHWIND SUMINISTROS S.A.",
        "tipo_y_serie": "Factura 001-003-000004567",
        "clave_acceso": "1011202601179999999900120010030000045671234567819",
        "fecha_hora_autorizacion": "2026-11-10T09:14:52",
        "fecha_emision": "2026-11-10",
        "valor_sin_impuestos": 1250,
        "iva": 187.5,
        "importe_total": 1437.5
      }
    ],
    "count": 1
  }
}

An example with invented data, not a ready-made endpoint. The method exists in your organization once you build it, and its name, inputs and fields follow your request.

SRI en Línea’s own options

The SRI publishes web services for issuers: one receives comprobantes electrónicos, one returns their authorization, and a consultation service gives a comprobante's status by clave de acceso. The ficha técnica describes no web service that lists the comprobantes you received. Annexes such as the ATS are prepared as XML files and sent through SRI en Línea.

OptionWhat it coversWhat it takes
Recepción and Autorización web servicesSend comprobantes electrónicos in batches of up to 50 and get back RECIBIDA or DEVUELTA, then AUTORIZADO or NO AUTORIZADO by clave de acceso.Authorization to issue comprobantes electrónicos through Solicitud de emisión, and tests in the pruebas environment before producción.
ConsultaComprobante web serviceReturns one comprobante's status by clave de acceso: AUTORIZADO, NO AUTORIZADO, PENDIENTE DE ANULAR or ANULADO.The clave de acceso of the comprobante.
DIMM and the ATS programSRI programs that produce annex XML files, including the Anexo Transaccional Simplificado, to send in SRI en Línea.DIMM and the ATS program version for the period (v1.19.0 from September 2026), with the SRI's ats.xsd schema.
SRI en Línea by handComprobantes recibidos and emitidos, Validez de comprobantes, Declaraciones, Anexos, Deudas and Certificados, for the RUC you signed in with.A Clave for your RUC, cédula or passport number.

Read on November 12, 2026: Ficha técnica, comprobantes electrónicos, esquema offline 2.34, Guía para contribuyentes: comprobantes electrónicos, Internet, Formularios e instructivos (DIMM, ATS).

Signing in to SRI en Línea

SRI en Línea signs you in with your RUC, cédula or passport number and your Clave, with an optional C.I. adicional field, and no second step is described in the SRI's guide. With Fous you sign in once through SRI en Línea's own sign-in with your own account: the login is sealed with AES-256, and an expired session is signed back in.

Worth knowing

One period and one type at a time
Comprobantes electrónicos recibidos is queried by Periodo emisión and one Tipo de comprobante, so facturas and comprobantes de retención are separate calls. The RUC search and the clave de acceso search are mutually exclusive.
Authorization can take up to 24 hours
The SRI gives itself up to 24 hours after RECIBIDA to authorize a comprobante. A factura dated yesterday can appear today, which is why a comparison with the last run is safer than a query for one day.
The ATS is one zipped XML a month
The annex puts the matriz and every sucursal in one XML file, zipped as ATmmaaaa.zip, and only the zipped file is accepted online. SRI offices take a flash drive only for annexes over 8 MB when online channels are unavailable.
IVA due dates follow the ninth digit of the RUC
Monthly IVA returns are due on the 10th to the 28th of the following month, by the ninth digit of the RUC. A due date on a weekend or holiday moves to the next business day.

More in Government: Latin America

Other industries: Egyptian Tax Authority e-Services, EU Funding & Tenders Portal, Chorus Pro, LOOP, Encompass TPO Connect, USPTO Trademark Center.

Frequently asked questions

Partly. The SRI publishes web services for issuers to send comprobantes electrónicos, get their authorization and check a comprobante's status by clave de acceso. The ficha técnica describes no web service that lists the comprobantes you received, and annexes and returns are filed in SRI en Línea.

In SRI en Línea, open Facturación Electrónica, then Comprobantes electrónicos recibidos, choose the Periodo emisión and Tipo de comprobante and select Consultar. The list shows each comprobante's issuer, clave de acceso, IVA and importe total, with its RIDE in PDF and a Descargar reporte link.

Enter its clave de acceso or número de autorización, or upload its XML, on Validez de comprobantes under Facturación Electrónica; no sign-in is needed. The SRI also offers this check as the ConsultaComprobante web service, which returns AUTORIZADO, NO AUTORIZADO, PENDIENTE DE ANULAR or ANULADO.

As one XML file with the matriz and all sucursales, compressed into a zip named ATmmaaaa.zip for the month and year. The SRI's ATS program and DIMM produce that XML, and the SRI publishes the ats.xsd schema and an example file.

No. Fous is an independent product. You use it with your own SRI en Línea account, and a method reads and does only what that account can.

Put SRI en Línea behind an API call

Describe one job in Studio and see the method it builds, with 100 credits a month and no credit card, or book a demo and bring the sites your team signs in to.

Read nextSUNAT Operaciones en Línea (SOL)TRIBU-CRDeclaraciones y Pagos (SAT)Egyptian Tax Authority e-ServicesHow methods workHow workflows run

Fous is an independent product: it is not affiliated with, endorsed by or sponsored by the operator of SRI en Línea (Servicio de Rentas Internas (SRI)). The name is used only to say which system this page is about. Something here wrong or out of date? Write to legal@fous.com.