updateInventory for multi-variant listings in v3

116 views
Skip to first unread message

Isaac

unread,
Oct 4, 2021, 1:59:28 PM10/4/21
to Etsy API
We are trying to update inventory on multiple existing SKUs under a single listing using the following endpoint in v3 (listing ID masked):
Below is the INVENTORIES_JSON:

{"products"=>

  [{"sku"=>"SKU1",

    "offerings"=>[{"price"=>5.0, "quantity"=>5, "is_enabled"=>true}],

    "property_values"=>[{"values"=>["8mm"], "scale_id"=>nil, "value_ids"=>[54952675913], "property_id"=>513, "property_name"=>"Bead Diameter"}]},

   {"sku"=>"SKU2",

    "offerings"=>[{"price"=>10, "quantity"=>0, "is_enabled"=>true}],

    "property_values"=>[{"values"=>["10mm"], "scale_id"=>nil, "value_ids"=>[53768392378], "property_id"=>513, "property_name"=>"Bead Diameter"}]},

   {"sku"=>"SKU3",

    "offerings"=>[{"price"=>12, "quantity"=>0, "is_enabled"=>true}],

    "property_values"=>[{"values"=>["12mm"], "scale_id"=>nil, "value_ids"=>[53768392488], "property_id"=>513, "property_name"=>"Bead Diameter"}]},

   {"sku"=>"SKU4",

    "offerings"=>[{"price"=>15, "quantity"=>0, "is_enabled"=>true}],

    "property_values"=>[{"values"=>["14mm"], "scale_id"=>nil, "value_ids"=>[57059382125], "property_id"=>513, "property_name"=>"Bead Diameter"}]}],

 "price_on_property"=>[513],

 "quantity_on_property"=>[513],

 "sku_on_property"=>[513]}

We are getting the following error:

OAuth2::Error: Expected float value for 'price' (got NULL).: 

{"error":"Expected float value for 'price' (got NULL)."}

It's odd because we are including a price in float format, and are using structured JSON that the server gives us when fetching the listing's inventory (with small modifications such as removing is_deleted, etc).

Any idea why we would be getting this error? We wrote Etsy development team however they have yet to provide an answer. Spent many hours trying to solve this issue but have not succeeded.

Thank you

Gareth Doherty

unread,
Oct 14, 2021, 8:29:24 AM10/14/21
to Etsy API
Hi, all v3 issues are currently being tracked on Github

Issues · etsy/open-api (github.com)

I would raise this there, after searching to see if anyone has raised it previously.
Reply all
Reply to author
Forward
0 new messages