Post purchase extension: retrieve discount codes

Hello,

I still can’t find a way to access the order id (or checkout token) in the post purchase extension, in order to get the discount codes. Does anyone have a solution?

Thank you,

Simon