Skip to main content

list-inbox-interchanges

List INBOUND EDI interchanges received by a mailbox. An interchange is one X12 ISA…IEA or EDIFACT UNB…UNZ envelope — the unit of EDI routing on ECGrid. The default view is the historical Archive paginated within a date window. Set a view flag to switch views: blocked returns interchanges held from delivery; pending returns interchanges awaiting processing. An empty result (count = 0) means no matches — not an error. Results are scoped to the caller's APIKey.

ℹ️ Use when...

You want to audit received EDI traffic or investigate stuck or blocked inbound interchanges. For outbound use list-outbox-interchanges. For a single interchange's full detail use get-interchange-by-id.

Tool Name

connectivity_interchange_list-inbox-interchanges

Auth Level Required

Any (scoped to caller's APIKey)

Parameters

ParameterTypeRequiredDescription
request.networkIdintegerYesECGrid network ID scoping the query. Positive integer >= 1. Example: 7.
request.mailboxIdintegerYesECGrid mailbox ID scoping the query. Non-negative integer >= 0. 0 = network root mailbox. Example: 142.
request.ecgridIdFromintegerYesSender ECGrid ID filter. Pass -1 to match any sender. Example: 6928311.
request.ecgridIdTointegerYesRecipient ECGrid ID filter. Pass -1 to match any recipient. Example: 5040122.
request.beginDatestringYesInclusive start of the date window, ISO 8601 UTC. Example: 2026-04-01T00:00:00Z.
request.endDatestringYesInclusive end of the date window, ISO 8601 UTC. Example: 2026-04-30T23:59:59Z.
request.interchangeControlIdstringNoOptional ISA13 interchange control ID filter. Empty or omitted = all control IDs. Max 128 characters.
request.timeZoneIdstringNoIANA or Windows time zone ID for the date window (e.g. America/New_York). Mutually exclusive with utcOffsetMinutes — supplying both is VALIDATION_ERROR.
request.utcOffsetMinutesintegerNoUTC offset in minutes for the date window (e.g. -300 for EST). Range -840..840. Mutually exclusive with timeZoneId.
request.pageNointegerNo1-based page number for the Archive view. Defaults to 1. Ignored for flag views.
request.recordsPerPageintegerNoRecords per page for the Archive view, 1..1000. Defaults to 500. Ignored for flag views.
request.blockedbooleanNoSwitch to the BLOCKED view — interchanges held from delivery. Default false. Mutually exclusive with pending.
request.pendingbooleanNoSwitch to the PENDING view — interchanges awaiting processing. Default false. Mutually exclusive with blocked.

⚠️ Date time zone: Supply timeZoneId OR utcOffsetMinutes to interpret beginDate/endDate in a local time zone. Omitting both means the dates are treated as UTC. Supplying both is a VALIDATION_ERROR.

Response

Returns interchanges (same per-row shape as get-interchange-by-id) plus pagination fields. Pagination fields are 0 for the non-paged flag views (blocked, pending).

{
"interchanges": [
{
"interchangeId": 123456789,
"interchangeControlId": "000012345",
"standard": "X12",
"documentType": "850",
"bytes": 2048,
"interchangeDateTime": "2026-04-15T14:30:00Z",
"processDate": "2026-04-15T14:30:15Z",
"status": {
"code": 4000,
"description": "Complete: CLOSED",
"statusDate": "2026-04-15T14:30:20Z"
},
"from": {
"networkId": 7,
"networkName": "ECGrid Production",
"mailboxId": 200
},
"to": {
"networkId": 7,
"networkName": "ECGrid Production",
"mailboxId": 142
},
"header": "ISA*00* *00* *ZZ*BUYERCORP *ZZ*ACMECORP *260415*1430*^*00501*000012345*0*P*>~",
"tpFrom": {
"ecgridId": 5040122,
"qualifier": "ZZ",
"id": "BUYERCORP",
"description": "Beta Retail"
},
"tpTo": {
"ecgridId": 6928311,
"qualifier": "ZZ",
"id": "ACMECORP",
"description": "Acme Shipping"
},
"parcelIds": [987654321],
"parcelCount": 1
}
],
"pageNumber": 1,
"pageSize": 500,
"count": 1,
"totalRecords": 1,
"totalPages": 1
}

Response Fields

FieldTypeDescription
interchangesarrayInterchange records matching the query. Same per-row shape as get-interchange-by-id.
interchanges[].interchangeIdintegerUnique numeric interchange ID (int64). Pass to get-interchange-by-id for full detail.
interchanges[].interchangeControlIdstringEDI interchange control number (X12 ISA13). Empty if not set.
interchanges[].standardstringEDI standard: X12, EDIFACT, TRADACOMS, VDA, XML, TXT, PDF, or Binary.
interchanges[].documentTypestringEDI transaction set or document type (e.g. 850, 810). Empty if not set.
interchanges[].bytesintegerInterchange payload size in bytes.
interchanges[].interchangeDateTimestringISO 8601 UTC — interchange date/time from the EDI envelope header.
interchanges[].processDatestringISO 8601 UTC — when ECGrid processed the interchange.
interchanges[].status.codeintegerNumeric interchange status code (e.g. 4000 = Complete: CLOSED). See get-status-list.
interchanges[].status.descriptionstringHuman-readable status description.
interchanges[].status.statusDatestringISO 8601 UTC — most recent status change timestamp.
interchanges[].from.networkIdintegerNetwork ID of the sending party.
interchanges[].from.networkNamestringNetwork name of the sending party.
interchanges[].from.mailboxIdintegerMailbox ID of the sending party.
interchanges[].to.networkIdintegerNetwork ID of the receiving party.
interchanges[].to.networkNamestringNetwork name of the receiving party.
interchanges[].to.mailboxIdintegerMailbox ID of the receiving party.
interchanges[].headerstringRaw EDI envelope header segment (ISA for X12, UNB for EDIFACT). Empty if not set.
interchanges[].tpFromobject | nullSender trading-partner EDI identity. Null if not resolved.
interchanges[].tpFrom.ecgridIdintegerECGrid ID of the sending trading partner.
interchanges[].tpFrom.qualifierstringEDI qualifier of the sending trading partner (e.g. ZZ).
interchanges[].tpFrom.idstringEDI identifier of the sending trading partner.
interchanges[].tpFrom.descriptionstringHuman-readable label for the sending trading partner.
interchanges[].tpToobject | nullRecipient trading-partner EDI identity. Null if not resolved.
interchanges[].tpTo.ecgridIdintegerECGrid ID of the receiving trading partner.
interchanges[].tpTo.qualifierstringEDI qualifier of the receiving trading partner.
interchanges[].tpTo.idstringEDI identifier of the receiving trading partner.
interchanges[].tpTo.descriptionstringHuman-readable label for the receiving trading partner.
interchanges[].parcelIdsarrayIDs of the parcels carrying this interchange. Empty if none.
interchanges[].parcelCountintegerNumber of entries in parcelIds.
pageNumberintegerCurrent page number (Archive view). 0 for flag views.
pageSizeintegerRecords per page (Archive view). 0 for flag views.
countintegerNumber of interchanges in this result.
totalRecordsintegerTotal matching interchanges across all pages (Archive view). 0 for flag views.
totalPagesintegerTotal page count (Archive view). 0 for flag views.

Example Call

{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "connectivity_interchange_list-inbox-interchanges",
"arguments": {
"request": {
"networkId": 7,
"mailboxId": 142,
"ecgridIdFrom": -1,
"ecgridIdTo": -1,
"beginDate": "2026-04-01T00:00:00Z",
"endDate": "2026-04-30T23:59:59Z"
}
}
}
}

Example Prompts

  • List all inbound interchanges for mailbox 142 in April 2026
  • Are there any blocked inbound interchanges for mailbox 142?
  • Show me all 850 purchase orders received by mailbox 142 this month

See Also