diff --git a/html/includes/api_functions.inc.php b/html/includes/api_functions.inc.php
index 8208a0c41..83f99e9b1 100644
--- a/html/includes/api_functions.inc.php
+++ b/html/includes/api_functions.inc.php
@@ -847,6 +847,7 @@ function list_oxidized() {
function list_bills() {
global $config;
$app = \Slim\Slim::getInstance();
+ $router = $app->router()->getCurrentRoute()->getParams();
$status = 'ok';
$err_msg = '';
$message = '';