Skip to main content

ParcelDownloadConfirm

Confirm that an inbound parcel has been successfully downloaded and saved.

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

:::caution Confirmation Is Mandatory This method must be called after every successful ParcelDownload. Without confirmation, ECGrid marks the parcel as undelivered and will re-deliver it on the next polling cycle, causing duplicate file processing. :::

Method Signature

bool ParcelDownloadConfirm(string SessionID, long ParcelID)

Parameters

ParameterTypeRequiredDescription
SessionIDstringYesActive session token from Login()
ParcelIDlongYesUnique identifier of the parcel to confirm

Response Object — bool

Returns true if the confirmation was accepted. Returns false or throws a SOAP fault if the parcel ID is invalid, already confirmed, or the session lacks permission.

<!-- Example response XML -->
<ParcelDownloadConfirmResult>true</ParcelDownloadConfirmResult>

Code Examples

// .NET 10 — dotnet-svcutil generated proxy
// Confirm receipt only after the file has been durably saved
using var client = new ECGridOSPortTypeClient();

bool confirmed = await client.ParcelDownloadConfirmAsync(sessionID, parcelId: 9876543L);

if (confirmed)
{
Console.WriteLine($"Parcel {parcelId} confirmed — removed from delivery queue.");
}
else
{
// Surface this as an operational alert; the parcel will be re-delivered
Console.Error.WriteLine($"Confirm failed for parcel {parcelId}.");
}

REST Equivalent

See Confirm Download.