Invoices
Invoices are the heart of Astra's revenue flow. This guide covers the full cycle: create, send, collect, handle multi-currency, submit to Hacienda, and react to rejections. Related flows — credit notes, debit notes, payments received, and recurring invoices — live in their own linked guides at the end.
What is an invoice in Astra?
An invoice is the sales document that links a contact with line items (products or services) and tracks payment. Each invoice can have:
- Multiple line items (catalog products or manual items).
- One or more linked work orders, if your organization uses that module.
- Partial or full payments via various methods, in the invoice currency or another one.
- Its own currency (CRC, USD or any other you enable) with the exchange rate recorded.
- Submission to Hacienda (FE 4.4) when your organization has electronic invoicing configured.
- An activity trail (who did what, when) and file attachments.
Invoice list
Reach the list from Revenue → Invoices in the sidebar.
Quick status filters
Four colored buttons toggle filters:
- Pending — has an amount, no payments or credit notes applied yet, and not overdue (or no due date).
- Paid — fully covered by payments.
- Overdue — due date passed and no payment at all.
- Partial — at least one payment (or credit note) but a balance remains. Covers both current and overdue partials.
Voided invoices and those rejected by Hacienda don't appear in these filters — find them by number or through advanced search.
Search
The Search invoices... box matches the invoice number, the contact's name/company/email/ID, the Hacienda numeric key, the serial numbers of the items sold and the text of the notes (for example, the warranty). You can type several words; all of them must match; serials and notes are searched for words of 4 characters or more. To check whether a unit is under warranty, type its serial number: the sale shows up with its customer, date and the warranty noted.
Columns and sorting
Each row shows Doc #, Contact, Issued, Paid Date (the last payment date when paid; otherwise the due date), Status, the FE status icon, notes, and the total in the invoice currency. Click the number, contact, date or total headers to sort; the list shows 50 per page, newest first.
Advanced search with totals
The funnel button opens Advanced Search. Combine rules (status, customer, issue or due date, amounts, currency, payment method or date, line description/product/CABYS, FE status, has credit/debit note, etc.) and toggle Show totals to display a bar above the list with the invoice count, Total, applied NC, Net Total, Paid and Balance for the results — useful for answering "how much have I billed this customer this year?" without opening reports. Date-range filtering is done here too.
Actions
The list has no bulk operations. Each row is a link: click it to open the invoice, and from the detail you record payments, download the PDF or send it. If you arrive from a receivables-aging panel, an Aging chip shows the range applied; remove it with the X.
From any screen, Cmd + K opens global search. Type the invoice number and you go straight there. More in Keyboard Shortcuts.
Create an invoice
Ways to start:
- The + button in the top bar (or the Cmd + / shortcut) → New Invoice.
- When the list is empty, a New Invoice button appears right there.
- From a contact or from a work order, depending on your module (see those guides).
Astra creates the invoice immediately and takes you to its detail page: it already has a consecutive number, today's date, a due date (today, or today plus the contact's Credit Terms in days if you set them) and a currency taken from the contact or your organization. Everything else is edited right there, in this order:
1. Customer
In the customer card of the side panel you pick or change the contact. The picker searches by name, trade name, company, email, phone or ID number. If the customer doesn't exist, Create new contact creates one without losing your work-in-progress invoice. If the contact has discounts, a credit limit or an exemption configured, Astra asks whether to apply them to the invoice. If the customer is billed in a foreign currency such as dollars (their Billing Currency) and the invoice is in another, the currency window opens already set to it, with the day's exchange rate: apply the change to recalculate the lines, or close it to keep the invoice as it is. A customer billed in colones, the currency every contact starts with, never switches a dollar invoice to colones. On the phone the Currency sheet does the same.
When the customer can be changed. Only while the invoice has not been sent to Hacienda and has no payments. Once it is sent to Hacienda the customer is fixed: to bill someone else, cancel the invoice with a credit note and make a new one (Duplicate copies the lines, and you pick the right customer on the copy). If it has not been sent but already has a payment, even a partial one, the option to change the customer does not appear until you delete the payment in the Payments tab; change the customer and record the payment again.
2. Line items
Add the line items (see the next section). Totals recalculate with every change.
3. Dates, notes and sale condition
These live in the Electronic Invoice modal, opened from the seal with that name in the header (even if you're not submitting yet):
- Invoice Details — Issue Date (defaults to today), Due Date and Notes.
- Commercial Data — Sale condition, Payment method and, for credit, Credit term (days). These two dropdowns list the Hacienda options in Spanish even in the English interface: Contado (cash), Crédito (credit), Consignación, Apartado (layaway), Arrendamiento con opción de compra, Arrendamiento en función financiera and Otros.
The sale condition is included in the electronic document, so it should be correct before submitting to Hacienda.
4. Currency
The currency badge in the header opens Document Currency: pick from the currencies enabled in your organization and Astra fetches the current Exchange Rate (you can adjust it). The currency locks once the invoice is submitted to Hacienda, fully paid or voided.
When you switch a dollar invoice from an earlier day to colones, everything priced in dollars (catalog products priced in dollars, manual items and prices changed by hand) converts at today's exchange rate, not the invoice's; the window shows you both rates before you save. A product priced in colones keeps its colón price. If today's rate can't be fetched, the invoice's rate is used.
Line items, CABYS, and VAT
For step-by-step instructions covering Search, Details, manual items and saving a product, see Add items to invoices and estimates.
Add a line
- Click Add Line Item on the Line Items tab.
- Search a product from the catalog by name or category (or scan its barcode), or choose Create manual item and type the description.
- Set Quantity and unit price (if you picked a product, the price, CABYS and VAT auto-fill). If you'd rather start from the final price, use Price per unit with tax.
- On manual items, if your organization enabled the Price-from-cost calculator (in organization settings), a Cost and supplier disclosure appears: enter the cost and Astra derives the price by margin or markup. On a document in dollars the cost has its own CRC / USD switch next to Cost: enter it in the currency the supplier bills you in (for example ₡25,000) even when the price is in dollars; the margin is worked out at the document's exchange rate. The line list shows the cost in its own currency with the equivalent beside it: Cost: ₡25.000 ≈ $54.87. If you later change the document's currency or exchange rate, a colón cost stays in colones and only its equivalent moves.
- Under Discounts add one or more (percentage or amount) with their type and reason.
- Under Taxes confirm the IVA Rate or use Add IVA (13%).
- Save with Add Line Item, or with the add-and-continue option.
A manual item can be flagged Save as product for future use to add it to the catalog.
CABYS code
Each line needs a valid CABYS code for FE. If you picked a catalog product, the code comes from the product. For manual items, search it in the CABYS selector in the same window. When you choose a CABYS, Astra sets the line's VAT rate to the one that code mandates.
Without a valid CABYS on each line, the pre-submission validation fails and Hacienda would reject the document. Take the time to load correct CABYS codes in your product catalog so you don't have to look them up every time you invoice.
Costa Rican VAT rates
Each line's IVA Rate follows Hacienda's catalog:
- General rate 13% — most goods and services.
- Reduced rates 1%, 2%, 4% — basic food basket, medications, certain services.
- 0% rate, Exempt and 0% without credit right.
- Transitional rates (0%, 4%, 8%) and the reduced 0.5% rate for the cases the law provides.
The correct rate is usually determined by the CABYS code — Astra applies it when you select the code, and you can change it if needed.
Edit, duplicate and remove lines
Each line has Edit item, Duplicate item and Remove line. Above the table are Global discount (one discount across all lines) and Delete all. A global discount can be a percentage or an amount: the amount is entered with IVA included and is exactly how much the invoice total goes down, spread across the lines as the same percentage on each (just as if you typed it line by line). Lines you add after applying it get it too, except a line with its own discount. With Customer retention, the Coupon tab of that same window applies the one-use code a customer got in a message (see how). Lines keep the order in which you added them.
Totals (subtotal, discount, taxes, total, and the CRC equivalent when the currency is different) recalculate as you add or edit lines. Once the invoice has been submitted to Hacienda or is fully paid, lines can no longer be edited.
Detail view (tabs)
The detail page organizes information into tabs. The header shows number, dates, status and seals; the right side panel has the customer, the financial summary and the actions.
- Line Items — default tab. The lines with quantity, price, discount, tax and subtotal, plus the totals.
- Payments — Payment Summary (Total, Total Paid, Remaining Balance) and Payment History with date, method, amount, reference and notes. From here you record, edit or delete payments.
- WO — only if your organization has work order types enabled. Shows linked work orders and lets you Link Work Order.
- Activity — audit trail: changes, emails sent, payments, PDF downloads. Requires the view-activity permission for invoices.
- Files — related attachments (signed contracts, receipts). Requires the view-files permission for invoices.
- Analysis — cost, discount, profit and percent-margin breakdown with a chart. Requires the view-cost permission (in the default roles, Administrador and Contador have it).
Credit notes don't show the Payments, WO or Analysis tabs.
Header
Shows the number (with a copy button), Issue Date and Due Date, and the status as a colored badge: Pending, Pending Partial, Overdue, Overdue Partial, Paid or Voided. On the right are the currency badge, the Electronic Invoice seal (which turns into Accepted, Rejected, Processing or FE Error) and, when applicable, the Credit Note, Debit Note and Replace rejected invoice buttons.
Side panel
It holds the customer card (with a link to the contact and the option to change customer), the salesperson, the financial block with Payment Status (Draft, Unpaid, Partial or Paid), Currency, Total, Balance Due, Paid and due date, the Related notes (CN/DN issued against this invoice), internal notes, and the Actions block:
- Record Payment (while there is a balance).
- Apply Credit — appears when the customer has account credit.
- Email and WhatsApp.
- Print, Download and Receipt (thermal format).
- Recurrente (with the recurring invoices add-on) and Duplicate.
- Void Invoice — only while no electronic document exists.
Send to the customer
- Click Email in the side panel (or the mail icon on the customer card).
- The email modal opens with recipient, subject and body pre-filled. The body comes from your invoice template if you configured one in Communication; otherwise from a standard text.
- The invoice PDF is attached automatically (plus the Hacienda XML files once the invoice is accepted). The contact's related people who receive invoices (or are ticked Notify on the side panel) are added as CC, and the billing contact is the main recipient; you can remove or add copies.
- Check the attachments row (the paperclip with a number): it is exactly what the customer will receive. The ✕ removes an attachment and Attach Files adds your own (up to 2 MB each). If you remove the PDF to send another one, confirm yours shows in green before sending. Details in Attachments.
- Click Send. The send is logged in the Activity tab.
Recipients of this invoice
On the side panel, the Related people block lists each of the contact's people with a Notify checkbox and a Will notify line. What you tick there applies to this invoice alone: the automatic email on issue, the payment reminders and the Email/WhatsApp pre-fill. Use defaults goes back to each person's general boxes (see Related people). The electronic-invoice email is addressed to the billing contact when there is one; the Hacienda XML carries a single receptor email, the contact's primary unless you enable Use the billing contact as receptor in the XML under Settings → Electronic Invoice.
The WhatsApp button is always in the actions. If the contact has a usable phone number, a modal opens with an editable message (per your template); if your organization has WaBot active the message goes out directly, otherwise Astra opens WhatsApp with the message ready to send. If the contact has no number, the button shows you an on-screen warning instead of opening the modal.
The PDF generates for invoices in any state (including ones with no amount yet) — useful for previewing before sending. Print opens it in the browser and Download saves it to your computer.
Record payments
How to record
- Click Record Payment in the side panel or on the Payments tab.
- The modal opens with the Amount pre-filled with the outstanding balance in whole colones (₡498,465 for a balance of ₡498,465.60). Recording that amount marks the invoice Paid: the missing céntimos, less than ₡1, are recorded as a rounding adjustment in the Ajustes por aproximaciones en cálculos account and don't stay pending. If the payment leaves ₡1 or more, the invoice is partially paid. Invoices created before October 18, 2026 keep the previous rule: their balance is rounded down to whole colones.
- Pick the Payment Method: Cash, SINPE Móvil, Card, Check, Bank Transfer / Deposit, Collected by Third Party, Digital Platform or Other (and Gift certificate if you have that add-on). If the invoice has been through the send-to-Hacienda window, the payment starts on the payment method you chose there; you can change it. For transfer, SINPE, check and digital platform you choose the Deposit Account.
- Set the Payment Date (defaults to today).
- Optional: Reference Number (transfer confirmation, check number) and Notes.
- Save. The invoice status recalculates instantly.
Partial payments
If the customer pays less than the total, enter the amount received. The invoice moves to Pending Partial (or Overdue Partial) and the remaining balance updates.
Overpayments and account credit
If the amount exceeds the balance, Astra shows the difference. For cash it's treated as Change due; for the other methods it becomes account credit for the customer (for cash you can also choose Apply as account credit instead). When the customer has account credit, the invoice shows an Apply Credit button and the payment modal offers to use it. If an invoice is left with an unresolved leftover, a Customer credit owed banner lets you keep it as Store credit, Refund it, issue a Gift certificate or Assign customer.
From anywhere (the computer, the phone or an AI assistant), Astra does not record a payment that leaves the invoice overpaid without keeping the excess as customer credit. The payment goes to an account in its own currency (a dollar payment to a dollar account), a colón payment carries no exchange rate, and one in another currency needs the real exchange rate of the day.
Payment in a different currency
You can record the payment in a currency different from the invoice's. Astra uses the rate in effect at payment time (when you pay in the invoice's own currency it uses the invoice's rate) and stores the original amount, the CRC equivalent and the rate. Settlement is always in CRC. More in Payments Received.
Status and lifecycle
Flow
- Pending — just created or issued, no payments, not overdue. While the total is zero, the side panel shows it as Draft.
- Pending Partial — at least one payment (or credit note), not overdue, balance above zero.
- Overdue — due date passed, no payments.
- Overdue Partial — due date passed, some payment, balance above zero.
- Paid — fully covered.
- Voided — voided manually, or covered 100% by credit notes with no payment at all.
Status is calculated automatically from payments, accepted credit notes and the due date. Overdue detection is continuous — you don't need to run anything.
Void
If the invoice has no electronic document, void it with Void Invoice in the side panel actions (it asks for confirmation). The invoice stays for audit as Voided, is excluded from totals and receivables, and its products' stock goes back to the warehouse. From then on it is locked: its lines, customer, salesperson, currency, discount and dates can't change, and it takes no new payments; internal notes and the classification stay editable. A voided invoice can no longer be sent to Hacienda: if you need to bill again, use Duplicate and fix the copy.
An invoice already accepted by Hacienda cannot be voided. To reverse it, issue a credit note. It's a legal requirement of electronic invoicing.
Multi-currency
Exchange rates
- Astra fetches the rate from BCCR (Costa Rica's Central Bank) through the electronic invoicing service and caches it for a few minutes.
- When you create a foreign-currency invoice, the rate at that moment is "frozen" on the invoice (with its date). You can adjust it by hand from Document Currency while the invoice is still editable.
CRC settlement
Regardless of the invoice's currency, all internal financial calculations settle in CRC. This means:
- Reports and dashboards consolidate in CRC; the invoice shows its original currency and the CRC equivalent.
- Payments in a currency different from the invoice's convert at the rate at payment time.
- The exchange rate is stored on the invoice and on every payment — every conversion is traceable.
When to change currency
You can change the currency before submitting to Hacienda and while the invoice is not fully paid. After that, the currency modal is read-only.
To enable additional currencies, go to Organization Settings.
Submit to Hacienda (FE)
Requirements before submitting
- Each line with a valid CABYS code and VAT classification.
- Customer with a valid ID type and number (and an email, if you want them to receive the document).
- Sale condition and payment method defined.
- Your organization with electronic invoicing configured (certificate, credentials, branch and terminal). See Electronic Invoicing.
How to submit
- Click the Electronic Invoice seal in the header.
- The modal validates the document. If there are Validation errors, it offers to fix them in place (customer ID or address, unit of measure, VAT classification, payment method). The submit button stays disabled until they're resolved.
- Review Commercial Data, Branch & Terminal, Activity Codes (issuer and receiver) and the Email the customer will be notified at.
- Click Send to Hacienda. Astra generates the XML, signs it with your certificate and sends it. From that moment the invoice is locked for editing.
- The header seal goes through Sending… and Processing until Accepted or Rejected.
Response statuses
- Accepted — the document is legally valid. It can no longer be edited or voided.
- Rejected — Hacienda returned an error. Astra shows the message on the invoice and offers Replace rejected invoice, which creates a new invoice with the same data to fix and resubmit.
- Processing — Hacienda received it but hasn't answered yet. Usually resolves in seconds; the invoice is already locked.
- FE Error — the submission didn't reach Hacienda (technical problem). You can review the detail, use Dismiss Error and retry.
An invoice submitted to Hacienda (accepted or processing) cannot be edited. To correct errors on an accepted one, issue a credit note.
Contingency
If you issued a paper voucher because Hacienda was unavailable, when submitting pick Contingencia (contingency) or Sin Internet (no internet) under Situation — the options are shown in Spanish even in the English interface — and enter the Voucher issue date. That information travels in the electronic document for compliance.
For detailed module configuration, see Electronic Invoicing.
Credit and debit notes
Credit
A credit note reduces the amount owed. Common cases:
- Correct an error on an accepted FE.
- Partial or full refund.
- Post-sale discount.
When the invoice was accepted by Hacienda and still has an amount left to credit, the header shows the Credit Note button. It asks what you want to do (fully cancel, partially credit, etc.), pre-fills the CN and submits it to Hacienda just like the invoice. A rejected invoice can't take a CN: it gets replaced instead.
Debit
A debit note increases the amount. For additional services or price adjustments on an accepted invoice, use the Debit Note button in the header.
Linked documents on the invoice
Issued CN/DN appear in the side panel under Related notes, and each note links back to its invoice. Accepted credit notes reduce the balance: an invoice covered 100% by CN ends up as Voided.
Duplicate and recurring
Duplicate
Duplicate (with confirmation) creates a new invoice based on the current one: same customer, same lines with their taxes and discounts, same currency, sale condition and notes; new number and today's date. Astra takes you to the new invoice so you can edit what changes. If a line carries a date variable such as {period}, the copy keeps it and replaces it with its own issue date.
Recurring billing
For customers you bill every month for the same amount (rentals, subscriptions, maintenance), the Recurrente button (available with the recurring invoices add-on) turns the invoice into the template of a recurring invoice instead of duplicating manually.
PDF and printing
PDF content
- Your organization's logo and commercial data.
- Customer data (name, ID, contact details).
- Lines with description, quantities, prices, discounts and VAT. Under each description Astra prints, when present, that line's note (if your organization enabled per-line notes) and the captured serial numbers, labelled S/N. None of that reaches Hacienda: only the description goes on the electronic document.
- Subtotal, discounts, taxes and total; the invoice notes.
- Bank accounts for transfers, if configured in your organization and the invoice has a balance.
- Your configured footer notes and the electronic-invoicing legal line once the document has been accepted by Hacienda. The numeric key and consecutive number are shown in the Electronic Invoice modal, and the XML files are attached when emailing.
Standard printing
Print opens the PDF in the browser; use the print function (Cmd + P / Ctrl + P). The PDF is formatted for letter size.
Thermal printing (receipt)
For point-of-sale, Receipt opens a compact format suitable for thermal printers.
Need more help?
Our team is ready to assist you.