Recalculate Invoices
Recalculate Invoices
Enqueue async emission recalculation for one or more invoices
POST
Recalculate Invoices
Recalculate Invoices
Enqueue EF-config recalculation for a set of invoices by activity category. The endpoint returns202 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_1234567890abcdefstring
required
Your organization UUIDExample:
ff4adcc7-8172-45fe-9cf1-e90a6de53aa9Body 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 electricityelectricity_location_based— Scope 2 location-based electricityelectricity_generation— Scope 3 electricity generationelectricity_transmission_and_distribution— Scope 3 T&D lossesenergy— General energy category (cross-type, heat and electricity only)recharge— Scope 1 fugitive emissions from refrigerants (recharge invoices)
["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 key403 Forbidden
Cause: The authenticated user is not a member of the organization400 Bad Request
Cause: Invoices span multiple typesRelated Endpoints
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