Prerequisites
Before you start, complete the steps in the CLI Quickstart:- The CLI is installed and on your
PATH. - You’re authenticated (
dualentry auth login) or haveX_API_KEYset for CI/CD. - You have read access to invoices.
Steps
Step 1 - List your invoices:Status column (e.g., posted, archived) so you can see at a glance which invoices are still outstanding.
Step 2 - Discover available filters for the invoices resource:
journal-entries and bills (--start-date, --end-date, --status) may also be available on invoices. --help is the source of truth for your installed version.
Step 3 - Pull the full details on a specific invoice:
INV-ID with the ID from the list output. This shows all the detail for a single invoice: line items, customer, amounts, and status.
Step 4 - Export to JSON for further analysis:
> operator redirects the output to a file instead of printing it to screen.
Result: You have an exported JSON file of your invoice data, ready for downstream filtering and analysis with tools like jq, Python, or Excel.
Tips
- Start with
--help: the CLI is evolving fast and flags may change between versions.dualentry invoices list --helpis your source of truth. - Use
--format jsonfor anything automated: table output is great for humans but brittle for scripts. --searchworks on every resource: it is the quickest way to narrow a list before adding more specific filters.