← All requests

GET /v1/admin/dashboard/series

Status
200
Duration
327 ms
Started (UTC)
2026-12-06 08:10:12.265
Route
/v1/admin/dashboard/series
Request ID
f5a47723-9000-4616-8a00-68b973e6125c
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 (185 ms)
Cache hit / miss
0 / 0

Timeline

cache +0.1 ms 0.9 ms
error rec:session:029101f5a63b97400cd2fd57226988e387995d984db668edcc326396b7e37966
[
  "get"
]
query +134 ms 26.3 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` = '029101f5a63b97400cd2fd57226988e387995d984db668edcc326396b7e37966'

Parameters

[
  "029101f5a63b97400cd2fd57226988e387995d984db668edcc326396b7e37966"
]

1 rows

query +161 ms 55.0 ms
select count(*) from `contact_messages` where `contact_messages`.`status` = 'unread'

Parameters

[
  "unread"
]

1 rows

cache +160 ms 1.7 ms
error rec:session:029101f5a63b97400cd2fd57226988e387995d984db668edcc326396b7e37966
[
  "set"
]
cache +163 ms 2.2 ms
error rec:subject:admin:01a130d6-8161-7068-92f2-3f4b06b4ad11
[
  "get"
]
cache +203 ms 2.4 ms
error rec:subject:admin:01a130d6-8161-7068-92f2-3f4b06b4ad11
[
  "set"
]
cache +215 ms 0.3 ms
error dashboard:series:revenue:day:2026-11-07:2026-12-06
[
  "get"
]
query +216 ms 104 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 +321 ms 0.8 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": "********",
  "cookie": "********",
  "locale": "ar",
  "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
    }
  ]
}