Skip to main content
Early Access - The Dcycle CLI is currently available for enterprise customers. Contact us to learn more about access.

Overview

The invoice command manages energy and utility invoice records attached to facilities. Invoices are the primary data source for Scope 1 and Scope 2 emissions calculations.

Available Commands

Invoice Types


List Invoices

List invoices for a specific facility. Requires --facility.

Examples

Flags

Output

Columns: ID, type, period, quantity, CO2e (tCO2e), status.

Show Invoice

Display detailed information about a single invoice.

Examples

Flags

Output Fields

ID, invoice number, type, status, period, quantity, base quantity, unit ID, CO2e, CO2e biomass, CUPS code, file URL, uploaded by, and facility distribution percentages.

Download Invoice

Download the file attached to an invoice (PDF, image, etc.).

Examples

Flags


Edit Invoice

Edit metadata on one or more invoices. Supports multiple invoice IDs in a single command.

Examples

Flags

--facility-fuel-id, --unit-id, and --base-quantity use PUT instead of PATCH, which triggers full invoice recalculation. The --enabled and --disabled flags are mutually exclusive.

Delete Invoice

Delete a single invoice by ID.

Examples

Flags


Bulk Delete

Delete multiple invoices at once, either from a CSV file or by listing IDs directly.

Examples

Flags


Migrate

Move invoices from one facility to another using a CSV file with invoice IDs.

Examples

Flags


Recalculate

Recalculate emissions for invoices in a facility. Processes invoices one by one via PATCH.

Examples

Flags


Recalculate V2

Batch recalculate emissions via POST with activity category filtering. Supports scope-based and category-based filtering.

Examples

Flags


Recalculate Legacy

Batch recalculate via the legacy endpoint. Can target invoices by facility or by explicit IDs.

Examples

Flags


Common Options

All invoice commands support:

Workflows

Invoice Audit Pipeline

Export, filter, and verify energy invoices programmatically:

Bulk Migration Between Facilities

Piping with jq