GET /requests/v1/{mpid}
Searches supplier processes and returns process metadata plus typed request_data for each matched process.
Request
Method and path:
GET /requests/v1/{mpid}
Headers:
X-API-KEYorAuthorization: Bearer <token>(one required). API key takes precedence when both are supplied.
Path parameters:
mpid(required): string supplier MPID.
Query parameters:
mpan_id(optional): integer MPAN core filter.request_id(optional): UUID process identifier.request_type(optional): string, case-insensitive substring filter on process type names. Supported names are returned by GET process types.request_status(optional): string process status filter. Use one or more comma-separated values:Pending,Success,Failed.start_date(optional): parseable date or datetime string. If only a date is provided,00:00:00is applied.end_date(optional): parseable date or datetime string. If only a date is provided,23:59:59is applied. If omitted, it defaults to the current day at23:59:59.show_messages(optional): boolean, defaultfalse. Whentrue, message fields are included for request types that provide them.page(optional): integer, minimum1. Must be provided withpage_size.page_size(optional): integer, minimum1, maximum200. Must be provided withpage.sort_direction(optional): string, eitherascordesc. Defaults todesc.
Request body:
- None.
Response
Success:
200 OK- Body type:
List[dict]when pagination is not requested. - Body type: paginated response object when
pageandpage_sizeare provided.
Unpaginated responses return a list. Each item has this top-level shape:
[
{
"metadata": {
"request_id": "72f30f06-afcc-4ad8-8c1f-78e556ea9cbc",
"request_type": "consumption-amendment",
"request_status": "Pending",
"initiated_by": null,
"description": "Consumption Amendment Process",
"created_at": "2026-03-11T14:04:22+00:00",
"last_updated_at": "2026-03-11T14:04:22+00:00",
"mpan_core": 1234567890123,
"errors": []
},
"request_data": {
"supplier_reference": "CA-2026-0001",
"period_start_date": "2026-02-01T00:00:00+00:00",
"period_end_date": "2026-02-29T00:00:00+00:00",
"measurement_quantity_id": "AI",
"gross_revised_consumption": "3500.125",
"reason_code": "A"
}
}
]
Paginated responses wrap the same items in data and include pagination details:
{
"data": [
{
"metadata": {
"request_id": "72f30f06-afcc-4ad8-8c1f-78e556ea9cbc",
"request_type": "change-of-supplier",
"request_status": "Failed",
"initiated_by": null,
"description": "Change of Supplier Process",
"created_at": "2026-03-11T14:04:22+00:00",
"last_updated_at": "2026-03-11T14:05:11+00:00",
"mpan_core": 1234567890123,
"errors": [
{
"code": "COS_CSS2380_REJECTED",
"title": "Change of supplier rejected",
"message": "The change of supplier request was rejected during CSS validation.",
"severity": "ERROR",
"details": {
"response_code": "R",
"message_type": "CSS2380"
}
}
]
},
"request_data": {
"supply_start_date": "2026-03-20T00:00:00+00:00",
"domestic_indicator": true
}
}
],
"pagination": {
"page": 1,
"page_size": 10,
"total_count": 25
}
}
Notes:
request_datais polymorphic. Its shape depends on the matchedrequest_type.metadata.errorsis always returned as an array. It is empty when no alerts have been recorded for the request.- Results include only the supported request types. Unsupported types are excluded before counting and pagination.
- For
metering-changes,show_messagesdoes not change the wrapper shape.
Bad request case:
400ifstart_dateorend_datecannot be parsed.400if only one ofpageorpage_sizeis provided.400ifsort_directionis notascordesc.400ifrequest_statuscontains unsupported values or only empty comma-separated tokens.
Field-level constraints: