Skip to main content

Requests Status Schema Reference

Headers and Parameters​

FieldLocationRequiredTypeFormat / Constraints
X-API-KEY or AuthorizationHeaderOnestringAPI key or Bearer <token>; API key takes precedence
mpidPathYesstringSupplier MPID
mpan_idQueryNointegerMPAN core filter
request_idQueryNostringUUID filter
request_typeQueryNostringCase-insensitive substring filter on process type names
request_statusQueryNostringOne or more comma-separated values: Pending, Success, Failed
start_dateQueryNostringParseable date or datetime; date-only values use 00:00:00
end_dateQueryNostringParseable date or datetime; date-only values use 23:59:59
show_messagesQueryNobooleanDefaults to false
pageQueryNointegerMinimum 1; must be provided with page_size
page_sizeQueryNointegerMinimum 1, maximum 200; must be provided with page
sort_directionQueryNostring(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.

FieldRequiredTypeFormat / Constraints
valueYesstringSupported process type name; accepted by the request_type search filter
labelYesstringProcess type description

Search Response Shape​

Without pagination, the endpoint returns List[dict]. Each list item has this common structure:

FieldRequiredTypeFormat / Constraints
metadataYesobjectProcess metadata object
metadata.request_idYesstringUUID
metadata.request_typeYesstringProcess type name
metadata.request_statusYesstring(enum)Pending, Success, Failed
metadata.initiated_byNostring or nullInitiator identifier
metadata.descriptionNostring or nullProcess description
metadata.created_atYesstring(datetime)ISO 8601 datetime
metadata.last_updated_atYesstring(datetime)ISO 8601 datetime
metadata.mpan_coreNointeger or nullMPAN core when available
metadata.errorsYesarrayEmpty array when the request has no recorded alerts
request_dataYesobjectShape depends on request_type

When page and page_size are provided, the endpoint returns a paginated wrapper:

FieldRequiredTypeFormat / Constraints
dataYesarrayList of matching request records using the item shape above
paginationYesobjectPagination metadata
pagination.pageYesintegerRequested page number
pagination.page_sizeYesintegerRequested page size
pagination.total_countYesintegerTotal 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-reads
  • change-of-supplier
  • loss-of-supplier
  • change-of-reg-details
  • smart-transfer-of-reads
  • data-service-appointment
  • metering-service-appointment
  • contact-details-update
  • annual-consumption-change
  • disconnection-request
  • psr-details
  • change-of-energisation
  • metering-changes
  • consumption-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​

FieldRequiredTypeFormat / Constraints
request_idYesstringUUID
request_typeYesstringProcess type name
request_statusYesstring(enum)Pending, Success, Failed
initiated_byNostring or nullOptional
descriptionNostring or nullOptional
created_atYesstring(datetime)ISO 8601 datetime
last_updated_atYesstring(datetime)ISO 8601 datetime
mpan_coreNointeger or nullMPAN core; may be absent for process types without a single MPAN
errorsYesarray of alert objectsEmpty array when no alerts have been recorded

Alert Error Schema​

Alerts are returned in metadata.errors.

FieldRequiredTypeFormat / Constraints
codeYesstringAlert code
titleYesstringShort alert title
messageYesstringUser-facing alert message
severityYesstringAlert severity
detailsNoobject or nullAdditional alert details when available

Bad Request Cases​

The endpoint returns 400 when:

  • start_date or end_date cannot be parsed.
  • Only one of page or page_size is provided.
  • sort_direction is not asc or desc.
  • request_status contains unsupported values.
  • request_status only 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.

FieldRequiredTypeFormat / Constraints
step_idYesstringUUID
process_idYesstringUUID
statusYesstringpending, completed, or failed
message_type_idYesstringUUID
message_type_nameYesstringMarket message type name
mpan_coreNointeger or nullMPAN core when available
descriptionNostring or nullStep description
event_codeNostring or nullEvent code when available
sender_roleNostring or nullSender role when available
sender_idNostring or nullSender identifier when available
directionNostring(enum) or nullMarket-message direction
processing_successfulNoboolean or nullProcessing outcome when available
processing_errorNostring or nullProcessing error when available
exception_reasonNostring or nullException reason when available
exception_detailNostring or nullException details when available
occurred_atYesstring(datetime)ISO 8601 datetime
sla_due_atNostring(datetime) or nullISO 8601 deadline when applicable