• Resolved kautukbhatnagar

    (@kautukbhatnagar)


    So i am trying to find out how many memberships levels we have,

    So currently i have
    Free
    Monthly
    Yearly

    But while i am trying to get the list of membership levels:

    https://nearby.travelaround.co.in/wp-json/pmpro/v1/checkout_levels?level_id=1+2+3

    i am gettin only output for level 1.

    How can i get the whole list of membership levels so i can create a screen in app to subscribe with any one of it

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

Viewing 1 replies (of 1 total)
  • Plugin Author Andrew Lima

    (@andrewza)

    Hi @kautukbhatnagar

    Thank you for reaching out to Paid Memberships Pro.

    This REST API endpoint is used for the checkout page, so we may dynamically update data dynamically if something alters the checkout.

    There is no endpoint to just get the level object, you may be able to create your own REST API endpoint to achieve this.

    Alternatively, you can use the function pmpro_getAllLevelshttps://github.com/strangerstudios/paid-memberships-pro/blob/dev/includes/functions.php (You may search this file for the method – I didn’t want to link to the line number as it may change if we adjust the code to this file).

    I hope this helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Get Membership levels in Rest API’ is closed to new replies.