Skip to content

Invoices · How-to guide

Find and export invoices

Learn how to find invoices by verdict, text or history step, export the matches as CSV or Excel, and mark invoices paid from a file.

You can find a company’s invoices by their verdict, by text, or by what has happened to them. You can then export every match as one CSV or Excel file, and mark invoices paid from a file. This guide shows the filters, the export and the paid file.

Filter the list

GET /v1/invoices lists a company’s invoices. Every filter below combines with the others, and with direction (in or out), issuedFrom and issuedTo (dates as YYYY-MM-DD).

Parameter Returns
verdict Invoices whose newest check gave this verdict: clean, acceptable-with-findings or rejected.
q Invoices whose number, seller name or buyer name contains this text, in any case.
withEvent Invoices whose history holds this code, for example api:sent.
withoutEvent Invoices whose history does not hold this code.
status Invoices with this payment status today: open, overdue or paid.
channel Invoices that came in through this channel: upload, made, api, email or sftp.
curl -s -H "Authorization: Bearer cvo_live_sk_..." \
  "https://<api-host>/v1/invoices?direction=out&verdict=clean&withoutEvent=api:sent"

Filter by what happened

An invoice’s history is a list of steps, so you filter on the steps:

  • “Not sent yet” is withoutEvent=api:sent.
  • “Paid” is withEvent=api:paid.

The codes are the statusCode values that List invoice events lists. Any other code returns 400 invalid_query.

Filter by channel

Every invoice in the list and every record carries channel, which says how it came in. The door it came through decides it, never a field you send:

  • upload: a file a person uploaded in the console.
  • made: an invoice a person created or edited in the console.
  • api: sent with an API key, including the SAP IDoc route.
  • email: an attachment of a mail to the invoice inbox.
  • sftp: a file dropped in the SFTP folder.

channel=email lists only what came by email. Any other word returns 400 invalid_query. In the console, the channel filter beside the search in Eingang and Ausgang asks the same question.

Filter in the console

Inbound and Outbound are lists the database answers. The search, the tab (All, Action required, Accepted, Pending), the channel and the period (all time, or the last 7, 30 or 90 days) are each part of the question, so a tab lists every invoice it counts, on every page. Each tab’s number counts exactly the rows that tab lists, and the line under the table says how many of them are shown. While a search is still being typed, the rows on screen narrow at once and the numbers wait for the answer.

The Action required tab lists the invoices whose newest check rejected them. Everything that needs a person, for any reason, is listed at /invoices/attention (see See what needs attention).

/invoices?direction=all lists both directions in one list, with the same tabs. Analytics opens it when a number counts both directions. It has no upload and no Not accepted tab, because each of those belongs to one direction.

Filter by payment status

Every invoice in the list and every record carries paymentStatus. It is worked out when you ask and is never stored:

  • paid: the history holds api:paid.
  • overdue: not paid, and the later of the due date and the newest reminder’s due date is before today.
  • open: every other invoice, including one with no due date.

Two kinds of document differ:

  • A credit note is never overdue. It is open until it is marked paid.
  • An invoice whose newest check the validator rejected has no payment status. paymentStatus is null, and no status filter lists it.

Each invoice also carries typeCode, its type code (BT-3), such as 380 for an invoice or 381 for a credit note. It is null when no invoice could be read from the file. precedingInvoiceNumber is the first preceding invoice reference (BT-25) it names, or null. A correction (384) that states the full amount replaces that invoice in a total.

status=overdue lists the overdue ones. To mark many invoices paid at once, send POST /v1/invoice-events with {"code": "api:paid", "invoiceIds": [...]}, or import a paid file (below). A reminder sets a new due date, and the invoice counts as open until that day has passed. Invoicing records explains reminders.

Export as CSV or Excel

Add format=csv to get every match as one CSV file instead of a page, or format=xlsx for the same columns as one Excel sheet. A file holds every match, so it takes no cursor or limit. Sending either returns 400 invalid_query.

The columns are id, direction, createdAt, invoiceNumber, issueDate, dueDate, currency, seller, buyer, payableAmount, taxAmount, verdict and paymentStatus (open, overdue or paid, today, and empty for a rejected invoice).

A CSV cell that starts with =, +, -, @, a tab or a carriage return gets a leading apostrophe. So no invoice data runs as a formula when the file is opened in a spreadsheet. A plain number, such as -50.00, cannot run as a formula, so it is written as the number it is. A number with a leading zero, such as -0042, keeps the apostrophe and stays text. The Excel sheet writes every cell as text.

More than 10,000 matches returns 400 too_many_rows. Narrow the dates and ask again.

Mark invoices paid from a file

A paid file lists sent invoices by number and the day each was paid: columns invoiceNumber and paidDate, as CSV, Excel or JSON. A day is 2026-10-31 or 31.10.2026. In the console, open Ausgang, then Import and export. Through the API:

  • GET /v1/data-files/payments?format=csv downloads every paid sent invoice in those columns; /sample is a file to fill in, made from invoices the validator accepted.
  • POST /v1/data-files/payments/previews with {"data": "<base64>"} says, row by row, which invoices it would mark paid (new), which are paid already (same), and which rows it cannot use and why.
  • POST /v1/data-files/payments/imports with the same file and the preview’s basedOn marks them. Each invoice’s history gets api:paid once, with the row’s day.

A row names a sent invoice, never a received one. Of an invoice with several versions, the newest is marked. A row marks the whole invoice paid; there are no part payments. A number that several sent invoices share is not imported: mark those in the list. An import is refused with 409 list_changed when an invoice was marked paid since the preview.

See also

Navigation

Type to search…

↑↓ navigate↵ selectEsc close