How can I cancel subscription which was created by checkout api

Thank you for your reply, I use production version and then I can see subscription webhook. But I still have some issues. When customer completed the payment link, I can receive some webhook as follows:

order created → order updated → subscription created → subscription updated

The order id is subscription’s order_template_id,but I find then a new order is created and updated, then payment created and updated. How can I related new order to the subscription because I don’t find any subscription information in the new order and there only have old order_template_id in the subscription.

So If there are new order after, how can I find them by subscription id.