Dashboard
Get dashboard summary by GET Method with filter function customized option for you. below list of route with parameter
https://ecom.coderorbit.com/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": 25,
"unique_id": "25011933543",
"user_id": 37,
"vendor_id": 2,
"status": {
"id": 1,
"unique_id": "K1uPjcy70nApJ62",
"name": "Pending"
},
"discount": 0,
"quantity": 1,
"total": 1900,
"grand_total": 1900,
"commission": 0,
"affiliate": 0,
"payment_status": "1",
"promo_code": null,
"description": null,
"extend_props": {
"vat": 0,
"tax": 0,
"boundle_name": null,
"contact": {
"name": "Md Aminur",
"address": "m",
"email": null,
"mobile": "01622256788",
"thana_id": 161,
"city_id": 3,
"country_id": 18,
"country": "Bangladesh",
"city": "Gazipur",
"thana": "Kapasia"
},
"type": "Sigle",
"others": []
},
"created_by": {
"id": 37,
"role_id": 2,
"country_id": 18,
"name": "Md Aminur",
"email": "372efc09-ac30-4d97-8d9b-a56b476681b5@gmail.com",
"extend_props": {
"userType": "Guest"
},
"email_verified_at": null,
"created_at": "2025-01-19T08:02:09.000000Z",
"updated_at": "2025-01-19T08:02:09.000000Z",
"unique_id": "25011974802",
"otp": 423213,
"status": 1,
"description": null,
"created_by": null,
"updated_by": null,
"deleted_at": null
},
"updated_by": {
"id": 37,
"role_id": 2,
"country_id": 18,
"name": "Md Aminur",
"email": "372efc09-ac30-4d97-8d9b-a56b476681b5@gmail.com",
"extend_props": {
"userType": "Guest"
},
"email_verified_at": null,
"created_at": "2025-01-19T08:02:09.000000Z",
"updated_at": "2025-01-19T08:02:09.000000Z",
"unique_id": "25011974802",
"otp": 423213,
"status": 1,
"description": null,
"created_by": null,
"updated_by": null,
"deleted_at": null
},
"deleted_at": null,
"created_at": "2025-01-19T08:02:09.000000Z",
"updated_at": "2025-01-19T08:02:09.000000Z",
"order_items": [
{
"id": 29,
"unique_id": "2501198623",
"vendor_order": 25011933543,
"order_id": "25011933543",
"vendor_id": 2,
"brand_id": 24,
"item_id": 69,
"item_name": "Winter Happiness",
"icon": "",
"slug": "69_regular",
"color": "Regular",
"size": "2.5kg",
"regular_price": 2080,
"current_price": 1900,
"discount_amount": 0,
"quantity": 1,
"grand_total": 1900,
"extend_props": {
"vat": 0,
"tax": 0
},
"created_by": 37,
"updated_by": 37,
"deleted_at": null,
"created_at": "2025-01-19T08:02:09.000000Z",
"updated_at": "2025-01-19T08:02:09.000000Z",
"vendor": null,
"products": {
"id": 69,
"unique_id": "le9KbVx6mLDrwvP",
"category": [
108,
122
],
"brand_id": 24,
"vendor_id": 2,
"country_id": 18,
"district_id": 1,
"police_station_id": null,
"name": "Winter Happiness",
"slug": "winter_happiness_le9KbVx6mLDrwvP",
"icon": "",
"icon_small": "",
"feature": "",
"feature_small": "",
"gallery": [
""
],
"gallery_small": [
""
],
"sequence": null,
"description": null,
"attributes": {
"colors": "Regular",
"sizes": "2.5kg"
},
"minimum_order": 1,
"start_offer": "2025-01-01 07:01:29",
"end_offer": "2025-02-28 07:01:29",
"extend_props": null,
"status": 1,
"shipping_cost": null,
"regular_price": 2080,
"current_price": 1900,
"discount": null,
"discount_type": 1,
"stock": 200,
"seo_tag": null,
"seo_description": null,
"additional": [
{
"id": 151,
"additional_key": "69_regular_2.5kg",
"product_id": 69,
"unique_id": "69_regular_2.5kg",
"slug": "69_regular",
"color": "Regular",
"size": "2.5kg",
"regular_price": 2080,
"current_price": 1900,
"discount": null,
"discount_type": 1,
"stock": 0,
"status": 1,
"stock_status": 1,
"color_galleries": null,
"created_by": 1,
"updated_by": 1,
"created_at": "2025-01-12T07:12:31.000000Z",
"updated_at": "2025-01-12T07:12:31.000000Z"
}
],
"shipping": null,
"payment_method": null,
"created_by": {
"id": 1,
"role_id": 1,
"country_id": 18,
"name": "Admin",
"email": "admin@gmail.com",
"extend_props": {
"address": null,
"city_id": 1,
"thana_id": 494
},
"email_verified_at": null,
"created_at": "2023-09-16T20:19:46.000000Z",
"updated_at": "2025-01-07T14:41:12.000000Z",
"unique_id": "8660998812",
"otp": 874613,
"status": 1,
"description": null,
"created_by": 0,
"updated_by": 0,
"deleted_at": null
},
"updated_by": {
"id": 1,
"role_id": 1,
"country_id": 18,
"name": "Admin",
"email": "admin@gmail.com",
"extend_props": {
"address": null,
"city_id": 1,
"thana_id": 494
},
"email_verified_at": null,
"created_at": "2023-09-16T20:19:46.000000Z",
"updated_at": "2025-01-07T14:41:12.000000Z",
"unique_id": "8660998812",
"otp": 874613,
"status": 1,
"description": null,
"created_by": 0,
"updated_by": 0,
"deleted_at": null
},
"created_at": "2025-01-12T07:06:10.000000Z",
"updated_at": "2025-01-12T07:12:31.000000Z",
"deleted_at": null,
"vendor": {
"id": 2,
"unique_id": "marium001",
"user_id": 1,
"name": "Marium",
"slug": "marium001",
"icon": null,
"thumbnails": null,
"banner": null,
"description": null,
"status": 1,
"extend_props": null,
"created_by": 1,
"updated_by": 1,
"created_at": "2024-10-19T20:59:09.000000Z",
"updated_at": "2024-10-19T20:59:12.000000Z"
},
"additional_media": [
{
"id": 69,
"product_id": 69,
"slug": "69_regular",
"color_icon": "",
"color_icon_small": "",
"color_thumbnails_small": "",
"color_thumbnails": "",
"color_galleries": [
""
],
"color_galleries_small": [
""
]
}
],
"categories": [
{
"id": 108,
"unique_id": "3hcLe54gzDMuGUA",
"parent_id": 0,
"name": "New Arrival",
"slug": "new_arrival_3hcLe54gzDMuGUA",
"sequence": null,
"commission": null,
"commission_type": "fixed",
"icon": "",
"thumbnails": null,
"banner": "",
"description": null,
"status": 1,
"extend_props": {
"Discount": "15-25%"
},
"created_by": 1,
"updated_by": 1,
"created_at": "2024-11-03T00:22:16.000000Z",
"updated_at": "2024-11-03T00:22:34.000000Z",
"pivot": {
"product_id": 69,
"category_id": 108
}
},
{
"id": 122,
"unique_id": "yR5arefrn1SdWm9",
"parent_id": 0,
"name": "All",
"slug": "all_yR5arefrn1SdWm9",
"sequence": null,
"commission": 0,
"commission_type": "parcentage",
"icon": null,
"thumbnails": null,
"banner": null,
"description": null,
"status": 1,
"extend_props": {
"": null
},
"created_by": 1,
"updated_by": 1,
"created_at": "2025-01-05T08:43:35.000000Z",
"updated_at": "2025-01-05T08:43:35.000000Z",
"pivot": {
"product_id": 69,
"category_id": 122
}
}
],
"brand": {
"id": 24,
"unique_id": "JoG24xMIFgswSfz",
"parent_id": null,
"name": "HF Food Service",
"slug": "hf_food_service_JoG24xMIFgswSfz",
"banner": null,
"icon": null,
"thumbnails": null,
"commission": null,
"commission_type": "fixed",
"status": 1,
"description": null,
"extend_props": [],
"created_by": 1,
"updated_by": 1,
"created_at": "2025-01-12T07:01:06.000000Z",
"updated_at": "2025-01-12T07:01:06.000000Z"
},
"country": {
"id": 18,
"sortname": "BD",
"name": "Bangladesh",
"status": 1,
"phonecode": 880,
"added_by": 1,
"updated_by": 1,
"created_at": null,
"updated_at": null
},
"district": {
"id": 1,
"country_id": 18,
"name": "Dhaka",
"bn_name": "ঢাকা",
"lat": "23.7115253",
"lon": "90.4111451",
"website": "www.dhaka.gov.bd",
"created_at": "2015-09-12T16:33:27.000000Z",
"updated_at": "2015-09-12T16:36:20.000000Z"
},
"police_station": null,
"referrals": [],
"bundles": []
}
}
],
"vendor": null,
"user": {
"id": 37,
"role_id": 2,
"country_id": 18,
"name": "Md Aminur",
"email": "372efc09-ac30-4d97-8d9b-a56b476681b5@gmail.com",
"extend_props": {
"userType": "Guest"
},
"email_verified_at": null,
"created_at": "2025-01-19T08:02:09.000000Z",
"updated_at": "2025-01-19T08:02:09.000000Z",
"unique_id": "25011974802",
"otp": 423213,
"status": 1,
"description": null,
"created_by": null,
"updated_by": null,
"deleted_at": null
}
},
{
...
},
],
"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
}