Skip to main content

get-interchange-by-id

Look up a single EDI interchange by its numeric interchange ID and return its full detail. An interchange is one X12 ISA…IEA or EDIFACT UNB…UNZ envelope — the unit of EDI routing on ECGrid. A parcel is the physical container that carries one or more interchanges. Use when the caller has a numeric interchange ID and wants its routing, status, EDI identity, and envelope header. Returns NOT_FOUND when no interchange matches the ID. Results are scoped to the caller's APIKey — another tenant's interchange surfaces as NOT_FOUND.

ℹ️ Interactive UI Component: This tool renders a visual widget in Claude Desktop and Claude.ai alongside the AI's response.

Tool Name

connectivity_interchange_get-interchange-by-id

Auth Level Required

Any (scoped to caller's APIKey)

Parameters

ParameterTypeRequiredDescription
request.interchangeIdintegerYesThe numeric interchange ID to look up. Positive integer >= 1. Example: 123456789. Same value as the interchangeId field returned by list-inbox-interchanges / list-outbox-interchanges. Values of 0 or below are rejected as VALIDATION_ERROR.

Response

Returns the interchange's identification, routing, current status, EDI identity, envelope header, and the parcel IDs that carry it.

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

Response Fields

FieldTypeDescription
interchangeIdintegerUnique numeric interchange ID
interchangeControlIdstringEDI interchange control number from the envelope header
standardstringEDI standard — X12, EDIFACT, TRADACOMS, VDA, XML, TXT, PDF, or Binary
documentTypestringEDI transaction set or document type (e.g. 850, 810, ORDERS)
bytesintegerSize of the interchange in bytes
interchangeDateTimestringISO 8601 timestamp from the EDI interchange header
processDatestringISO 8601 timestamp when ECGrid processed the interchange
status.codeintegerNumeric InterchangeStatus code (e.g. 4000 = Complete: CLOSED, 4101 = CANCELED)
status.descriptionstringHuman-readable status description
status.statusDatestringISO 8601 timestamp of the most recent status change
from.networkIdintegerNetwork ID of the sending party
from.networkNamestringNetwork name of the sending party
from.mailboxIdintegerMailbox ID of the sending party
to.networkIdintegerNetwork ID of the receiving party
to.networkNamestringNetwork name of the receiving party
to.mailboxIdintegerMailbox ID of the receiving party
headerstringRaw EDI envelope header segment (ISA for X12, UNB for EDIFACT)
tpFromobject | nullSender trading-partner EDI identity. Null if not resolved.
tpFrom.ecgridIdintegerECGrid ID of the sending trading partner
tpFrom.qualifierstringEDI qualifier of the sending trading partner (e.g. ZZ)
tpFrom.idstringEDI identifier of the sending trading partner
tpFrom.descriptionstringHuman-readable label for the sending trading partner
tpToobject | nullRecipient trading-partner EDI identity. Null if not resolved.
tpTo.ecgridIdintegerECGrid ID of the receiving trading partner
tpTo.qualifierstringEDI qualifier of the receiving trading partner
tpTo.idstringEDI identifier of the receiving trading partner
tpTo.descriptionstringHuman-readable label for the receiving trading partner
parcelIdsarray<integer>List of parcel IDs that contain this interchange
parcelCountintegerNumber of parcels that contain this interchange

Example Call

{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "connectivity_interchange_get-interchange-by-id",
"arguments": {
"request": { "interchangeId": 123456789 }
}
}
}

Example Prompts

  • Show me interchange 123456789
  • Who sent interchange 99999 and what's its status?
  • What EDI document type is interchange 555555?

See Also