Shopify Graphql API

New Member
3 0 0

Hello,

 

I am trying to connect the Shopify Graphql API with Python. But I am getting issue related Access token.

 

Can anyone help me with Access token?

 

Screenshot from 2019-09-16 19-22-22.png

 

 

0 Likes
Highlighted
Shopify Staff
Shopify Staff
471 35 90

Hi @ekta_bhut ,

 

In the example below you are passing the access_token as "X-Shopify-Storefront-Access-Token" but you are making a call to the Shopify Admin API.  The correct header would be "X-Shopify-Access-Token" to make a call to the Admin GraphQL API.

 

Hope this helps,

Ryan

Developer Experience @ Shopify
1 Like
New Member
3 0 0

Hello,

Using inventoryBulkAdjustQuantityAtLocation we able to update product quantity for a given location and as per given item.

But when we set availableDelta as 0 quantity it'll not update in Shopify end as 0 quantity.

It'll not update quantity as 0?

Thank you.

0 Likes
Shopify Staff
Shopify Staff
471 35 90

That mutation adjusts the quantity, since are adding a delta of +0 so there would be no change.  You will need to adjust by the amount you wish to increase or decrease.  There is no way to bulk set inventory.

Developer Experience @ Shopify
0 Likes