member.dues

GET · api v1

Everything still open between the قطاع and the member, in one call: unpaid fines and gifts not yet received.

كل المستحقات المفتوحة بين القطاع والعضو في طلب واحد: الغرامات غير المدفوعة والمكافآت غير المستلمة.

Parameters

NameTypeRequiredDescription
targetTargetrequiredWho to read about: { source = 7 } for an online player, { discord = "..." } or { code = "P-12" }.
factionstringrequiredThe in-game job name linked to the قطاع, e.g. "police".

Returns (res.data)

NameTypeDescription
finestable{ count, total }
giftstable{ count, total }
netnumbergifts.total minus fines.total.
itemstable[]{ kind = "fine" | "gift", id, amount, reason, created_at }

Possible errors

Notes

Example

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

Example output

{
  "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
  }
}