Is it possible to update a checkout's subtotal by program

The flow that works is to detect the $1000 threshold BEFORE checkout completes, provide a 10% discount, and let Shopify adjust the subtotal to be correct. You do not adjust things AFTER checkout.