Опечатка 

PHP Notice:Undefined variable: date_query /api/Coupons.php on line 133