Shop Pay Installment missed payment in GraphQL API

Using GraphQL Admin API, what’s the best way to know if a Shop Pay Installments payment was missed?

I’m looking at the Order Transaction Status. Is this a good way to tell if an instalment payment was missed?

On the opposite, how can we tell if instalment payments have recovered and there are no missed payments anymore?

I want to use this data to control access to digital products.

Thanks!