Development discussions around Shopify APIs
Hello!!
We are trying to use the mutation From Postman
POST:
https://${v_api_key}:${v_api_password}@${v_store_name}.myshopify.com/admin/api/2021-04/graphql.json
Body:
mutation{
inventoryBulkAdjustQuantityAtLocation(
inventoryItemAdjustments: [{inventoryItemId: "41906055119006",availableDelta: 7}],
locationId: "62368645278"
){
inventoryLevels {
id
}
userErrors {
field
message
}
}
}
Response: 200 ok
Can you help us with that error?
Solved! Go to the solution
This is an accepted solution.
Hey @LeonardoMolina4
First off, please make sure you delete that image from the post and immediately rotate those API keys as they are clearly visible in the screenshot you posted. In regards to your error, GraphQL uses global IDs so they would need to look something like:
gid://shopify/InventoryItem/123456789
Kevin_A | Solutions Engineer @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
This is an accepted solution.
Hey @LeonardoMolina4
First off, please make sure you delete that image from the post and immediately rotate those API keys as they are clearly visible in the screenshot you posted. In regards to your error, GraphQL uses global IDs so they would need to look something like:
gid://shopify/InventoryItem/123456789
Kevin_A | Solutions Engineer @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
I use the same example but I have these error
where is the problem?
User | RANK |
---|---|
8 | |
6 | |
3 | |
3 | |
3 |
Connect your PayPal account to allow your customers to checkout using the PayPal gateway a...
ByYour online store speed can enhance your store’s discoverability, boost conversion rates a...
ByShopping is at our fingertips with mobile devices. Is your theme optimized to be user-frie...
By