• Resolved tarig

    (@tarig)


    Hi,

    I am trying to link mobile apps to Woocommerce store using Woocommerce API, but i keep getting 401 and 403 if i tried to get the products and categories after user login, without user login i can fetch the products with no issues.

    “code”: “woocommerce_rest_cannot_view”,
    “message”: “Sorry, you cannot list resources.”,
    “data”: {
    “status”: 401

    I am using WP OAuth Server (Pro) for authentication.

    I have noticed that when i try to get the products using a customer account, i get 401 and 403 response. But when i try to get them using “Administrator” or “Manager” usename & password, the procuts can be get with no issues.

    How can i sort out this issue please?

    • This topic was modified 4 years, 1 month ago by tarig.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • corsonr

    (@corsonr)

    Automattic Happiness Engineer

    Hi there,

    The 401 error you are receiving is definitely an authentication problem. It sounds like the API itself is working and it’s just an authentication problem. We would recommend generating new keys to see if this corrects the issue.

    Have you spoken to your host about the issue to see if they are seeing any login problems?

    Plugin Support Thu P. a11n

    (@thup90)

    Hi there,

    I hope you found the previous reply helpful. We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Woocommerce API Forbidden (Sorry, you cannot list resources)’ is closed to new replies.