Skip to main content

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​

FieldLocationRequiredTypeLength / FormatNotes
X-API-KEYHeaderYesstringUUID formatAuthentication header required for both endpoints.
mpidPathYesstringNot specifiedSupplier MPID used for tenant/supplier authorization checks.
mpan_idQuery (GET /mpan/v1/{mpid})Yesinteger13 digitsMPAN core identifier.
qQuery (GET /mpan/v1/{mpid}/list)NostringMaximum 200 charactersDefault 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.
limitQuery (GET /mpan/v1/{mpid}/list)NointegerMinimum 1, maximum 200Enables pagination; default 25 when only offset is supplied.
offsetQuery (GET /mpan/v1/{mpid}/list)NointegerMinimum 0Enables pagination; default 0 when only limit is supplied.

Portfolio Query Parameters​

FieldLocationRequiredTypeLength / FormatNotes
from_dateQuery (portfolio endpoints)Yesstring(date)ISO 8601 dateInclusive first UTC date.
to_dateQuery (portfolio endpoints)Yesstring(date)ISO 8601 dateInclusive last UTC date; on or after from_date, before 9999-12-31; period at most 3660 calendar days.
kindQuery (portfolio-mpans)Yesstring(enum)newly-gained, change-of-supplier, change-of-agentSelects the MPAN group.
qQuery (portfolio-mpans)NostringMaximum 200 charactersDefault empty string; outer whitespace trimmed; literal MPAN substring.
limitQuery (portfolio-mpans)NointegerMinimum 1, maximum 200Default 25.
offsetQuery (portfolio-mpans)NointegerMinimum 0Default 0.

Portfolio endpoints accept X-API-KEY or Authorization: Bearer <token>. API key takes precedence when both are supplied.

Portfolio Summary Response​

FieldRequiredTypeLength / FormatNotes
from_dateYesstring(date)ISO 8601 dateFirst UTC calendar day.
to_dateYesstring(date)ISO 8601 dateLast UTC calendar day.
newly_gainedYesintegerMinimum 0Distinct qualifying MPAN gains within the range.
change_of_supplierYesintegerMinimum 0Change of Supplier processes started in the period, regardless of current status.
change_of_agentYesintegerMinimum 0Distinct MPANs with qualifying appointment processes started in the period, regardless of current status.
daily_activityYesarrayDaily activity itemsOrdered by date; includes zero days.

Daily Activity Items​

FieldRequiredTypeLength / FormatNotes
dateYesstring(date)ISO 8601 dateUTC calendar day.
newly_gainedYesintegerMinimum 0Distinct qualifying MPAN gains by supply-start date.
change_of_supplier_startedYesintegerMinimum 0Processes by process-start date, regardless of current status.
change_of_agent_startedYesintegerMinimum 0Distinct 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​

FieldRequiredTypeLength / FormatNotes
dataYesarrayPortfolio MPAN itemsOne item per gained MPAN, Change of Agent MPAN or Change of Supplier process.
total_countYesintegerMinimum 0Matching gains or changes before pagination.
limitYesintegerMinimum 1, maximum 200Effective page limit.
offsetYesintegerMinimum 0Effective offset.
has_moreYesbooleanN/Aoffset + data.length < total_count.

Portfolio MPAN Items​

FieldRequiredTypeLength / FormatNotes
mpan_coreYesintegerNot specifiedMPAN core.
postcodeNostring or nullNot specifiedLatest currently effective address for the selected gain cycle, when present; null for changes.
supply_start_dateNostring(datetime) or nullISO 8601 datetimeLatest qualifying supply start within the gain range; null for changes.
process_idNostring(UUID) or nullUUIDStarted process ID; null for gains.
started_atNostring(datetime) or nullISO 8601 datetimeProcess start timestamp; null for gains.
appointment_typeNostring or nullmetering-service-appointment, data-service-appointmentChange of Agent appointment type; null for other kinds.
oldest_pending_sinceNostring(datetime) or nullISO 8601 datetimeDefaults to null for all kinds.
pending_appointmentsNoarray of stringsmetering-service-appointment, data-service-appointmentDefaults to [] for all kinds.

MPAN List Response​

Returned when neither limit nor offset is supplied.

Top-level​

FieldRequiredTypeLength / FormatNotes
mpansYesarrayMPAN list itemsEmpty list is returned when no MPANs match.

MPAN List Items​

FieldRequiredTypeLength / FormatNotes
health_statusNostring(enum)healthy, pending, failed, unknownDefault unknown; see MPAN Health.
idYesinteger13 digitsMPAN core.
address_line_1Nostring or nullNot specifiedAddress line 1.
address_line_2Nostring or nullNot specifiedAddress line 2.
address_line_3Nostring or nullNot specifiedAddress line 3.
address_line_4Nostring or nullNot specifiedAddress line 4.
address_line_5Nostring or nullNot specifiedAddress line 5.
address_line_6Nostring or nullNot specifiedAddress line 6.
address_line_7Nostring or nullNot specifiedAddress line 7.
address_line_8Nostring or nullNot specifiedAddress line 8.
address_line_9Nostring or nullNot specifiedAddress line 9.
postcodeNostring or nullNot specifiedMetering point postcode.
gsp_group_idNostring or nullNot specifiedLatest currently effective GSP group for the selected registration cycle.
distributor_mpidNostring or nullNot specifiedDistributor MPID.
energisation_statusNostring or nullNot specifiedLatest currently effective energisation status for the selected registration cycle.
market_segmentNostring or nullNot specifiedLatest currently effective market-segment value for the selected registration cycle.
registration_idNostring(UUID) or UUID or nullUUID (typically 36 characters when serialized as string)CSS registration identifier.
supply_start_dateNostring(datetime) or nullISO 8601 datetimeSupply effective from date.
registration_statusNostring or nullEnum values: Pending, Confirmed, Cancelled, Withdrawn, SecuredActive, SecuredInactive, Active, InactiveCurrent registration status.
disconnection_dateNostring(datetime) or nullISO 8601 datetimeMPAN disconnection date, when recorded.

Paginated MPAN List​

Returned when limit or offset is supplied.

FieldRequiredTypeLength / FormatNotes
dataYesarrayMPAN list itemsOne item per distinct MPAN; empty for no matches or an out-of-range page.
total_countYesintegerMinimum 0Matching MPANs before pagination.
limitYesintegerMinimum 1, maximum 200Effective page limit.
offsetYesintegerMinimum 0Effective offset.
has_moreYesbooleanN/Aoffset + data.length < total_count.

Analytics Response​

FieldRequiredTypeFormat / ConstraintsNotes
totalYesintegerNot specifiedDistinct current supplier-owned MPANs.
market_segmentsYesarrayBreakdown itemsCurrent market-segment breakdown.
energisationYesarrayBreakdown itemsCurrent energisation breakdown.
meteredYesarrayBreakdown itemsCurrent metered-indicator breakdown.
gsp_areasYesarrayBreakdown itemsCurrent GSP-group breakdown.
metering_agentsYesarrayBreakdown itemsCurrent metering-service appointment-agent breakdown.
data_service_agentsYesarrayBreakdown itemsCurrent data-service appointment-agent breakdown.
mhhs_statusYesarrayBreakdown itemsAlways returns migrated, migration-pending and missing buckets, including zero counts.

Breakdown Items​

FieldRequiredTypeFormat / Constraints
labelYesstringBreakdown label
countYesintegerNot specified

Health Summary Response​

FieldRequiredTypeFormat / ConstraintsNotes
as_ofYesstring(datetime)ISO 8601 datetimeUTC timestamp used for the current-population and health evaluation.
totalYesintegerMinimum 0Current supplier-owned MPAN count.
healthyYesintegerMinimum 0Current health count.
pendingYesintegerMinimum 0Current health count.
failedYesintegerMinimum 0Current health count.
unknownYesintegerMinimum 0Current health count.

Single MPAN Response​

Main Fields​

FieldRequiredTypeLength / FormatNotes
idYesinteger13 digitsMPAN core.
address_line_1Nostring or nullNot specifiedAddress line 1.
address_line_2Nostring or nullNot specifiedAddress line 2.
address_line_3Nostring or nullNot specifiedAddress line 3.
address_line_4Nostring or nullNot specifiedAddress line 4.
address_line_5Nostring or nullNot specifiedAddress line 5.
address_line_6Nostring or nullNot specifiedAddress line 6.
address_line_7Nostring or nullNot specifiedAddress line 7.
address_line_8Nostring or nullNot specifiedAddress line 8.
address_line_9Nostring or nullNot specifiedAddress line 9.
postcodeNostring or nullNot specifiedMetering point postcode.
gsp_group_idNostring or nullNot specifiedGSP Group identifier.
distributor_dip_idNostring or nullNot specifiedDistributor DIP ID.
distributor_mpidNostring or nullMax length 4Distributor MPID.
domestic_indicatorNoboolean or nullN/ADomestic premise indicator.
domestic_indicator_efdNostring(datetime) or nullISO 8601 datetimeDomestic indicator effective from date.
energy_directionNostring or nullNot specifiedEnergy direction code/value.
metered_indicatorNoboolean or nullN/AMetered indicator.
duos_tariff_idNostring or nullNot specifiedDUoS tariff identifier.
duos_tariff_efdNostring(datetime) or nullISO 8601 datetimeDUoS tariff effective from date.
energisation_statusNostring or nullNot specifiedEnergisation status.
energisation_status_efdNostring(datetime) or nullISO 8601 datetimeEnergisation status effective from date.
connection_type_indicatorNostring(enum) or nullEnum: W, L, H, E, UConnection type indicator.
connection_type_indicator_efdNostring(datetime) or nullISO 8601 datetimeConnection type effective from date.
market_segmentNostring or nullNot specifiedMarket segment indicator.
market_segment_efdNostring(datetime) or nullISO 8601 datetimeMarket segment effective from date.
annual_consumptionNostring or nullNot specifiedAnnual consumption value as stored.
annual_consumption_efdNostring(datetime) or nullISO 8601 datetimeAnnual consumption effective from date.
annual_consumption_quality_indicatorNostring(enum) or nullEnum: A, 1, 2, 3, 4, 5, DQuality indicator for annual consumption.
metering_service_dip_idNostring or nullNot specifiedCurrent metering service DIP ID.
metering_service_mpidNostring or nullNot specifiedCurrent metering service MPID.
metering_service_efdNostring(datetime) or nullISO 8601 datetimeMetering service effective from date.
metering_service_etdNostring(datetime) or nullISO 8601 datetimeMetering service effective to date.
data_service_dip_idNostring or nullNot specifiedCurrent data service DIP ID.
data_service_mpidNostring or nullNot specifiedCurrent data service MPID.
data_service_efdNostring(datetime) or nullISO 8601 datetimeData service effective from date.
data_service_etdNostring(datetime) or nullISO 8601 datetimeData service effective to date.
mdr_dip_idNostring or nullNot specifiedMeter data retriever DIP ID.
mdr_mpidNostring or nullNot specifiedMeter data retriever MPID.
mdr_efdNostring(datetime) or nullISO 8601 datetimeMeter data retriever effective from date.
customer_direct_contract_metering_serviceNoboolean or nullN/ACustomer direct contract metering service flag.
customer_direct_contract_metering_service_mpidNostring or nullNot specifiedCustomer contracted metering service MPID.
customer_direct_contract_metering_service_dip_idNostring or nullNot specifiedCustomer contracted metering service DIP ID.
customer_direct_contract_metering_service_efdNostring(datetime) or nullISO 8601 datetimeCustomer contracted metering service effective from date.
customer_direct_contract_metering_service_etdNostring(datetime) or nullISO 8601 datetimeCustomer contracted metering service effective to date.
customer_direct_contract_data_serviceNoboolean or nullN/ACustomer direct contract data service flag.
customer_direct_contract_data_service_mpidNostring or nullNot specifiedCustomer contracted data service MPID.
customer_direct_contract_data_service_dip_idNostring or nullNot specifiedCustomer contracted data service DIP ID.
customer_direct_contract_data_service_efdNostring(datetime) or nullISO 8601 datetimeCustomer contracted data service effective from date.
customer_direct_contract_data_service_etdNostring(datetime) or nullISO 8601 datetimeCustomer contracted data service effective to date.
dcc_service_flagNostring or nullNot specifiedDCC service flag.
dcc_service_flag_efdNostring(datetime) or nullISO 8601 datetimeDCC service flag effective from date.
ihd_install_statusNostring or nullNot specifiedIHD install status.
ihd_install_status_efdNostring(datetime) or nullISO 8601 datetimeIHD install status effective from date.
smso_idNostring or nullNot specifiedSMSO identifier.
smso_id_efdNostring(datetime) or nullISO 8601 datetimeSMSO effective from date.
profile_classNostring or nullNot specifiedProfile class.
profile_class_efdNostring(datetime) or nullISO 8601 datetimeProfile class effective from date.
sscNostring or nullNot specifiedSSC value.
ssc_efdNostring(datetime) or nullISO 8601 datetimeSSC effective from date.
registration_idNoUUID or nullUUID (36 characters when serialized)CSS registration ID.
registration_status_efdNostring(datetime) or nullISO 8601 datetimeRegistration status effective from date.
supplier_mpidNostring or nullNot specifiedSupplier MPID associated to MPAN record.
registration_statusNostring or nullEnum values: Pending, Confirmed, Cancelled, Withdrawn, SecuredActive, SecuredInactive, Active, InactiveRegistration status.
supply_start_dateNostring(datetime) or nullISO 8601 datetimeSupply start date.
supply_end_dateNostring(datetime) or nullISO 8601 datetimeSupply end date.
disconnection_dateNostring(datetime) or nullISO 8601 datetimeMPAN disconnection date, when recorded.
consent_granularityNostring or nullNot specifiedConsent granularity value.
consent_granularity_efdNostring(datetime) or nullISO 8601 datetimeConsent granularity effective from date.
measurement_class_idNostring or nullNot specifiedMeasurement class identifier.

Additional Fields​

FieldRequiredTypeLength / FormatNotes
health_statusNostring(enum)healthy, pending, failed, unknownDefault unknown; see MPAN Health.
health_issuesNoarrayHealth issue itemsDefault []; returned on the single MPAN response only.
updatedYesstring(datetime)ISO 8601 datetimeLast updated timestamp for the MPAN record.
related_mpansNoobject or nullSee nested shape belowRelated MPAN relationships (if any).
linked_mpansNoobject or nullSee nested shape belowLinked import/export MPAN relationships (if any).
migration_statusesYesarrayMigration-status itemsDefaults to [] if no migration statuses.
FieldRequiredTypeLength / FormatNotes
primary_mpanYes (when object present)integer13 digitsMPAN returned by query.
secondary_mpansYes (when object present)arrayN/ARelated secondary MPAN records.
secondary_mpans[].mpan_coreYesstring13 numeric digits in practiceRelated MPAN core.
secondary_mpans[].effective_fromYesstring(datetime)ISO 8601 datetimeRelationship start datetime.
secondary_mpans[].effective_toYesstring(datetime) or nullISO 8601 datetimeRelationship end datetime; field is present and may be null.

linked_mpans nested object​

FieldRequiredTypeLength / FormatNotes
import_mpanYes (when object present)integer13 digitsImport MPAN core.
import_supplier_mpidYes (when object present)stringNot specifiedSupplier MPID for import MPAN.
export_mpansYes (when object present)arrayN/ALinked export MPAN records.
export_mpans[].mpan_coreYesstring13 numeric digits in practiceExport MPAN core.
export_mpans[].effective_fromYesstring(datetime)ISO 8601 datetimeRelationship start datetime.
export_mpans[].effective_toYesstring(datetime) or nullISO 8601 datetimeRelationship end datetime; field is present and may be null.
export_mpans[].export_supplier_mpidYesstringNot specifiedSupplier 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 conditionHealth statusIssue reason
Pending with an SLA deadline at or before the current timependingoverdue
Pending with no SLA deadline or a future deadlinependingpending
Failed with a missing or future end timestampunknownfailure_time_unknown
Failed within the last 48 hours with a qualifying SLA breachfailedsla_breach
Failed within the last 48 hours without a qualifying SLA breachfailedrecent_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 healthy with health_issues: [].
  • Overdue pending processes remain pending until the process fails.
  • A qualifying SLA breach has a recorded deadline and an SLA_BREACH exception 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​

FieldRequiredTypeLength / FormatNotes
issue_typeYesstring(enum)process, appointmentMetering and data service appointment processes use appointment; other process types use process.
process_idYesstring(UUID)UUID formatSupplier process identifier.
process_typeYesstring(enum)Supplier process typeIncludes reading submissions and data-service-notification-request.
process_statusYesstring(enum)Pending, Success, FailedHealth issues are returned for Pending and Failed processes only.
reasonYesstring(enum)pending, overdue, recent_failure, sla_breach, failure_time_unknownHealth issue reason.
failed_atNostring(datetime) or nullISO 8601 datetimeFailed process end timestamp; null for pending processes or a missing end timestamp.
sla_due_atNostring(datetime) or nullISO 8601 datetimeEarliest pending-message deadline for pending processes, or qualifying SLA breach deadline for failed processes; null when absent.

Appointment History Response​

FieldRequiredTypeFormat / Constraints
metering_serviceNoarrayAppointment items; defaults to []
data_serviceNoarrayAppointment items; defaults to []
meter_data_retrieverNoarrayAppointment items; defaults to []

Each appointment item has:

FieldRequiredTypeFormat / Constraints
idYesstringAppointment identifier
agent_nameYesstringAgent name
roleYesstringAgent role
dip_idYesstringDIP participant ID
mpidYesstringMarket participant ID
effective_fromYesstring(datetime)ISO 8601 datetime
effective_toNostring(datetime) or nullDefaults to null

Migration Status​

FieldRequiredTypeLength / FormatNotes
typeYesstring(enum)Enum: forward, reverseMigration direction.
mhhs_regime_end_dateNostring(datetime) or nullISO 8601 datetimeMHHS regime end date.
outgoing_metering_service_dip_idNostring or nullNot specifiedOutgoing metering service DIP ID.
outgoing_metering_service_mpidNostring or nullNot specifiedOutgoing metering service MPID.
outgoing_metering_service_effective_from_dateNostring(datetime) or nullISO 8601 datetimeOutgoing metering service start.
outgoing_metering_service_effective_to_dateNostring(datetime) or nullISO 8601 datetimeOutgoing metering service end.
outgoing_metering_service_deappointment_reason_codeNostring or nullNot specifiedDeappointment reason.
outgoing_data_service_dip_idNostring or nullNot specifiedOutgoing data service DIP ID.
outgoing_data_service_mpidNostring or nullNot specifiedOutgoing data service MPID.
outgoing_data_service_effective_from_dateNostring(datetime) or nullISO 8601 datetimeOutgoing data service start.
outgoing_data_service_effective_to_dateNostring(datetime) or nullISO 8601 datetimeOutgoing data service end.
outgoing_data_service_deappointment_reason_codeNostring or nullNot specifiedDeappointment reason.
incoming_mop_mpidNostring or nullNot specifiedIncoming MOP MPID.
incoming_mop_effective_from_dateNostring(datetime) or nullISO 8601 datetimeIncoming MOP start.
incoming_dc_mpidNostring or nullNot specifiedIncoming DC MPID.
incoming_dc_effective_from_dateNostring(datetime) or nullISO 8601 datetimeIncoming DC start.
incoming_supplier_mpidYesstringNot specifiedIncoming supplier MPID.
incoming_supplier_dip_idYesstringNot specifiedIncoming supplier DIP ID.
incoming_supplier_effective_from_dateYesstring(datetime)ISO 8601 datetimeIncoming supplier start date.
old_supplier_mpidNostring or nullNot specifiedPrevious supplier MPID.
old_data_aggregator_mpidNostring or nullNot specifiedPrevious DA MPID.
old_data_aggregator_typeNostring or nullNot specifiedPrevious DA type.
old_data_collector_mpidNostring or nullNot specifiedPrevious DC MPID.
old_data_collector_typeNostring or nullNot specifiedPrevious DC type.
old_meter_operator_mpidNostring or nullNot specifiedPrevious MOP MPID.
old_meter_operator_typeNostring or nullNot specifiedPrevious MOP type.