added merchant invoices query