Invoice

The Invoice object represents a utility invoice/bill in the Etainabl system.

Top-level Fields

FieldTypeRequiredDefaultDescription
_idObjectId-AutoUnique identifier
fileNamestringNo-Original file name
statusstringNo-Processing status: processing, pending, uploading, queued, captured, error, completed
financialStatusstringNo-Financial status: approved, new, not-approved, paid, sent-for-payment
completedbooleanNo-Whether the invoice has been fully processed
typestringNo-Invoice type
tagsarray[string]No-Tags for categorisation
isPaidbooleanNo-Whether the invoice has been paid
simulatedbooleanNo-Whether this is a simulated invoice
notesstringNo-Additional notes
assignedTostringNo-Assigned user
noScrapebooleanNofalseWhether to skip scraping for this invoice
confirmedAtdateNo-Date the invoice was confirmed
confirmedBystringNo-User who confirmed the invoice
valuesobjectNo-Invoice values (see below)
ratesarray[object]No-Invoice rates (see below)
supplierIdObjectIdNo-Supplier ID
batchIdstringNo-Batch ID (from data import)
accountIdObjectIdNo-Account (meter) ID
entityIdObjectIdNo-Entity ID
invoiceValidationIdObjectIdNo-Invoice validation ID
captureMeterIdstringNo-Capture meter ID
createdAtdate-AutoCreation timestamp
updatedAtdate-AutoLast update timestamp

Invoice Values Object

The values object contains the financial and metering details of the invoice.

FieldTypeDescription
invoiceNumberstringInvoice number
supplierRefstringSupplier reference
recipientstringInvoice recipient
supplierNamestringSupplier name
startDatedateBilling period start
endDatedateBilling period end
invoiceDatedateInvoice issue date
invoiceDueDatedatePayment due date
invoiceStartDatedateInvoice start date
invoiceEndDatedateInvoice end date
supplierVatNumberstringSupplier VAT number
meterPointNumberstringMPAN/MPRN
meterPointNumber2stringSecondary meter point number
meterSerialNumberstringMeter serial number
totalUnitCostnumberTotal unit cost
totalWaterCostnumberTotal water cost
totalWasteCostnumberTotal waste cost
totalDailynumberTotal daily/standing charge
totalLevynumberTotal levy charges
totalCCLnumberTotal Climate Change Levy
totalMiscnumberTotal miscellaneous charges
totalFeedInTariffnumberTotal Feed-in Tariff
totalLatePaymentnumberTotal late payment charges
totalKvanumberTotal KVA charges
totalUnitsnumberTotal units consumed
totalWaterVolumenumberTotal water volume
totalWasteVolumenumberTotal waste volume
capacitynumberCapacity
netTotalCostnumberNet total cost (before tax)
totalTaxnumberTotal tax amount
totalCostnumberGross total cost
sewerageReturnPercentagenumberSewerage return percentage
calorificValuestringCalorific value (gas)
correctionFactorstringCorrection factor (gas)
readFactorstringRead factor
typestringType
startReadstringStart meter reading
endReadstringEnd meter reading
startReadTypestringStart read type (e.g. actual, estimated)
endReadTypestringEnd read type (e.g. actual, estimated)
isFinalbooleanWhether this is a final invoice
unitsstringUnits. See Units
supplyAddressstringSupply address
contractEndDatedateContract end date
contractNoticeDatedateContract notice date
invoiceValuesCommentstringComment on invoice values
meterValuesCommentstringComment on meter values

Invoice Rates Array

Each element in the rates array represents a line item/rate on the invoice.

FieldTypeDescription
idstringRate identifier
rateNamestringRate name (e.g. Day Rate, Night Rate)
contractRateNamestringContract rate name
consumptionnumberConsumption for this rate
unitRatenumberUnit rate (price per unit)
costnumberCost for this rate line
startReadstringStart read for this rate
startReadTypestringStart read type
endReadstringEnd read for this rate
endReadTypestringEnd read type
registerstringRegister
unitsstringUnits
typestringRate type
startDatedateRate period start
endDatedateRate period end
commentstringComment