Skip to main content

Loss of Supplier Schema Reference

This page summarizes the request and response contract for the Loss of Supplier API.

Headers and Parameters​

FieldLocationRequiredTypeFormat / Constraints
X-API-KEYHeaderYesstringUUID format
X-IDEMPOTENCY-KEYHeader (POST)YesstringNon-empty string
X-TEST-MODEHeader (POST)NostringOptional; "true" enables test mode
mpidPathYesstringSupplier MPID

Invitation List Query Parameters​

FieldLocationRequiredTypeFormat / Constraints
from_dateQueryNostring(date)YYYY-MM-DD; inclusive UTC process creation date; supply with to_date
to_dateQueryNostring(date)YYYY-MM-DD; inclusive UTC process creation date; supply with from_date; period maximum 3660 calendar days; must be before 9999-12-31
qQueryNostringMaximum 200 characters; case-insensitive literal MPAN or gaining supplier MPID substring; outer whitespace trimmed
limitQueryNointegerMinimum 1, maximum 200; default 25 when only offset is supplied
offsetQueryNointegerMinimum 0; default 0 when only limit is supplied

Paginated Invitation Response Schema​

Returned when limit or offset is supplied.

FieldRequiredTypeFormat / Constraints
dataYesarray of LoSInvitationResponseSchemaMay be empty
total_countYesintegerMinimum 0; eligible matches after search and date filters, before pagination
limitYesintegerMinimum 1, maximum 200
offsetYesintegerMinimum 0
has_moreYesbooleanoffset + data.length < total_count

Invitation List Item Schema (LoSInvitationResponseSchema)​

Used by:

  • GET /loss-of-supplier/v1/{mpid}/list
FieldRequiredTypeFormat / Constraints
request_idNostring(UUID) or nullUUID when present
mpan_coreYesintegerExactly 13 digits
created_atNostring(datetime) or nullISO 8601 datetime
active_registration_idYesstringMax length 36
pending_registration_idYesstringMax length 36
gaining_supplier_mpidYesstringMax length 4
gaining_supplier_roleYesstringMax length 1
supply_start_dateYesstring(datetime)ISO 8601 datetime
intervention_start_dateNostring(datetime) or nullISO 8601 datetime
objection_window_end_dateNostring(datetime) or nullISO 8601 datetime
annulment_window_end_dateNostring(datetime) or nullISO 8601 datetime

Intervention Request/Response Schema (InterventionSchema)​

Used by:

  • POST /loss-of-supplier/v1/{mpid}/intervene
FieldRequiredTypeFormat / Constraints
mpan_coreYesintegerExactly 13 digits, numeric
request_idYesstringUUID
intervention_typeYesstring(enum)Supported values: Objection, Annulment, NoObjection
updated_atNostring(datetime) or nullReturned in the response; ignored if supplied on request

Additional validation notes:

  • Missing or malformed request_id values are rejected by UUID validation.
  • Send only documented request fields.