AccountMeter
POST
3 endpoints
/api/v3/accountmeter
CreateAccountMeterV3
Links an account and meter together
Meters must be linked to an active account to be usable in EnergyCAP
Once an account and meter are created individually, they must be linked with this API
/api/v3/accountmeter/{accountMeterId}/rate
CreateAccountRateV3
Creates an AccountRate Relationship. Linking AccountMeter and Rate
/api/v3/accountmeter/{accountMeterId}/template
CreateFormTemplateV3
Assigns a new template to an account meter.
The new template's begin date must be after the begin date of all existing template assignments
PUT
3 endpoints
DELETE
2 endpoints
/api/v3/accountmeter/{accountMeterId}
DeleteAccountMeterV3
Delete an account meter
/api/v3/accountmeter/{accountMeterId}/template/{formTemplateId}
DeleteTemplateAssignmentV3
Delete an template assignment from an account meter
If we are deleting a template assignment in the middle of two other template assignments, then we will move back the next template's start date
If we are deleting the last template(current template), the extend second last template's end date to match the account meter's end date
If we are deleting the first template pull the second template's begin date to match account meter's begin date