Sale Report
GET
Get Sale Report
Retrieve a paginated list of sales with optional filtering by branch, customer, waiter, and date range.
GET
/reports/sale-report
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| branch_id | integer | Optional | Filter by branch ID (must exist and be active) |
| customer_id | integer | Optional | Filter by customer ID (must exist and be active) |
| waiter_id | integer | Optional | Filter by waiter ID (must exist and be active) |
| from_date | string (Y-m-d) | Optional | Start date for filtering sales (must be before or equal to to_date) |
| to_date | string (Y-m-d) | Optional | End date for filtering sales (must be after or equal to from_date) |
| report_type | string (daily, detail) | Optional | Type of report. Use daily for aggregated daily totals or detail (default) for a full sales listing. Both options support pagination. |
| page | integer | Optional | Page number for pagination |
| per_page | integer | Optional | Number of items per page (default: 15) |
Response
200 OKStatus Code
HTTP status code (200)
Message
Sale Report successfully
Data
Paginated Detail Report Structure
Response
200 OKStatus Code
HTTP status code (200)
Message
Sale Report successfully
Data
Paginated Daily Report Structure