Imports bills from a base64-encoded file in EnergyCAP Advanced or profile-mapped format
Use this endpoint to bulk-import utility bills. The file can be CSV, DAT, TXT, XLSX, or a ZIP
containing multiple files. The file content must be base64-encoded with UTF8 character set.
Optionally specify a profileCode to map a custom file layout to the Advanced format.
The import runs asynchronously — use GET /task/{guid} to check progress and results.
Requires Bills and Batches Create permission.
Request Headers
| Header | Value | Required | Description |
|---|---|---|---|
| ECI-ApiKey | string | Yes | Your API key. See Authentication. |
| Content-Type | application/json | Yes | All requests must specify JSON content type, including the request body. |
Request Body
BillImportRequest
| Property | Description | Type | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| batchSettings | BatchSettings | |||||||||||||||||||
|
BatchSettings properties
|
||||||||||||||||||||
| comment | Optional comment to explain why the audit is being auto resolved | string | ||||||||||||||||||
| data | The base64 encoded file. Required | string | ||||||||||||||||||
| fileName | FileName for the import file. Should include extension. Example: fileABC.csv Data contains the contents. The importer will save the under this file name. The extension allows the importer to read the data in the proper format (csv,xlsx,zip) Required | string | ||||||||||||||||||
| importNote | Optional note/comment. | string | ||||||||||||||||||
| profileCode | optional - if not provided, we assume the data is in Advanced format A bill import profile code. Maps given data to Advanced format using the mappings defined by this profile | string | ||||||||||||||||||
| saveAsResolved | Optional property to indicate if failed audits automatically get marked as resolved | boolean | ||||||||||||||||||
| suppressBillCaptureNotification | Optional property to indicate whether or not to suppress the Bill Capture Automation notification that would normally be sent after a successful import. This is used for microbatches to avoid sending a notification for each microbatch that is imported. Instead, the notification will be sent after all microbatches have been imported from the BillCapture process. Assumes false if not provided. | boolean | ||||||||||||||||||
Example Request Body
{ "batchSettings": { "batchMode": "string", "existingOpenBatchId": 1, "leaveExistingBatchesOpen": false, "newBatchCode": "string", "pendingBatchId": 1
}, "comment": "string", "data": "string", "fileName": "string", "importNote": "string", "profileCode": "string", "saveAsResolved": false, "suppressBillCaptureNotification": false
}
Responses
200
OK
The request succeeded and the response body contains the requested data.
Response Body Parameters
GuidResponse
| Property | Description | Type |
|---|---|---|
| taskGUId | A guid that identifies the current task | string (uuid) |
Example Response
{ "taskGUId": "string"
}