Requests Status Schema Reference
Headers and Parameters
| Field | Location | Required | Type | Format / Constraints |
|---|---|---|---|---|
X-API-KEY or Authorization | Header | One | string | API key or Bearer <token>; API key takes precedence |
mpid | Path | Yes | string | Supplier MPID |
mpan_id | Query | No | integer | MPAN core filter |
request_id | Query | No | string | UUID filter |
request_type | Query | No | string | Case-insensitive substring filter on process type names |
request_status | Query | No | string | One or more comma-separated values: Pending, Success, Failed |
start_date | Query | No | string | Parseable date or datetime; date-only values use 00:00:00 |
end_date | Query | No | string | Parseable date or datetime; date-only values use 23:59:59 |
show_messages | Query | No | boolean | Defaults to false |
page | Query | No | integer | Minimum 1; must be provided with page_size |
page_size | Query | No | integer | Minimum 1, maximum 200; must be provided with page |
sort_direction | Query | No | string(enum) | asc or desc; defaults to desc |
Process Type Option Schema
GET /requests/v1/types/{mpid} returns an array of SupplierProcessTypeOption objects. Authentication accepts X-API-KEY or Authorization: Bearer <token>; API key takes precedence when both are supplied.
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
value | Yes | string | Supported process type name; accepted by the request_type search filter |
label | Yes | string | Process type description |
Search Response Shape
Without pagination, the endpoint returns List[dict]. Each list item has this common structure:
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
metadata | Yes | object | Process metadata object |
metadata.request_id | Yes | string | UUID |
metadata.request_type | Yes | string | Process type name |
metadata.request_status | Yes | string(enum) | Pending, Success, Failed |
metadata.initiated_by | No | string or null | Initiator identifier |
metadata.description | No | string or null | Process description |
metadata.created_at | Yes | string(datetime) | ISO 8601 datetime |
metadata.last_updated_at | Yes | string(datetime) | ISO 8601 datetime |
metadata.mpan_core | No | integer or null | MPAN core when available |
metadata.errors | Yes | array | Empty array when the request has no recorded alerts |
request_data | Yes | object | Shape depends on request_type |
When page and page_size are provided, the endpoint returns a paginated wrapper:
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
data | Yes | array | List of matching request records using the item shape above |
pagination | Yes | object | Pagination metadata |
pagination.page | Yes | integer | Requested page number |
pagination.page_size | Yes | integer | Requested page size |
pagination.total_count | Yes | integer | Total number of matching supported request records across all pages |
Request Data Variants Used by This Route
These request_type values are currently supported:
traditional-transfer-of-readschange-of-supplierloss-of-supplierchange-of-reg-detailssmart-transfer-of-readsdata-service-appointmentmetering-service-appointmentcontact-details-updateannual-consumption-changedisconnection-requestpsr-detailschange-of-energisationmetering-changesconsumption-amendment
show_messages=true includes message fields for request types that provide them.
For smart-transfer-of-reads and traditional-transfer-of-reads, request_data contains the process details:
For these ToR request types, show_messages=true adds a messages array of market message objects, ordered by creation timestamp and message ID.
Common Metadata Schema
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
request_id | Yes | string | UUID |
request_type | Yes | string | Process type name |
request_status | Yes | string(enum) | Pending, Success, Failed |
initiated_by | No | string or null | Optional |
description | No | string or null | Optional |
created_at | Yes | string(datetime) | ISO 8601 datetime |
last_updated_at | Yes | string(datetime) | ISO 8601 datetime |
mpan_core | No | integer or null | MPAN core; may be absent for process types without a single MPAN |
errors | Yes | array of alert objects | Empty array when no alerts have been recorded |
Alert Error Schema
Alerts are returned in metadata.errors.
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
code | Yes | string | Alert code |
title | Yes | string | Short alert title |
message | Yes | string | User-facing alert message |
severity | Yes | string | Alert severity |
details | No | object or null | Additional alert details when available |
Bad Request Cases
The endpoint returns 400 when:
start_dateorend_datecannot be parsed.- Only one of
pageorpage_sizeis provided. sort_directionis notascordesc.request_statuscontains unsupported values.request_statusonly contains empty comma-separated tokens.
Timeline Step Response Schema
GET /timeline/v1/{mpid} requires a UUID process_id query parameter and returns an array of these objects.
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
step_id | Yes | string | UUID |
process_id | Yes | string | UUID |
status | Yes | string | pending, completed, or failed |
message_type_id | Yes | string | UUID |
message_type_name | Yes | string | Market message type name |
mpan_core | No | integer or null | MPAN core when available |
description | No | string or null | Step description |
event_code | No | string or null | Event code when available |
sender_role | No | string or null | Sender role when available |
sender_id | No | string or null | Sender identifier when available |
direction | No | string(enum) or null | Market-message direction |
processing_successful | No | boolean or null | Processing outcome when available |
processing_error | No | string or null | Processing error when available |
exception_reason | No | string or null | Exception reason when available |
exception_detail | No | string or null | Exception details when available |
occurred_at | Yes | string(datetime) | ISO 8601 datetime |
sla_due_at | No | string(datetime) or null | ISO 8601 deadline when applicable |