API de comprobantes recibidos
The documents addressed to your key's business in its environment, from newest to oldest: what its suppliers invoiced and the withholdings its customers issued to it, whichever way they arrived. Never in the recipient portal.
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.
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 <= 200type?|array<>Only this family; repeat it for several.
access_key?stringThe one with these 49 digits.
^\d{49}$issue_date[gte]?stringOnly what was issued on or after this day.
dateissue_date[lte]?stringOnly what was issued on or before this day.
dateverification?|array<>xml_status?|array<>needs_review?stringtrue: only what waits for a person (no XML yet, or unconfirmed); false: only what doesn't.
"true""false"counterparty_identification?stringOnly what this supplier's RUC issued.
^\d{13}$q?stringWords of the issuer's name or of the document number, or the start of the issuer's RUC; each word must be found.
1 <= length <= 100updated_at[gte]?stringOnly what changed at or after this moment, ISO 8601 with its offset: poll with the time of your last read to get what changed since.
date-timecreated_at[gte]?stringOnly what was created at or after this moment, ISO 8601 with its offset.
date-timecreated_at[lte]?stringOnly what was created at or before this moment, ISO 8601 with its offset.
date-timeupdated_at[lte]?stringOnly what last changed at or before this moment, ISO 8601 with its offset.
date-timeA page of received documents
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/received-documents'{
"object": "list",
"data": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"object": "received_document",
"environment": "sandbox",
"country": "ec",
"currency": "string",
"business_id": "f59fcbb7-848d-4242-af07-a8bb7e3ab37c",
"access_key": "stringstringstringstringstringstringstringstrings",
"number": "string",
"issue_date": "2019-08-24",
"issuer": {
"ruc": "string",
"name": "string",
"trade_name": "string",
"regime": "general",
"special_taxpayer": true
},
"buyer": {
"identification_type": "ruc",
"identification": "string",
"name": "string",
"address": "string",
"email": "string"
},
"authorization": {
"number": "string",
"authorized_at": "2019-08-24T14:15:22Z"
},
"sri_status": "authorized",
"verification": "sri",
"xml_status": "available",
"sources": [
"report"
],
"subtotal": "string",
"taxes": [
{
"type": "iva",
"rate": "iva_15",
"base": "string",
"value": "string",
"additional_discount": "string",
"refund": "string"
}
],
"total": "string",
"payments": [
{
"method": "sin_sistema_financiero",
"amount": "string",
"term": {
"length": 0,
"unit": "days"
}
}
],
"tax_support": "10",
"payment_method": "sin_sistema_financiero",
"description": "string",
"withholding": {
"object": "document",
"type": "withholding",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"number": "string"
},
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"type": "invoice",
"document": {
"lines": [
{
"code": "string",
"auxiliary_code": "string",
"description": "string",
"unit": "string",
"quantity": "string",
"unit_price": "string",
"discount": "string",
"net": "string",
"taxes": [
{
"type": "iva",
"rate": "iva_15",
"base": "string",
"value": "string"
}
],
"additional_info": [
{
"name": "string",
"value": "string"
}
],
"unsubsidized_price": "string"
}
],
"taxes": [
{
"type": "iva",
"rate": "iva_15",
"base": "string",
"value": "string",
"additional_discount": "string",
"refund": "string"
}
],
"subtotal": "string",
"discount": "string",
"iva": "string",
"ice": "string",
"irbpnr": "string",
"total": "string",
"subsidy": "string",
"tip": "string",
"issue_date": "2019-08-24",
"buyer": {
"identification_type": "ruc",
"identification": "string",
"name": "string",
"address": "string",
"email": "string"
},
"payments": [
{
"method": "sin_sistema_financiero",
"amount": "string",
"term": {
"length": 0,
"unit": "days"
}
}
],
"plate": "string",
"delivery_note_number": "string",
"export": {
"incoterm": "string",
"incoterm_place": "string",
"origin_country": "string",
"loading_port": "string",
"destination_port": "string",
"destination_country": "string",
"acquisition_country": "string",
"subtotal_incoterm": "string",
"international_freight": "string",
"international_insurance": "string",
"customs_costs": "string",
"other_transport_costs": "string"
},
"reimbursement": {
"document_type": "factura",
"total": "string",
"base": "string",
"tax": "string",
"documents": [
{
"supplier": {
"identification_type": "ruc",
"identification": "string"
},
"supplier_type": "persona_natural",
"payment_country": "string",
"document_type": "factura",
"number": "string",
"issue_date": "2019-08-24",
"authorization_number": "string",
"taxes": [
{
"type": "iva",
"rate": "iva_15",
"base": "string",
"value": "string"
}
],
"compensations": [
{
"code": "string",
"rate": "string",
"value": "string"
}
]
}
]
},
"withholdings": [
{
"type": "iva_100",
"value": "string"
}
],
"withheld_iva": "string",
"withheld_renta": "string",
"substitute_delivery_note": {
"origin_address": "string",
"destination_address": "string",
"transport_start": "string",
"transport_end": "string",
"carrier": {
"identification_type": "ruc",
"identification": "string",
"name": "string"
},
"plate": "string",
"destinations": [
{
"reason": "string",
"customs_document": "string",
"destination_establishment": "string",
"route": "string"
}
]
},
"third_party_charges": [
{
"concept": "string",
"amount": "string"
}
],
"negotiable": {
"notification_email": "string"
},
"compensations": [
{
"code": "string",
"rate": "string",
"value": "string"
}
],
"fiscal_machine": {
"brand": "string",
"model": "string",
"serial": "string"
},
"additional_info": [
{
"name": "string",
"value": "string"
}
]
}
}
],
"next_cursor": "string",
"prev_cursor": "string"
}One of your received documents, as stored. To read an invoice from the SRI without storing it, GET /v1/ec/sri/invoices/{access_key}.
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.
id*stringuuidThe received document
application/json- response
id*stringuuidobject*"received_document""received_document"environment*string"sandbox""live"country*"ec"The country, as its lowercase ISO 3166-1 alpha-2 code, the same as in the path (/v1/ec/…). New countries may appear.
"ec"currency*stringThe currency of the amounts, as its ISO 4217 code. New currencies may appear.
^[A-Z]{3}$business_id*stringuuidaccess_key*string49 <= length <= 49number*stringissue_date*stringdateissuer*Who issued it: your supplier, or your customer for a withholding.
buyer*|Whom it is addressed to, as the document names them; null until the XML is here.
authorization*|nullsri_status*stringWhat the SRI last said: authorized, annulment_pending (its issuer asked to annul it and the receiver hasn't accepted; still valid) or annulled.
"authorized""annulment_pending""annulled"verification*stringHow much it is proven, as for imports: sri, listed (an SRI report names it), signature (an AUTORIZADO wrapper) or unconfirmed (only its issuer's signature).
"sri""listed""signature""unconfirmed"xml_status*stringavailable; pending while the SRI is asked; missing when the SRI didn't give it in reach (only its issuer can send it); out_of_window when a report named it past the SRI's 60 days.
"available""pending""missing""out_of_window"sources*array<>Every way it arrived: key, report, xml, email.
subtotal*string|nulltaxes*array<||>total*string|nullpayments*array<>tax_support*|Why your business books it (codSustento, ATS tabla 5), as you stated it; null until you do. The ATS takes it, or else the one of the withholding you issued over it.
"10""11""12""13""14""15""01""02""03""04""05""06""07""08""09"nullpayment_method*|How it was paid, as you stated it; the ATS writes it over every method its XML names. Null until you do.
"sin_sistema_financiero""compensacion_deudas""tarjeta_debito""dinero_electronico""tarjeta_prepago""tarjeta_credito""otros_sistema_financiero""endoso_titulos"nulldescription*|The description of its first line.
withholding*|The withholding your business issued over it: the latest authorized one that names it among its support documents. Null while none does, or once that one is annulled.
created_at*stringdate-timeupdated_at*stringdate-timetype*"invoice"The family, as the issuing API names it.
"invoice"document*|The invoice read from its XML, in the shape the issuing API returns it; null until the XML is here.
curl -X GET 'https://api-sandbox.fiscalbase.io/v1/ec/received-documents/497f6eca-6276-4993-bfeb-53cbbbba6f08'{
"id": "01a21860-6739-7841-9440-9c945add1136",
"object": "received_document",
"type": "invoice",
"environment": "sandbox",
"country": "ec",
"currency": "USD",
"business_id": "01a21860-66d5-7966-b23f-f23170b3c8df",
"access_key": "7777777777777777777777777777777777777777777777777",
"number": "001-001-000000007",
"issue_date": "2026-11-26",
"issuer": {
"ruc": "1790012345001",
"name": "COMERCIAL RIVERA S.A.",
"trade_name": null,
"regime": "general",
"special_taxpayer": false
},
"buyer": {
"identification_type": "ruc",
"identification": "1790012345001",
"name": "FERRETERÍA EL SOL S.A.",
"address": "Av. 10 de Agosto N21-44, Quito",
"email": "compras@elsol.ec"
},
"authorization": null,
"sri_status": "authorized",
"verification": "signature",
"xml_status": "available",
"sources": [
"xml"
],
"subtotal": "249.00",
"taxes": [
{
"type": "iva",
"rate": "iva_15",
"base": "240.00",
"value": "36.00",
"additional_discount": null,
"refund": null
},
{
"type": "iva",
"rate": "iva_0",
"base": "9.00",
"value": "0.00",
"additional_discount": null,
"refund": null
}
],
"total": "285.00",
"payments": [
{
"method": "tarjeta_credito",
"amount": "285.00",
"term": {
"length": 30,
"unit": "days"
}
}
],
"tax_support": null,
"payment_method": null,
"description": null,
"document": {
"ice": "0.00",
"iva": "36.00",
"tip": "0.00",
"buyer": {
"name": "FERRETERÍA EL SOL S.A.",
"email": "compras@elsol.ec",
"address": "Av. 10 de Agosto N21-44, Quito",
"identification": "1790012345001",
"identification_type": "ruc"
},
"lines": [
{
"net": "240.00",
"code": "SKU-1",
"unit": null,
"taxes": [
{
"base": "240.00",
"rate": "iva_15",
"type": "iva",
"value": "36.00"
}
],
"discount": "0.00",
"quantity": "2",
"unit_price": "120",
"description": "Taladro percutor",
"auxiliary_code": null,
"additional_info": [],
"unsubsidized_price": null
},
{
"net": "9.00",
"code": "SKU-1",
"unit": null,
"taxes": [
{
"base": "9.00",
"rate": "iva_0",
"type": "iva",
"value": "0.00"
}
],
"discount": "0.00",
"quantity": "2",
"unit_price": "4.5",
"description": "Guantes",
"auxiliary_code": null,
"additional_info": [],
"unsubsidized_price": null
}
],
"plate": null,
"taxes": [
{
"base": "240.00",
"rate": "iva_15",
"type": "iva",
"value": "36.00",
"refund": null,
"additional_discount": null
},
{
"base": "9.00",
"rate": "iva_0",
"type": "iva",
"value": "0.00",
"refund": null,
"additional_discount": null
}
],
"total": "285.00",
"export": null,
"irbpnr": "0.00",
"subsidy": null,
"discount": "0.00",
"payments": [
{
"term": {
"unit": "days",
"length": 30
},
"amount": "285.00",
"method": "tarjeta_credito"
}
],
"subtotal": "249.00",
"issue_date": "2026-11-26",
"negotiable": null,
"withheld_iva": null,
"withholdings": [],
"compensations": [],
"reimbursement": null,
"fiscal_machine": null,
"withheld_renta": null,
"additional_info": [
{
"name": "Orden de compra",
"value": "OC-1041"
}
],
"third_party_charges": [],
"delivery_note_number": null,
"substitute_delivery_note": null
},
"withholding": null,
"created_at": "2026-11-26T15:01:40.793Z",
"updated_at": "2026-11-26T15:01:40.793Z"
}What the XML doesn't say and the ATS needs: why your business books it (tax_support) and, when its XML names no payment method or a withdrawn one, how it was paid (payment_method). Only what you send changes; received_document.updated says what did.
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.
id*stringuuidapplication/json- body
tax_support?|Why your business books it (ATS tabla 5): 01 for goods or services that give IVA credit, 02 for an expense without it, and the rest of the table. null clears it.
"10""11""12""13""14""15""01""02""03""04""05""06""07""08""09"nullpayment_method?|How it was paid (tabla 24), when its XML says none or a withdrawn one. null clears it.
"sin_sistema_financiero""compensacion_deudas""tarjeta_debito""dinero_electronico""tarjeta_prepago""tarjeta_credito""otros_sistema_financiero""endoso_titulos"nullThe received document
application/json- response
id*stringuuidobject*"received_document""received_document"environment*string"sandbox""live"country*"ec"The country, as its lowercase ISO 3166-1 alpha-2 code, the same as in the path (/v1/ec/…). New countries may appear.
"ec"currency*stringThe currency of the amounts, as its ISO 4217 code. New currencies may appear.
^[A-Z]{3}$business_id*stringuuidaccess_key*string49 <= length <= 49number*stringissue_date*stringdateissuer*Who issued it: your supplier, or your customer for a withholding.
buyer*|Whom it is addressed to, as the document names them; null until the XML is here.
authorization*|nullsri_status*stringWhat the SRI last said: authorized, annulment_pending (its issuer asked to annul it and the receiver hasn't accepted; still valid) or annulled.
"authorized""annulment_pending""annulled"verification*stringHow much it is proven, as for imports: sri, listed (an SRI report names it), signature (an AUTORIZADO wrapper) or unconfirmed (only its issuer's signature).
"sri""listed""signature""unconfirmed"xml_status*stringavailable; pending while the SRI is asked; missing when the SRI didn't give it in reach (only its issuer can send it); out_of_window when a report named it past the SRI's 60 days.
"available""pending""missing""out_of_window"sources*array<>Every way it arrived: key, report, xml, email.
subtotal*string|nulltaxes*array<||>total*string|nullpayments*array<>tax_support*|Why your business books it (codSustento, ATS tabla 5), as you stated it; null until you do. The ATS takes it, or else the one of the withholding you issued over it.
"10""11""12""13""14""15""01""02""03""04""05""06""07""08""09"nullpayment_method*|How it was paid, as you stated it; the ATS writes it over every method its XML names. Null until you do.
"sin_sistema_financiero""compensacion_deudas""tarjeta_debito""dinero_electronico""tarjeta_prepago""tarjeta_credito""otros_sistema_financiero""endoso_titulos"nulldescription*|The description of its first line.
withholding*|The withholding your business issued over it: the latest authorized one that names it among its support documents. Null while none does, or once that one is annulled.
created_at*stringdate-timeupdated_at*stringdate-timetype*"invoice"The family, as the issuing API names it.
"invoice"document*|The invoice read from its XML, in the shape the issuing API returns it; null until the XML is here.
curl -X PATCH 'https://api-sandbox.fiscalbase.io/v1/ec/received-documents/497f6eca-6276-4993-bfeb-53cbbbba6f08' \
-H 'Content-Type: application/json' \
-d '{
"tax_support": "01"
}'{
"id": "01a21860-608d-7d14-8105-6e778ba5d013",
"object": "received_document",
"type": "invoice",
"environment": "live",
"country": "ec",
"currency": "USD",
"business_id": "01a21860-6039-7375-a01f-e057cb8a52cc",
"access_key": "2611202601179001234500120010012044264956578545016",
"number": "001-001-204426495",
"issue_date": "2026-11-26",
"issuer": {
"ruc": "1790012345001",
"name": "ANDINA COMERCIAL (2024) S.A.",
"trade_name": "Andina",
"regime": "general",
"special_taxpayer": false
},
"buyer": {
"identification_type": "ruc",
"identification": "1792146739001",
"name": "ANDINA COMERCIAL S.A.",
"address": "Quito",
"email": "compras@andina.ec"
},
"authorization": {
"number": "2611202601179001234500120010012044264956578545016",
"authorized_at": "2026-11-26T15:01:43.000Z"
},
"sri_status": "authorized",
"verification": "sri",
"xml_status": "available",
"sources": [
"report"
],
"subtotal": "430.00",
"taxes": [
{
"type": "iva",
"rate": "iva_15",
"base": "430.00",
"value": "64.50",
"additional_discount": null,
"refund": null
}
],
"total": "537.50",
"payments": [
{
"method": "tarjeta_credito",
"amount": "537.50",
"term": null
}
],
"tax_support": "01",
"payment_method": null,
"description": "Banquete",
"document": {
"ice": "0.00",
"iva": "64.50",
"tip": "43.00",
"buyer": {
"name": "ANDINA COMERCIAL S.A.",
"email": "compras@andina.ec",
"address": "Quito",
"identification": "1792146739001",
"identification_type": "ruc"
},
"lines": [
{
"net": "430.00",
"code": null,
"unit": null,
"taxes": [
{
"base": "430.00",
"rate": "iva_15",
"type": "iva",
"value": "64.50"
}
],
"discount": "0.00",
"quantity": "1",
"unit_price": "430",
"description": "Banquete",
"auxiliary_code": null,
"additional_info": [],
"unsubsidized_price": null
}
],
"plate": null,
"taxes": [
{
"base": "430.00",
"rate": "iva_15",
"type": "iva",
"value": "64.50",
"refund": null,
"additional_discount": null
}
],
"total": "537.50",
"export": null,
"irbpnr": "0.00",
"subsidy": null,
"discount": "0.00",
"payments": [
{
"term": null,
"amount": "537.50",
"method": "tarjeta_credito"
}
],
"subtotal": "430.00",
"issue_date": "2026-11-26",
"negotiable": null,
"withheld_iva": null,
"withholdings": [],
"compensations": [],
"reimbursement": null,
"fiscal_machine": null,
"withheld_renta": null,
"additional_info": [
{
"name": "Orden de compra",
"value": "OC-1041"
}
],
"third_party_charges": [],
"delivery_note_number": null,
"substitute_delivery_note": null
},
"withholding": null,
"created_at": "2026-11-26T15:01:39.101Z",
"updated_at": "2026-11-26T15:01:39.120Z"
}The SRI autorizacion with the signed document inside, as stored. 409 when its XML never arrived (listed only by a report, or out of the SRI's window).
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.
id*stringuuidThe file
response?fileapplication/xmlbinarycurl -X GET 'https://api-sandbox.fiscalbase.io/v1/ec/received-documents/497f6eca-6276-4993-bfeb-53cbbbba6f08/xml'"string"Asks the SRI for an invoice addressed to anyone, including one whose annulment is pending, and reads it without storing it: enough to issue a withholding on it. A test key asks the SRI's testing service and a live key its real one; the access key must belong to the same environment. The SRI only answers for documents from the last 60 days. sandbox never asks it: its SRI simulator answers for the Sandbox business's received invoices (keyed ambiente 1), and any other key is not found. An answer may be kept for a minute (Cache-Control). To keep a document in your records, upload its XML or the SRI's report with POST /v1/ec/imports.
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.
access_key*stringThe 49 digits of the access key.
^\d{49}$The invoice the SRI holds
application/json- response
object*"sri_invoice""sri_invoice"environment*stringWho answered: the SRI's test service, its live one, with tax validity, or sandbox's SRI simulator, which holds the Sandbox business's received invoices.
"sandbox""test""live"access_key*string49 <= length <= 49number*stringissue_date*stringdateissuer*buyer*issued_to_you*booleantrue if the invoice is addressed to your key's business.
authorization*sri_status*stringannulment_pending when its issuer asked to annul it and the receiver hasn't accepted; it is still valid.
"authorized""annulment_pending"currency*stringThe ISO 4217 code of its amounts' currency.
subtotal*stringtaxes*array<||>total*stringpayments*array<>description*|The description of its first line.
curl -X GET 'https://api-sandbox.fiscalbase.io/v1/ec/sri/invoices/string'{
"object": "sri_invoice",
"environment": "test",
"access_key": "2611202601179408784900110010010005216011234567818",
"number": "001-001-000521601",
"issue_date": "2026-11-26",
"issuer": {
"ruc": "1794087849001",
"name": "TRANSPORTES ANDES CÍA. LTDA.",
"trade_name": null
},
"buyer": {
"identification_type": "ruc",
"identification": "1792146739001",
"name": "COMERCIAL ANDINA S.A.",
"address": null,
"email": "compras@andina.ec"
},
"issued_to_you": true,
"authorization": {
"number": "2611202601179408784900110010010005216011234567818",
"authorized_at": "2026-09-20T15:15:30.000Z"
},
"sri_status": "authorized",
"currency": "USD",
"subtotal": "771.20",
"taxes": [
{
"type": "iva",
"rate": "iva_15",
"base": "771.20",
"value": "115.68",
"additional_discount": null,
"refund": null
}
],
"total": "886.88",
"payments": [
{
"method": "sin_sistema_financiero",
"amount": "886.88",
"term": null
}
],
"description": "Llantas y repuestos"
}Inventory
What each establishment holds of the products that track their stock, moved by every sale, return and annulment, and by what you count and adjust, each change traced in its movements.
ATS
The Anexo Transaccional Simplificado of a period, built from what your business issued and received, for you to upload at the SRI.