← All requests

GET /v1/admin/dashboard/series

Status
200
Duration
33.5 ms
Started (UTC)
2026-12-06 08:18:03.883
Route
/v1/admin/dashboard/series
Request ID
c11b9694-43f0-40b2-93bc-86d02374ffa4
Subject
admin:01a130d6-8161-7068-92f2-3f4b06b4ad11
IP
172.16.1.1
User agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/158.0.0.0 Safari/537.36
Language
ar
Queries
3 (23.5 ms)
Cache hit / miss
0 / 0

Timeline

cache +0.8 ms 0.2 ms
error rec:session:14560caed51bfd15256b8f746b3d2617d79820a0cf1b0c9aa571673df2bc617f
[
  "get"
]
query +1.0 ms 6.1 ms
select `id`, `subject_type`, `subject_id`, `token_hash`, `ip`, `user_agent`, `created_at`, `last_used_at`, `expires_at`, `revoked_at`, `revoked_reason` from `sessions` where `sessions`.`token_hash` = '14560caed51bfd15256b8f746b3d2617d79820a0cf1b0c9aa571673df2bc617f'

Parameters

[
  "14560caed51bfd15256b8f746b3d2617d79820a0cf1b0c9aa571673df2bc617f"
]

1 rows

cache +7.7 ms 0.3 ms
error rec:session:14560caed51bfd15256b8f746b3d2617d79820a0cf1b0c9aa571673df2bc617f
[
  "set"
]
cache +7.9 ms 0.1 ms
error rec:subject:admin:01a130d6-8161-7068-92f2-3f4b06b4ad11
[
  "get"
]
query +9.0 ms 10.8 ms
select `admins`.`id`, `admins`.`name`, `admins`.`mobile`, `admins`.`email`, `admins`.`password_hash`, `admins`.`role_id`, `admins`.`status`, `admins`.`language`, `admins`.`theme`, `admins`.`avatar_file_id`, `admins`.`disabled_reason`, `admins`.`last_sign_in_at`, `admins`.`sign_in_count`, `admins`.`created_at`, `admins`.`updated_at`, `admins`.`deleted_at`, `roles`.`id`, `roles`.`name_ar`, `roles`.`name_en`, `roles`.`permissions`, `roles`.`status`, `roles`.`is_system`, `roles`.`created_at`, `roles`.`updated_at` from `admins` inner join `roles` on `roles`.`id` = `admins`.`role_id` where (`admins`.`id` = '01a130d6-8161-7068-92f2-3f4b06b4ad11' and `admins`.`deleted_at` is null)

Parameters

[
  "01a130d6-8161-7068-92f2-3f4b06b4ad11"
]

1 rows

cache +19.7 ms 0.3 ms
error rec:subject:admin:01a130d6-8161-7068-92f2-3f4b06b4ad11
[
  "set"
]
cache +20.8 ms 0.2 ms
error dashboard:series:revenue:day:2026-11-07:2026-12-06
[
  "get"
]
query +21.0 ms 6.6 ms
select date_format(`paid_at` + interval 3 hour, '%Y-%m-%d'), sum(`amount_halalas`), sum(`vat_halalas`), sum(`total_halalas`) from `payments` where (`payments`.`status` = 'paid' and (`payments`.`paid_at` >= '2026-11-06 21:00:00.000' and `payments`.`paid_at` < '2026-12-06 21:00:00.000')) group by date_format(`payments`.`paid_at` + interval 3 hour, '%Y-%m-%d')

Parameters

[
  "paid",
  "2026-11-06 21:00:00.000",
  "2026-12-06 21:00:00.000"
]

0 rows

cache +27.9 ms 0.1 ms
error dashboard:series:revenue:day:2026-11-07:2026-12-06
[
  "set"
]

Request

Headers
{
  "host": "maqsed-api.dev-moltaqa.cloud",
  "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/158.0.0.0 Safari/537.36",
  "accept": "application/json, text/plain, */*",
  "accept-encoding": "gzip, deflate, br, zstd",
  "accept-language": "ar",
  "authorization": "********",
  "cache-control": "no-cache",
  "cookie": "********",
  "locale": "ar",
  "pragma": "no-cache",
  "priority": "u=1, i",
  "referer": "https://maqsed-dashboard.dev-moltaqa.cloud/ar",
  "sec-ch-ua": "\"Chromium\";v=\"158\", \"Not.A/Brand\";v=\"24\", \"Google Chrome\";v=\"158\"",
  "sec-ch-ua-mobile": "?0",
  "sec-ch-ua-platform": "\"Windows\"",
  "sec-fetch-dest": "empty",
  "sec-fetch-mode": "cors",
  "sec-fetch-site": "same-origin",
  "x-forwarded-for": "172.16.1.1",
  "x-forwarded-host": "maqsed-api.dev-moltaqa.cloud",
  "x-forwarded-port": "443",
  "x-forwarded-proto": "https",
  "x-forwarded-server": "7eb0077cd3f4",
  "x-real-ip": "172.16.1.1"
}
Query
{
  "metric": "revenue",
  "interval": "day",
  "from": "2026-11-07",
  "to": "2026-12-06"
}

Response

Body
{
  "metric": "revenue",
  "interval": "day",
  "from": "2026-11-07",
  "to": "2026-12-06",
  "points": [
    {
      "start": "2026-11-07",
      "net": 0,
      "vat": 0,
      "total": 0
    },
    {
      "start": "2026-11-08",
      "net": 0,
      "vat": 0,
      "total": 0
    },
    {
      "start": "2026-11-09",
      "net": 0,
      "vat": 0,
      "total": 0
    },
    {
      "start": "2026-11-10",
      "net": 0,
      "vat": 0,
      "total": 0
    },
    {
      "start": "2026-11-11",
      "net": 0,
      "vat": 0,
      "total": 0
    },
    {
      "start": "2026-11-12",
      "net": 0,
      "vat": 0,
      "total": 0
    },
    {
      "start": "2026-11-13",
      "net": 0,
      "vat": 0,
      "total": 0
    },
    {
      "start": "2026-11-14",
      "net": 0,
      "vat": 0,
      "total": 0
    },
    {
      "start": "2026-11-15",
      "net": 0,
      "vat": 0,
      "total": 0
    },
    {
      "start": "2026-11-16",
      "net": 0,
      "vat": 0,
      "total": 0
    },
    {
      "start": "2026-11-17",
      "net": 0,
      "vat": 0,
      "total": 0
    },
    {
      "start": "2026-11-18",
      "net": 0,
      "vat": 0,
      "total": 0
    },
    {
      "start": "2026-11-19",
      "net": 0,
      "vat": 0,
      "total": 0
    },
    {
      "start": "2026-11-20",
      "net": 0,
      "vat": 0,
      "total": 0
    },
    {
      "start": "2026-11-21",
      "net": 0,
      "vat": 0,
      "total": 0
    },
    {
      "start": "2026-11-22",
      "net": 0,
      "vat": 0,
      "total": 0
    },
    {
      "start": "2026-11-23",
      "net": 0,
      "vat": 0,
      "total": 0
    },
    {
      "start": "2026-11-24",
      "net": 0,
      "vat": 0,
      "total": 0
    },
    {
      "start": "2026-11-25",
      "net": 0,
      "vat": 0,
      "total": 0
    },
    {
      "start": "2026-11-26",
      "net": 0,
      "vat": 0,
      "total": 0
    },
    {
      "start": "2026-11-27",
      "net": 0,
      "vat": 0,
      "total": 0
    },
    {
      "start": "2026-11-28",
      "net": 0,
      "vat": 0,
      "total": 0
    },
    {
      "start": "2026-11-29",
      "net": 0,
      "vat": 0,
      "total": 0
    },
    {
      "start": "2026-11-30",
      "net": 0,
      "vat": 0,
      "total": 0
    },
    {
      "start": "2026-12-01",
      "net": 0,
      "vat": 0,
      "total": 0
    },
    {
      "start": "2026-12-02",
      "net": 0,
      "vat": 0,
      "total": 0
    },
    {
      "start": "2026-12-03",
      "net": 0,
      "vat": 0,
      "total": 0
    },
    {
      "start": "2026-12-04",
      "net": 0,
      "vat": 0,
      "total": 0
    },
    {
      "start": "2026-12-05",
      "net": 0,
      "vat": 0,
      "total": 0
    },
    {
      "start": "2026-12-06",
      "net": 0,
      "vat": 0,
      "total": 0
    }
  ]
}