Download one block of the backup through a delivery link, as a ZIP.
const url = 'https://api.emite.cr/v1/archive-delivery/download';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"from":"2026-09-01","to":"2026-09-30","kind":"issued","block":1,"token":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.emite.cr/v1/archive-delivery/download \ --header 'Content-Type: application/json' \ --data '{ "from": "2026-09-01", "to": "2026-09-30", "kind": "issued", "block": 1, "token": "example" }'The same file «Respaldo» builds. Recorded on the company trail as invoice.exported and counted on the delivery.
Request Bodyrequired
Section titled “Request Bodyrequired”object
First Costa Rica calendar day of the EMISSION-date range (inclusive).
Example
2026-09-01Last Costa Rica calendar day of the range (inclusive), not before from (400 ARCHIVE_RANGE_INVALID). The range covers at most 366 days, both ends included (400 ARCHIVE_RANGE_TOO_LONG); a longer period takes several plans.
Example
2026-09-30issued (our documents) or received (suppliers').
1-based block number, as the plan lists it.
Example
1The delivery link's token, as the email carried it.
Responses
Section titled “Responses”The ZIP, named emitidos_<from>_<to>.zip or recibidos_<from>_<to>.zip, with _bloque-<n>-de-<total> before the extension when the period has more than one block. It streams while it is built, so there is no Content-Length; if anything fails once the download has started, the connection is cut and the file arrives incomplete — discard it and download the block again.
Headers
Section titled “Headers”attachment; filename="<emitidos|recibidos>_<from>_<to>[_bloque-<n>-de-<total>].zip".
Documents in this block.
Always no-store.