Hi Steve
Sadly, at the moment, we don't have that kind of API available:
1. To get list of subscription records of one user, Yes, query the database table #__osmembership_subscribers is the only way at the moment
2. To get list of active subscription plans which a user has, there is a helper method:
require_once JPATH_ROOT . '/components/com_osmembership/helper/helper.php';
$userId = 42;
$activePlans = OSMembershipHelper::getActiveMembershipPlans($userId);
3. For creating a new subscription, unfortunately, it is the hardest part. Maybe you can look at the code in administrator/components/com_osmembership/model/import.php, method store to see how we create a subscription record and use these kind of code to create subscription record
We should have an API for that, sorry. Something I will have support for in the future (might be the next release if I have enough time - in 3 - 4 weeks)
Tuan