The company's plan quotes: open to accept, scheduled, in force
const url = 'https://api.emite.cr/v1/billing/quotes';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/billing/quotes \ --header 'Authorization: Bearer <token>'The Enterprise plans (Águila, Jaguar) are sold BY QUOTE: the EmiteCR team sends the company a quote with its fee, cadence, included documents and overage, and the company accepts it with POST /billing/quotes/:id/accept. Lists the quotes it can accept today (sent, still valid), the one it accepted over a live plan and waits for the period end (scheduled) and the one in force (accepted). Money is net; the gross is served next to it. GET /billing/entitlements serves the same under openQuotes and quote.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”object
Identifier of the quote — the :id of POST /billing/quotes/:id/accept and GET /billing/quotes/:id/document.
The quote number the company cites.
sent: open, the company can accept it until validUntil. scheduled: accepted over a live list plan, it takes effect at the period end (the entitlements' pendingChange names it). accepted: in force, the subscription is billed under its terms.
The quoted plan: pf_custom (Águila, persona física ladder) or pj_custom (Jaguar, persona jurídica ladder).
Commercial name of that plan (the code itself for a plan outside the catalog).
How often feeCrc is charged: every month or every year.
The fee of one period, NET, whole colones.
The fee of one period WITH IVA — what the card is charged.
Documents included per calendar month. null = unlimited (fair use).
₡ per overage document, net. null = no overage: emission stops past the included ones.
Monthly cap on overage documents, already resolved (the quote’s, or twice the included). null without overage.
End of the minimum commitment, or null.
When the EmiteCR team released the company from that commitment, or null.
Whether the commitment still binds the company. For the quote in force: true while it ends after the current period — then POST /billing/cancel answers 409 PLAN_COMMITMENT_ACTIVE and the billing page says so instead of offering to cancel. Always false for an open quote.
Until when it can be accepted (the end of a Costa Rica day).
When the EmiteCR team sent it to the company.
When the company accepted it (the declaration on the click).
The Terms version the quote rests on.
Example
[ { "status": "sent", "planCode": "pj_custom", "planLabel": "Jaguar", "interval": "month" }]