Hello, I have some instances where a product was not available in a location, but now I want it to be available.
My app updates the inventory count for the item at the location just fine, however, the item still shows as unavailable.
For clarification here’s a scenario:
I have 2 locations (Location A and Location B):
I receive a product at Location A so I run the Upsert catalog object api call and set Present At All Locations to false and set Present at Location ids to Location A.
I had no intention of selling the product at Location B, however, due to circumstances, I now receive that product at Location B. Is there any API call to update present at all locations ids?
By “all location ids” do you mean you just want to set present_at_all_locations to true? If so, you can do that via the UpsertCatalogObject call, and just remove the present_at_location_ids (ie don’t include it in the upsert request, so it gets deleted).
Yes, but you need to make sure both the item and item variation is present; so you would need to update the parent object (item) as well to be present at the same location.
Thank you for looking into this. In the API request I am specifying the present_at_all_locations, absent_at_location_ids, and present_at_location_ids for parent item object and item variation object. Am I doing anything wrong and if you can share an example API request that successfully updates the Item and Item Variation object’s present locations that would be great!
Looking at the API Logs it looks like your trying to update the item variation and not updating the parent item object. You will need to make the item and the item variation available at all locations for the API call to succeed.