Ir al contenido

API de catálogos

Look up a taxpayer at the SRI

GET
/v1/ec/taxpayers/{identification}

Who an identification belongs to: the name and, for a RUC (or a cedula whose holder has a RUC), what the SRI records: status, regime, obligations and establishments. Use it to fill in a buyer or supplier from their identification. Responses are cached for 24 hours.

Authorization

apiKey
headerAuthorizationBearer <token>

Your API key, which acts for the one business it was created for: fb_live_… keys work at api.fiscalbase.io and issue in live, and fb_sandbox_… keys work at api-sandbox.fiscalbase.io and issue in sandbox, on the simulated SRI. A key sent to the other host is refused with api_key_wrong_host, which names its host.

Path Parameters

identification*string

Response Body

The taxpayer

application/json
  1. response
object*"taxpayer"
Value in"taxpayer"
identification*string
identification_type*string
Value in"ruc""cedula"
name*string

The legal name of a RUC; the holder's full name, surnames first, for a cedula.

ruc*|

The RUC, if you look up a RUC; if you look up a cedula, its holder's RUC (the cedula followed by 001) when there is one.

registration*|

What the SRI records for the RUC; null if there is no RUC.

fetched_at*string
Formatdate-time
stale*boolean

true when the SRI could not be reached and this is an earlier answer.

Example Request
curl -X GET 'https://api-sandbox.fiscalbase.io/v1/ec/taxpayers/string'
Example Response
{
  "object": "taxpayer",
  "identification": "1794105401001",
  "identification_type": "ruc",
  "name": "ROBLES VERA MARIA JOSE",
  "ruc": "1794105401001",
  "registration": {
    "status": "ACTIVO",
    "type": "PERSONA NATURAL",
    "regime": "rimpe_negocio_popular",
    "keeps_accounting": false,
    "withholding_agent": false,
    "special_taxpayer": false,
    "economic_activity": "DESARROLLO DE SOFTWARE",
    "activities_started_on": "2024-02-20",
    "flagged": false,
    "establishments": [
      {
        "code": "001",
        "trade_name": "ESTUDIO ROBLES",
        "type": "MAT",
        "address": "PICHINCHA / QUITO / IÑAQUITO / AV. NN.UU. E7-12",
        "head_office": true,
        "open": true
      }
    ]
  },
  "fetched_at": "2026-11-26T15:01:59.129Z",
  "stale": false
}

List an SRI table

GET
/v1/ec/catalogs/{table}

The codes of one of the SRI's tables, each with the value the API takes, its SRI code and name, what it means and whether it is in force; the SRI's messages with what causes each and what to do. Search them with q, such as q=efectivo in payment_methods or q=cerveza in ice. The same for every caller and environment.

Authorization

apiKey
headerAuthorizationBearer <token>

Your API key, which acts for the one business it was created for: fb_live_… keys work at api.fiscalbase.io and issue in live, and fb_sandbox_… keys work at api-sandbox.fiscalbase.io and issue in sandbox, on the simulated SRI. A key sent to the other host is refused with api_key_wrong_host, which names its host.

Path Parameters

table*string

The table:

  • document_types: the six document types, by the object the API names them (tabla 3).
  • identification_types: how a buyer or supplier is identified (tabla 6).
  • taxes: the taxes a line carries: IVA, ICE and IRBPNR (tabla 16).
  • iva_rates: the IVA rates, with their percent and whether a new document may charge them (tabla 17).
  • ice: the ICE codes, by what they tax (tabla 18).
  • payment_methods: how a document is paid, with the methods withdrawn in 2016 (tabla 24).
  • iva_withholdings: the IVA withholdings and their percents (tabla 20).
  • renta_withholdings: the renta withholding codes whose percent Fiscalbase knows, with each percent by date.
  • isd_withholdings: the foreign currency outflow tax (ISD) codes, with each percent by date (tabla 20).
  • tax_support: why a withholding's support document is booked (tax_support, ATS tabla 5).
  • support_document_types: the documents a withholding, a reimbursement or a delivery note rests on (ATS tabla 4).
  • presumptive_withholdings: the withholdings fuel sellers and the press declare on their own invoices (tablas 22 and 23).
  • construction_materials: the construction materials at the 5 % IVA rate, by the auxiliary_code their line carries (tabla 31).
  • transport_services: the auxiliary_code of a commercial transport line (tabla 32).
  • fuels: the fuels, by the code a fuel line carries (tabla 30).
  • countries: the countries, by the SRI's code a country field writes (tabla 25, the ATS catalog's tabla 16), with the ISO 3166-1 alpha-2 code a request may send instead as key where the country's name matches it exactly.
  • sri_messages: the SRI's reception and authorization messages, with what causes each and what to do.
Value in"document_types""identification_types""taxes""iva_rates""ice""payment_methods""iva_withholdings""renta_withholdings""isd_withholdings""tax_support""support_document_types""presumptive_withholdings""construction_materials""transport_services""fuels""countries""sri_messages"

Query Parameters

limit?integer

How many per page, from 1 to 100.

Range1 <= value <= 100
Default20
cursor?string

The next_cursor or prev_cursor of a previous response. Without a cursor, the first page.

Lengthlength <= 200
q?string

Words to find in the entry's key, code, name or description, whatever their case or accents. Each word must appear.

Length1 <= length <= 100
date?string

The day whose percents and codes in force the entries say (percent, in_force). Today in Ecuador by default.

Formatdate

Response Body

A page of the table, in the SRI's order

application/json
  1. response
object*"list"
Value in"list"
data*array<>
next_cursor*|

The next page (older); null if there are no more.

prev_cursor*|

The previous page (newer); null on the first.

Example Request
curl -X GET 'https://api-sandbox.fiscalbase.io/v1/ec/catalogs/document_types'
Example Response
{
  "object": "list",
  "data": [
    {
      "object": "catalog_entry",
      "table": "payment_methods",
      "key": "sin_sistema_financiero",
      "code": "01",
      "name": "Sin utilización del sistema financiero",
      "description": "Cash, or any payment that does not go through the financial system (\"efectivo\").",
      "in_force": true,
      "percent": null,
      "rates": null,
      "sri_message": null
    }
  ],
  "next_cursor": null,
  "prev_cursor": null
}