App reviews, troubleshooting, and recommendations
When updating multiple variants of a product using the product's REST PUT endpoint, the cost per item field is reset for each variation.
For example, when putting this product:
$payload = [
'product' => [
'id' => 123456,
'variants' => [
[
'id' => 5678,
'sku' => 'abc',
],
[
'id' => 1234,
'sku' => 'def',
],
],
],
];
The SKUs would update okay, but the cost per item would reset per each variant. The expected behavior should be that the cost per item remain unaffected, and would only change if explicitly requested – am I missing something?
Thanks!
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025