This endpoint allows the import of an EnergyCAP Advanced or a profile mapped file. The file can be comma separated file (CSV/DAT/TXT) or EXCEL (XLSX) or a collection of files (ZIP). The file should be base64 encoded with a UTF8 character set.
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"
}