Retrieval of remainder of available purchases on a restricted link

For my application I wanted to retrieve the amount of remaining payments that a link can support when you restrict it. As on the stripe dashboard you get to view the amount that has been used. I wish there would be the functionality in the PHP SDK. I am aware you can fetch the completed transactions and do it that way but it feels a bit cumbersome. Especially when you see stripe displaying this info so it would make sense for it to be fetch-able from the API. Just an idea for the devs, Thank you for reading.