Skip to content

Invoices

The Invoices screens show all financial records generated from orders and subscriptions. An invoice tracks what was billed, when payment is due, whether it has been paid, and links to the corresponding tax invoice (NFSe) when applicable. Invoices originate from Stripe (for card payments) or from Banco Inter (for Pix and Boleto payments processed through MIDDAG BR).

List view

Open MIDDAG Account > Invoices to see all invoices across all organizations.

Columns

ColumnWhat it shows
NumberThe invoice number (clickable -- opens detail view)
OrderThe WooCommerce order number this invoice belongs to (clickable)
OrganizationThe customer organization (clickable link to Organization detail)
AmountTotal amount with currency (BRL or USD)
StatusDraft (gray), Issued (blue), Paid (green), Overdue (red), or Cancelled (red)
Issue DateWhen the invoice was issued
Due DatePayment deadline. Overdue invoices highlight this column in red.
Payment DateWhen payment was received (blank if unpaid)

Above the table you can narrow down the list:

  • Search -- type an invoice number, order number, or organization name
  • Status -- filter by Draft, Issued, Paid, Overdue, Cancelled, or All
  • Billing Entity -- filter by MIDDAG BR, MIDDAG GLOBAL, or All
  • Date range -- filter by issue date or due date
  • Payment method -- filter by Stripe Card, Pix, Boleto, or All

The filter bar shows the total count ("Showing 1-25 of 318").

Bulk actions

Select multiple invoices using the checkboxes, then use the bulk action dropdown:

  • Export CSV -- download selected invoices as a spreadsheet
  • Mark as Paid -- manually mark selected invoices as paid (requires confirmation)

Detail view

Click any invoice number in the list to open the detail view.

The header shows:

  • Invoice number with a status badge (color-coded)
  • Organization name (clickable link to Organization detail)
  • Action buttons: Edit, Regenerate PDF, Trigger NFSe, Mark as Paid (when applicable)

Invoice data

A metadata grid shows key information:

FieldDescription
NumberInvoice number
StatusCurrent status with color badge
OrganizationCustomer name (clickable)
OrderLinked WooCommerce order number (clickable)
AmountTotal in the invoice currency
Issue DateWhen the invoice was created
Due DatePayment deadline
Payment DateWhen payment was received
Payment MethodStripe Card, Pix, Boleto, or manual
Billing EntityMIDDAG BR or MIDDAG GLOBAL
Stripe IDExternal Stripe invoice ID (if origin is Stripe)
PDF LinkLink to the invoice PDF document

NFSe status

Below the invoice data, the NFSe (Tax Invoice) section shows:

  • NFSe Number -- the tax invoice number issued by ISSNet (Brasilia/DF municipality)
  • NFSe Status -- Issued or Cancelled
  • NFSe Link -- link to the tax invoice PDF on the municipality portal
  • Not applicable -- displayed when the invoice belongs to MIDDAG GLOBAL (no Brazilian NFSe required)

Linked records

Links to related records appear below the NFSe section:

  • Order -- the WooCommerce order that generated this invoice
  • Organization -- the customer
  • Entitlement -- the entitlement linked through the order pipeline
  • Tax Invoice -- the corresponding NFSe record (if issued)

Actions

ActionWhen to use it
EditUpdate notes, due date, or payment method
Regenerate PDFRe-generate the PDF document (useful after editing invoice details)
Trigger NFSeRequest NFSe issuance via ISSNet for this invoice (MIDDAG BR only)
Mark as PaidManually record payment when it was confirmed outside of Stripe/Inter
CancelCancel the invoice. Also cancels the linked NFSe if one was issued.

Trigger NFSe sends a SOAP request to the Brasilia/DF ISSNet system. A background cron job checks the issuance status every 5 minutes until the NFSe is confirmed or rejected by the municipality.