PostShip |
This topic describes the ShipExec Server PostShip Business Rule
A business rules hook that fires after the Ship event
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); } }