WooCommerce Subscriptions API
-
First of all, I need to say that WordPress/Woo has not the best API Docs, I need specifically API data for my subscription products because I use the WooCommerce Subscriptions plugin, problem nr1. is there are V1 and V3 of the API and it seems I need to hack my selfs some scripts to get the data I need.
All I want is to check if a specific user has an active subscription, so a normal API from modern software would look like:
https://mysite.com//wp-json/wc/v3/subscriptions/product_id/user_id
This is how I expect a modern endpoint to look like, you define the product id, then the user id for which you want to check the subscription details.
How old software like WordPress does this? I show you!
find somehow out what the ID of the order is he did(No idea how to do this) if you are lucky to have the order ID do this.
https://mysite.com/wp-json/wc/v1/subscriptions/28So are there any more modern WP devs who can give me some advice on how to quickly check if the user has an active subscription best-case scenario would be only with his user id and without custom PHP scripting, maybe there are some endpoints I missed? Thanks
- This topic was modified 4 years, 4 months ago by .
- This topic was modified 4 years, 4 months ago by .
- This topic was modified 4 years, 4 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘WooCommerce Subscriptions API’ is closed to new replies.