Support » Plugin: Dokan - Best WooCommerce Multivendor Marketplace Solution - Build Your Own Amazon, eBay, Etsy » Need Rest api for seller registeration of dokan plugin

  • Resolved marketingtech

    (@marketingtech)


    we are develop a flutter mobile application with customer app & seller/vendor app
    sp Need Rest api for seller registration of dokan plugin how can we find it

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support Jahidul Hassan Mojumder

    (@jahidulhassan)

    Hi @marketingtech

    Dokan does not have a Rest API endpoint to register a seller/vendor right now. But you can try using the default API of WordPress to create a vendor. As a reference to that API, you can have a look at this documentation of WordPress.

    As per the documentation, you can register a user defining its role on your site and it should be enough. If any further data is required then you have an option to pass metadata too using that API.

    I hope this information will help.

    Thread Starter marketingtech

    (@marketingtech)

    By defining role, user is not able to register
    https://prnt.sc/F7-BQTEL4aeK

    Plugin Support Jahidul Hassan Mojumder

    (@jahidulhassan)

    Hi @marketingtech

    It seems like there is something wrong with your request header because I am being able to create a seller account using Basic Authentication via wp/v2/users endpoint of WordPress Rest API.

    You can see the API request that I sent from this screenshot. This request created the user shown in this screenshot. The only thing that I did extra was defining the user role. The attribute that I passed as slug is responsible for the store URL of the vendor as shown in this screenshot.

    I hope this will help now.

    Thread Starter marketingtech

    (@marketingtech)

    Will try and revert you by tomorrow

    Thread Starter marketingtech

    (@marketingtech)

    “Rest cannot create user”

    What you had put in Authorization? Sir

    Plugin Support Jahidul Hassan Mojumder

    (@jahidulhassan)

    Hi @marketingtech

    I used Basic Authentication using JSON Basic Authentication. Also, used the username and password of an admin account for the authorization of the request.

    Creating a new user is a feature of default WordPress and not Dokan. If you still face any problems in creating a new user using WordPress API then I would recommend contacting WordPress support to get the most precise help.

    I hope this information helps.

    Thread Starter marketingtech

    (@marketingtech)

    Still not working sir https://prnt.sc/PFMopTXoQpMj

    Plugin Support Jahidul Hassan Mojumder

    (@jahidulhassan)

    Hi @marketingtech

    From the screenshot, I can see that you are trying to use JWT Authentication, but the authentication process is not correct. Please contact JWT Authentication to get more precise details.

    Also, I can see you are using {{baseURL}} instead of your site URL. Replace that word from the URL and use your website’s base URL. I would like to remind you again that the issue that you are facing is not related to Dokan. It is fundamental to APIs. I would recommend contacting JWT Auth as you are using that. I hope this information helps.

    Thanks!

    Plugin Support Tanjir Al Mamun

    (@tanjiralmamun)

    Hi @marketingtech,

    We haven’t heard back from you in a while. So, I’m going to mark this topic as resolved.

    If you’ve any further queries, feel free to open a new topic.

    Thanks!

    Thread Starter marketingtech

    (@marketingtech)

    Thanks Sir

    https://postimg.cc/Y4j4TB77excuse me all i want to ask, i hit api create seller in multivendor dokan but when i check the user store-name it is empty, is there something wrong with the parameters i installed?, thank you

Viewing 11 replies - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.