Export documents to CSV
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.
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
Query Parameters
Only in these statuses; repeat it for several (status=returned&status=not_authorized).
Only those that arrived through these channels; repeat it for several.
The identification of the document's buyer or supplier; on a delivery note, that of the carrier or of any of its recipients.
Searches 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 <= 100datedateOnly these types, by their object; repeat it for several (type=invoice&type=credit_note). Without it, all of them.
Response Body
text/csv
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://example.com/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 `object`.
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`.