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
Your API key for authenticationExample:
sk_live_1234567890abcdefYour organization UUIDExample:
ff4adcc7-8172-45fe-9cf1-e90a6de53aa9Body Parameters
One or more invoice UUIDs to recalculate. Must be non-empty.Example:
["a1b2c3d4-...", "e5f6g7h8-..."]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
UUIDs of the invoices that were enqueued (after organization scoping).
Number of invoices enqueued.
One
ProcessingJob UUID per dispatched activity category.Error Codes
| Code | HTTP Status | Description |
|---|---|---|
MIXED_INVOICE_TYPES | 400 | Invoices span multiple types (e.g., heat and electricity mixed) |
UNSUPPORTED_INVOICE_TYPE | 400 | Invoice type is not supported for recalculation |
ACTIVITY_CATEGORY_MISMATCH | 400 | A requested category is incompatible with the invoice type |

