• Hello, what we want to do with the WCFM REST API is trying to access the logged-in vendor’s products, orders, bookings, etc so basically make a custom dashboard for vendors on the frontend. I tried accessing the REST API headers through postman and it works , but then if we try to do that through browser or php it is returning 401 error.
    Could you please help us!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WC Lovers

    (@wclovers)

    Hello,
    How can you do the authentication process through the browser? The postman supports the authentication process for the logged in vendors. Which is not supported by plain api request in browser. You must do curl requests to get proper data through coding.

    Thread Starter accdeo

    (@accdeo)

    How can we make the curl requests though? I am still getting the same 401 error

    Plugin Author WC Lovers

    (@wclovers)

    401 is unauthorized request error.
    You are not doing the authentication process correctly. Please basic authentication or JWT authentication method to do the authentication process correctly. Unless the authentication is done in a proper manner you will not get data in restricted apis.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WCFM REST API Help’ is closed to new replies.