“line_items” of orders: https://shopify.dev/api/admin-rest/2022-01/resources/order#resource_object
- product_id: The ID of the product that the line item belongs to. Can be null if the original product associated with the order is deleted at a later date.
- variant_id: The ID of the product variant.
- product_exists: deleted from description… It indicates that the original product is deleted.
It gives information about whether product is deleted or not, but not about variant_id.
It is painful to check if variant_id is still alive.
Can I use ‘variant_inventory_management’ to assume that the corresponding variant is alive?
The meaning of variant_inventory_management is not documented, but this value for deleted variant seems to be null.