GET /market-messages/supplier-mpid/{supplier_mpid}
Retrieves market messages for a supplier MPID, with optional filters, sorting and opt-in pagination.
Request
Method and path:
GET /market-messages/supplier-mpid/{supplier_mpid}
Headers:
X-API-KEYorAuthorization: Bearer <token>(one required). API key takes precedence when both are supplied.
Path parameters:
supplier_mpid(required): string supplier MPID.
Query parameters:
message_type_name(optional): exact message type name (for exampleIF-019,CSS1700).market_type(optional): one ofdip,dtn,css.received_start(optional): ISO 8601 datetime, lower bound on message created timestamp.received_end(optional): ISO 8601 datetime, upper bound on message created timestamp.message_id(optional): UUID, exact parent market-message ID.status(optional): repeated string enum,queued,pending,failedorsuccess; matches any listed status.direction(optional):inboundoroutbound.preview(optional): boolean, defaultfalse. Returns lightweight message previews; requireslimitoroffset.mpan_core(optional): string, literal substring search against CSS MPAN and DIP MPAN core. Whitespace is removed; an empty value adds no restriction. DTN body MPANs are excluded.%and_are literal characters.sort_by(optional): case-sensitivecreatedordirection, defaultcreated.sort_direction(optional): case-sensitiveascordesc, defaultdesc. Withsort_by=created, orders by messagecreated, then ID, in the same direction. Withsort_by=direction,ascputs inbound first anddescputs outbound first; each group orders bycreated, then ID, descending.limit(optional): integer, minimum 1, no maximum; default 50 when onlyoffsetis supplied.offset(optional): integer, minimum 0; default 0 when onlylimitis supplied.
Filters combine with AND, except repeated status values use OR within that filter. Date bounds are inclusive and apply to message created.
Request body:
- None.
Response
Paginated response
Success:
200 OKwhenlimitoroffsetis supplied.- Body type: paginated response object.
{
"data": [],
"total_count": 12,
"has_more": false,
"limit": 25,
"offset": 25
}
Notes:
datacontains message objects.total_countcounts all matches before pagination.has_moreis true whenoffset + data.length < total_count.- Empty and out-of-range pages return
200 OKwithdata: []. With no matches,total_countis 0 andhas_moreis false.
Preview response
preview=true returns MarketMessagePreviewSchema items with the same filters, sorting and pagination.
{
"data": [
{
"id": "72f30f06-afcc-4ad8-8c1f-78e556ea9cbc",
"created": "2026-10-19T12:00:00Z",
"inbound_outbound": "inbound",
"message_type": {
"name": "IF-019",
"type": "dip",
"description": null
}
}
],
"total_count": 1,
"has_more": false,
"limit": 25,
"offset": 0
}
Notes:
- Preview items omit status, process relationships and message payloads.
preview=truewithoutlimitoroffsetreturns400 Bad Request.
Unpaginated response
With neither limit nor offset, the response is an array. Both modes use the specified sorting.
Success:
200 OK- Body type: array of message objects
[
{
"id": "72f30f06-afcc-4ad8-8c1f-78e556ea9cbc",
"message_type_fk": "9bb558b2-15b5-4a36-a4b0-678257f0f2d1",
"inbound_outbound": "inbound",
"status": "success",
"supplier_process_fk": "50309bc1-7f1d-43a2-a1fd-2df9fcf31b5d",
"created": "2026-04-22T12:00:00+00:00",
"updated": "2026-04-22T12:00:00+00:00",
"message_type": {
"id": "9bb558b2-15b5-4a36-a4b0-678257f0f2d1",
"name": "IF-019",
"type": "dip",
"description": "Example description"
},
"css_message_data": null,
"dip_message_data": [
{
"id": "6048ac51-6504-4fff-ad3d-3535b971fe17",
"event_code": "IF-019",
"sender_timestamp": "2026-04-22T12:00:00+00:00",
"mpan_core": 1234567890123
}
],
"dtn_message_data": null
}
]
Other documented responses:
204 No Contentwhen no messages match and pagination is not requested.400 Bad Requestifmarket_typeis notdip,dtn, orcss, orreceived_startis afterreceived_end.401Unauthorized.422 Unprocessable Entityfor invalid UUIDs, datetime values, status/direction/sort enums,limit < 1, oroffset < 0.
Notes:
- The response omits internal SSI message types.
- Unrecognised inbound DTN flows appear as
DTN_UNRECOGNISED, with header fields andraw_messageindtn_message_data. They are stored without automatic processing. - A0001/001 acknowledgements update the related outbound message's delivery status to
successorfailed.
Field-level constraints: