Skip to main content

InterchangeInBox

List inbound interchanges for a mailbox, with optional filtering by trading partner and date range.

:::caution Established API The SOAP API is in maintenance mode. For new integrations use the REST equivalent. :::

Method Signature​

ArrayOfInterchangeIDInfo InterchangeInBox(string SessionID, int NetworkID, int MailboxID,
int ECGridIDFrom, int ECGridIDTo,
datetime BeginDate, datetime EndDate, short PageNo, short RecordsPerPage)

Parameters​

ParameterTypeRequiredDescription
SessionIDstringYesActive session token from Login()
NetworkIDintYesNetwork ID; use 0 for the session default
MailboxIDintYesMailbox ID; use 0 for the session default
ECGridIDFromintNoFilter by sender ECGrid ID; use 0 for all
ECGridIDTointNoFilter by recipient ECGrid ID; use 0 for all
BeginDatedatetimeYesStart of the date range (UTC)
EndDatedatetimeYesEnd of the date range (UTC)
PageNoshortYes1-based page number for paginated results
RecordsPerPageshortYesNumber of records per page (max 500)

Response Object — ArrayOfInterchangeIDInfo​

Returns an array of InterchangeIDInfo objects.

FieldTypeDescription
InterchangeIDlongUnique interchange identifier
ParcelIDlongParent parcel that contained this interchange
SenderstringISA06 sender ID
ReceiverstringISA08 receiver ID
StandardEDIStandardEDI standard used (e.g., X12, EDIFACT)
DocumentTypestringFunctional identifier / transaction set type
StatusstringCurrent interchange status
CreateddatetimeTimestamp when the interchange was received (UTC)
<!-- Example response XML -->
<ArrayOfInterchangeIDInfo>
<InterchangeIDInfo>
<InterchangeID>5551234</InterchangeID>
<ParcelID>9876543</ParcelID>
<Sender>SUPPLIERID</Sender>
<Receiver>BUYERID</Receiver>
<Standard>X12</Standard>
<DocumentType>810</DocumentType>
<Status>Delivered</Status>
<Created>2026-05-07T08:05:00Z</Created>
</InterchangeIDInfo>
</ArrayOfInterchangeIDInfo>

ENUMs​

EDIStandard​

ValueDescription
X12ANSI X12
EDIFACTUN/EDIFACT
TRADACOMSTRADACOMS
VDAVDA
XMLXML payload
TXTPlain text
PDFPDF document
BinaryBinary/proprietary format

See Appendix — ENUMs for the full EDIStandard list.

Code Examples​

// .NET 10 — dotnet-svcutil generated proxy
// Retrieve today's inbound interchanges
using var client = new ECGridOSPortTypeClient();

var begin = DateTime.UtcNow.Date;
var end = begin.AddDays(1).AddSeconds(-1);

var interchanges = await client.InterchangeInBoxAsync(
sessionID,
networkID: 0,
mailboxID: 0,
eCGridIDFrom: 0,
eCGridIDTo: 0,
beginDate: begin,
endDate: end,
pageNo: 1,
recordsPerPage: 100);

foreach (var ix in interchanges)
{
Console.WriteLine($"InterchangeID={ix.InterchangeID} Type={ix.DocumentType} From={ix.Sender}");
}

REST Equivalent​

See Interchange Inbox List.