Get only in stock products using PHP Shopify SDK

gemplan
New Member
4 0 2

I am making a request 

$products_arr = new PHPShopify\Product;
$products = $products_arr->get([ "published_status" => "published""fields" => "id,title,variants,images,options,image""limit" => 250"status" => "active" ]);
And it returns me products that are out of stock with "inventory_policy": "deny".
How to get only products with inventory_policy": "continue"
I am using https://github.com/phpclassic/php-shopify
0 Likes