Market Messages Schema Reference
Request Parameters
| Field | Location | Required | Type | Format / Constraints |
|---|---|---|---|---|
X-API-KEY | Header | Conditional | string | API key or bearer token required |
Authorization | Header | Conditional | string | Bearer <token>; API key takes precedence when both are supplied |
X-IDEMPOTENCY-KEY | Header (POST) | Yes | string | Non-empty string |
X-TEST-MODE | Header (POST) | No | string | Has no effect on resend requests. |
supplier_mpid | Path (GET) | Yes | string | Supplier MPID. |
mpid | Path (POST) | Yes | string | Supplier MPID authorized for the tenant. |
message_id | Path (POST) | Yes | string | UUID. |
message_type_name | Query (GET) | No | string | Exact message type name (for example IF-019, CSS1700). |
market_type | Query (GET) | No | string(enum) | Case-insensitive: dip, dtn, css. |
received_start | Query (GET) | No | string(datetime) | ISO 8601 datetime; inclusive lower bound on message created. |
received_end | Query (GET) | No | string(datetime) | ISO 8601 datetime; inclusive upper bound on message created. |
message_id | Query (GET) | No | string | UUID; exact parent market-message ID |
status | Query (GET) | No | string(enum) | Repeated values; queued, pending, failed, success |
direction | Query (GET) | No | string(enum) | inbound, outbound |
preview | Query (GET list) | No | boolean | Default false; requires limit or offset |
mpan_core | Query (GET) | No | string | Literal CSS/DIP MPAN substring; whitespace removed |
sort_by | Query (GET) | No | string(enum) | Case-sensitive created or direction; default created |
sort_direction | Query (GET) | No | string(enum) | Case-sensitive asc or desc; default desc |
limit | Query (GET) | No | integer | Minimum 1; no maximum; default 50 when only offset is supplied |
offset | Query (GET) | No | integer | Minimum 0; default 0 when only limit is supplied |
Supplying limit or offset selects pagination.
Paginated Response Schema
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
data | Yes | array | Message objects below; may be empty |
total_count | Yes | integer | Matching non-SSI messages before pagination |
has_more | Yes | boolean | offset + data.length < total_count |
limit | Yes | integer | Effective page limit |
offset | Yes | integer | Effective offset |
Preview Item Schema (MarketMessagePreviewSchema)
Returned in data when preview=true.
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
id | Yes | string | UUID |
created | Yes | string(datetime) | ISO 8601 datetime |
inbound_outbound | Yes | string(enum) | inbound, outbound |
message_type | Yes | object | Preview message_type below |
Preview message_type
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
name | Yes | string | Message type name |
type | Yes | string(enum) | css, dip, dtn |
description | No | string or null | Default null |
Summary Query Parameters
Used by GET /market-messages/supplier-mpid/{supplier_mpid}/summary.
| Field | Location | Required | Type | Format / Constraints |
|---|---|---|---|---|
from_date | Query | Yes | string(date) | Inclusive first UTC calendar day |
to_date | Query | Yes | string(date) | Inclusive last UTC calendar day; on or after from_date, before 9999-12-31; period at most 3660 calendar days |
Message Summary Schema (MessageSummarySchema)
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
from_date | Yes | string(date) | Requested first date |
to_date | Yes | string(date) | Requested last date |
total_count | Yes | integer | Minimum 0; matching non-SSI messages |
latest_inbound | Yes | string(datetime) or null | Latest inbound message created within the range |
outcomes | Yes | object | MessageOutcomeCountsSchema |
daily_activity | Yes | array | DailyMessageCountSchema items, one per UTC date, including zero days |
MessageOutcomeCountsSchema
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
failed | No | integer | Minimum 0; default 0; stored status failed |
complete | No | integer | Minimum 0; default 0; inbound stored status success |
sent | No | integer | Minimum 0; default 0; outbound stored status success |
pending | No | integer | Minimum 0; default 0; all remaining stored statuses, including queued and pending |
unknown | No | integer | Minimum 0; default 0; returned as 0 |
DailyMessageCountSchema
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
date | Yes | string(date) | UTC calendar day |
inbound | No | integer | Minimum 0; default 0 |
outbound | No | integer | Minimum 0; default 0 |
Response Schema
Each response item contains:
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
id | Yes | string | UUID |
message_type_fk | No | string or null | UUID |
inbound_outbound | Yes | string(enum) | inbound, outbound |
status | Yes | string(enum) | queued, success, failed, pending |
supplier_process_fk | No | string or null | UUID |
created | Yes | string(datetime) | ISO 8601 datetime |
updated | Yes | string(datetime) | ISO 8601 datetime |
message_type | Yes | object | See message_type schema below |
css_message_data | No | array or null | See CssMarketSystemMessage |
dip_message_data | No | array or null | See DipMarketSystemMessage |
dtn_message_data | No | array or null | See DtnMarketSystemMessage |
message_type
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
id | Yes | string | UUID |
name | Yes | string | Message type name |
type | Yes | string(enum) | css, dip, dtn |
description | No | string or null | Optional |
CssMarketSystemMessage item
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
id | Yes | string | UUID |
active_registration_id | No | string or null | Not specified |
annulment_window_end_date | No | string(datetime) or null | ISO 8601 datetime |
change_of_occupancy_indicator | No | boolean or null | N/A |
context_type | No | string or null | Not specified |
correlation_id | No | string or null | Not specified |
domestic_premises_indicator | No | boolean or null | N/A |
erroneous_switch_indicator | No | boolean or null | N/A |
errors | No | string or null | Not specified |
event_date | No | string(datetime) or null | ISO 8601 datetime |
event_description | No | string or null | Not specified |
event_id | No | string or null | Not specified |
event_status | No | string or null | Not specified |
event_type | No | string or null | Not specified |
fuel_type | No | string(enum) or null | E, G |
gaining_supplier_mpid | No | string or null | Not specified |
gaining_supplier_role | No | string or null | Not specified |
intervention_type | No | string or null | Not specified |
intervention_window_start_date | No | string(datetime) or null | ISO 8601 datetime |
json_payload | No | object, string, or null | Raw payload |
mpan | No | integer or null | MPAN core |
objection_window_end_date | No | string(datetime) or null | ISO 8601 datetime |
ofaf_reference | No | string or null | Not specified |
parent_message_fk | No | string or null | UUID |
pending_registration_id | No | string or null | Not specified |
registration_active_date | No | string(datetime) or null | ISO 8601 datetime |
registration_cancellation_reason | No | string or null | Not specified |
registration_id | No | string or null | Not specified |
registration_inactive_date | No | string(datetime) or null | ISO 8601 datetime |
registration_initiator | No | string or null | Not specified |
registration_request_id | No | string or null | Not specified |
registration_request_status | No | string or null | Not specified |
registration_status_efd | No | string(datetime) or null | ISO 8601 datetime |
registration_status | No | string or null | Not specified |
supplier_mpid | No | string or null | Not specified |
supplier_reference | No | string or null | Not specified |
supplier_role | No | string or null | Not specified |
supply_start_date | No | string(datetime) or null | ISO 8601 datetime |
updated_properties | No | string or null | Not specified |
version | No | string or null | Not specified |
DipMarketSystemMessage item
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
id | Yes | string | UUID |
system_message_fk | No | string or null | UUID |
push_request_id | No | string or null | Not specified |
pull_request_id | No | string or null | Not specified |
dip_adaptor_response | No | string or null | Not specified |
interface_id | No | string or null | Not specified |
schema_version | No | string or null | Not specified |
event_code | No | string or null | Not specified |
environment_tag | No | string or null | Not specified |
sub_text | No | string or null | Not specified |
sender_unique_reference | No | string or null | Not specified |
sender_timestamp | No | string(datetime) or string or null | ISO 8601 datetime when datetime |
sender_dip_id | No | string or null | Not specified |
sender_role_id | No | string or null | Not specified |
sender_correlation_id | No | string or null | Not specified |
dip_connection_provider_id | No | string or null | Not specified |
transaction_id | No | string or null | Not specified |
transaction_timestamp | No | string or null | Not specified |
publication_id | No | string or null | Not specified |
initial_correlation_id | No | string or null | Not specified |
replay_indicator | No | boolean or null | N/A |
service_ticket_url | No | string or null | Not specified |
primary_recipients | No | string, integer, or null | Not specified |
secondary_recipients | No | string, integer, or null | Not specified |
always | No | string, integer, or null | Not specified |
mpan_core | No | integer or null | MPAN core |
distributor_dip_id | No | string or null | Not specified |
gsp_group_id | No | string or null | Not specified |
response_code | No | string or null | Not specified |
response_message | No | string or null | Not specified |
third_party_response_message | No | string or null | Not specified |
json_payload | No | object, string, or null | Raw payload |
custom_blocks | No | object, string, or null | Not specified |
decoded_message | No | object, array, or null | Parsed message |
DtnMarketSystemMessage item
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
id | Yes | string | UUID |
file_header_group_id | No | string or null | Not specified |
file_type | No | string or null | Not specified |
file_id | No | string or null | Not specified |
dataflow_type_and_version | No | string or null | Not specified |
source_market_participant_role | No | string or null | Not specified |
source_market_participant_id | No | string or null | Not specified |
source_market_participant_prefix | No | string or null | Not specified |
destination_market_participant_role | No | string or null | Not specified |
destination_market_participant_id | No | string or null | Not specified |
destination_market_participant_prefix | No | string or null | Not specified |
file_creation_timestamp | No | string(datetime), string, or null | Timestamp |
source_application | No | string or null | Not specified |
destination_application | No | string or null | Not specified |
broadcast | No | string or null | Not specified |
test_data_flag | No | string or null | Not specified |
css_api_version | No | string or null | Not specified |
method | No | string or null | Not specified |
raw_message | No | string or null | Raw DTN message |
Resend response (POST /market-messages/{mpid}/{message_id}/resend)
| Field | Required | Type | Format / Constraints |
|---|---|---|---|
message | Yes | string | Success description. |
message_id | Yes | string | UUID string for the requested message. |
queue_id | Yes | string(UUID) | Persistent outbound queue entry identifier. |
status | Yes | string | queued |