API de catálogos
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.
apiKeyAuthorizationBearer <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.
identification*stringThe taxpayer
application/json- response
object*"taxpayer""taxpayer"identification*stringidentification_type*string"ruc""cedula"name*stringThe 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*stringdate-timestale*booleantrue when the SRI could not be reached and this is an earlier answer.
curl -X GET 'https://api-sandbox.fiscalbase.io/v1/ec/taxpayers/string'{
"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
}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.
apiKeyAuthorizationBearer <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.
table*stringThe table:
document_types: the six document types, by theobjectthe 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 theauxiliary_codetheir line carries (tabla 31).transport_services: theauxiliary_codeof a commercial transport line (tabla 32).fuels: the fuels, by thecodea 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 askeywhere the country's name matches it exactly.sri_messages: the SRI's reception and authorization messages, with what causes each and what to do.
"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"limit?integerHow many per page, from 1 to 100.
1 <= value <= 10020cursor?stringThe next_cursor or prev_cursor of a previous response. Without a cursor, the first page.
length <= 200q?stringWords to find in the entry's key, code, name or description, whatever their case or accents. Each word must appear.
1 <= length <= 100date?stringThe day whose percents and codes in force the entries say (percent, in_force). Today in Ecuador by default.
dateA page of the table, in the SRI's order
application/json- response
object*"list""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.
curl -X GET 'https://api-sandbox.fiscalbase.io/v1/ec/catalogs/document_types'{
"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
}Numbering
Where your documents are numbered: every emission point of an establishment, its series by document type, and the numbers missing.
Webhooks and events
Notifications of what happens to your documents, imports, received documents and series, with a log of each delivery; and the same events on a stream your key holds open, for a system that can't receive a POST. Every event and its payload is in the document's `webhooks`.