I don’t know how to get a specific customer active subscriptions using the Woocommerce API. I have a mobile app which connects to a middle layer, this middle layer needs to provide the list of subscriptions the user has active. I need to know what Woocommerce API endpoint or combination of endpoints I can call to get the user's active subscriptions. Been struggling for days to figure this out. Please help
e.g Using WooCommerce API v1 should return active subscriptions: https://....com/wp-json/wc/v1/subscriptions?customer=1&status=active but it doesn't, a lot of the users have missing active subscriptions.
I have also tried: 1. https://….com/wp-json/wc/v3/memberships/members Though this does return the memberships, it doesn’t provide product ids, etc, with them being null for many of the memberships
“id”: 355,
“customer_id”: 1,
“plan_id”: 430,
“status”: “active”,
“order_id”: null,
“product_id”: null,
“subscription_id”: null,
2. https://….com/wp-json/wc/v3/orders?customer=1 This is also missing subscriptions and other purchases