Hello
Unfortunately, we don't have an API like that. So you will need to implement the API yourself
Try to look at API controller components/com_osmembership/controller/api.php to see how we implemented some basic API and implement the API you need yourself:
To use APIs, you need to:
1. Go to Membership Pro -> Configuration, set Enable API config option to Yes. Enter the API Key into API Key config option. You need to pass that key in every API request
2. The request will be made to this URL (depends on the API you want to call)
domain.com/index.php?option=com_osmembership&task=api.get&id=
[SUBSCRIPTION_ID]&api_key=[API_KEY]
domain.com/
needs to be replaced with your site domain
[SUBSCRIPTION_ID] is ID of the subscription record to get data (the data you pass here depends on the API method you call)
[API_KEY] is the API Key you entered in Configuration. It's used to validate every API request before perform the required action
Hope it gives you some clues
Tuan