Edits an existing account-meter relationship's date range or general ledger assignment
Use this endpoint to modify the begin date, end date, or general ledger on an existing account-meter relationship.
Cannot be used on account-only records (relationships where meterID is null).
When changing dates, associated rate and template assignments are automatically adjusted to fit the new date range.
Side effect: Triggers recalculation of meter auto-groups (UDAGs) for the associated meter.
Constraints for deleteBills=true: Only allowed when editing the most recent relationship between the account and meter,
when the end date has changed but the begin date has not, and the user has bill delete permissions.
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. |
Path Parameters
| Name | Description | Type | Required |
|---|---|---|---|
| accountMeterId | The unique numeric identifier of the account-meter relationship to edit | integer (int32) | Required |
Query Parameters
| Name | Description | Type | Required |
|---|---|---|---|
| deleteBills | When true, deletes all bills with at least one line for this account/meter combination where the bill start date is on or after the new end date. WARNING: The entire bill is deleted even if it includes other meters. When false, no bills are deleted. | boolean | Optional |
Request Body
AccountMeterEdit
| Property | Description | Type |
|---|---|---|
| beginDate | The beginning date and time for this account meter relationship Must be between 1899-12-31 and 3000-01-01 Required (defined) | string (date-time) |
| endDate | The ending date and time for this account meter relationship Must be greater than BeginDate Must be between 1899-12-31 and 3000-01-01 Required (defined) | string (date-time) |
| generalLedgerId | The identifier for the general ledger assigned to this account meter Required (defined) | integer (int32) |
| vendorTypeId | The identifier for the vendor type. Vendors may assume different types on different account meters Required (defined) | integer (int32) |
Example Request Body
{ "beginDate": "2026-06-29", "endDate": "2026-06-29", "generalLedgerId": 1, "vendorTypeId": 1
}
Responses
200
OK
The request succeeded and the response body contains the requested data.
Response Body Parameters
AccountMeterResponse
| Property | Description | Type | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| account | AccountChild | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
AccountChild properties
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| accountMeterId | The account meter identifier Required (defined) | integer (int32) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| beginDate | The beginning date and time for this account meter relationship Required (defined) | string (date-time) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| deregulated | Indicates if the account meter is deregulated Required (defined) | boolean | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| endDate | The ending date and time for this account meter relationship Required (defined) | string (date-time) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| formTemplates | The template assigned to this account meter Required (defined) | FormTemplateChild[] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
FormTemplateChild properties
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| generalLedger | GeneralLedgerChild | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
GeneralLedgerChild properties
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| meter | MeterChild | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
MeterChild properties
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| rates | The rate assigned to this account meter Required (defined) | AccountRateChild[] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
AccountRateChild properties
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| vendorType | VendorTypeChild | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
VendorTypeChild properties
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Example Response
{ "account": { "accountCode": "string", "accountId": 1, "accountInfo": "string", "active": false, "hasCalculatedMeter": false, "hasSplitChildMeter": false, "hasSplitParentMeter": false, "hasSubAccount": false, "isSubAccount": false, "vendor": { "vendorCode": "string", "vendorId": 1, "vendorInfo": "string"
}
}, "accountMeterId": 1, "beginDate": "2026-06-29", "deregulated": false, "endDate": "2026-06-29", "formTemplates": [
{ "beginDate": "2026-06-29", "displayOrder": 1, "endDate": "2026-06-29", "formTemplateId": 1, "template": { "templateCode": "string", "templateId": 1, "templateInfo": "string"
}
}
], "generalLedger": { "generalLedgerCode": "string", "generalLedgerId": 1, "generalLedgerInfo": "string"
}, "meter": { "active": false, "commodity": { "commodityCode": "string", "commodityIcon": {}, "commodityId": 1, "commodityInfo": "string"
}, "isCalculatedMeter": false, "isEsaCalculatedMeter": false, "isSplitChildMeter": false, "isSplitParentMeter": false, "meterCode": "string", "meterId": 1, "meterInfo": "string", "meterType": { "meterTypeCode": "string", "meterTypeId": 1, "meterTypeInfo": "string"
}, "serialNumber": "string"
}, "rates": [
{ "endDate": "2026-06-29", "rate": { "name": "string", "rateId": 1
}, "startDate": "2026-06-29"
}
], "vendorType": { "vendorTypeCode": "string", "vendorTypeId": 1
}
}
400
Bad Request
The request was malformed or contains invalid parameters. Check the request body and query parameters.
404
Not Found
The requested resource was not found. Verify the ID or path is correct.