Hi -
I am using the ShopifyAPI ruby gem and I am querying the InventoryLevels. I am getting several results with seemingly "bad" inventory_item_ids. They seem invalid because:
1) Querying for one of the "bad" inventory_item itself returns an item with mostly nil attributes (namely cost and sku). See example below:
```
{
"id"=>123,
"sku"=>nil,
"created_at"=>"2020-09-06T19:04:19-07:00",
"updated_at"=>"2020-09-06T19:04:19-07:00",
"requires_shipping"=>true,
"cost"=>nil,
"country_code_of_origin"=>nil,
"province_code_of_origin"=>nil,
"harmonized_system_code"=>nil,
"tracked"=>true,
"country_harmonized_system_codes"=>[]
}
```
2. There are no ProductVariants with this inventory_item_id.
What can cause this? I can simply ignore these inventory_levels but I'd like to understand how they are getting created in the first place...
Thanks!
-Bradley
User | Count |
---|---|
13 | |
12 | |
6 | |
6 | |
5 |