{
  "_comment": "OUTPUT - GET /v1/connections/{connection_id}/accounts: the connection resource plus its accounts, after two runs. collection is the client's switch, status ours: the first and third accounts were activated after the first run, and the third was not listed by the second. Produced by ConnectionService and the run's own status update against a test database (mfa.address replaced by a placeholder); fields with no value are omitted.",
  "connection_id": "con_8d62c46f-d186-427c-9610-2711def78c57",
  "provider": "Example Electric Cooperative",
  "client_reference": "site-114",
  "status": "active",
  "customer_action_required": false,
  "last_success_at": "2026-10-13T19:54:46Z",
  "last_enumerated_at": "2026-10-13T19:54:47Z",
  "expected_account_count": 3,
  "enumerated_account_count": 2,
  "created_at": "2026-10-13T19:54:44Z",
  "mfa": {
    "delivery": "email",
    "address": "mfa+example@luminetric.com"
  },
  "accounts": [
    {
      "account_id": "acc_a963d618-b930-4f8b-87fc-3d88240c627f",
      "connection_id": "con_8d62c46f-d186-427c-9610-2711def78c57",
      "account_number": "1000000101",
      "account_number_as_printed": "1000-0001-01",
      "service_address": "100 Example Street, Springfield",
      "collection": "active",
      "status": "connection_success",
      "status_detail": "data_accessible",
      "customer_action_required": false,
      "first_seen": "2026-10-13",
      "last_statement_date": "2026-09-28",
      "next_expected_statement_date": "2026-10-28"
    },
    {
      "account_id": "acc_86c523d3-b160-464a-bb68-3ff0c446d189",
      "connection_id": "con_8d62c46f-d186-427c-9610-2711def78c57",
      "account_number": "1000000201",
      "account_number_as_printed": "1000-0002-01",
      "service_address": "200 Example Avenue, Springfield",
      "collection": "never_collected",
      "status": "connection_success",
      "status_detail": "data_accessible",
      "customer_action_required": false,
      "first_seen": "2026-10-13",
      "last_statement_date": "2026-09-30"
    },
    {
      "account_id": "acc_77e3188b-4843-4a5d-9ff5-5d4dae9617ec",
      "connection_id": "con_8d62c46f-d186-427c-9610-2711def78c57",
      "account_number": "1000000301",
      "account_number_as_printed": "1000-0003-01",
      "service_address": "300 Example Road, Springfield",
      "collection": "active",
      "status": "connection_error",
      "status_detail": "not_listed_by_portal",
      "customer_action_required": false,
      "first_seen": "2026-10-13",
      "last_statement_date": "2026-09-15",
      "next_expected_statement_date": "2026-10-15"
    }
  ]
}
