Product visibility and main/variant updated time
I'm working on an API integration for a customer. I dont have access to the shop backend, so I dont know how the shop is set up, but I do have a working set of API credentials.
I have two questions:
1: I have two products where one is visible in the storefront and one isn't. When I request these two products in the API both of them have visibility:auto and isVisible:false. Both of them also have stocktracking:true and stocklevel:0
I can't seem to find a way to tell which product is visible in the storefront based on the API response - is there something i'm missing?
2: When i request all the variants that are updated in the past 6 hours and all the main products that are updated in the past 6 hours (using updated_at_min filter), it seems that a lot of variants have been changed, but not necessarily the related main products.
What triggers an update on the main product? More specifically i'm interested in knowing what happens if you change the price of a variant - will that update both the main and the variant or just the variant?