How to check if user still have valid subscription?

Is there an API Endpoint that I can call to check if user still have valid subscription?

I want to be sure that his subscription renewal was succesful (ie: I dont want to give him another month/year/.. if his latest renewal wasnt successful)

Would GET https://api.storekit.itunes.apple.com/inApps/v1/transactions/{transactionId} be the correct API endpoint to call?

But I wonder, after subscription auto-renews, do we still use the same transactionId to check whether his subs is still valid?

How to check if user still have valid subscription?
 
 
Q