Skip to main content

Data Service Schema Reference

Headers and Parameters

FieldLocationRequiredTypeFormat / Constraints
X-API-KEYHeaderYesstringUUID format
X-IDEMPOTENCY-KEYHeaderYesstringNon-empty string
X-TEST-MODEHeaderNostringOptional; "true" enables test mode
mpidPathYesstringSupplier MPID

Request Schema

FieldRequiredTypeFormat / Constraints
mpan_coreYesintegerExactly 13 digits, numeric
data_service_mpidYesstringExactly 4 alphabetic characters
effective_fromYesstring(datetime)ISO 8601 with timezone; must be midnight; cannot be 28 days or more in the future
contract_referenceNostring or nullMax 50 chars; must be alphanumeric
appointment_scenarioYesstring(enum)One of COS, CSP, USP, SEG, MCA, MCS
mdr_mpidNostring or nullIf provided: exactly 4 alphabetic characters
mdr_effective_fromConditionalstring(datetime) or nullRequired when mdr_mpid is supplied; ISO 8601 with timezone
consent_granularityYesstring(enum)One of H, D, M, N
domestic_premise_indicatorYesbooleantrue or false
fall_back_read_frequencyNostring(enum) or nullOne of F, W, M, Q, S, A

Additional validation notes:

  • Unknown fields are explicitly rejected.
  • consent_granularity and domestic_premise_indicator are required on this endpoint.

Response Schema

FieldRequiredTypeFormat / Constraints
request_idYesstringUUID
request_typeYesstringProcess type name
request_statusYesstring(enum)Pending, Success, Failed
descriptionNostring or nullOptional process description
created_atYesstring(datetime)ISO 8601 datetime
last_updated_atYesstring(datetime)ISO 8601 datetime
mpan_coreYesintegerMPAN core