MPAN Schema Reference
This page summarizes the request and response contract for MPAN API endpoints.
Constraint notation:
- "Not specified" means no explicit min/max/pattern constraint is documented for the endpoint response/request schema.
- Primary MPAN core values are integers; related secondary and linked export MPAN cores are strings.
Request Parameters
| Field | Location | Required | Type | Length / Format | Notes |
|---|---|---|---|---|---|
X-API-KEY | Header | Yes | string | UUID format | Authentication header required for both endpoints. |
mpid | Path | Yes | string | Not specified | Supplier MPID used for tenant/supplier authorization checks. |
mpan_id | Query (GET /mpan/v1/{mpid}) | Yes | integer | 13 digits | MPAN core identifier. |
q | Query (GET /mpan/v1/{mpid}/list) | No | string | Maximum 200 characters | Default empty string; outer whitespace trimmed; case-insensitive literal substring over MPAN, address lines, postcode, GSP group, distributor MPID and distributor DIP ID. Postcode matching ignores spaces. |
limit | Query (GET /mpan/v1/{mpid}/list) | No | integer | Minimum 1, maximum 200 | Enables pagination; default 25 when only offset is supplied. |
offset | Query (GET /mpan/v1/{mpid}/list) | No | integer | Minimum 0 | Enables pagination; default 0 when only limit is supplied. |
Portfolio Query Parameters
| Field | Location | Required | Type | Length / Format | Notes |
|---|---|---|---|---|---|
from_date | Query (portfolio endpoints) | Yes | string(date) | ISO 8601 date | Inclusive first UTC date. |
to_date | Query (portfolio endpoints) | Yes | string(date) | ISO 8601 date | Inclusive last UTC date; on or after from_date, before 9999-12-31; period at most 3660 calendar days. |
kind | Query (portfolio-mpans) | Yes | string(enum) | newly-gained, change-of-supplier, change-of-agent | Selects the MPAN group. |
q | Query (portfolio-mpans) | No | string | Maximum 200 characters | Default empty string; outer whitespace trimmed; literal MPAN substring. |
limit | Query (portfolio-mpans) | No | integer | Minimum 1, maximum 200 | Default 25. |
offset | Query (portfolio-mpans) | No | integer | Minimum 0 | Default 0. |
Portfolio endpoints accept X-API-KEY or Authorization: Bearer <token>. API key takes precedence when both are supplied.
Portfolio Summary Response
| Field | Required | Type | Length / Format | Notes |
|---|---|---|---|---|
from_date | Yes | string(date) | ISO 8601 date | First UTC calendar day. |
to_date | Yes | string(date) | ISO 8601 date | Last UTC calendar day. |
newly_gained | Yes | integer | Minimum 0 | Distinct qualifying MPAN gains within the range. |
change_of_supplier | Yes | integer | Minimum 0 | Change of Supplier processes started in the period, regardless of current status. |
change_of_agent | Yes | integer | Minimum 0 | Distinct MPANs with qualifying appointment processes started in the period, regardless of current status. |
daily_activity | Yes | array | Daily activity items | Ordered by date; includes zero days. |
Daily Activity Items
| Field | Required | Type | Length / Format | Notes |
|---|---|---|---|---|
date | Yes | string(date) | ISO 8601 date | UTC calendar day. |
newly_gained | Yes | integer | Minimum 0 | Distinct qualifying MPAN gains by supply-start date. |
change_of_supplier_started | Yes | integer | Minimum 0 | Processes by process-start date, regardless of current status. |
change_of_agent_started | Yes | integer | Minimum 0 | Distinct MPANs by their latest qualifying appointment process-start date within the period, regardless of current status. |
Daily gains count distinct MPANs separately per UTC day; repeat gains can make their sum exceed newly_gained. Daily starts sum to the corresponding period totals.
Change of Agent uses portfolio summary qualification.
Portfolio MPAN List Response
| Field | Required | Type | Length / Format | Notes |
|---|---|---|---|---|
data | Yes | array | Portfolio MPAN items | One item per gained MPAN, Change of Agent MPAN or Change of Supplier process. |
total_count | Yes | integer | Minimum 0 | Matching gains or changes before pagination. |
limit | Yes | integer | Minimum 1, maximum 200 | Effective page limit. |
offset | Yes | integer | Minimum 0 | Effective offset. |
has_more | Yes | boolean | N/A | offset + data.length < total_count. |
Portfolio MPAN Items
| Field | Required | Type | Length / Format | Notes |
|---|---|---|---|---|
mpan_core | Yes | integer | Not specified | MPAN core. |
postcode | No | string or null | Not specified | Latest currently effective address for the selected gain cycle, when present; null for changes. |
supply_start_date | No | string(datetime) or null | ISO 8601 datetime | Latest qualifying supply start within the gain range; null for changes. |
process_id | No | string(UUID) or null | UUID | Started process ID; null for gains. |
started_at | No | string(datetime) or null | ISO 8601 datetime | Process start timestamp; null for gains. |
appointment_type | No | string or null | metering-service-appointment, data-service-appointment | Change of Agent appointment type; null for other kinds. |
oldest_pending_since | No | string(datetime) or null | ISO 8601 datetime | Defaults to null for all kinds. |
pending_appointments | No | array of strings | metering-service-appointment, data-service-appointment | Defaults to [] for all kinds. |
MPAN List Response
Returned when neither limit nor offset is supplied.
Top-level
| Field | Required | Type | Length / Format | Notes |
|---|---|---|---|---|
mpans | Yes | array | MPAN list items | Empty list is returned when no MPANs match. |
MPAN List Items
| Field | Required | Type | Length / Format | Notes |
|---|---|---|---|---|
health_status | No | string(enum) | healthy, pending, failed, unknown | Default unknown; see MPAN Health. |
id | Yes | integer | 13 digits | MPAN core. |
address_line_1 | No | string or null | Not specified | Address line 1. |
address_line_2 | No | string or null | Not specified | Address line 2. |
address_line_3 | No | string or null | Not specified | Address line 3. |
address_line_4 | No | string or null | Not specified | Address line 4. |
address_line_5 | No | string or null | Not specified | Address line 5. |
address_line_6 | No | string or null | Not specified | Address line 6. |
address_line_7 | No | string or null | Not specified | Address line 7. |
address_line_8 | No | string or null | Not specified | Address line 8. |
address_line_9 | No | string or null | Not specified | Address line 9. |
postcode | No | string or null | Not specified | Metering point postcode. |
gsp_group_id | No | string or null | Not specified | Latest currently effective GSP group for the selected registration cycle. |
distributor_mpid | No | string or null | Not specified | Distributor MPID. |
energisation_status | No | string or null | Not specified | Latest currently effective energisation status for the selected registration cycle. |
market_segment | No | string or null | Not specified | Latest currently effective market-segment value for the selected registration cycle. |
registration_id | No | string(UUID) or UUID or null | UUID (typically 36 characters when serialized as string) | CSS registration identifier. |
supply_start_date | No | string(datetime) or null | ISO 8601 datetime | Supply effective from date. |
registration_status | No | string or null | Enum values: Pending, Confirmed, Cancelled, Withdrawn, SecuredActive, SecuredInactive, Active, Inactive | Current registration status. |
disconnection_date | No | string(datetime) or null | ISO 8601 datetime | MPAN disconnection date, when recorded. |
Paginated MPAN List
Returned when limit or offset is supplied.
| Field | Required | Type | Length / Format | Notes |
|---|---|---|---|---|
data | Yes | array | MPAN list items | One item per distinct MPAN; empty for no matches or an out-of-range page. |
total_count | Yes | integer | Minimum 0 | Matching MPANs before pagination. |
limit | Yes | integer | Minimum 1, maximum 200 | Effective page limit. |
offset | Yes | integer | Minimum 0 | Effective offset. |
has_more | Yes | boolean | N/A | offset + data.length < total_count. |
Analytics Response
| Field | Required | Type | Format / Constraints | Notes |
|---|---|---|---|---|
total | Yes | integer | Not specified | Distinct current supplier-owned MPANs. |
market_segments | Yes | array | Breakdown items | Current market-segment breakdown. |
energisation | Yes | array | Breakdown items | Current energisation breakdown. |
metered | Yes | array | Breakdown items | Current metered-indicator breakdown. |
gsp_areas | Yes | array | Breakdown items | Current GSP-group breakdown. |
metering_agents | Yes | array | Breakdown items | Current metering-service appointment-agent breakdown. |
data_service_agents | Yes | array | Breakdown items | Current data-service appointment-agent breakdown. |
mhhs_status | Yes | array | Breakdown items | Always returns migrated, migration-pending and missing buckets, including zero counts. |
Breakdown Items
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
label | Yes | string | Breakdown label |
count | Yes | integer | Not specified |
Health Summary Response
| Field | Required | Type | Format / Constraints | Notes |
|---|---|---|---|---|
as_of | Yes | string(datetime) | ISO 8601 datetime | UTC timestamp used for the current-population and health evaluation. |
total | Yes | integer | Minimum 0 | Current supplier-owned MPAN count. |
healthy | Yes | integer | Minimum 0 | Current health count. |
pending | Yes | integer | Minimum 0 | Current health count. |
failed | Yes | integer | Minimum 0 | Current health count. |
unknown | Yes | integer | Minimum 0 | Current health count. |
Single MPAN Response
Main Fields
| Field | Required | Type | Length / Format | Notes |
|---|---|---|---|---|
id | Yes | integer | 13 digits | MPAN core. |
address_line_1 | No | string or null | Not specified | Address line 1. |
address_line_2 | No | string or null | Not specified | Address line 2. |
address_line_3 | No | string or null | Not specified | Address line 3. |
address_line_4 | No | string or null | Not specified | Address line 4. |
address_line_5 | No | string or null | Not specified | Address line 5. |
address_line_6 | No | string or null | Not specified | Address line 6. |
address_line_7 | No | string or null | Not specified | Address line 7. |
address_line_8 | No | string or null | Not specified | Address line 8. |
address_line_9 | No | string or null | Not specified | Address line 9. |
postcode | No | string or null | Not specified | Metering point postcode. |
gsp_group_id | No | string or null | Not specified | GSP Group identifier. |
distributor_dip_id | No | string or null | Not specified | Distributor DIP ID. |
distributor_mpid | No | string or null | Max length 4 | Distributor MPID. |
domestic_indicator | No | boolean or null | N/A | Domestic premise indicator. |
domestic_indicator_efd | No | string(datetime) or null | ISO 8601 datetime | Domestic indicator effective from date. |
energy_direction | No | string or null | Not specified | Energy direction code/value. |
metered_indicator | No | boolean or null | N/A | Metered indicator. |
duos_tariff_id | No | string or null | Not specified | DUoS tariff identifier. |
duos_tariff_efd | No | string(datetime) or null | ISO 8601 datetime | DUoS tariff effective from date. |
energisation_status | No | string or null | Not specified | Energisation status. |
energisation_status_efd | No | string(datetime) or null | ISO 8601 datetime | Energisation status effective from date. |
connection_type_indicator | No | string(enum) or null | Enum: W, L, H, E, U | Connection type indicator. |
connection_type_indicator_efd | No | string(datetime) or null | ISO 8601 datetime | Connection type effective from date. |
market_segment | No | string or null | Not specified | Market segment indicator. |
market_segment_efd | No | string(datetime) or null | ISO 8601 datetime | Market segment effective from date. |
annual_consumption | No | string or null | Not specified | Annual consumption value as stored. |
annual_consumption_efd | No | string(datetime) or null | ISO 8601 datetime | Annual consumption effective from date. |
annual_consumption_quality_indicator | No | string(enum) or null | Enum: A, 1, 2, 3, 4, 5, D | Quality indicator for annual consumption. |
metering_service_dip_id | No | string or null | Not specified | Current metering service DIP ID. |
metering_service_mpid | No | string or null | Not specified | Current metering service MPID. |
metering_service_efd | No | string(datetime) or null | ISO 8601 datetime | Metering service effective from date. |
metering_service_etd | No | string(datetime) or null | ISO 8601 datetime | Metering service effective to date. |
data_service_dip_id | No | string or null | Not specified | Current data service DIP ID. |
data_service_mpid | No | string or null | Not specified | Current data service MPID. |
data_service_efd | No | string(datetime) or null | ISO 8601 datetime | Data service effective from date. |
data_service_etd | No | string(datetime) or null | ISO 8601 datetime | Data service effective to date. |
mdr_dip_id | No | string or null | Not specified | Meter data retriever DIP ID. |
mdr_mpid | No | string or null | Not specified | Meter data retriever MPID. |
mdr_efd | No | string(datetime) or null | ISO 8601 datetime | Meter data retriever effective from date. |
customer_direct_contract_metering_service | No | boolean or null | N/A | Customer direct contract metering service flag. |
customer_direct_contract_metering_service_mpid | No | string or null | Not specified | Customer contracted metering service MPID. |
customer_direct_contract_metering_service_dip_id | No | string or null | Not specified | Customer contracted metering service DIP ID. |
customer_direct_contract_metering_service_efd | No | string(datetime) or null | ISO 8601 datetime | Customer contracted metering service effective from date. |
customer_direct_contract_metering_service_etd | No | string(datetime) or null | ISO 8601 datetime | Customer contracted metering service effective to date. |
customer_direct_contract_data_service | No | boolean or null | N/A | Customer direct contract data service flag. |
customer_direct_contract_data_service_mpid | No | string or null | Not specified | Customer contracted data service MPID. |
customer_direct_contract_data_service_dip_id | No | string or null | Not specified | Customer contracted data service DIP ID. |
customer_direct_contract_data_service_efd | No | string(datetime) or null | ISO 8601 datetime | Customer contracted data service effective from date. |
customer_direct_contract_data_service_etd | No | string(datetime) or null | ISO 8601 datetime | Customer contracted data service effective to date. |
dcc_service_flag | No | string or null | Not specified | DCC service flag. |
dcc_service_flag_efd | No | string(datetime) or null | ISO 8601 datetime | DCC service flag effective from date. |
ihd_install_status | No | string or null | Not specified | IHD install status. |
ihd_install_status_efd | No | string(datetime) or null | ISO 8601 datetime | IHD install status effective from date. |
smso_id | No | string or null | Not specified | SMSO identifier. |
smso_id_efd | No | string(datetime) or null | ISO 8601 datetime | SMSO effective from date. |
profile_class | No | string or null | Not specified | Profile class. |
profile_class_efd | No | string(datetime) or null | ISO 8601 datetime | Profile class effective from date. |
ssc | No | string or null | Not specified | SSC value. |
ssc_efd | No | string(datetime) or null | ISO 8601 datetime | SSC effective from date. |
registration_id | No | UUID or null | UUID (36 characters when serialized) | CSS registration ID. |
registration_status_efd | No | string(datetime) or null | ISO 8601 datetime | Registration status effective from date. |
supplier_mpid | No | string or null | Not specified | Supplier MPID associated to MPAN record. |
registration_status | No | string or null | Enum values: Pending, Confirmed, Cancelled, Withdrawn, SecuredActive, SecuredInactive, Active, Inactive | Registration status. |
supply_start_date | No | string(datetime) or null | ISO 8601 datetime | Supply start date. |
supply_end_date | No | string(datetime) or null | ISO 8601 datetime | Supply end date. |
disconnection_date | No | string(datetime) or null | ISO 8601 datetime | MPAN disconnection date, when recorded. |
consent_granularity | No | string or null | Not specified | Consent granularity value. |
consent_granularity_efd | No | string(datetime) or null | ISO 8601 datetime | Consent granularity effective from date. |
measurement_class_id | No | string or null | Not specified | Measurement class identifier. |
Additional Fields
| Field | Required | Type | Length / Format | Notes |
|---|---|---|---|---|
health_status | No | string(enum) | healthy, pending, failed, unknown | Default unknown; see MPAN Health. |
health_issues | No | array | Health issue items | Default []; returned on the single MPAN response only. |
updated | Yes | string(datetime) | ISO 8601 datetime | Last updated timestamp for the MPAN record. |
related_mpans | No | object or null | See nested shape below | Related MPAN relationships (if any). |
linked_mpans | No | object or null | See nested shape below | Linked import/export MPAN relationships (if any). |
migration_statuses | Yes | array | Migration-status items | Defaults to [] if no migration statuses. |
related_mpans nested object
| Field | Required | Type | Length / Format | Notes |
|---|---|---|---|---|
primary_mpan | Yes (when object present) | integer | 13 digits | MPAN returned by query. |
secondary_mpans | Yes (when object present) | array | N/A | Related secondary MPAN records. |
secondary_mpans[].mpan_core | Yes | string | 13 numeric digits in practice | Related MPAN core. |
secondary_mpans[].effective_from | Yes | string(datetime) | ISO 8601 datetime | Relationship start datetime. |
secondary_mpans[].effective_to | Yes | string(datetime) or null | ISO 8601 datetime | Relationship end datetime; field is present and may be null. |
linked_mpans nested object
| Field | Required | Type | Length / Format | Notes |
|---|---|---|---|---|
import_mpan | Yes (when object present) | integer | 13 digits | Import MPAN core. |
import_supplier_mpid | Yes (when object present) | string | Not specified | Supplier MPID for import MPAN. |
export_mpans | Yes (when object present) | array | N/A | Linked export MPAN records. |
export_mpans[].mpan_core | Yes | string | 13 numeric digits in practice | Export MPAN core. |
export_mpans[].effective_from | Yes | string(datetime) | ISO 8601 datetime | Relationship start datetime. |
export_mpans[].effective_to | Yes | string(datetime) or null | ISO 8601 datetime | Relationship end datetime; field is present and may be null. |
export_mpans[].export_supplier_mpid | Yes | string | Not specified | Supplier MPID for export MPAN. |
MPAN Health
Health uses the authenticated supplier's processes for the MPAN across registration cycles. Other suppliers' processes are excluded.
Status precedence: failed, unknown, pending, healthy.
| Process condition | Health status | Issue reason |
|---|---|---|
| Pending with an SLA deadline at or before the current time | pending | overdue |
| Pending with no SLA deadline or a future deadline | pending | pending |
| Failed with a missing or future end timestamp | unknown | failure_time_unknown |
| Failed within the last 48 hours with a qualifying SLA breach | failed | sla_breach |
| Failed within the last 48 hours without a qualifying SLA breach | failed | recent_failure |
Notes:
- The failure window uses elapsed UTC hours. Failures exactly 48 hours old or older are excluded.
- Successful processes are excluded. No qualifying issues returns
healthywithhealth_issues: []. - Overdue pending processes remain
pendinguntil the process fails. - A qualifying SLA breach has a recorded deadline and an
SLA_BREACHexception created at or after the process end timestamp. - All qualifying issues are returned, ordered by process ID, including those below the overall status precedence.
Health Issue Items
| Field | Required | Type | Length / Format | Notes |
|---|---|---|---|---|
issue_type | Yes | string(enum) | process, appointment | Metering and data service appointment processes use appointment; other process types use process. |
process_id | Yes | string(UUID) | UUID format | Supplier process identifier. |
process_type | Yes | string(enum) | Supplier process type | Includes reading submissions and data-service-notification-request. |
process_status | Yes | string(enum) | Pending, Success, Failed | Health issues are returned for Pending and Failed processes only. |
reason | Yes | string(enum) | pending, overdue, recent_failure, sla_breach, failure_time_unknown | Health issue reason. |
failed_at | No | string(datetime) or null | ISO 8601 datetime | Failed process end timestamp; null for pending processes or a missing end timestamp. |
sla_due_at | No | string(datetime) or null | ISO 8601 datetime | Earliest pending-message deadline for pending processes, or qualifying SLA breach deadline for failed processes; null when absent. |
Appointment History Response
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
metering_service | No | array | Appointment items; defaults to [] |
data_service | No | array | Appointment items; defaults to [] |
meter_data_retriever | No | array | Appointment items; defaults to [] |
Each appointment item has:
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
id | Yes | string | Appointment identifier |
agent_name | Yes | string | Agent name |
role | Yes | string | Agent role |
dip_id | Yes | string | DIP participant ID |
mpid | Yes | string | Market participant ID |
effective_from | Yes | string(datetime) | ISO 8601 datetime |
effective_to | No | string(datetime) or null | Defaults to null |
Migration Status
| Field | Required | Type | Length / Format | Notes |
|---|---|---|---|---|
type | Yes | string(enum) | Enum: forward, reverse | Migration direction. |
mhhs_regime_end_date | No | string(datetime) or null | ISO 8601 datetime | MHHS regime end date. |
outgoing_metering_service_dip_id | No | string or null | Not specified | Outgoing metering service DIP ID. |
outgoing_metering_service_mpid | No | string or null | Not specified | Outgoing metering service MPID. |
outgoing_metering_service_effective_from_date | No | string(datetime) or null | ISO 8601 datetime | Outgoing metering service start. |
outgoing_metering_service_effective_to_date | No | string(datetime) or null | ISO 8601 datetime | Outgoing metering service end. |
outgoing_metering_service_deappointment_reason_code | No | string or null | Not specified | Deappointment reason. |
outgoing_data_service_dip_id | No | string or null | Not specified | Outgoing data service DIP ID. |
outgoing_data_service_mpid | No | string or null | Not specified | Outgoing data service MPID. |
outgoing_data_service_effective_from_date | No | string(datetime) or null | ISO 8601 datetime | Outgoing data service start. |
outgoing_data_service_effective_to_date | No | string(datetime) or null | ISO 8601 datetime | Outgoing data service end. |
outgoing_data_service_deappointment_reason_code | No | string or null | Not specified | Deappointment reason. |
incoming_mop_mpid | No | string or null | Not specified | Incoming MOP MPID. |
incoming_mop_effective_from_date | No | string(datetime) or null | ISO 8601 datetime | Incoming MOP start. |
incoming_dc_mpid | No | string or null | Not specified | Incoming DC MPID. |
incoming_dc_effective_from_date | No | string(datetime) or null | ISO 8601 datetime | Incoming DC start. |
incoming_supplier_mpid | Yes | string | Not specified | Incoming supplier MPID. |
incoming_supplier_dip_id | Yes | string | Not specified | Incoming supplier DIP ID. |
incoming_supplier_effective_from_date | Yes | string(datetime) | ISO 8601 datetime | Incoming supplier start date. |
old_supplier_mpid | No | string or null | Not specified | Previous supplier MPID. |
old_data_aggregator_mpid | No | string or null | Not specified | Previous DA MPID. |
old_data_aggregator_type | No | string or null | Not specified | Previous DA type. |
old_data_collector_mpid | No | string or null | Not specified | Previous DC MPID. |
old_data_collector_type | No | string or null | Not specified | Previous DC type. |
old_meter_operator_mpid | No | string or null | Not specified | Previous MOP MPID. |
old_meter_operator_type | No | string or null | Not specified | Previous MOP type. |