I'm using this example to get the inventory list:
try {
$result = $api_instance->listInventory($location_id, $limit, $batch_token);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling V1ItemsApi->listInventory: ', $e->getMessage(), PHP_EOL;
}
I would like to create a items/products list out of it but I can't since it only returns "variation_id" and "quantity_on_hand". How can I get the item_id so I can retrieve the necessary details?