Seven document types
Invoices, receipts, credit and debit notes, purchase invoices, export invoices and electronic payment receipts. One integration foundation for different businesses.
You do not need to replace your system to issue electronic documents in Costa Rica. Integrate Aster, the engine Astra uses, and connect your application to validation, XML signing and tracking with Hacienda.
Illustrative workflow. Hacienda’s result arrives asynchronously.
Send the data through the API and authenticate with a key for the appropriate environment. The documentation includes examples for getting started and checking the result.
It validates document structure and rules, line-item calculations and totals. Errors identify the fields your application needs to correct before continuing.
It generates v4.4 XML and applies an XAdES-EPES signature using the configured certificate. Built in Go, the engine separates preparation from asynchronous tracking.
It sends the document to Hacienda. Temporary failures leave the submission queued for retry. Webhooks communicate status changes to your application so it can update its own workflow.
Invoices, receipts, credit and debit notes, purchase invoices, export invoices and electronic payment receipts. One integration foundation for different businesses.
Use the documented idempotency key to repeat a request without executing the same operation again. Webhooks track status without requiring users to keep a screen open.
Separate environments and keys for testing and production. Test your integration before configuring the certificate and credentials required to issue live documents.
Check status and retrieve files as described in the documentation. Explore Aster’s PDF, download and archiving options for your integration.
Connect issuance and its result to sales, purchases and accounting records.
Integrate documents into checkout and maintain tracking when Hacienda is delayed.
Issue documents from orders, bookings or services without asking your team to re-enter the sale in another tool.
Explore the examples, test the integration and check Aster for current plans and terms. Aster is purchased separately from Astra plans.