Skip to main content

CallBackTest

Sends a synthetic test event to the registered callback endpoint to verify that it is reachable and responding correctly.

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

Method Signature

CallBackQueueIDInfo CallBackTest(string SessionID, int CallBackEventID, long ParcelID,
long InterchangeID, int UserID)

Parameters

ParameterTypeRequiredDescription
SessionIDstringYesActive session token from Login()
CallBackEventIDintYesID of the callback event definition to test; identifies which endpoint configuration to target
ParcelIDlongNoParcel ID to include in the test payload; use 0 if the callback is not parcel-scoped
InterchangeIDlongNoInterchange ID to include in the test payload; use 0 if not interchange-scoped
UserIDintNoUser ID to include in the test payload; use 0 if not user-scoped

Response Object — CallBackQueueIDInfo

FieldTypeDescription
CallBackQueueIDlongUnique identifier for the queued test delivery
CallBackIDintIdentifier of the callback configuration being tested
NetworkIDintNetwork associated with the test event
MailboxIDintMailbox associated with the test event
URLstringCallback endpoint that received the test POST
EventObjectsObject type used for the test event
StatusstringDelivery status of the test (Pending, Delivered, Failed)
CreateDatedatetimeTimestamp when the test was dispatched
HTTPResponseintHTTP status code returned by your endpoint
<!-- Example response XML -->
<CallBackQueueIDInfoResult>
<CallBackQueueID>99001</CallBackQueueID>
<CallBackID>42</CallBackID>
<NetworkID>1</NetworkID>
<MailboxID>100</MailboxID>
<URL>https://your-app.example.com/ecgrid/callback</URL>
<Event>Parcel</Event>
<Status>Delivered</Status>
<CreateDate>2026-05-07T13:00:00</CreateDate>
<HTTPResponse>200</HTTPResponse>
</CallBackQueueIDInfoResult>

Code Examples

// .NET 10 — dotnet-svcutil generated proxy
// Fire a test event against a specific callback event configuration
var testResult = await client.CallBackTestAsync(
sessionID,
callBackEventID: 55001,
parcelID: 0L,
interchangeID: 0L,
userID: 0);

Console.WriteLine($"Test dispatched. Queue ID: {testResult.CallBackQueueID}");
Console.WriteLine($"Status: {testResult.Status}");
Console.WriteLine($"HTTP Code: {testResult.HTTPResponse}");

if (testResult.HTTPResponse == 200)
Console.WriteLine("Endpoint is healthy and accepting callbacks.");
else
Console.WriteLine($"Warning: endpoint returned HTTP {testResult.HTTPResponse}.");

REST Equivalent

See Test CallbackPOST /v2/callbacks/test.