Api Error on variant update

Shopify Expert
35 0 3

Hi Guys,

I’m trying to update one of my customers variants through the API and I keep getting this error:
"2 option values given but 1 options exist"

 

This is what I’m doing:

 

PUT /admin/variants/10976847105.json
{
  "variant": {
    "id": 10976847105,
    "inventory_quantity_adjustment": -1,
  }
}

 

And this is all data from the variant itself:

array:24 [▼
  "id" => 10976847105
  "product_id" => 3776229313
  "title" => "option1-title / option2-title"
  "price" => "38.00"
  "sku" => "WS011"
  "position" => 15
  "grams" => 0
  "inventory_policy" => "deny"
  "compare_at_price" => null
  "fulfillment_service" => "manual"
  "inventory_management" => null
  "option1" => “option1-title"
  "option2" => “option2-title"
  "option3" => null
  "created_at" => "2015-12-30T13:04:37-05:00"
  "updated_at" => "2015-12-30T13:04:37-05:00"
  "requires_shipping" => true
  "taxable" => true
  "barcode" => null
  "inventory_quantity" => 1
  "old_inventory_quantity" => 1
  "image_id" => null
  "weight" => 0.0
  "weight_unit" => "lb"
]

Do you have any idea what could trigger this error?

Thanks!

0 Likes
Highlighted
Shopify Expert
35 0 3

No-one gets the same error? I still get this error no matter what change I push to the variant.

0 Likes