Skip to main content

Market Messages Schema Reference

Request Parameters​

FieldLocationRequiredTypeFormat / Constraints
X-API-KEYHeaderConditionalstringAPI key or bearer token required
AuthorizationHeaderConditionalstringBearer <token>; API key takes precedence when both are supplied
X-IDEMPOTENCY-KEYHeader (POST)YesstringNon-empty string
X-TEST-MODEHeader (POST)NostringHas no effect on resend requests.
supplier_mpidPath (GET)YesstringSupplier MPID.
mpidPath (POST)YesstringSupplier MPID authorized for the tenant.
message_idPath (POST)YesstringUUID.
message_type_nameQuery (GET)NostringExact message type name (for example IF-019, CSS1700).
market_typeQuery (GET)Nostring(enum)Case-insensitive: dip, dtn, css.
received_startQuery (GET)Nostring(datetime)ISO 8601 datetime; inclusive lower bound on message created.
received_endQuery (GET)Nostring(datetime)ISO 8601 datetime; inclusive upper bound on message created.
message_idQuery (GET)NostringUUID; exact parent market-message ID
statusQuery (GET)Nostring(enum)Repeated values; queued, pending, failed, success
directionQuery (GET)Nostring(enum)inbound, outbound
previewQuery (GET list)NobooleanDefault false; requires limit or offset
mpan_coreQuery (GET)NostringLiteral CSS/DIP MPAN substring; whitespace removed
sort_byQuery (GET)Nostring(enum)Case-sensitive created or direction; default created
sort_directionQuery (GET)Nostring(enum)Case-sensitive asc or desc; default desc
limitQuery (GET)NointegerMinimum 1; no maximum; default 50 when only offset is supplied
offsetQuery (GET)NointegerMinimum 0; default 0 when only limit is supplied

Supplying limit or offset selects pagination.

Paginated Response Schema​

FieldRequiredTypeFormat / Constraints
dataYesarrayMessage objects below; may be empty
total_countYesintegerMatching non-SSI messages before pagination
has_moreYesbooleanoffset + data.length < total_count
limitYesintegerEffective page limit
offsetYesintegerEffective offset

Preview Item Schema (MarketMessagePreviewSchema)​

Returned in data when preview=true.

FieldRequiredTypeFormat / Constraints
idYesstringUUID
createdYesstring(datetime)ISO 8601 datetime
inbound_outboundYesstring(enum)inbound, outbound
message_typeYesobjectPreview message_type below

Preview message_type​

FieldRequiredTypeFormat / Constraints
nameYesstringMessage type name
typeYesstring(enum)css, dip, dtn
descriptionNostring or nullDefault null

Summary Query Parameters​

Used by GET /market-messages/supplier-mpid/{supplier_mpid}/summary.

FieldLocationRequiredTypeFormat / Constraints
from_dateQueryYesstring(date)Inclusive first UTC calendar day
to_dateQueryYesstring(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)​

FieldRequiredTypeFormat / Constraints
from_dateYesstring(date)Requested first date
to_dateYesstring(date)Requested last date
total_countYesintegerMinimum 0; matching non-SSI messages
latest_inboundYesstring(datetime) or nullLatest inbound message created within the range
outcomesYesobjectMessageOutcomeCountsSchema
daily_activityYesarrayDailyMessageCountSchema items, one per UTC date, including zero days

MessageOutcomeCountsSchema​

FieldRequiredTypeFormat / Constraints
failedNointegerMinimum 0; default 0; stored status failed
completeNointegerMinimum 0; default 0; inbound stored status success
sentNointegerMinimum 0; default 0; outbound stored status success
pendingNointegerMinimum 0; default 0; all remaining stored statuses, including queued and pending
unknownNointegerMinimum 0; default 0; returned as 0

DailyMessageCountSchema​

FieldRequiredTypeFormat / Constraints
dateYesstring(date)UTC calendar day
inboundNointegerMinimum 0; default 0
outboundNointegerMinimum 0; default 0

Response Schema​

Each response item contains:

FieldRequiredTypeFormat / Constraints
idYesstringUUID
message_type_fkNostring or nullUUID
inbound_outboundYesstring(enum)inbound, outbound
statusYesstring(enum)queued, success, failed, pending
supplier_process_fkNostring or nullUUID
createdYesstring(datetime)ISO 8601 datetime
updatedYesstring(datetime)ISO 8601 datetime
message_typeYesobjectSee message_type schema below
css_message_dataNoarray or nullSee CssMarketSystemMessage
dip_message_dataNoarray or nullSee DipMarketSystemMessage
dtn_message_dataNoarray or nullSee DtnMarketSystemMessage

message_type​

FieldRequiredTypeFormat / Constraints
idYesstringUUID
nameYesstringMessage type name
typeYesstring(enum)css, dip, dtn
descriptionNostring or nullOptional

CssMarketSystemMessage item​

FieldRequiredTypeFormat / Constraints
idYesstringUUID
active_registration_idNostring or nullNot specified
annulment_window_end_dateNostring(datetime) or nullISO 8601 datetime
change_of_occupancy_indicatorNoboolean or nullN/A
context_typeNostring or nullNot specified
correlation_idNostring or nullNot specified
domestic_premises_indicatorNoboolean or nullN/A
erroneous_switch_indicatorNoboolean or nullN/A
errorsNostring or nullNot specified
event_dateNostring(datetime) or nullISO 8601 datetime
event_descriptionNostring or nullNot specified
event_idNostring or nullNot specified
event_statusNostring or nullNot specified
event_typeNostring or nullNot specified
fuel_typeNostring(enum) or nullE, G
gaining_supplier_mpidNostring or nullNot specified
gaining_supplier_roleNostring or nullNot specified
intervention_typeNostring or nullNot specified
intervention_window_start_dateNostring(datetime) or nullISO 8601 datetime
json_payloadNoobject, string, or nullRaw payload
mpanNointeger or nullMPAN core
objection_window_end_dateNostring(datetime) or nullISO 8601 datetime
ofaf_referenceNostring or nullNot specified
parent_message_fkNostring or nullUUID
pending_registration_idNostring or nullNot specified
registration_active_dateNostring(datetime) or nullISO 8601 datetime
registration_cancellation_reasonNostring or nullNot specified
registration_idNostring or nullNot specified
registration_inactive_dateNostring(datetime) or nullISO 8601 datetime
registration_initiatorNostring or nullNot specified
registration_request_idNostring or nullNot specified
registration_request_statusNostring or nullNot specified
registration_status_efdNostring(datetime) or nullISO 8601 datetime
registration_statusNostring or nullNot specified
supplier_mpidNostring or nullNot specified
supplier_referenceNostring or nullNot specified
supplier_roleNostring or nullNot specified
supply_start_dateNostring(datetime) or nullISO 8601 datetime
updated_propertiesNostring or nullNot specified
versionNostring or nullNot specified

DipMarketSystemMessage item​

FieldRequiredTypeFormat / Constraints
idYesstringUUID
system_message_fkNostring or nullUUID
push_request_idNostring or nullNot specified
pull_request_idNostring or nullNot specified
dip_adaptor_responseNostring or nullNot specified
interface_idNostring or nullNot specified
schema_versionNostring or nullNot specified
event_codeNostring or nullNot specified
environment_tagNostring or nullNot specified
sub_textNostring or nullNot specified
sender_unique_referenceNostring or nullNot specified
sender_timestampNostring(datetime) or string or nullISO 8601 datetime when datetime
sender_dip_idNostring or nullNot specified
sender_role_idNostring or nullNot specified
sender_correlation_idNostring or nullNot specified
dip_connection_provider_idNostring or nullNot specified
transaction_idNostring or nullNot specified
transaction_timestampNostring or nullNot specified
publication_idNostring or nullNot specified
initial_correlation_idNostring or nullNot specified
replay_indicatorNoboolean or nullN/A
service_ticket_urlNostring or nullNot specified
primary_recipientsNostring, integer, or nullNot specified
secondary_recipientsNostring, integer, or nullNot specified
alwaysNostring, integer, or nullNot specified
mpan_coreNointeger or nullMPAN core
distributor_dip_idNostring or nullNot specified
gsp_group_idNostring or nullNot specified
response_codeNostring or nullNot specified
response_messageNostring or nullNot specified
third_party_response_messageNostring or nullNot specified
json_payloadNoobject, string, or nullRaw payload
custom_blocksNoobject, string, or nullNot specified
decoded_messageNoobject, array, or nullParsed message

DtnMarketSystemMessage item​

FieldRequiredTypeFormat / Constraints
idYesstringUUID
file_header_group_idNostring or nullNot specified
file_typeNostring or nullNot specified
file_idNostring or nullNot specified
dataflow_type_and_versionNostring or nullNot specified
source_market_participant_roleNostring or nullNot specified
source_market_participant_idNostring or nullNot specified
source_market_participant_prefixNostring or nullNot specified
destination_market_participant_roleNostring or nullNot specified
destination_market_participant_idNostring or nullNot specified
destination_market_participant_prefixNostring or nullNot specified
file_creation_timestampNostring(datetime), string, or nullTimestamp
source_applicationNostring or nullNot specified
destination_applicationNostring or nullNot specified
broadcastNostring or nullNot specified
test_data_flagNostring or nullNot specified
css_api_versionNostring or nullNot specified
methodNostring or nullNot specified
raw_messageNostring or nullRaw DTN message

Resend response (POST /market-messages/{mpid}/{message_id}/resend)​

FieldRequiredTypeFormat / Constraints
messageYesstringSuccess description.
message_idYesstringUUID string for the requested message.
queue_idYesstring(UUID)Persistent outbound queue entry identifier.
statusYesstringqueued