member.gifts

GET · api v1

Gifts (rewards) given to the member that are not received yet.

المكافآت اللي انعطت للعضو وما استلمها للحين.

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
countnumberOpen gifts.
totalnumberSum of amounts.
itemstable[]{ id, amount, reason, created_at, given_by_name }

Possible errors

Notes

Example

local res = exports.OrcaBot_V3:Get('member.gifts', { target = { source = src }, faction = 'police' })

Example output

{
  "ok": true,
  "data": {
    "count": 1,
    "total": 12000,
    "items": [
      {
        "id": 77,
        "amount": 12000,
        "reason": "أفضل أداء",
        "created_at": "2026-10-14T20:00:00Z",
        "given_by_name": "سعود العنزي"
      }
    ]
  },
  "meta": {
    "action": "member.gifts",
    "method": "GET",
    "api": 1
  }
}