Loss of Supplier Schema Reference
This page summarizes the request and response contract for the Loss of Supplier API.
Headers and Parameters
| Field | Location | Required | Type | Format / Constraints |
|---|---|---|---|---|
X-API-KEY | Header | Yes | string | UUID format |
X-IDEMPOTENCY-KEY | Header (POST) | Yes | string | Non-empty string |
X-TEST-MODE | Header (POST) | No | string | Optional; "true" enables test mode |
mpid | Path | Yes | string | Supplier MPID |
Invitation List Query Parameters
| Field | Location | Required | Type | Format / Constraints |
|---|---|---|---|---|
from_date | Query | No | string(date) | YYYY-MM-DD; inclusive UTC process creation date; supply with to_date |
to_date | Query | No | string(date) | YYYY-MM-DD; inclusive UTC process creation date; supply with from_date; period maximum 3660 calendar days; must be before 9999-12-31 |
q | Query | No | string | Maximum 200 characters; case-insensitive literal MPAN or gaining supplier MPID substring; outer whitespace trimmed |
limit | Query | No | integer | Minimum 1, maximum 200; default 25 when only offset is supplied |
offset | Query | No | integer | Minimum 0; default 0 when only limit is supplied |
Paginated Invitation Response Schema
Returned when limit or offset is supplied.
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
data | Yes | array of LoSInvitationResponseSchema | May be empty |
total_count | Yes | integer | Minimum 0; eligible matches after search and date filters, before pagination |
limit | Yes | integer | Minimum 1, maximum 200 |
offset | Yes | integer | Minimum 0 |
has_more | Yes | boolean | offset + data.length < total_count |
Invitation List Item Schema (LoSInvitationResponseSchema)
Used by:
GET /loss-of-supplier/v1/{mpid}/list
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
request_id | No | string(UUID) or null | UUID when present |
mpan_core | Yes | integer | Exactly 13 digits |
created_at | No | string(datetime) or null | ISO 8601 datetime |
active_registration_id | Yes | string | Max length 36 |
pending_registration_id | Yes | string | Max length 36 |
gaining_supplier_mpid | Yes | string | Max length 4 |
gaining_supplier_role | Yes | string | Max length 1 |
supply_start_date | Yes | string(datetime) | ISO 8601 datetime |
intervention_start_date | No | string(datetime) or null | ISO 8601 datetime |
objection_window_end_date | No | string(datetime) or null | ISO 8601 datetime |
annulment_window_end_date | No | string(datetime) or null | ISO 8601 datetime |
Intervention Request/Response Schema (InterventionSchema)
Used by:
POST /loss-of-supplier/v1/{mpid}/intervene
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
mpan_core | Yes | integer | Exactly 13 digits, numeric |
request_id | Yes | string | UUID |
intervention_type | Yes | string(enum) | Supported values: Objection, Annulment, NoObjection |
updated_at | No | string(datetime) or null | Returned in the response; ignored if supplied on request |
Additional validation notes:
- Missing or malformed
request_idvalues are rejected by UUID validation. - Send only documented request fields.