Acceptance-deadline summary of the pending compras inbox
const url = 'https://api.emite.cr/v1/documents/received/summary';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.emite.cr/v1/documents/received/summary \ --header 'Authorization: Bearer <token>'Over every document the company has not answered yet (acceptanceStatus: none) in the environment of the session or API key: how many there are, how many are overdue, due today or due within the next 3 days, the earliest deadline, and ivaAtRisk — the tax (₡) of those overdue, due today or due soon.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”object
Documents not answered yet (acceptanceStatus: none), with or without a date.
Pending documents past their deadline.
Pending documents whose last day is today.
Pending documents whose deadline ends within the next 3 days.
The earliest deadline among the pending documents — already past when one is overdue; null when none has a date.
The tax (₡, 2 decimals) of the pending documents that are overdue, due today or due soon. A foreign-currency document is converted with its own exchange rate, and left out of the sum when it has none.
Example
{ "ivaAtRisk": 487300}