Dashboard
Get dashboard summary by GET Method with filter function customized option for you. below list of route with parameter
https://ecom.coderorbit.com/public/api/admin/{{app_token}}/dashboard
headers:{
"Accept": "application/json"
"Authorization" : `Bearer ${token}`
}
### Result
{
"current_week_start": "2024-06-10",
"current_week_end": "2024-06-16",
"previous_week_start": "2024-06-03",
"previous_week_end": "2024-06-09",
"current_month_start": "2024-06-01",
"current_month_end": "2024-06-30",
"previous_month_start": "2024-05-01",
"previous_month_end": "2024-05-31",
"total_pays": 0,
"current_week_total_sale": 0,
"current_week_total_order": 160,
"current_week_total_earning": 0,
"current_week_total_pays": 0,
"previous_week_total_sale": 0,
"previous_week_total_order": 0,
"previous_week_total_earning": 0,
"previous_week_total_pays": 0,
"current_month_orders": {
"data": [0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
},
"previous_month_orders": {
"data": [0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
},
"recent_orders": {
"current_page": 1,
"data": [
{
"id": 4,
"unique_id": "7198054781",
"user_id": 1,
"vendor_id": 1,
"status": 3,
"discount": 0,
"quantity": 2,
"total": 80,
"grand_total": 80,
"commission": 0,
"affiliate": 0,
"payment_status": "1",
"promo_code": "",
"description": "this is test order",
"extend_props": {
"vat": 0,
"tax": 0,
"boundle_name": null,
"contact": {
"address": "current address",
"delivery_address": "Delivery Address",
"email": "majadul.dev@gmail.com",
"mobile": "01677270944"
},
"type": "Sigle",
"others": {
"check": "test"
}
},
"created_by": 1,
"updated_by": 1,
"deleted_at": null,
"created_at": "2024-06-15T04:34:23.000000Z",
"updated_at": "2024-06-15T04:34:23.000000Z"
},
{
...
},
],
"first_page_url": "",
"from": 1,
"last_page": 1,
"last_page_url": "",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"next_page_url": null,
"path": "",
"per_page": 5,
"prev_page_url": null,
"to": 4,
"total": 4
},
"current_weeks_orders": {
"data": [0,0,0,0,0,2,0]
},
"previous_weeks_orders": {
"data": [0,0,0,0,0,0,0]
},
"all": 4,
"pending": 0,
"processing": 0,
"packaging": 2,
"shipped": 0,
"cancel": 0,
"rejected": 0,
"delivered": 0,
"total_amount": 320,
"total_cancel_reject_amount": 0,
"total_delivered_amount": 0,
"commission": 0
}