Team 🎨
Team Search
📌 POST
:/office/teamsearch
Request (body)
rf
: Contains only 0,1,2.isactive
: Contains only 0,1.
Response
// Success
{
"success":true,
"data" : [...],
"msg": "Team List Loaded"
}
// Error
{
"error": [],
"success":false,
"msg":"Check Parameters"
}
Team Member Cost
📌 POST
:/office/teammembercost
Request (body)
mobileno
* : Max 16 characters
Note :
- For adding Team Member Cost the user must have
hasmoney
Permission.
Response
// Success
{
"success":true,
"mobno" : "mobno",
"data" : {....} ,
"msg": "Cost loaded"
}
// Error
{
"error": [],
"success":false,
"msg":"Check Parameters"
}
Team List
📌 POST
:/office/teamlist
Response
// Success
{
"success":true,
"mobno" : "mobno",
"data" : {....} ,
"msg": "List Loaded"
}
// Error
{
"error": [],
"success":false,
"msg":"Check Parameters"
}
Staff Info
📌 POST
:/office/staffinfo
Request (body)
mobileno
* : Max 16 characters
Response
// Success
{
"success":true,
"data" : {...} ,
"msg": "Team Info Loaded"
}
// Error
{
"error": [],
"success":false,
"msg":"Check Parameters"
}
Add Team Cost
📌 POST
:/office/addteamcost
Request (body)
mobileno
* : Max 16 charactersyear
* : Only Numbers.amount
* : Only Numbers.
Note:
- The user must have
hasbilling
Permission.
Response
// Success
{
"success":true,
"params" : {...} ,
"msg": "Team Cost Added"
}
// Error
{
"error": [],
"success":false,
"msg":"Check Parameters"
}
Update Team Cost
📌 POST
:/office/updateteamcost
Request (body)
mobileno
* : Max 16 charactersyear
* : Only Numbers.amount
* : Only Numbers.
Note:
- The user must have
hasbilling
Permission.
Response
// Success
{
"success":true,
"params" : {...} ,
"msg": "Team Cost Updated"
}
// Error
{
"error": [],
"success":false,
"msg":"Check Parameters"
}
Attendance Calendar
📌 POST
:/office/attendancecalendar
Request (body)
mobileno
* : Max 16 charactersdtstart dtend
* : Only Date (ISO Format Required).
Response
// Success
{
"success":true,
"params" : {...} ,
"data" : {...},
"msg": "Attendance Info Loaded"
}
// Error
{
"error": [],
"success":false,
"msg":"Check Parameters"
}
Attendancce Count
📌 POST
:/office/attendancecount
Request (body)
mobileno
* : Max 16 characters.
Response
// Success
{
"success":true,
"params" : {...} ,
"data" : {...},
"msg": "Attendance count loaded"
}
// Error
{
"error": [],
"success":false,
"msg":"Check Parameters"
}
Staff Create
📌 POST
:/office/staffcreate
Request (body)
mobileno
* : Max 16 characters.staffname
*: Min 2 and max 20 characters required .
Note :
- For creating a staff the user must have
hasadmin
Permission.
Response
// Success
{
"success":true,
"params" : {...} ,
"otp" : "otpvalue",
"no" : "mobileno" ,
"msg": "Team Member Added"
}
// Error
{
"error": [],
"success":false,
"msg":"Check Parameters"
}
Staff Update
📌 POST
:/office/staffupdate
Request (body)
mobileno
* : Max 16 characters.staffname
*: Min 2 and max 20 characters required .staffno
: Maximum 50 characters.timez
* : Maximum 40 characters.category pcenter ccenter
: Category name can only contain alphabets, numbers and '-' and '_' .
Note :
- For updating staff the user must have
hasadmin
Pemission. pcenter ccenter
stand for Profit Centre , Cost Centre.
Response
// Success
{
"success":true,
"data" : "mobileno" ,
"msg": "Staff Info Updated"
}
// Error
{
"error": [],
"success":false,
"msg":"Check Parameters"
}
Team Default Search
📌 POST
:/office/teamdefaultsearch
Request (body)
linkid
: Maximum 16 Characters allowed.linkto
* : Only C,S,T.
Response
// Success
{
"success":true,
"data" : [...],
"msg": "Team Info Updated"
}
// Error
{
"error": [],
"success":false,
"msg":"Check Parameters"
}
Assigned Team
📌 POST
:/office/assignedteam
Request (body)
linkid
: Maximum 16 Characters allowed.linkto
* : Only C,S,T.
Response
// Success
{
"success":true,
"data" : [...],
"msg": "Assigned Team Loaded"
}
// Error
{
"error": [],
"success":false,
"msg":"Check Parameters"
}
Default Team Member Add
📌 POST
:/office/defaultteammemberadd
Request (body)
linkid
: Maximum 16 Characters allowed.linkto
* : Only C,S,T.mobileno
* : Maximum 16 Characters allowed.
Note:
- The User must have
hasadmin
Permission.
Response
// Success
{
"success":true,
"params" : {...} ,
"msg": "Team Member Added"
}
// Error
{
"error": [],
"success":false,
"msg":"Check Parameters"
}
Default Team Delete
📌 POST
:/office/defaultteammemberadd
Request (body)
linkid
: Maximum 16 Characters allowed.linkto
* : Only C,S,T.mobileno
* : Maximum 16 Characters allowed.
Note:
- The User must have
hasadmin
Permission.
Response
// Success
{
"success":true,
"params" : {...} ,
"msg": "Team Member Deleted"
}
// Error
{
"error": [],
"success":false,
"msg":"Check Parameters"
}