Tom Hanson
Tom Hanson

Reputation: 935

Shopify API Updating Inventory Levels Not Working

I am trying to update my inventory levels using the Shopify API. I am trying to get it to work using Postman.

enter image description here

enter image description here

I am getting this as a response

<html>
<body>
    <noscript>
    <a href="REDACTED">Continue</a>
    </noscript>

    <script type="text/javascript">
    window.location = "REDACTED";
    </script>
</body>
</html>

Upvotes: 0

Views: 1018

Answers (1)

Bilal Akbar
Bilal Akbar

Reputation: 4930

Your API call is running into issues at API Authentication step. This problem arise, when you are sending cookies with POST request.

From the Shopify documentation,

Shopify prevents HTTP Basic Auth POST requests that have cookies, which can cause POST calls to fail. If your POST call fails, then you should try clearing your cookies.

To clear the cookies, use the Cookie manager in Postman app that can be accessed using Cookies button located below the Send and Save buttons.

Upvotes: 2

Related Questions