Skip to main content

TPMove

Moves a trading partner ID from its current mailbox to a different target mailbox within the same network.

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

Method Signature​

ECGridIDInfo TPMove(string SessionID, int ECGridID, int NewMailboxID)

Parameters​

ParameterTypeRequiredDescription
SessionIDstringYesActive session token obtained from Login()
ECGridIDintYesNumeric ECGrid identifier for the trading partner ID to move
NewMailboxIDintYesTarget mailbox ID to move the trading partner ID into

Response Object — ECGridIDInfo​

Returns the updated ECGridIDInfo object reflecting the new mailbox assignment.

FieldTypeDescription
ECGridIDintUnique numeric identifier (unchanged)
MailboxIDintUpdated mailbox ID — reflects the new mailbox
NetworkIDintAssociated network ID (unchanged)
QualifierstringISA qualifier (unchanged)
IDstringISA ID value (unchanged)
DescriptionstringTrading partner label (unchanged)
StatusStatusLifecycle status (unchanged)
RoutingGroupRoutingGroupRouting group (unchanged)
EDIStandardEDIStandardEDI standard (unchanged)
<!-- Example response XML after move -->
<TPMoveResult>
<ECGridID>123456</ECGridID>
<MailboxID>999</MailboxID>
<NetworkID>42</NetworkID>
<Qualifier>01</Qualifier>
<ID>ACMECORP </ID>
<Description>Acme Corporation</Description>
<Status>Active</Status>
<RoutingGroup>ProductionA</RoutingGroup>
<EDIStandard>X12</EDIStandard>
</TPMoveResult>
note

Both the source and target mailboxes must belong to the same network. The calling session must have sufficient authorization (NetworkAdmin or higher) to perform the move.

Code Examples​

// .NET 10 — dotnet-svcutil generated proxy
using var client = new ECGridOSPortTypeClient();

// Move ECGridID 123456 from its current mailbox to mailbox 999
ECGridIDInfo moved = await client.TPMoveAsync(
sessionID,
ecGridID: 123456,
newMailboxID: 999);

Console.WriteLine($"ECGridID {moved.ECGridID} now in MailboxID {moved.MailboxID}");

REST Equivalent​

See Move TP — POST /v2/ids/tp-move.