rrabinovitch / rails_engine_rr

ReST API for sales data
0 stars 0 forks source link

Business intelligence: Revenue for a Merchant endpoint #12

Open rrabinovitch opened 3 years ago

rrabinovitch commented 3 years ago

This endpoint should return the total revenue for a single merchant.

The URI should follow this pattern: GET /api/v1/merchants/:id/revenue

NOTE: Only paid invoices should be counted in revenue totals or statistics. A paid invoice has at least one successful transaction.

rrabinovitch commented 3 years ago

Screen Shot 2020-08-30 at 2 48 46 AM