Download several documents in a ZIP
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.
Your API key, which acts for the one business it was created for: fb_sandbox_… issues in sandbox, fb_test_… in test, the tax authority's testing service, and fb_live_… in live.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
The documents, from one to 100.
1 <= items <= 100Which files of each document: the RIDE (pdf), the authorized XML (xml), or both.
1 <= items <= 2Default
[ "pdf", "xml"]Response Body
application/zip
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/v1/ec/documents/zip" \ -H "Content-Type: application/json" \ -d '{ "ids": [ "6e0346a3-e54d-40e3-9779-4ba1e707e35b" ] }'"string"Export documents to CSV GET
The documents that match the 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`. It is streamed as it is built. Up to 10000 documents; if there are more, `422`: narrow it down with filters.
Email several documents again POST
Queues the email of up to 100 documents, with the rules of sending one: only authorized ones, to each one's recipient or to the addresses in `to`. It answers with the result for each: one that cannot be sent does not stop the others.