API del ATS
The Anexo Transaccional Simplificado of a period, from what your business issued and received: each section's count and totals, and what the file leaves out and why, document by document. Fiscalbase never files it: download it from GET /v1/ec/ats/{period}/file and upload it in SRI en línea. It comes with Pro and A medida, and every Sandbox business may try it: another plan is refused with 403 ats_plan_required.
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.
period*stringThe month, yyyy-mm. A RIMPE business files by semester: name it by its last month, yyyy-06 or yyyy-12.
^\d{4}-(?:0[1-9]|1[0-2])$The ATS
application/json- response
object*"ats""ats"period*stringcurrency*stringThe ISO 4217 code of its amounts' currency.
frequency*stringMonthly, or by semester for a RIMPE business.
"monthly""semestral"months*array<string>The months it covers, yyyy-mm, in order.
closed*booleanWhether the period is over. The SRI takes an anexo only once it is: before, the file is what your business holds so far.
due_date*stringThe day the SRI expects it by: the ninth digit of the RUC's day in the month after next (a semester's in August or February), moved to the next business day (Resolución NAC-DGERCGC12-00001, art. 4).
datestate*stringopen until the period ends; empty when it had no purchases, sales, exports or retenciones, so the SRI asks for no anexo (art. 3); blocked while blockers leave documents out, overdue once that is past due_date; ready to upload. Whether it was uploaded is the SRI's to say.
"open""empty""blocked""overdue""ready"file_name*stringThe ZIP's name, ATmmaaaa.zip (Ficha ATS §3).
sections*blockers*array<>What the file leaves out, and each document behind it: unclassified_purchase (no sustento: state it with PATCH /v1/ec/received-documents/{id}), missing_payment_method and withdrawn_payment_method (the same, with payment_method), missing_xml (only its issuer can send it), unconfirmed_document (an SRI report naming it confirms it), missing_modified_document (the factura a nota modifies isn't here), settlement_to_ruc, unsupported_document, unreportable_purchase, unreportable_sale and registered_outside_period (the SRI's validator would refuse it as it stands).
warnings*array<>What the SRI's validator warns about and still accepts: sri_iva_table_outdated (its IVA table stops at 12 %), second_retention_unreported (a second preprinted withholding's series doesn't fit).
curl -X GET 'https://api-sandbox.fiscalbase.io/v1/ec/ats/string'{
"object": "ats",
"period": "2026-11",
"currency": "USD",
"frequency": "monthly",
"months": [
"2026-11"
],
"closed": false,
"due_date": "2027-01-14",
"state": "open",
"file_name": "AT112026.zip",
"sections": {
"purchases": {
"count": 0,
"base": "0.00",
"tax": "0.00",
"documents": [],
"more_documents": 0
},
"purchase_withholdings": {
"count": 0,
"base": "0.00",
"tax": "0.00",
"documents": [],
"more_documents": 0
},
"sales": {
"count": 0,
"base": "0.00",
"tax": "0.00",
"documents": [],
"more_documents": 0
},
"sales_by_establishment": {
"count": 1,
"base": "0.00",
"tax": null,
"documents": [],
"more_documents": 0
},
"annulled": {
"count": 0,
"base": null,
"tax": null,
"documents": [],
"more_documents": 0
},
"electronic_sales": {
"count": 0,
"base": "0.00",
"tax": "0.00",
"documents": [],
"more_documents": 0
}
},
"blockers": [
{
"kind": "unclassified_purchase",
"documents": [
{
"object": "received_document",
"id": "01a21860-7bda-7fba-82e4-8ddb79a48594",
"type": "invoice",
"number": "001-001-215174652",
"issue_date": "2026-11-26",
"counterparty": "ANDINA COMERCIAL (2024) S.A.",
"total": "285.00",
"currency": "USD"
}
]
}
],
"warnings": []
}The ZIP the SRI takes, ATmmaaaa.zip, holding the XML (declared ISO-8859-1, valid against the SRI's ats.xsd). The documents the preview names as blockers are left out of it. Pro and A medida, and every Sandbox business (403 ats_plan_required otherwise).
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.
period*stringThe month, yyyy-mm. A RIMPE business files by semester: name it by its last month, yyyy-06 or yyyy-12.
^\d{4}-(?:0[1-9]|1[0-2])$The ZIP
response?fileapplication/zipbinarycurl -X GET 'https://api-sandbox.fiscalbase.io/v1/ec/ats/string/file'"string"