Click or drag to resize

PostShip

This topic describes the ShipExec Server PostShip Business Rule

A business rules hook that fires after the Ship event

Sample PostShip Business Rule
C#
public void PostShip(ShipmentRequest shipmentRequest, ShipmentResponse shipmentResponse, SerializableDictionary userParams)
{
    //Example of using post ship to write shipment data back to a database using a custom method

    foreach (var pkg in shipmentResponse.Packages)
    {
        UpdateHistoryDb(pkg.TrackingNumber, pkg.Weight.Amount, pkg.Service, pkg.Total.Amount);
    }

}
See Also