Debit Notes

Debit notes are the mirror of credit notes: they increase the amount the customer owes on an already-issued document. In Costa Rica they're electronic documents with their own clave numérica, must reference an accepted invoice (or an accepted credit note, to reverse it), and submit to Hacienda just like an invoice. In Astra a DN is always created from the document it adjusts.

Availability

Electronic debit notes are on every plan, including the Solo Facturación (invoicing-only) ones. On Solo Facturación each debit note counts as one document for the month, like an invoice or a ticket.

What is a DN?

A debit note increases the amount owed on an already-issued document. Common cases: charging late fees, adding a charge that was missed on the original invoice, upward price adjustments, post-sale shipping fees, or reversing a credit note issued by mistake.

In FE 4.4, the DN is a standalone electronic document with its own consecutive sequence, signed XML, and 50-digit clave numérica. Its legal and technical treatment is identical to an NC, but with the inverse effect.

Always references an accepted document

Like an NC, a DN must reference a document accepted by Hacienda: an invoice (FE or electronic ticket) or a credit note. There's no DN without a source document — Hacienda rejects it. That's why Astra has no "New debit note" button: it's created from the detail of the invoice or the NC.

In Astra, the DN is a collectible document in its own right: it has its own due date and its own Payments tab, and inherits the currency and exchange rate of the document it adjusts. It doesn't change the original invoice's balance; the additional charge is collected on the DN.

When to issue a DN

Late-payment interest

Customer paid late and a moratorium interest applies per your commercial terms. The DN documents the additional charge.

Missed charge

The original invoice forgot to include a service or product. The DN adds the missing charge without issuing a new invoice.

Upward price adjustment

You agreed on a price that later went up (e.g. exchange-rate adjustment or revision clause). The DN applies the difference.

Post-sale expenses

Shipping, installation, or complementary services billed after the original document.

Reversing a credit note

You issued an NC by mistake, or for more than was due. A DN on that NC reverses it fully or partially with Hacienda.

DN or new invoice?

If the additional charge isn't directly related to the original invoice, it's better to issue a new invoice. The DN is for incrementing a specific existing document. When unsure, check with your accountant.

Create a debit note

On an invoice

  1. Open the invoice (FE or electronic ticket) accepted by Hacienda, for example from Revenue → Invoices.
  2. In the header, click the Debit Note button (circle with a plus sign). It only appears when the invoice is Accepted.
  3. In the Create Debit Note window fill in Situation (Normal, Contingencia or Sin Internet), Note reason (it comes as Corrects amount of reference document) and the Description / justification (required, max 180 characters; for example "Additional charge for late-payment interest"). Click Create Debit Note.
  4. Astra shows Debit note created and opens the DN detail. It starts with no lines (zero total), with the reminder "After completing this process, add the items or services before sending to Hacienda".
  5. On the Line Items tab, add the lines for the additional charge just like on an invoice (description, quantity, price, VAT and CABYS). The DN can be edited as long as it hasn't been sent.
  6. Click the Electronic Invoice button (cloud icon) in the header. The submission window carries the reason and justification you typed; review the preview and click Send Debit Note.

On a credit note

  1. Open the NC accepted by Hacienda (from Revenue → Credit Notes) and click the Debit Note button in the header.
  2. The Debit Note window shows the NC total and two options:
    • Fully reverse Credit Note — when the NC was issued by mistake. Astra immediately creates a DN with 100% of the NC's lines and opens its detail with the submission window ready (reason Cancels reference document); type the justification and click Send Debit Note.
    • Partial Debit Note on Credit Note — when only part of the amount needs correcting. In the second window, check the NC lines to include, adjust Qty to debit if needed, pick the reason and justification and click Create Debit Note. The DN opens with those lines; send it with the Electronic Invoice button.

Reason codes

Hacienda requires a reason code:

  • 01 — Cancels the referenced document — only offered when the DN is on a credit note.
  • 02 — Corrects amount (most common for DNs; the default).
  • 04 — References another document.
  • 05 — Replaces a provisional contingency document.
  • 10 — Financial debit note.
  • 14 — Corrects amount due to material error — the correction books against the original document's tax period; Astra shows a warning when you pick it.
  • 99 — Other — a Specify the reason field appears and is required.

On a purchase invoice (FEC)

For an accepted Electronic Purchase Invoice, the Create Debit Note button is on the FEC detail (Expenses → Purchase Invoices). A single window lets you check lines and quantities, pick the reason (02, 10, 14 or 99) and the justification; then the note opens for you to submit it to Hacienda.

Permissions

Creating and sending a DN requires the same permission as creating invoices; viewing the list requires the permission to view invoices.

Debit note list

List of issued debit notes
The debit notes issued, each one linked to the document it adjusts.

Reach it from Revenue → Debit Notes. Columns:

  • Doc # (with the ND tag), Contact, Parent Invoice (the invoice or NC it adjusts), Issued, FE (icon with the Hacienda status; empty if not sent yet) and Total.

Filter with the Accepted, Rejected, Pending and Error buttons, or search by DN number, customer data, clave numérica or consecutive. Click a DN to open its detail: the side panel shows the Original document, Print and Download (PDF).

Submit to Hacienda

The process is identical to an NC: Astra generates the XML with the reference to the original document, signs it, and sends it. When you create the ND, the Send the debit note to the customer box comes checked; uncheck it and it goes to nobody. If you leave it checked, whoever you tick under Send to the customer receives the PDF and XML, by email and by WhatsApp, and then Hacienda's response. The statuses are Sending…, Processing, Accepted, Rejected and FE Error.

Errors and rejections

  • Incomplete FE configuration or expired certificate — the window shows "Fix errors before sending"; fix it in Settings and try again with the same DN.
  • A DN rejected by Hacienda can't be resent. Fix the cause and create a new DN from the original document.

For end-to-end FE configuration, see Electronic Invoicing. For the symmetric credit-note flow (reducing balance), see Credit Notes.

Need more help?

Our team is ready to assist you.

EmailWhatsApp

Use Astra for your business

Astra · Astranexo

See plans and pricing