Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards!

Issue with the rest API

MultivendorX Pro

Resolved
Viewing 10 reply threads
  • Author
    Posts
    • #146333
      Mathieu
      Participant

      Hi team,

      When I call the rest API to get the vendor list, I received an empty array but I have a lot of vendors in my database.

      Can you help me ?

      This is the call I made :

      curl https://example.com/wp-json/mvx/v1/vendors \
      -u ck_XXXXXXXXX:cs_XXXXXXXX

      Also your Rest API documentation is not up to date

      Thanks for your help 🙂

    • #146337

      https://wc-marketplace.github.io/rest-api-docs/#get-all-vendors From here you can get the rest API you need .You just need to replace wcmp with mvx in the url

    • #146338
      Mathieu
      Participant

      Hi @sangita,

      If you look the Curl request, I made the same call.

      But the result is an empty array.

    • #146342

      Can you please check if you have enabled rest API in your site

    • #146343
      Mathieu
      Participant

      Yes, beaucause other API call works well.

    • #146348

      Mathieu don’t worry Our team will check .We will surely keep you posted

    • #146352

      we don’t face any such issue in our end

      https://www.loom.com/share/91a14bbd23524e58ba77f85bea1239db

      There must be some theme and plugin conflict issue in your site.You can check by deactivating plugins other than MultiVendorX pro.

    • #146355
      Mathieu
      Participant
      This reply has been marked as private.
    • #146367
      Mathieu
      Participant

      So, I made some test tonight.

      I deactivated all plugin and theme and the array is still empty.

    • #146371

      As shared earlier we check rest API with postman.It is working perfectly fine for us .You must have some issue in your end . It must be a configuration issue.Please check carefully.

    • #149846
      WCMp Admin
      Keymaster

      We haven’t heard back from you, so we presume this issue has been fixed.
      So we are closing this one.
      If you need any further help, do open another thread.

Viewing 10 reply threads

The topic ‘Issue with the rest API’ is closed to new replies.