Identification and document details
Identification formats and registry lookups for applicable Costa Rican types, plus required details, dates and activity codes.
Before submission, Astra checks the details, each line’s calculations and the totals. If it detects a problem, it helps you correct it from the invoice. Its engine then prepares and signs the XML and initiates submission in a measured median of 0.46 seconds. When Hacienda’s response arrives, your customer receives the PDF, signed XML and response XML by email.
Example of a successful submission with the response available before the email. The 0.46 s measurement covers FE engine preparation and dispatch.
Validation happens before signing and submission: Astra checks within the invoice and the FE engine checks the received data again. These are some of the controls that help avoid rejections caused by inconsistencies.
Identification formats and registry lookups for applicable Costa Rican types, plus required details, dates and activity codes.
Code existence in the catalog and consistent VAT treatment for CABYS codes classified as exempt.
Quantity × price, discounts, subtotal, taxes, exemptions and the line total.
Sales, discounts and tax sums, goods and services classification, other charges and the document total.
Required, conditional and prohibited fields according to document type, with reference checks where applicable.
Certificate configuration and expiry, key and sequence structure, date consistency and duplicate controls.
Thousands of documents processed. Measured from a sample of successfully processed issuance requests. 95% of this sample recorded less than 0.73 s.
From when the FE engine receives Astra’s data until it finishes preparing and signing the XML and initiates background submission. From there, Hacienda processes the document and returns its response.
Astra checks identification, CABYS, units, taxes and amounts from the invoice. The review detects inconsistencies before submission to Hacienda and shows details that need attention.
When a detail needs correction, Astra shows the problem and offers corrections for cases such as customer identification or email, CABYS, tax classification and unit of measure. You confirm the correct detail within the same review; Astra validates again and stops submission if errors remain.
On receiving Astra’s data, the engine checks fields, formats and document rules. It verifies quantities, prices, discounts and taxes on each line and reconciles them with the summary and total. It then generates the v4.4 XML.
The engine applies your certificate to the XML, stores the signed document and initiates background submission to Hacienda. This processing has a measured median of 0.46 s. Astra keeps the document status visible from the invoice.
If Hacienda’s response arrives during the brief email wait, Astra sends the PDF, signed XML and response XML together. It also records the send in the invoice activity. Attachment preparation and sending happen automatically with email delivery configured.
Your customer receives the invoice PDF and electronic files by email. Fewer requests after the sale to obtain the XML.
The customer can share the signed document and response with the person recording expenses, alongside the readable PDF.
Review the status and sending history from the invoice. Documents and follow-up remain linked to the transaction.
The regulation requires delivery of the electronic document and its readable representation even while Hacienda’s confirmation is pending, followed by delivery of the confirmation once received. Astra automates that email workflow: it sends the available PDF and signed XML, then completes delivery with the response XML when it arrives.
In compliance with Article 18 of the Electronic Documents Regulation for tax purposes, Astra sends the available PDF and signed XML even while Hacienda’s confirmation is pending. When Hacienda is unavailable and the document is queued, Astra brings that email forward without waiting for confirmation.
The engine queues submissions with temporary failures for retry. If the initial email has already been sent, Astra automatically sends the response XML in another email when it becomes available.
The PDF makes the invoice readable. The signed XML contains the electronic document. The response XML preserves Hacienda’s result. Astra gathers them in the issuance workflow and keeps follow-up available from the invoice.
With the certificate, Hacienda configuration and recipient email enabled, Astra handles validation, signing and automatic sending. Acceptance depends on Hacienda and inbox delivery on the email service.
Explore how validation, signing and automatic file delivery reduce the work behind each invoice.