Invoices
| API | Description |
|---|---|
| GET api/invoices/search?customerId={customerId}&startDate={startDate}&endDate={endDate}&isPaid={isPaid}&isCancelled={isCancelled} |
Searches invoices using optional customer, date, payment and cancellation filters. |
| GET api/Invoices |
Gets all invoices with customer and meter information. |
| GET api/Invoices/{id} |
Gets an invoice by identifier with customer, meter and consumption details. |
| POST api/Invoices |
Creates a new invoice for an existing consumption. |
| PUT api/Invoices/{id} |
Updates the payment or cancellation status of an existing invoice. |
Meters
| API | Description |
|---|---|
| GET api/meters/customer/{customerId} |
Gets all meters associated with a specific customer. |
| GET api/Meters |
Gets all meters registered in the system. |
| GET api/Meters/{id} |
Gets a meter by identifier |
| POST api/Meters |
Creates a new meter for an existing customer. |
| PUT api/Meters/{id} |
Updates the status of an existing meter. |
| DELETE api/Meters/{id} |
Deletes an existing meter when no consumptions are associated with it. |
Consumptions
| API | Description |
|---|---|
| GET api/consumptions/meter/{meterId} |
Gets all consumptions associated with a specific meter. |
| GET api/Consumptions |
Gets all consumptions registered in the system. |
| GET api/Consumptions/{id} |
Gets a consumption by identifier. |
| POST api/Consumptions |
Creates a new consumption record for an active meter and customer. |
| PUT api/Consumptions/{id} |
Updates an existing consumption record when it has not been invoiced. |
| DELETE api/Consumptions/{id} |
Delete an existing consumption when no invoice is associated with it. |
Customers
| API | Description |
|---|---|
| GET api/Customers |
Gets all customers registered in the system. |
| GET api/Customers/{id} |
Gets a customer by identifier. |
| POST api/Customers |
Creates a new customer. |
| PUT api/Customers/{id} |
Updates an existing customer. |
| DELETE api/Customers/{id} |
Delete an existing customer. |
Values
| API | Description |
|---|---|
| GET api/Values |
No documentation available. |
| GET api/Values/{id} |
No documentation available. |
| POST api/Values |
No documentation available. |
| PUT api/Values/{id} |
No documentation available. |
| DELETE api/Values/{id} |
No documentation available. |