Creating a product and specifying inventory at the same time used to be as simple as specifying "inventory_quantity" (see https://community.shopify.com/c/Shopify-APIs-SDKs/Create-Product-With-Inventory-Levels/m-p/559533)
This is now disallowed with the following error:
Write requests to inventory_quantity and inventory_quantity_adjustment are no longer supported. Please use the Inventory Levels API
A few things:
Is there ANY way to do the same thing without making multiple API calls? We sell unique items. Theres exactly one of everything, meaning we are already under quite a large amount of strain with the number of API calls we have to make already.
Can someone from Shopfiy please explain why this breaking change was made without a version bump? What's the point of versioning your API if you're going to just insert breaking changes anyway?
https://github.com/Shopify/shopify_api/issues/632
WELL KNOWN, they flpped the switch on March 16th, now 2019-10, 2020-01, have the same bug.
ER
@Amber_Walker wrote:Creating a product and specifying inventory at the same time used to be as simple as specifying "inventory_quantity" (see https://community.shopify.com/c/Shopify-APIs-SDKs/Create-Product-With-Inventory-Levels/m-p/559533)
This is now disallowed with the following error:
Write requests to inventory_quantity and inventory_quantity_adjustment are no longer supported. Please use the Inventory Levels APIA few things:
Is there ANY way to do the same thing without making multiple API calls? We sell unique items. Theres exactly one of everything, meaning we are already under quite a large amount of strain with the number of API calls we have to make already.
Can someone from Shopfiy please explain why this breaking change was made without a version bump? What's the point of versioning your API if you're going to just insert breaking changes anyway?
This isn't so much about using a client library--we're making direct calls to the RESTful endpoint--but rather:
1) Why? We're going to have to (at minimum) double the number of API calls with this change. That's an enormous burden on stores that sell unique items and are already struggling with the existing throttling requirements.
and
2) Why would you make a breaking change right after you force everyone to use a versioned API?
Shopify's determination to remain completely silent on this matter is disrespectful. We deserve an answer.
They moved the update to July 1st, so just use 2019-07.
Hello there,
With the evolving concerns around COVID-19’s impact on communities around the world, we know that partners and merchants are making adjustments to continue running their businesses smoothly. That’s why we’ve decided to postpone the April 1 version removal to July 1, 2020.
What does this change mean?
This means that you have additional time until July 1 to update your private apps to account for changes in both 2019-07 and 2019-10 API versions. Specifically, the move from page to cursor based pagination will come into effect for all endpoints on July 1, which should simplify the migration process for your apps.
In the coming weeks, we’ll follow up with emails outlining the detailed changes each of your private apps needs to make.
For those of you who’ve put in the time and energy to update already, we want to say thank you for your diligence and understanding in the extension—your efforts haven’t gone to waste.
If you have any questions, chat with us in the API forums or the Support section of the Partner Dashboard.
Thank you,
Shopify Apps Team
Hey guys, So this is a known issue?
We're having issue with inventoryquantity end point and according to Shopify on July 1 we need to update to 2019-10 api version 0r later https://prnt.sc/sf2d8l
this is example of request we're getting deprecated call
we sending request to this endpoint
https://moshe109.myshopify.com/admin/api/2020-04/graphql.json
mutation { productUpdate(input: {id: "gid://shopify/Product/4454791512122", variants: [ { id: "gid://shopify/ProductVariant/31546049593402", inventoryManagement: NOT_MANAGED} { id: "gid://shopify/ProductVariant/31546049626170", inventoryManagement: NOT_MANAGED} { id: "gid://shopify/ProductVariant/31546049658938", inventoryManagement: NOT_MANAGED} { id: "gid://shopify/ProductVariant/31546049691706", inventoryManagement: NOT_MANAGED} { id: "gid://shopify/ProductVariant/31546049724474", inventoryManagement: NOT_MANAGED} { id: "gid://shopify/ProductVariant/31546049757242", inventoryManagement: NOT_MANAGED} { id: "gid://shopify/ProductVariant/31546049790010", inventoryManagement: NOT_MANAGED} { id: "gid://shopify/ProductVariant/31546049822778", inventoryManagement: NOT_MANAGED} ] } ) { product { id } } }
So, what's next? what we should do about this issue.
Thank you
They delayed the update again, so you can just call 2019-07 for now. It is delayed to an unknown date, but you can still update inventory using the new method,just call 2019-07, 2019-10 or above will crash.
ER
@moshelog wrote:Hey guys, So this is a known issue?
We're having issue with inventoryquantity end point and according to Shopify on July 1 we need to update to 2019-10 api version 0r later https://prnt.sc/sf2d8l
this is example of request we're getting deprecated call
we sending request to this endpoint
https://moshe109.myshopify.com/admin/api/2020-04/graphql.json
mutation { productUpdate(input: {id: "gid://shopify/Product/4454791512122", variants: [ { id: "gid://shopify/ProductVariant/31546049593402", inventoryManagement: NOT_MANAGED} { id: "gid://shopify/ProductVariant/31546049626170", inventoryManagement: NOT_MANAGED} { id: "gid://shopify/ProductVariant/31546049658938", inventoryManagement: NOT_MANAGED} { id: "gid://shopify/ProductVariant/31546049691706", inventoryManagement: NOT_MANAGED} { id: "gid://shopify/ProductVariant/31546049724474", inventoryManagement: NOT_MANAGED} { id: "gid://shopify/ProductVariant/31546049757242", inventoryManagement: NOT_MANAGED} { id: "gid://shopify/ProductVariant/31546049790010", inventoryManagement: NOT_MANAGED} { id: "gid://shopify/ProductVariant/31546049822778", inventoryManagement: NOT_MANAGED} ] } ) { product { id } } }
So, what's next? what we should do about this issue.
Thank you
@spadae22 wrote:They delayed the update again, so you can just call 2019-07 for now. It is delayed to an unknown date, but you can still update inventory using the new method,just call 2019-07, 2019-10 or above will crash.
Big thanks for the quick reply, do you have an official announcement source for this delay? i haven't see anything about it
Plus in our dashboard it is still mentioned to update to 2019-10 or later by july 1.
Again, thanks for the update here.
User | Count |
---|---|
14 | |
12 | |
10 | |
8 | |
7 |