Create Records From File Reading
Create Records From File Reading
Create invoices or wastes from a file reading and link the created records to facilities
POST
Create Records From File Reading
Create Records From File Reading
This endpoint converts a parsed file reading into downstream business records:- water, electricity, gas, fuel delivery, or recharge invoices
- waste records
Headers
API key for authentication.
Organization UUID that owns the file and facilities.
Body
Array of file reading references. Each item must include an
id.File reading UUID returned in
reading.id from GET /v1/files/readings.Facilities to link to the created records.
Facility UUID.
Allocation percentage as a decimal between
0 and 1. The total must be less than or equal to 1.0.Optional project UUID. When present, created invoices are also linked to that project.
Optional supplier UUID. Only used for electricity readings. When provided, it overrides the
supplier_id extracted from the file reading content. Required when any target facility is
located in Spain and the reading did not resolve a supplier automatically.
Current Limitation
Example
Behavior by Category
invoice::watercreates water invoicesinvoice::electricitycreates electricity invoicesinvoice::gasandinvoice::fuel_deliverycreate combustion invoicesinvoice::rechargescreates recharge invoicesdocument::wastescreates waste records
Notes
- This endpoint requires a successful file reading with
content.items. - For Spain electricity facilities, supplier information may still be required depending on the extracted reading.
- After records are created, the file will appear as
linked=trueinGET /v1/files/readings.

