Reports Schema Notes
This API does not take a request body and returns ReportMessageSchema items.
With page and page_size, the items are returned in a pagination envelope. Empty pages return 200 OK with data: [].
Request Parameters
| Field | Location | Required | Type | Format / Constraints | Notes |
|---|---|---|---|---|---|
X-API-KEY | Header | Yes | string | Not specified in schema | Required for supplier authorization. |
mpid | Path | Yes | string | Not specified | Supplier MPID. |
received_start | Query | No | string(datetime) | ISO 8601 datetime | Inclusive lower bound on message created. |
received_end | Query | No | string(datetime) | ISO 8601 datetime | Inclusive upper bound on message created. |
message_type | Query | No | string | Exact match | DIP interface ID, for example REP-003A. |
page | Query | No | integer | Minimum 1 | One-based page; supply together with page_size. |
page_size | Query | No | integer | 1–100 | Supply together with page. |
sort_direction | Query | No | string | asc or desc, default desc | Whitespace stripped and case normalized; orders by message created, then ID. |
Additional validation:
- If both
received_startandreceived_endare present,received_startmust be before or equal toreceived_end. - Supplying only one pagination parameter or invalid sorting returns
400; out-of-range pagination values return422.
Paginated Response Schema (ReportMessagesPaginatedResponseSchema)
| Field | Required | Type | Format / Constraints | Notes |
|---|---|---|---|---|
data | Yes | array | ReportMessageSchema items | May be empty. |
pagination.page | Yes | integer | Minimum 1 | Requested one-based page. |
pagination.page_size | Yes | integer | 1–100 | Requested page size. |
pagination.total_count | Yes | integer | Not specified | Matching reports before pagination. |
Response Schema (ReportMessageSchema)
| Field | Required | Type | Format / Constraints | Notes |
|---|---|---|---|---|
id | Yes | string | UUID | Market system message ID. |
inbound_outbound | Yes | string(enum) | Direction value | Typically inbound or outbound. |
status | Yes | string(enum) | Message status value | Message processing state. |
created | No | string(datetime) or null | ISO 8601 datetime | Message creation timestamp. |
updated | No | string(datetime) or null | ISO 8601 datetime | Last update timestamp. |
interface_id | No | string or null | Not specified | Report interface identifier, for example REP-003A. |
schema_version | No | string or null | Not specified | Message schema version. |
event_code | No | string or null | Not specified | DIP event code, for example AggregatedBMUnitAllocatedDemandVolumes. |
sender_dip_id | No | string or null | Not specified | Sender DIP ID. |
sender_role_id | No | string or null | Not specified | Sender role code. |
decoded_message | No | object or null | Free-form JSON object | Decoded report payload. |