treasury_id and a staffs list. Each staff entry includes the employee id, code, name parts, full_name, and the deposit and withdraw permissions the employee holds on that treasury. If staffs is an empty array, no specific employees are assigned to that treasury, which means all users have access to it.curl --location --globoff 'https://.daftara.com/v2/api/treasuries/assigned-employees' \
--header 'Accept: application/json' \
--header 'apikey: ' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json'{
"data": [
{
"treasury_id": 1,
"staffs": [
{
"id": 1,
"code": "000001",
"name": "John",
"middle_name": "",
"last_name": "Smith",
"full_name": "John Smith",
"deposit": false,
"withdraw": true
},
{
"id": 2,
"code": "000002",
"name": "Sara",
"middle_name": "Ali",
"last_name": "Khan",
"full_name": "Sara Ali Khan",
"deposit": true,
"withdraw": true
}
]
},
{
"treasury_id": 2,
"staffs": []
}
]
}