GET · api v1
The member's current or next vacation in a قطاع, and their vacation balance.
الإجازة الحالية أو القادمة للعضو في القطاع، ورصيد إجازاته.
| Name | Type | Required | Description |
|---|---|---|---|
target | Target | required | Who to read about: { source = 7 } for an online player, { discord = "..." } or { code = "P-12" }. |
faction | string | required | The in-game job name linked to the قطاع, e.g. "police". |
res.data)| Name | Type | Description |
|---|---|---|
current | table|nil | { type, starts_at, ends_at, days_left } |
next | table|nil | The next scheduled vacation, same shape. |
balance_days | number | Days left in the vacation wallet. |
reason | string|nil | The vacation reason written by the member. |
local res = exports.OrcaBot_V3:Get('member.vacation', { target = { source = src }, faction = 'police' })
if res.ok and res.data.current then
print('On leave until', res.data.current.ends_at)
end
{
"ok": true,
"data": {
"current": {
"type": "عادية",
"starts_at": "2026-10-15T00:00:00Z",
"ends_at": "2026-10-19T00:00:00Z",
"days_left": 4
},
"next": null,
"balance_days": 6,
"reason": "سفر"
},
"meta": {
"action": "member.vacation",
"method": "GET",
"api": 1
}
}