GET api/Customers

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of Customer
NameDescriptionTypeAdditional information
Id

integer

None.

FirstName

string

None.

LastName

string

None.

Address

string

None.

Phone

integer

None.

Email

string

None.

TaxNumber

integer

None.

IsActive

boolean

None.

Invoices

Collection of Invoice

None.

Meters

Collection of Meter

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "FirstName": "sample string 2",
    "LastName": "sample string 3",
    "Address": "sample string 4",
    "Phone": 1,
    "Email": "sample string 5",
    "TaxNumber": 1,
    "IsActive": true,
    "Invoices": [
      {
        "Id": 1,
        "IssueDate": "2025-06-24T23:09:34.8900526-05:00",
        "Amount": 3.1,
        "IsPaid": true,
        "CustomerId": 1,
        "ReadingId": 1,
        "Reading": {
          "Id": 1,
          "ReadingDate": "2025-06-24T23:09:34.9056676-05:00",
          "CurrentReading": 3,
          "MeterId": 1,
          "Invoices": [],
          "Meter": {
            "Id": 1,
            "Brand": "sample string 2",
            "InstallationDate": "2025-06-24T23:09:34.9056676-05:00",
            "IsActive": true,
            "CustomerId": 1,
            "Readings": []
          }
        }
      }
    ],
    "Meters": [
      {
        "Id": 1,
        "Brand": "sample string 2",
        "InstallationDate": "2025-06-24T23:09:34.9056676-05:00",
        "IsActive": true,
        "CustomerId": 1,
        "Readings": [
          {
            "Id": 1,
            "ReadingDate": "2025-06-24T23:09:34.9056676-05:00",
            "CurrentReading": 3,
            "MeterId": 1,
            "Invoices": [
              {
                "Id": 1,
                "IssueDate": "2025-06-24T23:09:34.8900526-05:00",
                "Amount": 3.1,
                "IsPaid": true,
                "CustomerId": 1,
                "ReadingId": 1
              }
            ]
          }
        ]
      }
    ]
  },
  {
    "Id": 1,
    "FirstName": "sample string 2",
    "LastName": "sample string 3",
    "Address": "sample string 4",
    "Phone": 1,
    "Email": "sample string 5",
    "TaxNumber": 1,
    "IsActive": true,
    "Invoices": [
      {
        "Id": 1,
        "IssueDate": "2025-06-24T23:09:34.8900526-05:00",
        "Amount": 3.1,
        "IsPaid": true,
        "CustomerId": 1,
        "ReadingId": 1,
        "Reading": {
          "Id": 1,
          "ReadingDate": "2025-06-24T23:09:34.9056676-05:00",
          "CurrentReading": 3,
          "MeterId": 1,
          "Invoices": [],
          "Meter": {
            "Id": 1,
            "Brand": "sample string 2",
            "InstallationDate": "2025-06-24T23:09:34.9056676-05:00",
            "IsActive": true,
            "CustomerId": 1,
            "Readings": []
          }
        }
      }
    ],
    "Meters": [
      {
        "Id": 1,
        "Brand": "sample string 2",
        "InstallationDate": "2025-06-24T23:09:34.9056676-05:00",
        "IsActive": true,
        "CustomerId": 1,
        "Readings": [
          {
            "Id": 1,
            "ReadingDate": "2025-06-24T23:09:34.9056676-05:00",
            "CurrentReading": 3,
            "MeterId": 1,
            "Invoices": [
              {
                "Id": 1,
                "IssueDate": "2025-06-24T23:09:34.8900526-05:00",
                "Amount": 3.1,
                "IsPaid": true,
                "CustomerId": 1,
                "ReadingId": 1
              }
            ]
          }
        ]
      }
    ]
  }
]

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.