Documents

Download several documents in a ZIP

POST
/v1/ec/documents/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.

Authorization

AuthorizationBearer <token>

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.

ids*array<>

The documents, from one to 100.

Items1 <= items <= 100
files?array<>

Which files of each document: the RIDE (pdf), the authorized XML (xml), or both.

Items1 <= items <= 2

Default

[  "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"