• Hello,

    I’m working on a project that requires placing WooCommerce data into our CRM. The middle point we are using requires OAuth 2.0 so I downloaded this plugin. While reading the documentation I keep receiving this error.

    {
    “error”: “unauthorized_client”,
    “error_description”: “The grant type is unauthorized for this client_id”
    }

    I’m not sure what I’m doing wrong. I found other threads saying to be sure that “authentication code” is enabled and it is on my site. Does anyone have any feedback?

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Justin Greer

    (@justingreerbbi)

    Removing the sensitive details, can you provide and export of the POSTMAN you are using. We can then see what your settings are so we can help a bit more.

    Thanks

    Thread Starter andrewoconnorpbe

    (@andrewoconnorpbe)

    Hi Justin,

    Sure thing. Here is a link. I am somewhat unfamiliar with this whole process so I removed some stuff that might’ve been useful. If there are particular fields or information you need, please let me know.

    Thanks for your assistance.

    Plugin Author Justin Greer

    (@justingreerbbi)

    Thanks. It looks like there is some stuff missing. What we are looking for are in the header fields or POST fields.

    Please remove only the client_id, client_secret

    Thread Starter andrewoconnorpbe

    (@andrewoconnorpbe)

    Ah ok thank you for clarifying. I think this should help paint a clearer image.

    Thanks!

    Plugin Author Justin Greer

    (@justingreerbbi)

    Ok.

    Let’s try something different lol. It seems there was no data in the config file.

    Can you provide the URL you are attempting to use to get an authorize token? Please change your domain to domain.com when sharing it here.

    Thread Starter andrewoconnorpbe

    (@andrewoconnorpbe)

    Hi Justin,

    Sure thing. I also thought it would be helpful to include what I’m shooting for, to make the connection work. Here is a photo but I’m shooting for

    • Client ID (no problem there)
    • Client Secret (also not a problem)
    • Authorization URL
    • Token URL
    • Refresh URL

    That being said, to answer your question, I’m trying to get tqv2beta.com authorized, and the endpoint I’m going for is https://tqv2beta.com/wp-json/wc/v3/orders. I hope that helps clarify.

    Lastly, thank you for your help! It is greatly appreciated.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Getting an “unauthorized_client” error when trying to authenticate.’ is closed to new replies.