I can access orders by order status but I want to access with customerId. Here's the code to access with order status. When I add parameter customerId, it returns all the records.
$params = array('status'=>'processing');
$data = $woocommerce->get('orders', $params);
echo json_encode(
$data
);