I've also noticed that if I get a shipment canceled all of its inventory units, the payment_total doesn't change for shipment + inventory unit + related adjustments that just got negated. So if I issue a refund for the costs related to that shipments cancelation, it ends up saying balance_due in the payment_state.