• I’m working on integrating NetSuite with WordPress using the WPGetApi plugin. The API keys are working fine in Postman, but when I use the same keys in the plugin inside WordPress, I’m getting an ‘Unauthorized’ error. Any insights on what might be causing this issue?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Damilare

    (@deabiodun)

    Hi @shivamk2309 !

    Often times, issues like these are usually due to a missing Accept or Content-Type header, whose values are usually application/json.

    Please share a screenshot of your WPGETAPI endpoint configuration. Also provide the link to the API you are trying to configure.

    Thanks.

    Thread Starter shivamk2309

    (@shivamk2309)

    Hi @deabiodun Here is the screenshot.

    Thread Starter shivamk2309

    (@shivamk2309)

    Hi?@deabiodun It is not allowing me to upload image in comment so i have attached image source below.

    Error:
    https://pasteboard.co/hYNLEXXW34P4.png

    Config:
    https://pasteboard.co/xYngdhbBH9SH.png

    Plugin Support Damilare

    (@deabiodun)

    Hi!
    Have you been able to resolve this?
    Did you try setting the “Accept” header to “application/json”?
    In any case, please provide the link to the API documentation you are trying to implement. It would also help a lot to have a screenshot of the Postman PHP-cURL code for the successful request.

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