Skip to main content

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-KEY or Authorization: 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 example IF-019, CSS1700).
  • market_type (optional): one of dip, 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, failed or success; matches any listed status.
  • direction (optional): inbound or outbound.
  • preview (optional): boolean, default false. Returns lightweight message previews; requires limit or offset.
  • 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-sensitive created or direction, default created.
  • sort_direction (optional): case-sensitive asc or desc, default desc. With sort_by=created, orders by message created, then ID, in the same direction. With sort_by=direction, asc puts inbound first and desc puts outbound first; each group orders by created, then ID, descending.
  • limit (optional): integer, minimum 1, no maximum; default 50 when only offset is supplied.
  • offset (optional): integer, minimum 0; default 0 when only limit is 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 OK when limit or offset is supplied.
  • Body type: paginated response object.
{
"data": [],
"total_count": 12,
"has_more": false,
"limit": 25,
"offset": 25
}

Notes:

  • data contains message objects. total_count counts all matches before pagination.
  • has_more is true when offset + data.length < total_count.
  • Empty and out-of-range pages return 200 OK with data: []. With no matches, total_count is 0 and has_more is 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=true without limit or offset returns 400 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 Content when no messages match and pagination is not requested.
  • 400 Bad Request if market_type is not dip, dtn, or css, or received_start is after received_end.
  • 401 Unauthorized.
  • 422 Unprocessable Entity for invalid UUIDs, datetime values, status/direction/sort enums, limit < 1, or offset < 0.

Notes:

  • The response omits internal SSI message types.
  • Unrecognised inbound DTN flows appear as DTN_UNRECOGNISED, with header fields and raw_message in dtn_message_data. They are stored without automatic processing.
  • A0001/001 acknowledgements update the related outbound message's delivery status to success or failed.

Field-level constraints: