Is there a way to retrieve license information including available and used seats using the API ?
License information including available or used seats is unavailable to any subscription users including all subscription administrators. This is unavailable whether through the Rally web application or through the WSAPI.
Note: herein are two fields that are part of the Subscription object. However, these are not counting available or used license seats.
You will need to contact CA Support to obtain this information.