Hi, I'm facing an issue when I want to update my product variant price. The price can't be updated when the price is greater than the compare price.
compare price: 200
then let say I want to update the price to 300 (price > compare price). This will not work.
Any idea for this case?
Solved! Go to the solution
Hi @aldoalprak ,
This is not possible in either the GraphQL Admin API or the REST Admin API.
The compare at price needs to be higher than the actual Price.
Hassain | Developer Support Specialist @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
This is an accepted solution.
Hi @hassain , thank you for your response.
Actually, it works with API version 2020-01 but it does not work with version 2020-04. But, why I can't find the API changelog about this? can you please refer to the link? thank you
edit: just found the link https://shopify.dev/concepts/about-apis/versioning/release-notes/2020-04
For the record, setting the value to null in the item payload works. I found it strange that I could leave the compare at price value <= the price value in the store itself, but not when creating via the api. And I didn't want to just set compare at prices arbitrarily higher than the price just to avoid the error, so I tried null at it seems to work.