Skip to main content

GET /mpan/v1/{mpid}/list

Returns MPANs and health status for the supplier identified by mpid (scoped by X-API-KEY).

Request​

Method and path:

  • GET /mpan/v1/{mpid}/list

Headers:

  • X-API-KEY (required): string, UUID format.

Path parameters:

  • mpid (required): string supplier MPID.

Query parameters:

  • q (optional): string, maximum 200 characters, default empty string. Case-insensitive literal substring search over MPAN core, address lines, postcode, GSP group, distributor MPID or distributor DIP ID. Outer whitespace is trimmed; % and _ are literal characters. Postcode matching ignores spaces.
  • energisation (optional): energised/e, de-energised/deenergised/de_energised/d, or unknown (case-insensitive).
  • market_segment (optional): smart/s, advanced/a, unmetered/u, or unknown (case-insensitive).
  • metered_status (optional): metered/true, unmetered/false, or unknown (case-insensitive).
  • health (optional): current health status: healthy, pending, failed, or unknown (case-insensitive exact match).
  • gsp (optional): case-insensitive substring match against the current GSP group.
  • migration (optional): migrated/mhhs migrated, pending/migration pending/mhhs migration pending, or missing/mhhs missing (case-insensitive).
  • metering_agent (optional): current metering-service agent name, matched case-insensitively; use unknown for no current agent name.
  • data_service_agent (optional): current data-service agent name, matched case-insensitively; use unknown for no current agent name.
  • limit (optional): integer, minimum 1, maximum 200. Defaults to 25 when only offset is supplied.
  • offset (optional): integer, minimum 0. Defaults to 0 when only limit is supplied.

Request body:

  • None.

Response​

Paginated response​

Supplying limit or offset returns a paginated response.

Success:

  • 200 OK
{
"data": [
{
"id": 1234567890123,
"health_status": "healthy",
"address_line_1": "10 High Street",
"postcode": "AB1 2CD",
"gsp_group_id": "_A",
"distributor_mpid": "DIST",
"energisation_status": "E",
"market_segment": "S",
"registration_id": "9f905e25-77da-47df-b7bc-1f1d2ed12abc",
"supply_start_date": "2026-01-16T00:00:00+00:00",
"registration_status": "Active",
"disconnection_date": null
}
],
"total_count": 1,
"limit": 25,
"offset": 0,
"has_more": false
}

Notes:

  • Search and all supplied filters apply before counting and pagination. Results sort by MPAN core ascending.
  • Each MPAN uses the supplier's selected registration cycle and its latest currently effective address and GSP group.
  • The migration filter represents the MPAN's current MHHS migration status using its current appointments and qualifying Change of Agent processes.
  • Empty and out-of-range pages return 200 OK with data: [].

Unpaginated response​

Without limit or offset, returns an object with an mpans array using the same search and ordering.

Success:

  • 200 OK
{
"mpans": [
{
"id": 1234567890123,
"health_status": "healthy",
"address_line_1": "10 High Street",
"postcode": "AB1 2CD",
"gsp_group_id": "_A",
"distributor_mpid": "DIST",
"energisation_status": "E",
"market_segment": "S",
"registration_id": "9f905e25-77da-47df-b7bc-1f1d2ed12abc",
"supply_start_date": "2026-01-16T00:00:00+00:00",
"registration_status": "Active",
"disconnection_date": null
}
]
}

Notes:

  • If no MPANs match for the supplier, response is still 200 with {"mpans": []}.
  • Both response shapes include health_status on each item. health_issues is returned by the single MPAN endpoint.

Auth/tenant errors:

  • 401 when credentials cannot access the requested MPID.
  • 403 when supplier access is forbidden for the API key.

Validation errors:

  • 422 Unprocessable Entity for q longer than 200 characters, malformed integers, limit outside 1–200, or negative offset.

Full field definitions: