GET · api v1
Everything still open between the قطاع and the member, in one call: unpaid fines and gifts not yet received.
كل المستحقات المفتوحة بين القطاع والعضو في طلب واحد: الغرامات غير المدفوعة والمكافآت غير المستلمة.
| 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 |
|---|---|---|
fines | table | { count, total } |
gifts | table | { count, total } |
net | number | gifts.total minus fines.total. |
items | table[] | { kind = "fine" | "gift", id, amount, reason, created_at } |
local res = exports.OrcaBot_V3:Get('member.dues', { target = { source = src }, faction = 'police' })
if res.ok and res.data.fines.count > 0 then
print(('You owe %d in fines'):format(res.data.fines.total))
end
{
"ok": true,
"data": {
"fines": {
"count": 1,
"total": 5000
},
"gifts": {
"count": 1,
"total": 12000
},
"net": 7000,
"items": [
{
"kind": "fine",
"id": 301,
"amount": 5000,
"reason": "مخالفة زي",
"created_at": "2026-10-12T21:00:00Z"
},
{
"kind": "gift",
"id": 77,
"amount": 12000,
"reason": "أفضل أداء",
"created_at": "2026-10-14T20:00:00Z"
}
]
},
"meta": {
"action": "member.dues",
"method": "GET",
"api": 1
}
}