Skip to main content

GET /notifications/v1/{mpid}

Returns notifications for a supplier, optionally filtered by receive time, completion status, and MPAN.

Request​

Method and path:

  • GET /notifications/v1/{mpid}?received_on=2026-03-20T00:00:00+00:00&completed=false&mpan_id=1234567890123

Headers:

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

Path parameters:

  • mpid (required): string supplier MPID.

Query parameters:

  • from_date and to_date (optional): dates in YYYY-MM-DD format. Supply both to filter received_on by inclusive UTC dates. The period must contain at most 3660 calendar days; to_date must be before 9999-12-31. Applies with the existing received_on timestamp filter. Omit both for no date-range filter.
  • received_on (optional): string datetime in ISO 8601 format. Filters notifications received on or after this timestamp.
  • completed (optional): boolean. Defaults to false.
  • mpan_id (optional): integer MPAN core.
  • q (optional): string, maximum 200 characters. Case-insensitive literal substring search over MPAN core or notification type. Outer whitespace is trimmed; % and _ are literal characters.
  • limit (optional): integer, minimum 1, maximum 200. Defaults to 25 when only offset is supplied.
  • offset (optional): integer, minimum 0. Defaults to 0 when only limit is supplied.

Request body:

  • None.

Response​

Paginated response​

Supplying limit or offset returns 200 OK with QueuePage[NotificationResponse].

{
"data": [],
"total_count": 0,
"limit": 25,
"offset": 0,
"has_more": false
}

Notes:

  • total_count counts filtered matches before pagination.
  • Empty pages return 200 OK with data: [].
  • Both modes sort by received_on, then ID, both descending.

Unpaginated response​

Without limit or offset, returns an array.

Success:

  • 200 OK
  • Body type: array of NotificationResponse
[
{
"id": "948a9974-b8c9-4f4d-bef1-70c1b8b30a78",
"mpan_core": 1234567890123,
"received_on": "2026-03-20T08:15:00+00:00",
"notification_type": "RejectedConsumption",
"detail": {
"issuing_data_service_dip_id": "DIP-DC-001",
"connection_type": "H",
"connection_type_efd": "2026-01-01T00:00:00+00:00",
"mqid": "AI"
},
"completed": false,
"completed_on": null
}
]

No content case:

  • 204 No Content when no notifications match the filters.

Validation error:

  • 400 Bad Request when only one date is supplied, from_date is after to_date, or the period exceeds the date limits.
  • 422 Unprocessable Entity for malformed from_date or to_date.
  • 422-style SSI validation response when received_on is not valid ISO 8601.
  • 422 Unprocessable Entity for q longer than 200 characters, limit outside 1–200, or negative offset.

Full field definitions: