GET /api/v1/items/:id/best_day- returns the date with the most sales for the given item using the invoice date. If there are multiple days with equal number of sales, return the most recent day.
GET /api/v1/items/most_revenue?quantity=x- returns the top
xitems ranked by total revenue generated. GET /api/v1/items/most_items?quantity=x- returns the top
xitem instances ranked by total number sold. GET /api/v1/customers/:id/favorite_merchant- returns a merchant where the customer has conducted the most successful transactions.
GET /api/v1/merchants/most_items?quantity=x- returns the top
xmerchants ranked by total number of items sold.
GET /api/v1/merchants/:id/revenue- returns the total revenue for that merchant across all transactions.
GET /api/v1/merchants/:id/revenue?date=x- returns the total revenue for that merchant for a specific invoice date
x. GET /api/v1/merchants/:id/customers_with_pending_invoices- returns a collection of customers which have pending (unpaid) invoices.
GET /api/v1/merchants/:id/favorite_customer- returns the customer who has conducted the most total number of successful transactions.
GET /api/v1/merchants/revenue?date=x- returns the total revenue for date
xacross all merchants. GET /api/v1/merchants/most_revenue?quantity=x- returns the top
xmerchants ranked by total revenue.