@token.put("https://openapi.etsy.com/v3/application/listings/#{listing_id}/inventory?client_id=#{CLIENT_ID}", body: 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