Export documents
The documents that match the list's filters, from newest to oldest, as UTF-8 CSV: number, type, counterparty_name, counterparty_identification, issue_date, total (negative on a credit note; empty on a delivery note), status, channel, access_key, authorization_number and authorized_at; with format=zip, comprobantes.csv and each authorized XML under xml/, named as its own download. It is streamed as it is built. Up to 10000 documents; if there are more, 422: narrow it down with filters.
AuthorizationBearer <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.
status?|array<>Only in these statuses; repeat it for several (status=returned&status=not_authorized).
channel?|array<>Only those that arrived through these channels; repeat it for several.
counterparty?stringThe identification of the document's buyer or supplier; on a delivery note, that of the carrier or of any of its recipients.
point?|array<>Only those numbered at these emission points, 001-002 (establishment and emission point, as GET /v1/ec/series lists them); repeat it for several.
q?stringSearches words in the number (001-001-000000123), the access key, the name of whoever appears on the document (ignoring case and accents) or the start of their identification. Each word must appear somewhere; it combines with the other filters.
1 <= length <= 100issue_date[gte]?stringdateissue_date[lte]?stringdateupdated_at[gte]?stringdate-timetype?|array<>Only these types, by their object; repeat it for several (type=invoice&type=credit_note). Without it, all of them.
format?stringcsv, the rows alone; zip, the same CSV and each document's XML under xml/.
"csv""csv""zip"Fiscalbase-Environment?stringThe environment the call acts in. Required with a person's session; a key's own environment is the one that counts, so a key may leave it out, and naming another is 422 environment_mismatch.
"sandbox""test""live"Fiscalbase-Business?stringThe business the call acts for. With a person's session, the one the call is about (without it, a call about one business is 422 business_required and a list covers every business of the organization); a key acts for its own, so naming another is 422 business_mismatch.
uuidFiscalbase-Channel?stringWhich of Fiscalbase's own integrations a key's call comes from, recorded as the channel of the documents it issues: a record, not a permission. Without it, api. A person's call is always console.
"api""mcp"Fiscalbase-Agent?stringThe AI agent a key's call comes from, as its client names itself (the MCP server sets it); recorded with the request and shown in the console's request log.
The CSV, or the ZIP
response?stringcurl -X GET 'https://api.fiscalbase.io/v1/ec/documents/export'"string"List documents of every type GET
A single list of the six types, from newest to oldest, with the same filters as each type plus `type`. Each document carries its `type`.
Download several documents in a ZIP POST
The RIDE, the authorized XML or both of up to 100 documents of any type, in a single ZIP that is streamed as it is built. Each file is named like its individual download. Documents that have no files yet (not authorized, or with the RIDE still being prepared) are left out, and `Fiscalbase-Skipped` says how many; if none has them, `409`. An id that does not belong to your environment is `404`.