Skip to main content

InterconnectCancel

Permanently terminates a trading partner interconnect, preventing further EDI traffic between the two parties.

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

Method Signature​

bool InterconnectCancel(string SessionID, int InterconnectID)

Parameters​

ParameterTypeRequiredDescription
SessionIDstringYesActive session token obtained from Login()
InterconnectIDintYesNumeric identifier for the interconnect to cancel

Response​

Returns true if the interconnect was successfully terminated; false otherwise.

<!-- Example response XML -->
<InterconnectCancelResult>true</InterconnectCancelResult>
caution

Cancelling an interconnect is a permanent action. Once cancelled, EDI traffic can no longer flow between the two ECGrid IDs on this interconnect. A new interconnect must be created with InterconnectAdd to restore routing.

To temporarily halt traffic, use InterconnectUpdate with Status.Suspended instead.

Code Examples​

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

bool cancelled = await client.InterconnectCancelAsync(sessionID, 5001);

if (cancelled)
{
Console.WriteLine("Interconnect 5001 has been permanently terminated.");
}
else
{
Console.WriteLine("Cancellation failed — verify InterconnectID and permissions.");
}

REST Equivalent​

See Delete Partner — DELETE /v2/partners/{id}.