Smart Transfer of Reads Schema Reference
Headers and Parameters
| Field | Location | Required | Type | Format / Constraints |
|---|---|---|---|---|
X-API-KEY or Authorization | Header | One | string | API key or Bearer <token>; API key takes precedence |
X-IDEMPOTENCY-KEY | Header (POST) | Yes | string | Non-empty string |
mpid | Path | Yes | string | Supplier MPID |
comparison_request_id | Decision/detail path | Yes | string(UUID) | Supplier-owned comparison ID |
request_id | Submission body/process path | Yes | string(UUID) | Parent supplier-process ID |
mpan_core | MPAN comparison path | Yes | integer | MPAN core |
page | List query | No | integer | Minimum 1; default 1 |
page_size | List query | No | integer | 1–200; default 50 |
Request Schema (SmartTransferOfReadsReadingSubmissionRequestSchema)
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
mpan_core | Yes | integer | Must match the supplier-owned parent process |
request_id | Yes | string(UUID) | Existing parent supplier-process ID |
purpose | Yes | string(enum) | STOR_LOSS_NO_DATA_READING |
bsc_validation | No | string(enum) | F, U, V; default U |
meter_readings | Yes | array | Must cover every transfer-date Smart meter exactly once |
meter_readings[].meter_id | Yes | string | Transfer-date Smart meter identifier |
meter_readings[].reading_type | Yes | string | Exactly 1 character |
meter_readings[].meter_reading_flag | No | boolean or null | Default null |
meter_readings[].cumulative_read | Yes | object | One cumulative reading per meter |
cumulative_read.reading_datetime | Yes | string(datetime) | Parseable ISO 8601 datetime |
cumulative_read.reading | Yes | string | 1–14 characters; pattern ^[0-9]+(?:\.[0-9]+)?$ |
cumulative_read.reading_method | Yes | string(enum) | A, C, E, S |
cumulative_read.md_reset_datetime | No | string(datetime) or null | Parseable ISO 8601 datetime |
cumulative_read.md_reset_count | No | integer or null | Default null |
Additional validation:
- Unknown fields are rejected at every level; site-visit and register-level fields are not accepted.
- The outgoing no-data alert, losing route and pending
AWAITING_EVIDENCEprocess are required. - Values must fit the ten-character outbound D0010 field after truncation towards zero to one decimal place.
Rejection Request Schemas
SmartRejectComparisonRequest
Used for initial/dispute counterproposals. A Smart CoA rejection may use {} and does not send D0300.
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
additional_information | No | string or null | Maximum 200 characters; saved with the outbound proposal message |
record_rejection_reason_indicator | No | string or null | Maximum 2 characters |
meters | No | array | Default []; counterproposal requires meters |
meters[].meter_id | Yes | string | 1–10 characters |
meters[].registers | Yes | array | At least one register |
meters[].registers[].register_id | Yes | string | 1–2 characters; Smart proposals use C |
meters[].registers[].disputed_reading_value | No | decimal or null | Finite; maximum 10 characters |
meters[].registers[].proposed_reading_value | No | decimal or null | Finite; maximum 10 characters |
meters[].registers[].reading_datetime | Conditional | string(datetime) or null | Required with proposed value; timezone-aware |
meters[].registers[].reading_method | Conditional | string(enum) or null | Required with proposed value; A, C, E, S |
meters[].registers[].proposed_reading_type | Conditional | string(enum) or null | Required with proposed value; values below |
meters[].registers[].d0300_proposed_reading_status | Conditional | string(enum) or null | Counterproposal requires A or P |
meters[].registers[].rejection_reason | No | string or null | Maximum 50 characters |
meters[].registers[].change_of_supplier_reading_rejection_code | No | string or null | Maximum 2 characters |
Allowed proposed_reading_type values: A, C, D, F, I, M, O, P, Q, R, S, T, W, Z.
Additional validation:
- Unknown top-level fields are rejected.
(meter_id, register_id)pairs must be unique; every row requires a disputed or proposed value.reading_datetimeandreading_methodcannot be supplied without a proposed value.- Counterproposals require full transfer-date meter coverage, exactly one cumulative register per meter and a proposed value for every row.
SmartRejectEstimateComparisonRequest
Used only for MANUAL_SMART_LOSS_ESTIMATE; supplies replacement readings. Unknown fields are rejected at both levels.
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
bsc_validation | No | string(enum) | F, U, V; default U |
meters | Yes | array | At least one meter; full transfer-date meter coverage |
meters[].meter_id | Yes | string | 1–10 characters; each meter appears once |
meters[].reading_type | Yes | string(enum) | Same values as proposed_reading_type above |
meters[].meter_reading_flag | No | boolean or null | Default null |
meters[].reading_datetime | Yes | string(datetime) | Timezone-aware |
meters[].reading_method | Yes | string(enum) | A, C, E, S |
meters[].cumulative_register_reading | Yes | decimal | Finite, non-negative; at most 14 digits and 14 characters |
Replacement values must also fit D0010 after truncation to one decimal place.
Comparison Response Schemas
SmartComparisonRequestSummary
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
comparison_request_id, request_id | Yes | string(UUID) | Decision and parent IDs |
mpan_core | Yes | integer | MPAN core |
comparison_version, decision_guidance_code, status | Yes | string | Version, guidance and comparison status |
decision_available_at, decision_due_at | No | string(datetime) or null | Actionable timestamp and deadline |
result_status | No | string or null | Saved outcome detail |
created_at | Yes | string(datetime) | Creation timestamp |
completed_at | No | string(datetime) or null | Completion timestamp |
Versions: MANUAL_SMART_INITIAL, MANUAL_SMART_LOSS_ESTIMATE, MANUAL_SMART_COA, MANUAL_SMART_DISPUTE.
Statuses: WAITING_FOR_EVIDENCE, AWAITING_DECISION, RUNNING, RETRYABLE, ACCEPTED, REJECTED, FAILED, CANCELLED.
SmartComparisonRequestHistoryResponse
Used by open, history and MPAN lists.
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
comparison_requests | Yes | array | SmartComparisonRequestSummary items; may be empty |
pagination | Yes | object | Pagination details |
pagination.page | Yes | integer | Page number |
pagination.page_size | Yes | integer | Page size |
pagination.total_count | Yes | integer | Matching comparisons before pagination |
SmartComparisonRequestDetailResponse
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
comparison_request_id, request_id | Yes | string(UUID) | Decision and parent IDs |
comparison_version, decision_guidance_code, status | Yes | string | Version, guidance and comparison status |
decision_available_at, decision_due_at | Yes | string(datetime) or null | Actionable timestamp and deadline |
decision_guidance | Yes | object | summary and responses below |
result_status | Yes | string or null | Saved outcome detail |
evidence | Yes | array | May be empty |
evidence[].source, evidence[].meter_id, evidence[].reading_method | Yes | string | Reading source and metadata |
evidence[].reading_datetime | Yes | string(datetime) | Reading timestamp |
evidence[].cumulative_reading | Yes | decimal string | Cumulative value |
proposal | Yes | object or null | Selected comparison's proposal |
proposal.dispute_type, proposal.status | Yes | string | Dispute type and status |
proposal.record_rejection_reason_indicator | Yes | string or null | Rejection indicator |
proposal.meters | Yes | array | Meter ID and register array |
proposal.meters[].registers[].register_id | Yes | string | Register ID |
proposal.meters[].registers[].disputed_reading_value, proposal.meters[].registers[].proposed_reading_value | Yes | decimal string or null | Reading values |
proposal.meters[].registers[].proposed_reading_type, proposal.meters[].registers[].d0300_proposed_reading_status | Yes | string or null | Proposal metadata |
proposal.meters[].registers[].rejection_reason, proposal.meters[].registers[].change_of_supplier_reading_rejection_code | Yes | string or null | Rejection details |
created_at | Yes | string(datetime) | Creation timestamp |
Decision Guidance
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
summary | Yes | string | Decision summary |
responses | Yes | array | Available responses |
responses[].code | Yes | string | Response code |
responses[].label | Yes | string | Response label |
responses[].description | Yes | string | Response description |
responses[].requires_proposal | Yes | boolean | Whether the response requires a proposal |
SmartComparisonDecisionResponse
Used by accept, reject and cancel.
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
comparison_request_id | Yes | string(UUID) | Comparison ID |
status | Yes | string | ACCEPTED, REJECTED or CANCELLED, respectively |
additional_information | No | string or null | Manual-resolution message for CoA rejection |
Process Readings Response (SmartTransferOfReadsLinkedReadingsResponseSchema)
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
readings | Yes | array | Reading objects below; may be empty |
pagination | Yes | object | Pagination details |
pagination.page | Yes | integer | Page number |
pagination.page_size | Yes | integer | Page size |
pagination.total_count | Yes | integer | Matching reading links before pagination |
Every reading field below is present, including nullable fields.
| Field | Type | Format / Constraints |
|---|---|---|
source | string | Reading-link source |
purpose | string or null | Submission purpose |
source_message_reference | string or null | DIP sender reference or DTN file ID |
meter_id | string | Meter identifier |
reading_datetime | string(datetime) | Reading timestamp |
cumulative_reading, reading_method | string | Value and method |
reading_type, bsc_validation_status | string or null | Reading metadata |
meter_reading_flag | boolean or null | Meter reading flag |
md_reset_datetime | string(datetime) or null | Maximum-demand reset timestamp |
number_of_md_resets | decimal string or null | Reset count |
site_visit_check_code | string or null | Site visit code |
Process Response (SmartTransferOfReadsResponseSchema)
Used by reading submission; reports the existing parent process.
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
request_id | Yes | string(UUID) | Parent supplier-process ID |
request_type | No | string | Process type |
request_status | Yes | string(enum) | Pending, Success, Failed |
initiated_by, description | No | string or null | Initiator and description |
created_at, last_updated_at | Yes | string(datetime) | Process timestamps |
mpan_core | No | integer or null | MPAN core |
Request Search Process Details
Used by GET /requests/v1/{mpid} when request_type=smart-transfer-of-reads.
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
incoming_outgoing_supplier | Yes | string(enum) | Incoming or Outgoing |
counterparty_supplier_mpid | Yes | string or null | Counterparty supplier MPID |
status | Yes | string(enum) | Values below |
messages | No | array | Present when show_messages=true; linked market messages |
Statuses: AWAITING_EVIDENCE, AWAITING_COMPARISON, AWAITING_DISPUTE, MANUAL_INVESTIGATION, AWAITING_DISPUTE_PERIOD, COMPLETED, FAILED.
Manual Closure Schemas
ManualTorCloseRequest
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
outcome | Yes | string(enum) | COMPLETE or FAILED |
reason | Yes | string | Trimmed; must not be empty |
Unknown fields are rejected. Only a pending process in MANUAL_INVESTIGATION can be closed.
ManualTorCloseResponse
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
request_id | Yes | string(UUID) | Parent supplier-process ID |
status | Yes | string | COMPLETED or FAILED |
outcome | Yes | string(enum) | COMPLETE or FAILED |