Skip to main content
POST
Recalculate Invoices

Recalculate Invoices

Enqueue EF-config recalculation for a set of invoices by activity category. The endpoint returns 202 Accepted immediately and creates one ProcessingJob per requested activity category. Invoices remain in their current status while jobs are processing.
All invoice IDs must belong to the caller’s organization. IDs that don’t match are silently dropped. All surviving invoices must share a single supported type (heat, electricity, or recharge) unless only cross-type categories (e.g. energy) are requested.

Request

Headers

string
required
Your API key for authenticationExample: sk_live_1234567890abcdef
string
required
Your organization UUIDExample: ff4adcc7-8172-45fe-9cf1-e90a6de53aa9

Body Parameters

array of strings
required
One or more invoice UUIDs to recalculate. Must be non-empty.Example: ["a1b2c3d4-...", "e5f6g7h8-..."]
array of strings
required
Activity categories to recalculate. Must be non-empty. Duplicates are silently deduplicated.Allowed values:
  • stationary — Scope 1 stationary combustion (heat invoices)
  • stationary_generation — Scope 3 heat generation (heat invoices)
  • electricity — Scope 2 market-based electricity
  • electricity_location_based — Scope 2 location-based electricity
  • electricity_generation — Scope 3 electricity generation
  • electricity_transmission_and_distribution — Scope 3 T&D losses
  • energy — General energy category (cross-type, heat and electricity only)
  • recharge — Scope 1 fugitive emissions from refrigerants (recharge invoices)
Example: ["electricity", "electricity_location_based"]

Response

array of strings
UUIDs of the invoices that were enqueued (after organization scoping).
integer
Number of invoices enqueued.
array of strings
One ProcessingJob UUID per dispatched activity category.

Example

Successful Response

Common Errors

401 Unauthorized

Cause: Missing or invalid API key

403 Forbidden

Cause: The authenticated user is not a member of the organization

400 Bad Request

Cause: Invoices span multiple types
Cause: Activity category doesn’t match invoice type

List Invoices

Retrieve invoices to find IDs for recalculation

Calculation Steps

View the emission calculation breakdown

Invoice Totals

Get aggregated totals after recalculation

Get Invoice

Check updated emissions on a single invoice