Closed tquoctuan97 closed 2 months ago
Currently, The API api/v1/admin/bills supports filtering by a single date using the parameter billDate. Users have requested the ability to filter by a date range.
api/v1/admin/bills
billDate
To filter by a date range, users can provide the following:
/api/v1/admin/bills?billDateFrom=2024-01-01T00:00:00.000Z&billDateTo=2024-01-31T00:00:00.000Z
billDateForm
If users provide only the billDateFrom parameter, the API will return bills created from the specified date to the present.
billDateFrom
billDateTo
If users provide only the billDateTo parameter, the API will return bills created from the oldest date up to the specified date.
Currently, The API
api/v1/admin/bills
supports filtering by a single date using the parameterbillDate
. Users have requested the ability to filter by a date range.Filter by Date Range
To filter by a date range, users can provide the following:
Filter by
billDateForm
onlyIf users provide only the
billDateFrom
parameter, the API will return bills created from the specified date to the present.Filter by
billDateTo
onlyIf users provide only the
billDateTo
parameter, the API will return bills created from the oldest date up to the specified date.Validation
billDateFrom
andbillDateTo
are provided, thenbillDateFrom
must be the same or beforebillDateTo
.