Set a shipment's shipping charge and shipping cost. If the shipment belongs to a sales order, the order's Shipping Charges line updates to the total of its shipments, just as it does in the app. If your integration already sends shipping cost, that value is now saved.