Skip to main content

GET /loss-of-supplier/v1/{mpid}/list

Returns active invitations to intervene for the losing supplier identified by mpid.

Request​

Method and path:

  • GET /loss-of-supplier/v1/{mpid}/list

Headers:

  • X-API-KEY (required): string, UUID format.

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 process creation timestamps by inclusive UTC dates. The period must contain at most 3660 calendar days; to_date must be before 9999-12-31. Omit both for no date-range filter.
  • q (optional): string, maximum 200 characters. Case-insensitive literal substring search over MPAN core or gaining supplier MPID. 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[LoSInvitationResponseSchema].

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

Notes:

  • Eligibility, search and date filters apply before counting and pagination; incomplete invitations are excluded.
  • Invitations require a pending process and open annulment window. Submitted interventions or validated objections/annulments exclude them.
  • Results sort by process creation timestamp, then ID, both descending.
  • Empty pages return 200 OK with data: [].

Unpaginated response​

Without limit or offset, returns an array with the same filters and ordering.

Success:

  • 200 OK
  • Body type: array of objects validated against LoSInvitationResponseSchema
[
{
"request_id": "72f30f06-afcc-4ad8-8c1f-78e556ea9cbc",
"mpan_core": 1234567890123,
"created_at": "2026-03-24T08:30:00+00:00",
"active_registration_id": "1a6ff4e9-29c0-42d1-a5bc-b51f3402cb4c",
"pending_registration_id": "3a5e6ec4-4e05-4a21-b10b-7c1ebf7a6c0e",
"gaining_supplier_mpid": "GAIN",
"gaining_supplier_role": "X",
"supply_start_date": "2026-03-29T00:00:00+00:00",
"intervention_start_date": "2026-03-24T00:00:00+00:00",
"objection_window_end_date": "2026-03-26T23:59:59+00:00",
"annulment_window_end_date": "2026-03-28T23:59:59+00:00"
}
]

No content case:

  • 204 No Content when there are no active invitations.

Auth errors:

  • 401 Unauthorized.

Validation errors:

  • 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 Unprocessable Entity for q longer than 200 characters, limit outside 1–200, or negative offset.

Schema details: