Skip to content

Download one block of the backup through a delivery link, as a ZIP.

POST
/v1/archive-delivery/download
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.

Media typeapplication/json
object
from
required

First Costa Rica calendar day of the EMISSION-date range (inclusive).

string
Example
2026-09-01
to
required

Last 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.

string
Example
2026-09-30
kind
required

issued (our documents) or received (suppliers').

string
Allowed values: issued received
block
required

1-based block number, as the plan lists it.

number
>= 1
Example
1
token
required

The delivery link's token, as the email carried it.

string
>= 20 characters <= 200 characters

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.

Media typeapplication/zip
string format: binary
Content-Disposition
string

attachment; filename="<emitidos|recibidos>_<from>_<to>[_bloque-<n>-de-<total>].zip".

X-Archive-Documents
integer

Documents in this block.

Cache-Control
string

Always no-store.