Data Service Schema Reference
Headers and Parameters
| Field | Location | Required | Type | Format / Constraints |
|---|---|---|---|---|
X-API-KEY | Header | Yes | string | UUID format |
X-IDEMPOTENCY-KEY | Header | Yes | string | Non-empty string |
X-TEST-MODE | Header | No | string | Optional; "true" enables test mode |
mpid | Path | Yes | string | Supplier MPID |
Request Schema
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
mpan_core | Yes | integer | Exactly 13 digits, numeric |
data_service_mpid | Yes | string | Exactly 4 alphabetic characters |
effective_from | Yes | string(datetime) | ISO 8601 with timezone; must be midnight; cannot be 28 days or more in the future |
contract_reference | No | string or null | Max 50 chars; must be alphanumeric |
appointment_scenario | Yes | string(enum) | One of COS, CSP, USP, SEG, MCA, MCS, ALG |
mdr_mpid | Conditional | string or null | Required when mdr_effective_from is supplied; exactly 4 alphabetic characters |
mdr_effective_from | Conditional | string(datetime) or null | Required when mdr_mpid is supplied; timezone-aware and must resolve to midnight UTC |
consent_granularity | Yes | string(enum) | One of H, D, M, N |
domestic_premise_indicator | Yes | boolean | true or false |
fall_back_read_frequency | No | string(enum) or null | One of F, W, M, Q, S, A, x |
Additional validation notes:
mdr_mpidandmdr_effective_frommust be supplied together.mdr_effective_frommust resolve to midnight UTC.- Unknown fields are explicitly rejected.
consent_granularityanddomestic_premise_indicatorare required on this endpoint.
Response Schema
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
request_id | Yes | string | UUID |
request_type | Yes | string | Process type name |
request_status | Yes | string(enum) | Pending, Success, Failed |
description | No | string or null | Optional process description |
created_at | Yes | string(datetime) | ISO 8601 datetime |
last_updated_at | Yes | string(datetime) | ISO 8601 datetime |
mpan_core | No | integer or null | MPAN core; may be absent from a generic process response |