• Resolved Ivan Jeremic

    (@jeremiva)


    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/28

    So 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

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    Hi there,

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Plugin Support mouli a11n

    (@mouli)

    It’s been a while since we heard from you, so I’m marking this thread resolved. Hopefully, you’ve been able to resolve this, but if you haven’t, please open up a new topic and we’ll be happy to help out.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WooCommerce Subscriptions API’ is closed to new replies.