New Shopify Certification now available: Liquid Storefronts for Theme Developers

Failed Stock Update by API

Solved
Nordware
Shopify Partner
4 0 2

I'm making a request to update the stock, by API, but I1m getting a failure return.

Has anyone gone through this problem?

 

Nordware_0-1650305918578.png

 

Nordware_1-1650306001565.png

 

Accepted Solution (1)
GrahamS
Shopify Staff (Retired)
Shopify Staff (Retired)
193 36 53

This is an accepted solution.

Looks like you're receiving a login authorization redirect as your response. This most commonly happens when you're including cookies in your requests - make sure you set your client to not store/include cookies in your server requests when performing these calls.

To learn more visit the Shopify Help Center or the Community Blog.

View solution in original post

Replies 2 (2)
GrahamS
Shopify Staff (Retired)
Shopify Staff (Retired)
193 36 53

This is an accepted solution.

Looks like you're receiving a login authorization redirect as your response. This most commonly happens when you're including cookies in your requests - make sure you set your client to not store/include cookies in your server requests when performing these calls.

To learn more visit the Shopify Help Center or the Community Blog.

Nordware
Shopify Partner
4 0 2

Tks @GrahamS. and @Klondev ! 

My problem was solved when I not store/include cookies in my server requests

 

Nordware_0-1650480920239.png