Recurring Invoices
Take an existing invoice as the template and Astra generates the invoice on the schedule you set — weekly, monthly, quarterly, yearly, or custom (every N days, weeks, months, or years). Ideal for rentals, subscriptions, maintenance contracts, and any repeating charge.
Recurring invoices are on the Contabilidad / ERP plans (ERP Pyme, ERP Pro and ERP Plus); they are not part of Solo Facturación. If your plan does not include them, the section does not appear in the menu and existing schedules stop generating until they are available again (no data is lost). To see it you need permission to view invoices; to create or change schedules, permission to create or edit invoices.
How they work
A recurring invoice is a schedule attached to an invoice that acts as the template: the customer, lines, prices, and currency come from it; the schedule sets the payment terms. Instead of manually creating the same invoice every month, you set up the schedule once and Astra generates invoices automatically (every day at 8:00 a.m. it checks which ones are due).
Typical use cases:
- Monthly fees — regular service charges.
- Subscriptions — software licenses, memberships, recurring deliveries.
- Rentals — tenants or equipment leases.
- Maintenance contracts — periodic service agreements.
- Installment payments — resend the same document as a payment reminder (see the Duplicate invoice option below).
Each generated invoice is a standard invoice — it appears in your Invoices list with the Auto-Generated card, and can be edited, sent to the customer, submitted to Hacienda, and collected. Prices are the template's; the issue date is the cycle date and the due date follows the schedule's Payment terms (cash is due the same day; credit, the number of days you set after issue). If the template is in a foreign currency, the cycle's invoice takes that day's exchange rate. The schedule only controls creation.
Create a recurring invoice
Schedules are not created from the Recurring Invoices list but from an invoice: that invoice is the template.
- Create or open the invoice you want to repeat (customer, lines, prices, and payment terms already in place). It can be an invoice already issued to Hacienda.
- In the side panel's quick actions click Recurrente. The Schedule Frequency modal opens, showing the Base invoice (number, customer, total) at the top.
- Next invoice — the date the first one is generated. It must be after today (Astra proposes one month out) and at most 5 years away. The day you pick becomes the billing day of every cycle.
- Payment terms — Cash (each invoice is due the day it's issued) or Credit for N days (due N days later). Astra proposes the base invoice's terms and shows below when the next one falls due: The 01/10/2026 invoice is due on 31/10/2026. Every generated invoice carries those terms in the document sent to Hacienda too, so the due date and the credit term never disagree. If the base invoice has another sale condition (a lease, for example), a third option, Same as base invoice, keeps it.
- Which frequency? — Weekly, Monthly, Quarterly, Yearly, or Custom (Every N Days / Weeks / Months / Years, e.g. every 2 weeks for a biweekly charge).
- Duration — Indefinite (until you stop it), Until specific date (an End date after the next invoice), or Number of occurrences (Number of invoices, 1 to 100).
- Options:
- Duplicate invoice (on by default) — each cycle creates a new identical invoice. If you turn it off, nothing is created: Astra resends the original invoice's PDF as a payment reminder (useful for installment payments), and in that case Send automatically is required.
- Send automatically (on by default) — each generated invoice is emailed to the customer with its PDF. If you turn it off, invoices are still created but you send them yourself. Every send is recorded on the invoice's Activity tab, tagged Recurring, with the recipient and the attached PDF (the payment reminder, on the original invoice); if the email didn't go out, that is recorded there too, with the reason.
- Electronic invoice (Hacienda) — turn on Issue electronic invoice and choose the branch, terminal, and type (Factura Electrónica (FE) or Tiquete Electrónico (TE)) so every cycle is signed and submitted to Hacienda automatically; the customer receives the comprobante with its XMLs. If the base invoice is already a comprobante accepted by Hacienda, the option is locked on. If data needed for issuing is missing (ID number, email, CABYS…), the modal lists it: you can still save, but cycles won't be submitted to Hacienda until it's fixed.
- Promotional discount (only with Duplicate invoice on) — tick Apply a time-limited discount to charge less for the first cycles. Pick the Discount type (Percentage or Fixed amount, IVA included: it is how much each invoice total goes down), the Value and the Discounted cycles; Astra computes Applies through (the last discounted cycle date) and shows in one line how many invoices go out discounted and from which date the full price applies. If you would rather set the date by hand, the cycle count follows it. The Description appears as the discount on every generated invoice, and the Discount nature is the code sent to Hacienda (06 — Descuento promocional by default).
- Click Save as Recurring. Status: Active. The base invoice now shows the Recurring Template card with the frequency, the next date and, when there is a promo, the current discount.
With Send automatically (or FE on) invoices are generated and reach the customer without review. Verify amounts, lines, and customer data on the base invoice before saving. The customer needs an email on file; if there is none, the schedule pauses itself when the date arrives.
An invoice can only have one live schedule (active or paused). If the same customer already has another active schedule for the same amount, Astra warns you before saving — if they really are two separate charges, confirm with Create anyway.
The discount lives on the schedule, not on the base invoice: the template keeps the list price, and every cycle inside the window is generated with the discount already applied to its lines. The first invoice after Applies through goes out at full price with nothing for you to change. To end it early, edit the schedule and untick the box. Two limits: a 100% discount is not allowed (a ₡0 invoice is never issued; to give a month away, pause the schedule for that cycle), and if the base invoice already carries per-line discounts you must remove them before enabling the promo, because the promotional discount would replace them on every cycle.
Date variables
When the invoice text changes every month —Warehouse rental — September 2026, … October 2026— don't edit the template every cycle: type a date variable and Astra fills in the month and year of each generated invoice. With +1 or -1 it fills in the next or the previous month, to bill in advance or in arrears.
| Variable | Replaced with | On the September 1, 2026 invoice |
|---|---|---|
{mes} | Month name in Spanish | Septiembre |
{month} | Month name in English | September |
{año} | Four-digit year | 2026 |
{year} | Same as {año} | 2026 |
{periodo} | Month and year in Spanish | Septiembre 2026 |
{period} | Month and year in English | September 2026 |
{period+1} | Next month and its year (also {periodo+1}) | October 2026 |
{period-1} | Previous month and its year (also {periodo-1}) | August 2026 |
{month+1} · {month-1} | Just the next or previous month's name (also {mes+1}) | October · August |
{year+1} · {year-1} | Next or previous year (also {año+1}) | 2027 · 2025 |
Copy-ready examples
Copy the text from the Type column into the line's Name (or into the Customer Notes, for the last example) and change whatever doesn't fit your business. The last two columns show how it reads on two consecutive cycles of a monthly schedule: the template text never changes, only the month does.
| For | Type | Invoice of September 1, 2026 | Invoice of October 1, 2026 |
|---|---|---|---|
| Renting out a store or warehouse | Warehouse rental — {period} | Warehouse rental — September 2026 | Warehouse rental — October 2026 |
| Same, for a customer who reads Spanish | Alquiler de bodega — {periodo} | Alquiler de bodega — Septiembre 2026 | Alquiler de bodega — Octubre 2026 |
| Rent billed in advance | Warehouse rental — {period+1} | Warehouse rental — October 2026 | Warehouse rental — November 2026 |
| School or academy tuition | Tuition {month} {year} | Tuition September 2026 | Tuition October 2026 |
| Monthly support or subscription | Monthly technical support ({period}) | Monthly technical support (September 2026) | Monthly technical support (October 2026) |
| Professional fees | Accounting fees for {month} {year} | Accounting fees for September 2026 | Accounting fees for October 2026 |
| Maintenance plan | Preventive maintenance, {period} | Preventive maintenance, September 2026 | Preventive maintenance, October 2026 |
| Annual fee (yearly schedule) | Annual membership {year} | Annual membership 2026 | — (the next cycle is in 2027: Annual membership 2027) |
| Customer Notes | Billing period: {period}. Please pay by {month} 10. | Billing period: September 2026. Please pay by September 10. | Billing period: October 2026. Please pay by October 10. |
- Several lines, each with its own variable. If you bill rent and parking on the same invoice, type
Warehouse rental — {period}on one line andParking — {period}on the other. - Spanish month names come out capitalized, as "Septiembre". Inside a Spanish sentence that reads el 10 de Septiembre; to avoid it, put
{periodo}at the end or in parentheses, as in the examples. - Try it before you schedule. While you type the line, the Preview under the Name shows how it reads with that invoice's date (see How to type it).
- If you bill in advance (October's rent on September 25) or for the month that just ended, read Next or previous month below.
How to type it
- Open the invoice that serves as the template. If you haven't created the schedule yet, set up the line before you make the invoice recurring. If the schedule already exists, change the template with Update pricing & lines (see Change pricing and lines) and work on the draft it opens.
- On the Line Items tab click Add Line Item, or open the ⋮ menu of an existing line and choose Edit item.
- In Name, type the text with the variable, for example
Warehouse rental — {period}. - When you leave the field, a Preview appears underneath with the text already resolved. Note that it uses the date of this invoice, so on the template it shows the template's month, not the next cycle's.
- Save the line. On Line Items it still reads
{period}: that is how it is stored, and every invoice replaces it with its own date.
The schedule setup window reminds you too: under the Base invoice there is a note listing the variables and a How date variables work link that opens this section in a new tab.
Which month it uses
The issue date of each invoice, which on a recurring invoice is the cycle day (the schedule's Next invoice). The example template is dated August 1; the invoice Astra generated on September 1 reads September 2026 and the October 1 one will read October 2026, without anyone touching the template.
When an invoice is sent to Hacienda on a different day than its date, sending it makes the send day its issue date, and both the comprobante and the PDF use that day's month: an invoice dated September 30 and sent on October 1 reads October 2026 on both. If the submission fails, the invoice keeps its date.
Next or previous month
Add or subtract months right after the variable name, with the sign and no spaces: {period+1} is the month after the invoice date's month and {period-1} the one before. Use it to bill in advance (October's rent on September 25) or in arrears (September's on October 1).
| You bill | Invoice date | Type | It reads |
|---|---|---|---|
| October's rent, in advance | September 25, 2026 | Warehouse rental — {period+1} | Warehouse rental — October 2026 |
| September's rent, in arrears | October 1, 2026 | Warehouse rental — {period-1} | Warehouse rental — September 2026 |
| January's tuition, in December | December 20, 2026 | Tuition {period+1} | Tuition January 2027 |
| A quarter in advance | October 1, 2026 | Quarterly maintenance: {month} to {period+2} | Quarterly maintenance: October to December 2026 |
| Next year's membership | December 15, 2026 | Annual membership {year+1} | Annual membership 2027 |
- On a recurring invoice it moves by itself. With the Next invoice on the 25th and the line
Warehouse rental — {period+1}, the September 25 invoice reads October 2026, the October 25 one November 2026, and so on every month. - Use
{period+1}, not{month+1} {year}.{period+1}carries that month's year;{year}is always the invoice's year, so in December{month+1} {year}reads January 2026 instead of January 2027. - It counts from the issue date. When an invoice is sent to Hacienda it takes the send date: if the September 25 invoice is sent on October 2,
{period+1}reads November 2026. Send advance invoices the same day you issue them; recurring invoices do it on their own. - The Preview under the Name resolves
+1and-1too, with that invoice's date.
Where they work
- A line's Name — replaced on the PDF, on the electronic comprobante sent to Hacienda, on the printed receipt and in the customer portal. This is the place for the period the customer needs to see, because it is what travels to Hacienda.
- The invoice's Customer Notes — replaced on the PDF, in the customer portal, on the Line Items tab (Additional Information), on the invoice seen from a phone and on the printed receipt. Notes do not go into the Hacienda comprobante.
- Estimates — their PDF replaces the variables with the estimate's date, just like the Preview. Converting one to an invoice copies the variable as is, and the invoice replaces it with its own date.
- Credit and debit notes — they store the text already replaced with the original invoice's month: the credit note you issue in November for October's rent reads Warehouse rental — October 2026, not November. The same goes for the new invoice created by Cancel & redo or by replacing a rejected invoice: it bills the original month again.
- They are not replaced in per-line notes, in the email subject or body, or in work orders.
Type it exactly
- Lowercase, in braces, no spaces:
{Month},{MONTH}or{ month }stay as typed on the invoice. - The
+1or-1goes right after the name, no spaces:{period+1}works,{period + 1}and{period+ 1}stay as typed. One or two digits ({period+12}is the same month next year). {año}needs the ñ;{ano}is not replaced. Without an ñ at hand,{year}gives the same result.- The month comes out with an initial capital (September) and there is no all-caps version:
WAREHOUSE RENTAL {month}reads WAREHOUSE RENTAL September. - The line has to be typed by hand. If it comes from the product catalog its Name is locked (Description locked (from product catalog)); Clear & edit manually blanks it so you can type it yourself, with its price and CABYS.
Good to know
- The variable stays stored on the template and on every generated invoice; the month shows up on the PDF, on the receipt, in the customer portal and on the Hacienda comprobante. That is why Duplicate and Update pricing & lines keep the variable instead of carrying last month forward.
- It works on any invoice, not just recurring ones: a hand-made invoice with
{period}shows the month of its issue date. - With Duplicate invoice turned off the schedule resends the same PDF every time, so the month never moves: variables are for schedules where each cycle creates a new invoice.
Schedule list
In Revenue → Recurring Invoices you have status buttons at the top of the list:
- Active — generates invoices on the next scheduled date.
- Paused — temporarily stopped (by you or by Astra). Won't generate until resumed.
- Completed — reached the end date or the number of invoices. No longer generates.
- Cancelled — stopped for good with Stop.
Each row shows Name, Contact, Frequency, Next generation, Status, Generated (how many invoices so far), and Total (the template's; when the schedule carries a promotional discount, the amount and end date appear underneath, or Promo ended once it has lapsed). At the top, Est. recurring/mo adds up the active schedules converted to colones and normalized to one month — an estimate, not an exact forecast. The search box filters by schedule name or contact.
Clicking a row opens the template invoice; there is no separate detail screen for a schedule. Hovering a row reveals the actions: Edit schedule, Update pricing & lines, Pause / Resume, and Stop. The same actions live on the Recurring Template card in the template invoice's side panel.
Manage (pause, edit, stop)
Pause and resume
To temporarily stop generation (e.g., during a renegotiation):
- In the list (or on the template invoice) click Pause and confirm.
- Status changes to Paused; no new invoices generate.
To resume, click Resume. Cycles that fell during the pause are not billed retroactively: the next date jumps to the first date on the schedule that is today or later. If that date already falls outside the configured duration, the schedule goes straight to Completed.
Automatic pauses
Astra pauses a schedule on its own when it cannot continue, and shows the reason when you hover the status in the list (and in the Edit schedule modal). It also emails your organization. Reasons:
- Five consecutive failed attempts (for example, Hacienda rejected the cycle or the email couldn't be sent). Meanwhile it retries daily with the same invoice, without duplicating it.
- The customer has no email and the schedule sends by email.
- The template invoice was deleted, or whoever created the schedule is no longer a member of the organization.
Fix the cause (template, customer, or tax setup) and click Resume; editing or resuming resets the retry counter.
Edit the schedule
Edit schedule changes the schedule itself: next date, frequency, Payment terms (cash or credit and the days), duration, Duplicate invoice, Send automatically, electronic issuing, and the Promotional discount (enable it, change the value or the cycles, or untick it to end it early). If the base invoice says cash but the schedule's invoices were due days after issue, Astra issues them on Credit with the schedule's term, and that's what you see when you edit it. It applies from the next generation; invoices already generated don't change. When editing, the date may be today (to generate today).
Change pricing and lines
Lines and prices live on the template invoice, not on the schedule. To change them:
- Click Update pricing & lines and confirm.
- Astra creates an editable draft, a copy of the current template, and makes it the schedule's new template. It takes you there.
- Edit lines, prices, customer, or notes there. Changes apply from the next invoice; the schedule (frequency and dates) doesn't change.
That draft carries the Recurring template badge: it doesn't count in reports or receivables, and Astra blocks sending it to the customer, submitting it to Hacienda, or recording payments on it — every cycle generates its own invoice. If you open Send to Hacienda on it, the window says so in red and the send button stays disabled. The previous template remains a normal invoice. If the template already is one of these drafts, its side panel doesn't show the button: edit that same draft (from the list, the action takes you to it without creating another). This action isn't available for schedules that resend the original (Duplicate invoice off): that comprobante is the legal document being paid.
Stop permanently
- Stop — cancels the schedule (status Cancelled). Already generated invoices aren't affected, but no new ones are created. It can't be resumed; if you need it again, create a new one from the invoice.
- If you prefer a planned end, edit the schedule and set an End date (after the next invoice) or a Number of invoices; when reached, it becomes Completed.
Generated invoices
The Generated column in the list counts the invoices each schedule produced. Click it to open the Invoices list filtered by that schedule (the chip recurring schedule: name appears), with number, date, payment status, and total like any invoice.
Each generated invoice shows the Auto-Generated card in its side panel, with the frequency, the next date, and the View template link. On the contact's Invoices tab, a badge tells you how many active or paused schedules that customer has.
That filter helps you quickly spot unpaid recurrings at month-end. For a global aging view, see the Invoice Aging widget (from ERP Pro up) on Home.
Need more help?
Our team is ready to assist you.