Development question on the membership plugin

We are developing a system that needs to interrogate the membership and subscription data in your plugin so that we can restrict access to certain functions in our custom developed system.
Can you give us some information on how to programmatically interrogate this data in your database structure?
Alternatively, do you have API documentation that we can pass on to our developer so that he can find the information he needs to achieve the above?