What a delivery link opens: the closed company, until when, and the years with documents.
POST
/v1/archive-delivery/inspect
const url = 'https://api.emite.cr/v1/archive-delivery/inspect';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"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/inspect \ --header 'Content-Type: application/json' \ --data '{ "token": "example" }'404 ARCHIVE_DELIVERY_LINK_INVALID for an unknown token or a company that is no longer closed, and ARCHIVE_DELIVERY_LINK_EXPIRED for an expired link.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
token
required
The delivery link's token, as the email carried it.
string
Examplegenerated
{ "token": "example"}Responses
Section titled “Responses”Media typeapplication/json
object
companyName
required
The closed company’s name.
string
identificationType
required
Its identification type (Hacienda’s code).
string
identificationNumber
required
Its identification number.
string
closedAt
required
When the account was closed.
string
expiresAt
required
Until when the link downloads.
string
years
required
The calendar years (Costa Rica) with production documents, issued or received: the periods the page offers, the most recent first.
Array<number>
Example
{ "identificationType": "02", "identificationNumber": "3101123456"}