Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Re: Failed Stock Update by API

Solved

Failed Stock Update by API

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)
193 37 55

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)
193 37 55

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 @byteriver ! 

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

 

Nordware_0-1650480920239.png