I'm trying to product data and inventory via the API.
get back errors like:
Google.Apis.Requests.RequestError
[item id] Invalid item id: 2010384 [400]
Errors [
Message[[item id] Invalid item id: 2010384] Location[ - ] Reason[invalid] Domain[global]
]
my code:
gService.Localinventory.Insert(localInventory, (ulong) googleAccount.MerchantConfig.MerchantId, variantId.ToString()).Execute();
where localInventory is:
{
"availability": "in stock",
"price": {
"currency": "USD",
"value": "8.98"
},
"quantity": 999,
"storeCode": "0006"
}
I do have a product with id: 2010384
its Status:
- Free local listings - Disapproved or invalid
I do have a store with code '0006' and it is verified.
Questions
- Is that error message saying that the item id I provided (2010384) is not a valid ID or is it just saying that the item which I submitted which has that id is not valid?
- Does the Free Local Listing have to be approved before Local Inventory will work?
- What might be causing this error?
Thank you