Skip to main content

GET /reports/v1/{mpid}

Returns decoded REP-* market system messages for a supplier MPID.

Request​

Method and path:

  • GET /reports/v1/{mpid}?received_start=2026-03-20T00:00:00+00:00&received_end=2026-03-20T23:59:59+00:00

Headers:

  • X-API-KEY (required): string, API key used for tenant authorization.

Path parameters:

  • mpid (required): string supplier MPID.

Query parameters:

  • received_start (optional): ISO 8601 datetime. Filters messages created at or after this timestamp.
  • received_end (optional): ISO 8601 datetime. Filters messages created at or before this timestamp.
  • message_type (optional): string, case-sensitive exact interface_id filter, for example REP-003A. An empty value adds no restriction; no enum validation.
  • page (optional): integer >= 1, one-based page number. Must be supplied together with page_size.
  • page_size (optional): integer from 1 to 100. Must be supplied together with page.
  • sort_direction (optional): asc or desc, default desc. Surrounding whitespace is stripped and case is normalized. Orders by parent message created then ID, in the same direction.

If both datetime filters are supplied, received_start must be less than or equal to received_end.

Request body:

  • None.

Supported inbound reports are REP-002, REP-003, REP-003A, REP-004, REP-006, REP-007, REP-009, REP-900, and REP-901.

Response​

Paginated response​

Success:

  • 200 OK when both page and page_size are supplied.
  • Body type: ReportMessagesPaginatedResponseSchema
{
"data": [],
"pagination": {
"page": 2,
"page_size": 25,
"total_count": 12
}
}

Notes:

  • data contains report objects. total_count counts matching reports before pagination.
  • Empty and out-of-range pages return 200 OK with data: [] and the matching total.

Unpaginated response​

Without pagination parameters, the response is an array.

Success:

  • 200 OK
  • Body type: array of ReportMessageSchema
[
{
"id": "31e29fe5-c4aa-4140-851e-013386ad7d82",
"inbound_outbound": "inbound",
"status": "success",
"created": "2026-03-20T06:30:00+00:00",
"updated": "2026-03-20T06:30:02+00:00",
"interface_id": "REP-003A",
"schema_version": null,
"event_code": "AggregatedBMUnitAllocatedDemandVolumes",
"sender_dip_id": "DIP-DS-001",
"sender_role_id": "D",
"decoded_message": {}
}
]

No content case:

  • 204 No Content when no report messages match and pagination is not requested.

Bad request case:

  • 400 Bad Request when received_start is after received_end, only one pagination parameter is supplied, or sorting is not asc/desc after normalization.
  • 422 Unprocessable Entity for invalid datetimes, page < 1, or page_size outside 1–100.

Field notes: