Snipcart V3 order.token equivalent? token for newly completed order


When an order completes I have an event listener that redirects to the ‘order success’ page on cart confirm.

How can i access the order token for the newly completed purchase, so I can call the Snipcart API for the newly created order.

order.token (v2?) does not work, what do i use for v3?

thank you

returns null…

document.addEventListener(‘snipcart.ready’, () => {‘cart.confirmed’, async (cartConfirmResponse) => {

Stored the token as a variable before cart confirmed