How to associate a cart with an order?

We also depend on the checkoutToken being kept alive. There is no other way to smoothly identify an order from the Thank You extension on our backend.

I would imagine removing the checkoutToken will affect thousands of stores so if it is going ahead a replacement value would be vital.