# Team

📌 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 :

  1. 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 characters
  • year* : Only Numbers.
  • amount* : Only Numbers.

Note:

  1. 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 characters
  • year* : Only Numbers.
  • amount* : Only Numbers.

Note:

  1. 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 characters
  • dtstart 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 :

  1. 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 :

  1. For updating staff the user must have hasadmin Pemission.
  2. 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"
}

📌 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:

  1. 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:

  1. The User must have hasadmin Permission.

# Response

// Success
{
  "success":true, 
  "params" : {...} , 
  "msg": "Team Member Deleted"
}
// Error
{
  "error": [],
  "success":false,
  "msg":"Check Parameters"
}
Last Updated: 30 Jul 2020