Time Tracking Software API ver. 2

Timesheet Mobile’s Time Tracking Software API is a REST based set of endpoints designed to be easily accessed and used to integrate third party applications to exchange employee, customer, task, and timesheet data.

 

Login_check API Parameters- Authenticates admin username and password and returns API_KEY.  KEY is to be used in all subsequent API calls.

 

Request ParametersDescriptionExample
username *   Username of the admin.username1
password *   Password of the corresponding usernamepassword

Login_check examples:

Time Tracking Software API Request:

Link:

https://admin.timesheetmobile.com/TBA/APIs/login_check.php?username=TBA&password=TBA1

Response:

{
	“status”: “success”,
	“message”: “success”,
	“API_KEY”: “fZjT32U5dnxkAwG3”
}

Time Tracking Software API Request:

Link:

https://admin.timesheetmobile.com/TBA/APIs/login_check.php?username=TBA&password=

Response:

{
	“status”: “fail”,
	“message”: “’password’ parameter is missing”,
}

Time Tracking Software API Request:

Link:

https://admin.timesheetmobile.com/TBA/APIs/login_check.php?username=&password=TBA1

Response:

{
	“status”: “fail”,
	“message”: “’username’ parameter is missing”,
}

Time Tracking Software API Request:

Link:

https://admin.timesheetmobile.com/TBA/APIs/login_check.php?username=TBA&password=TBA1

Response:

{
	“status”: “fail”,
	“message”: ” Your not admin”,
}

Time Tracking Software API Request:

Link:

https://admin.timesheetmobile.com/TBA/APIs/login_check.php?username=TBA&password=TBA1

Response:

{
	“status”: “fail”,
	“message”: ” Invalid Username or Password”,
}


Timesheet Report API Parameters

 

Request ParametersDescription         SyntaxExample
from_date *   From which date you want to start the reportAccepted Date Format mm/dd/yyyy01/03/2015
to_date *   To which date you want to run the report Accepted Date Format

mm/dd/yyyy

10/25/2015
key *Unique string given when admin loginAPI key from login APIAZG3B3WEJ0EZWGL5
employees

 

Number of the corresponding employee Employee Number

If no employee number given report for all employees will be generated

 

Default: All

32
 jobs

 

Number of the corresponding

job

Job Number if report required for single job

 

Default: All

21
rounding_time Accepted values
off
15
30Default : Set by Admin
15
time_format In what way you want display the time format Accepted values:

hh:mm

decimal

 

Default: Set by Admin

hh:mm
report_type Report type is for to split the records based on the report_type option Accepted values:

actual

day_started

day_ended

 

Default: Set by Admin

Actual

dayended

* Required Fields and remaining fields are optional and case insensitive.

Note:  For employees and jobs parameters if you enter valid employee number it gives corresponding data or if you enter “all” or any other thing then it gives all employees data

Timesheet Report Examples:

Time Tracking Software API Request:

Link:

https://admin.timesheetmobile.com/TBA/APIs/employee_report.php?key=NZG3B3WEJ0EZWGL5&from_date=08/01/2018&to_date=08/09/2018

Response:

{
  "status": "success",
  "message": "success",
  "log_count": 312,
  "logs": [
    {
      "employee_number": "400",
      "employee_name": "oneplus ",
      "date_time_in": "02-08-2018 11:56:34",
      "date_time_out": "02-08-2018 12:09:52",
      "workgroup_number": ["6"],
      "workgroup_name": ["android"],
      "job_number": "200",
      "job_name": "New Spgon office",
      "service_item": "",
      "task_no": "0",
      "task_name": "",
      "location_acceptance_in": "At Site: APP",
      "location_acceptance_out": "At Site: APP",
      "login_notes": "",
      "logout_notes": "",
      "login_mileage": "0",
      "logout_mileage": "0",
      "payroll_item": "",
      "duration": "00 : 13"
    },
    
      "employee_number": "122",
      "employee_name": "nexus ",
      "date_time_in": "01-08-2018 19:23:38",
      "date_time_out": "01-08-2018 20:24:57",
      "workgroup_number": [ "2","3","6","10","11","21"],
      "workgroup_name": ["gyfytghjugyugyu","IOS Developer","android","scientist","Ios Testing","warn"],
      "job_number": "286",
      "job_name": "59 Johnson Ave",
      "service_item": "",
      "task_no": "18",
      "task_name": "Sublet Electricalssssssss",
      "location_acceptance_in": "Smartphone GPS OFF",
      "location_acceptance_out": "Smartphone GPS OFF",
      "login_notes": "",
      "logout_notes": "",
      "login_mileage": "0",
      "logout_mileage": "0",
      "payroll_item": "",
      "duration": "01 : 01"
    }
]
}

Link:

https://admin.timesheetmobile.com/TBA/APIs/employee_report.php?key=NZG3B3WEJ0EZWGL5&from_date=08/01/2018&to_date=08/09/2018&employees=1&job=52

Response:

{
  "status": "success",
  "message": "success",
  "log_count": 11,
  "logs": [
    {
      "employee_number": "1",
      "employee_name": "Melissa Kukurudza",
      "date_time_in": "07-08-2018 12:51:40",
      "date_time_out": "07-08-2018 12:53:25",
      "workgroup_number": [6","7"],
      "workgroup_name": ["android","web tester"],
      "job_number": "1298",
      "job_name": "ananda inn",
      "service_item": "",
      "task_no": "29",
      "task_name": "Painting",
      "location_acceptance_in": "At Site: APP",
      "location_acceptance_out": "At Site: APP",
      "login_notes": "gyftty",
      "logout_notes": "",
      "login_mileage": "77",
      "logout_mileage": "0",
      "payroll_item": "",
      "duration": "00 : 01"
    }
]
}

Time Tracking Software API Request:

Link:

https://admin.timesheetmobile.com/TBA/APIs/employee_report.php?key=NZG3B3WEJ0EZWGL5&from_date=10/23/2015&to_date=10/28/2015&employees=1&jobs=100

Response:

{
	“status”: “success”,
	“message”: “success”,
	“log_count”: 0,
	“logs”: []
}

Time Tracking Software API Request:

Link:

https://admin.timesheetmobile.com/TBA/APIs/employee_report.php?key=NZG3B3WEJ0EZWGL5&from_date=10/23/2015

Response:

{
	“status”: “fail”,
	“message”: “‘to_date’ parameter is missing”
}

Time Tracking Software API Request:

Link:

https://admin.timesheetmobile.com/TBA/APIs/employee_report.php?key=NZG3B3WEJ0EZWGL5&from_date=10/30/2015&to_date=10/28/2015

Response:

{
	“Status”: “fail”,
	“Message”: “to_date must greater than from_date”
}

Time Tracking Software API Request:

Link:

https://admin.timesheetmobile.com/TBA/APIs/employee_report.php?key=NZG3B3WEJ0EZWGL5&from_date=&to_date=10/28/2015

Response:

{
	“Status”: “fail”,
	Message”: “from_date parameter is missing”
}

Time Tracking Software API Request:

Link:

https://admin.timesheetmobile.com/TBA/APIs/employee_report.php?from_date=10/23/2015&to_date=10/28/2015

Response:

{
	“Status”: “fail”,
	“Message”: “’ key’ is missing”
}

 

 Time Tracking Software API Request:

Link:

https://admin.timesheetmobile.com/TBA/APIs/employee_report.php?key=NZG3B3WEJ0EZWGL5&from_date=10/23/2015&to_date=10/28/2015&key=aba2as3rgd343t4eg3

Response:

{
	“Status”: “fail”,
	“Message”: “Invalid API key”
}

 



Employee API Parameters:

Action = view

Request ParametersDescriptionExample
emp_id    ID of the Employee2

 

View Examples:

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee.php?action=view&key=cFwyBfxtDZmoIb0C

Response:

[
  {
    "employee_number": "1",
    "employee_first_name": "Melissa",
    "employee_last_name": "Kukurudza",
    "employee_phone": "0123456789",
    "location_option": "Log out 2018-04-19 16:00:19",
    "payroll_item": "",
    "ot_payroll_item": "",
    "workgroup": ["android","web tester"],
    "manager": "Manager",
    "email": "[email protected]"
  },
  {
    "employee_number": "2",
    "employee_first_name": "VJ",
    "employee_last_name": "Kumar",
    "employee_phone": "+0918886810715",
    "location_option": "Log out 2018-07-27 01:26:13",
    "payroll_item": "Bonus",
    "ot_payroll_item": "Regular Hours",
    "workgroup": "admin",
    "manager": "Manager",
    "email": "[email protected]"
  }
 ]

 

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee.php?action=view&key=cFwyBfxtDZmoIb0C&emp_id=1

Response:

{
  "employee_number": "1",
  "employee_first_name": "Melissa",
  "employee_last_name": "Kukurudza",
  "employee_phone": "0123456789",
  "location_option": "Log out 2018-04-19 16:00:19",
  "payroll_item": "",
  "ot_payroll_item": "",
  "workgroup": ["android","web tester"],
  "manager": "Manager",
  "email": "[email protected]"
}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee.php?action=view&key=cFwyBfxtDZmoIb0C&emp_id=fffd

Response:

{
	“status”: “fail”,
	“message”: “’emp_id’ should be number”
}

Action = delete

Request ParametersDescriptionExample
emp_id *   ID of the Employee2

* required fields

Delete Examples:

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee.php?action=delete&key=cFwyBfxtDZmoIb0C&emp_id=2

Response:

{
	“status”: “success”,
	“message”: “successfully deleted”
}

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee.php?action=delete&key=cFwyBfxtDZmoIb0C&emp_id=122

Response:

{
	“status”: “fail”,
	message”: “No record with that employee number 122”
}

Action = insert

Request ParametersDescriptionExample
emp_id   ID of the Employee2 (if not provided, automatically takes next employee l id)
first_name *   First Name of the EmployeeJohn
last_nameLast Name of the EmployeeDoe
phone_numPhone number of the Employee8866541559
codeCountry code of the phone number96
manager  Whether employee is manager or non-manager1 or 0
email *Email of the Employee[email protected]
workgroup *Work group of the EmployeeConstruction
payrollitemPayroll of EmployeeHourly
otpayrollitemOvertime payroll of EmployeeOTHourly

* required fields      *Conditional required fields when manager value is 1

Insert Examples:

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee.php?action=insert&key=cFwyBfxtDZmoIb0CC&emp_id=2&first_nam[email protected]gmal.com&code=21&workgroup=testing&payrollitem=daily&otpayrollitem=hourly

Response:

{
	“status”: “success”,
	“message”: “successfully inserted”
}

 

https://admin.timesheetmobile.com/TBA/APIs/employee.php?action=insert&key=cFwyBfxtDZmoIb0CC&emp_id=10

Response:

{
	“status”: “fail”,
	“message”: “‘first_name’ parameter is missing”
}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee.php?action=insert&key=cFwyBfxtDZmoIb0CC&emp_id=122&manager=1&first_name=vj

Response:

{
   “status”: “fail”,
   “message”: “‘workgroup’ or ’email’ parameter is"
}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee.php?action=insert&key=cFwyBfxtDZmoIb0CC&emp_id=122&manager=1&first_name=vj&email=asm

Response:

{
	“status”: “fail”,
	“message”: “Invalid ’email’ format “
}

 

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee.php?action=insert&key[email protected]yahoo.com

Response:

{
   “status”: “fail”,
   “message”: “‘workgroup’ or ’email’ parameter is"
}

 

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee.php?action=insert&key=cFwyBfxtDZmoIb0CC&emp_id=bn&manager=1

Response:

{
	“status”: “fail”,
	“message”: “’emp_id’ should be number”
}

 

 

Assigning next employee number if emp_id not provided:

https://admin.timesheetmobile.com/TBA/APIs/employee.php?action=insert&key=cFwyBfxtDZmoIb0CC&first_nam[email protected]gmal.com&code=21&workgroup=testing&payrollitem=daily&otpayrollitem=hourly

Response:

{
	“status”: success,
	“message”: “successfully inserted”
}

Action = update

Request ParametersDescriptionExample
emp_id *   ID of the Employee3
NewempidNew ID of the Employee11
first_name    First Name of the EmployeeAdam
last_nameLast Name of the EmployeeDaly
phone_numPhone number of the Employee5545412416
codeCountry code of the phone number96
managerWhether employee is manager or non-manager1 or 0
email *Email of the Employee[email protected]
workgroup *Work group of the EmployeePainters
payrollitemPayroll of EmployeeHourly
otpayrollitemOvertime payroll of EmployeeHourly1.5

* required fields               *Conditional required fields when manager value is 1

Update Examples:

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee.php?action=update&key=cFwyBfxtDZmoIb0CC&emp_id=21&last_name=jhon&phone_num=3214569858&manager=0&&workgroup=testing&payrollitem=daily&otpayrollitem=hourly

Response:

{
	“status”: “success”,
	“message”: “successfully updated”
}

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee.php?action=update&key=cFwyBfxtDZmoIb0CC&emp_id=21&manager=0&&workgroup=testing&payrollitem=daily&otpayrollitem=hourly &newempid=52

Response:

{
	“status”: “success”,
	“message”: “successfully updated”
}

 

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee.php?action=update&key=cFwyBfxtDZmoIb0CC&emp_id=21&manager=0&&workgroup=testing&payrollitem=daily&otpayrollitem=hourly &newempid=2

Response:

{
	“status”: ” fail “,
	“message”: “‘newempid’ already exists “
}

 

 

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee.php?action=update&key=cFwyBfxtDZmoIb0CC&emp_id=bn&manager=1

Response:

{
	“status”: “fail”,
	“message”: “’emp_id’ should be number”
}

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee.php?action=update&key=cFwyBfxtDZmoIb0CC&emp_id=121&manager=1

Response:

{
	“status”: “fail”,
	“message”: “no employee with 121 ’emp_id'”
}

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee.php?key=cFwyBfxtDZmoIb0CC&emp_id=121&manager=1

Response:

{
	“status”: “fail”,
	“message”: “‘action’ parameter is missing”
}


Customer Job API Parameters:

Action = view

Request ParametersDescriptionExample
jid ID of the Job2

 

View Examples:

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=view&key=cFwyBfxtDZmoIb0C

Response:

[{
	“job_number”: “1”,
	“job_name”: “Brooks Lawn Care.”,
	“job_phone”: “6175551545”,
	“service_item”: “landscaping”,
	“billable”: “NO”,
	“street”: “123 Elm”,
	“city”: “boston”,
	“zip”: “01005”,
	“state”: “MA”,
	“latitude”: “36.19005320”,
	“longitude”: “-61.62479920”,
	“GEO_Fence”: “100m”
},
{
	“job_number”: “2”,
	“job_name”: “D&D Snowplowing”,
	“job_phone”: “+3459876534523”,
	“service_item”: “snow removal”,
	“billable”: “YES”,
	“street”: “15 Oak St.”,
	“city”: “Newton”,
	“zip”: “01587”,
	“state”: “MA”,
	“latitude”: “36.00070000”,
	“longitude”: “-62.03400000”,
	“GEO_Fence”: “200m”
}]

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=view&key=cFwyBfxtDZmoIb0C&jid=1

Response:

[
{
   “job_number”: “1”,
   “job_name”: “Jones St. Addition”,
   “job_phone”: “6175558745”,
   “service_item”: “carpentry”,
   “billable”: “NO”,
   “street”: “123 Elm”,
   “city”: “boston”,
   “zip”: “01221”,
   “state”: “MA”,
   “latitude”: “40.19095320”,
   “longitude”: “-76.62479920”,
   “GEO_Fence”: “125m”
}
] 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=view&key=cFwyBfxtDZmoIb0C&jid=fffd

Response:

{
	“status”: “fail”,
	“message”: “‘jid’ should be number”
}

Action = delete

Request ParametersDescriptionExample
jid *ID of the Job2

* required fields

Delete Examples:

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=delete&key=cFwyBfxtDZmoIb0C&jid=2

Response:

{
 “status”: “success”,
 “message”: “successfully deleted”

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=delete&key=cFwyBfxtDZmoIb0C&jid=122

Response:

{
   “status”: “fail”,
   “message”: “No record with that job number 122”
}

Action = insert

Request ParametersDescriptionExample
jidID of the Job2 (if not provided, automatically takes next job id)
jname  Name of the JobMain St. Remodeling
phone_numPhone number of the Job9655412471
codeCountry code of the phone number96
street Street of the Job13th Ave
cityCity of the JobBoston
stateState of the JobMA
latitudeLatitude point of the Job12.200233
longitudeLongitude point of the Job70.12121
service_itemServiceelectrical
billableBillableYES or NO
radiusGeo fence radius of the Job321
time_zoneTime zoneALASKA
emp_assignAssign job to all or none or multiple employeeDefault : all
Multiple: 10,12,14
None: none
task_assignAssign all tasks or none or multiple tasks to jobALL : all
Multiple: 3,4,5
None: none

* required fields

States codes and their Names:

State Code

State NameState CodeState NameState Code State Name
ALALABAMAMI MICHIGANUT UTAH
AKALASK,MN MINNESOTAVT VERMONT
ASAMMARIEAN SAMOAMS MISSISSIPPIVI VIRGIN ISLANDS
AZARIZONAMO MISSOURIVA VIRGINIA
ARARKANSASMT MONTANAWA WASHINGTON
CACALIFORNIANE NEBRASKAWV WEST VIRGINIA
COCOLORADONV NEVADAWI WISCONSIN
CTCONNECTICUTNH NEW HAMPSHIREWY WYOMING
DEDELAWARENJ NEW JERSEYAE ARMED FORCES AFRICA \

CANADA \ EUROPE \

MIDDLE EAST

DCDISTRICT OF COLUMBIANM NEW MEXICOAA ARMED FORCES AMMARIEA

(EXCEPT CANADA)

FMFEDERATED STATES OF MICRONESIANY NEW YORKAP ARMED

FORCES

PACIFIC

FLFLORIDANC NORTH CAROLINABC British Columbia
GAGEORGIAND NORTH DAKOTAON Ontario
GU GUAM GUMP NORTHERN MARIANA ISLANDSNL Newfoundland and

Labrador

HI HAWAIIOH OHIONS Nova Scotia
ID IDAHOOK OKLAHOMAPE Prince Edward Island
IL ILLINOISOR OREGONNBNew Brunswick
IN INDIANAPW PALAUQCQuebec
IA IOWAPA PENNSYLVANIAMB Manitoba
KS KANSASPR PUERTO RICOSKSaskatchewan
KY KENTUCKYRI RHODE ISLANDAB Alberta
LA LOUISIANASC SOUTH CAROLINANTNorthwest Territories
ME MAINESD SOUTH DAKOTANU Nunavut
MH MARSHALL ISLANDSTN TENNESSEEYT Yukon Territory
MD MARYLANDMA MASSACHUSETTSPR Puerto Rico
TXTEXAS

Insert Examples:

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=insert&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job&phone_num=2233665511&latitude=22.22232&longitude=121.333&billable=yes

Response:

{
	“status”: “success”,
	“message”: “successfully inserted”
}
  

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=insert&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job&phone_num=2233665511&city=boston&street=13thave&billable=no

Response:

{
   “status”: “success”,
   “message”: “successfully inserted”
}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=insert&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job&phone_num=2233665511&latitude=22.22232&longitude=121.333&billable=yes&radius=10

Response:

{
	“status”: “fail”,
	“message”: “‘radius’ should be numMarie and range between 25 to 10000? “
}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=insert&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job&phone_num=2233665511&latitude=2122.22232&longitude=121.333&billable=yes&radius=500

Response:

{
   “status”: “fail”,
	“message”: “invalid ‘latitude’ point”
}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=insert&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job& latitude=21.22232&longitude=1921.333&billable=yes&radius=500

Response:

{
   “status”: “fail”,
  “message”: “invalid ‘longitude’ point”
}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=insert&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job& latitude=21.22232&longitude=asdsd

Response:

{
                “status”: “fail”,
                “message”: “‘longitude’ point should be number”
               }
               

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=insert&key=cFwyBfxtDZmoIb0CC&jid=bn&manager=1

Response:

{
	“status”: “fail”,
	“message”: “‘jid’ should be number”
}

Job Assignment for all. By Default, job assigned for all employees

Link:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=insert&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job&phone_num=2233665511&city=boston&street=13thave&billable=no&emp_assign=all
OR
https://admin.timesheetmobile.com/TBA/APIs/job.php?action=insert&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job&phone_num=2233665511&city=boston&street=13thave&billable=no

Response:

{
    "status": "success",
    "message": "successfully inserted"
}

No employee Assignment for the job

Link:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=insert&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job&phone_num=2233665511&city=boston&street=13thave&billable=no&emp_assign=none

Response:

{
    "status": "success",
    "message": "successfully inserted"
}

Assign Job for Multiple Employees

Link:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=insert&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job&phone_num=2233665511&city=boston&street=13thave&billable=no&emp_assign=10,12,14

Response:

{
    "status": "success",
    "message": "successfully inserted"
}

Assign all tasks to the job

Link:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=insert&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job&phone_num=2233665511&city=boston&street=13thave&billable=no&task_assign=all

Response:

{
    "status": "success",
    "message": "successfully inserted"
}

No Task Assignment for the job. By default None

Link:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=insert&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job&phone_num=2233665511&city=boston&street=13thave&billable=no&task_assign=none
OR
https://admin.timesheetmobile.com/TBA/APIs/job.php?action=insert&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job&phone_num=2233665511&city=boston&street=13thave&billable=no

Response:

{
    "status": "success",
    "message": "successfully inserted"
}

Assign multiple tasks to the job

Link:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=insert&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job&phone_num=2233665511&city=boston&street=13thave&billable=no&task_assign=7,12

Response:

{
    "status": "success",
    "message": "successfully inserted"
}

Assigning next job number if *jid* not provided

Link:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=insert&key=cFwyBfxtDZmoIb0CC&jname=accme_job&phone_num=2233665511&city=boston&street=13thave&billable=no

Response:

{
    "status": "success",
    "message": "successfully inserted"
}

Action = update

Request ParametersDescriptionExample
jid * ID of the Job2
newjidNew ID of the Job11
jnameName of the JobLincoln School Roof
phone_numPhone number of the Job9655412471
codeCountry code of the phone number96
street Street of the Job13th Ave
cityCity of the JobBoston
stateState of the JobMA
latitudeLatitude point of the Job12.200233
longitudeLongitude point of the Job70.12121
service_itemServiceClass
billableBillableYES or NO
radiusGeo fence radius of the Job321
time_zoneTime zoneALASKA
emp_assignAssign job to all or none or multiple employeeDefault : all
Multiple: 10,12,14
None: none
emp_appendIf yes, Append given employee ids without deleting previous assigned employees.
If no, Append given employee ids by deleting previous assigned employees.
Default : yes
no
task_assignAssign all or none or multiple tasks to the jobALL : all
Multiple: 3,4,5
None: none
task_appendIf yes, Append given taks ids without deleting previous assigned tasks.
If no, Append given tasks ids by deleting previous assigned tasks.
Default : yes
no

* required fields

Update Examples:

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=update&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job&phone_num=2233665511&latitude=22.22232&longitude=121.333&billable=no

Response:

{
	“status”: “success”,
	“message”: “successfully updated”
}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=update&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job&phone_num=2233665511&latitude=22.22232&longitude=121.333&billable=yes&radius=10

Response:

{
	“status”: “fail”,
	“message”: “‘radius’ should be numMarie and range between 25 to 10000? “
}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=update&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job&phone_num=2233665511&latitude=2122.22232&longitude=121.333&billable=yes&radius=500

Response:

{
	“status”: “fail”,
	“message”: “invalid ‘latitude’ point”
}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=update&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job& latitude=21.22232&longitude=1921.333&billable=yes&radius=500

Response:

{
	“status”: “fail”
	“message”: “invalid ‘longitude’ point”
}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=update&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job& latitude=21.22232&longitude=asdsd

Response:

{
	“status”: “fail”,
	“message”: “‘longitude’ point should be number”
}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=update&key=cFwyBfxtDZmoIb0CC&jid=bn&manager=1

Response:

{
	“status”: “fail”,

“message”: “‘jid’ should be number” }

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?key=cFwyBfxtDZmoIb0CC&jid=bn&manager=1

Response:

{
	“status”: “fail”,
	“message”: “‘action’ parameter is missing”
}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=update&jid=32&manager=1

Response:

 {
	“status”: “fail”,
	“message”: “‘key’ parameter is missing”
}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=update&key=cFwyBfxtDZIb0CC&jid=1&manager=1

Response:

{
	“status”: “fail”,
	“message”: “Invalid API Key”
}

Job Assignment for all employees. No default option

Link:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=update&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job&phone_num=2233665511&city=boston&street=13thave&billable=no&emp_assign=all

Response:

{
    "status": "success",
    "message": "successfully updated"
}

Un-assign all employees from the job

Link:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=update&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job&phone_num=2233665511&city=boston&street=13thave&billable=no&emp_assign=none

Response:

{
    "status": "success",
    "message": "successfully updated"
}

Assign Job for Multiple Employees without deleting previously assigned employees(default)

Link:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=update&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job&phone_num=2233665511&city=boston&street=13thave&billable=no&emp_assign=10,12,14&emp_append=yes
OR
https://admin.timesheetmobile.com/TBA/APIs/job.php?action=update&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job&phone_num=2233665511&city=boston&street=13thave&billable=no&emp_assign=10,12,14

Response:

{
    "status": "success",
    "message": "successfully updated"
}

Assign Job for Multiple Employees by deleting previously assigned employees

Link:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=update&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job&phone_num=2233665511&city=boston&street=13thave&billable=no&emp_assign=16,18&emp_append=no

Response:

{
    "status": "success",
    "message": "successfully updated"
}

Assign all tasks to the job

Link:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=update&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job&phone_num=2233665511&city=boston&street=13thave&billable=no&task_assign=all

Response:

{
    "status": "success",
    "message": "successfully updated"
}

Assign multiple tasks to the job without deleting previously assigned tasks(default)

Link:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=update&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job&phone_num=2233665511&city=boston&street=13thave&billable=no&task_assign=7,12&task_append=yes
OR
https://admin.timesheetmobile.com/TBA/APIs/job.php?action=update&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job&phone_num=2233665511&city=boston&street=13thave&billable=no&task_assign=7,12

Response:

{
    "status": "success",
    "message": "successfully updated"
}

Assign multiple tasks to the job by deleting previously assigned tasks

Link:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=update&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job&phone_num=2233665511&city=boston&street=13thave&billable=no&task_assign=13,22&task_append=no

Response:

{
    "status": "success",
    "message": "successfully updated"
}

Un-assign all tasks from the job

Link:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=update&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job&phone_num=2233665511&city=boston&street=13thave&billable=no&task_assign=none

Response:

{
    "status": "success",
    "message": "successfully updated"
}

Task API Parameters:

Action = view

Request ParametersDescriptionExample
tid ID of the Task2

View Examples:

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/task.php?action=view&key=cFwyBfxtDZmoIb0C

Response:

[
	{
		“task_number”: “1”,
		“task_name”: “Painting”,
		“service_item”: “labor hours”,
		“class”: “Service”
	},
	{
		“task_number”: “2”,
		“task_name”: “Roofing”,
		“service_item”: “contractor”,
		“class”: “Contract”
	}
]

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/task.php?action=view&key=cFwyBfxtDZmoIb0C&tid=2

Response:

	[
	{
		“task_number”: “2”,
		“task_name”: “Testing”,
		“service_item”: “Validation”,
		“class”: “Inheritance”
	}
	]

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/task.php?action=view&key=cFwyBfxtDZmoIb0C&tid=fffd

Response:

{
	“status”: “fail”,
	“message”: “‘tid’ should be number”
}

Action = delete

Request ParametersDescriptionExample
tid *ID of the Task2

* required fields

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/task.php?action=delete&key=cFwyBfxtDZmoIb0C&tid=2

Response:

{
	“status”: “success”,
	“message”: “successfully deleted”
}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/task.php?action=delete&key=cFwyBfxtDZmoIb0C&tid=122

Response:

{
	“status”: “fail”,
	“message”: “No record with that task number 122”
}

Action = insert

Request ParametersDescriptionExample
tidID of the Task2 (if not provided, automatically takes next task id)
tname *Name of the Taskroofing
service_itemName of service itemroofing
className of Classlabor contract
job_assignAssign task for all or none or multiple jobsALL : all
Multiple : : 10, 12, 14
None : none

* required fields

Insert Examples:

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/task.php?action=insert&key=cFwyBfxtDZmoIb0CC&tid=10&tname=development&service_item=Service1&class=Class1

Response:

{
	“status”: “success”,
	“message”: “successfully inserted”
}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/task.php?action=insert&key=cFwyBfxtDZmoIb0CC&tid=10

Response:

{
	“status”: “fail”,
	“message”: “‘tname’ parameter is missing”
}

Assign Task to all jobs

Link:

https://admin.timesheetmobile.com/TBA/APIs/task.php?action=insert&key=cFwyBfxtDZmoIb0CC&tid=10&tname=development&service_item=Service1& class=Class1&job_assign=all

Response:

{
    "status": "success",
    "message": "successfully inserted"
}

No Job Assignment to Task

Link:

https://admin.timesheetmobile.com/TBA/APIs/task.php?action=insert&key=cFwyBfxtDZmoIb0CC&tid=10&tname=development&service_item=Service1& class=Class1&job_assign=none
OR
https://admin.timesheetmobile.com/TBA/APIs/task.php?action=insert&key=cFwyBfxtDZmoIb0CC&tid=10&tname=development&service_item=Service1& class=Class1

Response:

{
    "status": "success",
    "message": "successfully inserted"
}

Assign Mutiple jobs to Task

Link:

https://admin.timesheetmobile.com/TBA/APIs/task.php?action=insert&key=cFwyBfxtDZmoIb0CC&tid=10&tname=development&service_item=Service1& class=Class1&job_assign=10,12

Response:

{
    "status": "success",
    "message": "successfully inserted"
}

Assigning next task number if *tid* not provided

Link:

https://admin.timesheetmobile.com/TBA/APIs/task.php?action=insert&key=cFwyBfxtDZmoIb0CC&tname=new development&service_item=Service1& class=Class1

Response:

{
    "status": "success",
    "message": "successfully inserted"
}

Action = update

Request ParametersDescriptionExample
tid* ID of the Task2
tname Name of the Tasksecurity guard
newtidNew ID of the task6
className of Classsecurity
service_itemName of service itemservicetest
job_assignAssign task to all jobsALL : all
Multiple : 10, 12, 14
None : none
job_appendIf yes, Append given job ids without deleting previous assigned jobs.
If no, Append given job ids by deleting previous assigned jobs
Default : yes
no

* required fields

Update Examples:

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/task.php?action=update&key=cFwyBfxtDZmoIb0CC&tid=5&tname=developmen&class=newclass

Response:

{
	“status”: “success”,
	“message”: “successfully updated”
}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/task.php?action=update&key=cFwyBfxtDZmoIb0CC&tid=5&tname=warn&new_tid=21

Response:

{
	“status”: “success”,
	“message”: “successfully updated”
}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/task.php?action=update&key=cFwyBfxtDZmoIb0CC&tid=5&tname=warn

Response:

{
	“status”: “fail”,
	“message”: “‘task’ name already exists”
}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/task.php?action=update&key=cFwyBfxtDZmoIb0CC&tid=100&tname=warn

Response:

{
	“status”: “fail”,
	“message”: “no task with 100 ‘tid'”
}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/task.php?key=cFwyBfxtDZmoIb0CC&tid=100&tname=warn

Response:

{
	“status”: “fail”,
	“message”: “‘action’ parameter is missing”
}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/task.php?action=update&key=cBfxtDZmoIb0CC&tid=100&tname=warn

Response:

{
	“status”: “fail”,
	“message”: “Invalid API Key”
}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/task.php?action=update &tid=100&tname=warn

Response:

{
	“status”: “fail”,
	“message”: “‘key’ parameter is missing”
}

Assign Task to all jobs

Link:

https://admin.timesheetmobile.com/TBA/APIs/task.php?action=update&key=cFwyBfxtDZmoIb0CC&tid=5&tname=developmen&class=newclass&job_assign=all

Response:

{
    "status": "success",
    "message": "successfully updated"
}

Assign Multiple jobs without deleting previously assigned jobs(default)

Link:

https://admin.timesheetmobile.com/TBA/APIs/task.php?action=update&key=cFwyBfxtDZmoIb0CC&tid=5&tname=developmen&class=newclass&job_assign=5,6&job_append=yes
OR
https://admin.timesheetmobile.com/TBA/APIs/task.php?action=update&key=cFwyBfxtDZmoIb0CC&tid=5&tname=developmen&class=newclass&job_assign=5,6

Response:

{
    "status": "success",
    "message": "successfully updated"
}

Assign Multiple jobs by deleting previously assigned jobs

Link:

https://admin.timesheetmobile.com/TBA/APIs/task.php?action=update&key=cFwyBfxtDZmoIb0CC&tid=5&tname=developmen&class=newclass&job_assign=7,8&job_append=no

Response:

{
    "status": "success",
    "message": "successfully updated"
}

Un-assign all jobs from task

Link:

https://admin.timesheetmobile.com/TBA/APIs/task.php?action=update&key=cFwyBfxtDZmoIb0CC&tid=5&tname=developmen&class=newclass&job_assign=none

Response:

{
    "status": "success",
    "message": "successfully updated"
}

Workgroup API Parameters:

Action = view

Request ParametersDescriptionExample
gidID of the Workgroup2

View Examples:

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/workgroup.php?actio n=view&key=cFwyBfxtDZmoIb0C

Response:

[
{
	“id”: “1”,
	“workgroup”: “Management”
},
{
	“id”: “2”
	“workgroup”: “SS”
},
{
	“id”: “3”,
	“workgroup”: “match”
},
{
	“id”: “9”,
	“workgroup”: “My new workgroup6”
}
]

Action = delete

Request ParametersDescriptionExample
gid *ID of the Workgroup2

* required fields

Delete Examples:

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/workgroup.php?action=delete&key=cFwyBfxtDZmoIb0C&gid=2

Response:

{
	“status”: “success”,
	“message”: “successfully deleted”
}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/workgroup.php?action=delete&key=cFwyBfxtDZmoIb0C&gid=122

Response:

{
	“status”: “success”,
	“message”: “No record with that group number 122”
}

Action = insert

Request ParametersDescriptionExample
gid *ID of the Workgroup2
gname * Name of the WorkgroupPlumbers

* required fields

Insert Examples:

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/workgroup.php?action=insert&key=cFwyBfxtDZmoIb0CC&gid=10&gname=dust

Response:

{
	“status”: “success”,
	“message”: “successfully inserted”
}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/workgroup.php?action=insert&key=cFwyBfxtDZmoIb0CC&gid=10

Response:

{
	“status”: “fail”,
	“message”: “‘gid’ already exists”
}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/workgroup.php?action=insert&key=cFwyBfxtDZmoIb0CC&gid=hgg&gname=dust

Response:

{
	“status”: “fail”,
	“message”: “’gid’ should be number”
}

Action = update

Request ParametersDescriptionExample
gid * ID of the Workgroup2
gname *Name of the WorkgroupElectricians
new_gidNew ID of the workgroup6

* required fields

Update Examples:

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/workgroup.php?action=update&key=cFwyBfxtDZmoIb0CC&gid=5&gname=hack

Response:

{
	“status”: “success”,
	“message”: “successfully updated”
}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/workgroup.php?action=update&key=cFwyBfxtDZmoIb0CC&gid=5&gname=warn&new_gid=21

Response:

{
	“status”: “success”,
	“message”: “successfully updated”
}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/workgroup.php?action=update&key=cFwyBfxtDZmoIb0CC&gid=5&gname=hack

Response:

{
	“status”: “fail”,
	“message”: “‘workgroup’ name already exists”
}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/workgroup.php?action=update&key=cFwyBfxtDZmoIb0CC&gid=5&gname=hack

Response:

{
	“status”: “fail”,
	“message”: “‘workgroup’ name already exists”
}


Schedule API Parameters:

Action = View

Request ParametersDescriptionExample
schedule_idSchedule ID2

Examples:

View Schedule w.r.t Schedule ID

https://admin.timesheetmobile.com/TBA/APIs/schedule.php?key=qRkJaaQMqgYctmTN&action=view&schedule_id=248

output:

{
  "schedule_id": "248",
  "emp_id": "1",
  "job_id": "44",
  "task_id": "0",
  "start_date": "2016-07-26 12:00:00",
  "end_datetime": "2016-07-26 01:00:00",
  "status": "",
  "hours_count": "11",
  "created_by": "[email protected]",
  "created_at": "2016-07-26 15:34:03",
  "instance_id": "1"
}

View all schedules

https://admin.timesheetmobile.com/TBA/APIs/schedule.php?key=qRkJaaQMqgYctmTN&action=view

output:

[
  {
    "schedule_id": "248",
    "emp_id": "1",
    "job_id": "44",
    "task_id": "0",
    "start_date": "2016-07-26 12:00:00",
    "end_datetime": "2016-07-26 01:00:00",
    "status": "",
    "hours_count": "11",
    "created_by": "[email protected]",
    "created_at": "2016-07-26 15:34:03",
    "instance_id": "1"
  },
  {
    "schedule_id": "250",
    "emp_id": "47",
    "job_id": "272",
    "task_id": "233222",
    "start_date": "2016-10-28 10:38:00",
    "end_datetime": "2016-10-28 11:00:00",
    "status": "",
    "hours_count": "0.37",
    "created_by": "[email protected]",
    "created_at": "2016-10-28 14:35:42",
    "instance_id": "2"
  }
]

Action = Insert

Request ParametersDescriptionExample
emp_id *Ids of the employees12,13,14
jidJob Id10
tidTask ID6
start_date *Event Start date & time2018-07-20 09:00:00
end_date *Event End date & time2018-07-20 11:00:00

* required fields

Examples:

Schedule Insert for Single Employee

https://admin.timesheetmobile.com/TBA/APIs/schedule.php?key=qRkJaaQMqgYctmTN&action=insert&emp_id=11182&jid=3&tid=10&start_date=2018-07-19%2015:00:00&end_date=2018-07-19%2018:00:00

output:

{
	
  "success_status":"success",
  "success_message":"New Event Added Successfully for employee id : 11182 "

}

Schedule insert for Multiple Employee

https://admin.timesheetmobile.com/TBA/APIs/schedule.php?key=qRkJaaQMqgYctmTN&action=insert&emp_id=11195,11182&jid=140004&tid=1111&start_date=2018-07-20%2015:00:00&end_date=2018-07-20%2018:00:00

output:

{
	
  "success_status":"success",
  "success_message":"New Event Added Successfully for employee id : 11195, 11182 "

}

If Employee Already Scheduled

https://admin.timesheetmobile.com/TBA/APIs/schedule.php?key=qRkJaaQMqgYctmTN&action=insert&emp_id=11182 &jid=3&tid=10&start_date=2018-07-20 11:00:00&end_date=2018-07-20 15:00:00

output:

{
	
  "conflict_status":"conflict",
   "conflict_message":"Job Conflict for employee id : 11182 "
}

If one of multiple Employee already scheduled then

hhttps://admin.timesheetmobile.com/TBA/APIs/schedule.php?key=qRkJaaQMqgYctmTN&action=insert&emp_id=11182,11195&jid=3&tid=10&start_date=2018-07-19%2015:00:00&end_date=2018-07-19%2018:00:00

output:

{
	
  
  "success_status":"success",
  "success_message":"New Event Added Successfully for employee id : 11195 ",
  "conflict_status":"conflict",
  "conflict_message":"Job Conflict for employee id : 11182 "

}

If job id does not match

https://admin.timesheetmobile.com/TBA/APIs/schedule.php?key=qRkJaaQMqgYctmTN&action=insert&emp_id=11182&jid=12425445&tid=2&start_date=2018-07-14%2015:00:00&end_date=2018-07-14%2018:00:00

output:

{
	 
  "status":"fail",
  "message":"no job with 12425445 'jid' "

}

If Task id does not match

https://admin.timesheetmobile.com/TBA/APIs/schedule.php?key=qRkJaaQMqgYctmTN&action=insert&emp_id=11182&jid=10&tid=57475752&start_date=2018-07-14%2015:00:00&end_date=2018-07-14%2018:00:00

output:

{
	 
  "status":"fail",
  "message":"no task with 57475752 'tid' "

}

Action : Update

Request ParametersDescriptionExample
schedule_id*ID of Schedule1724
emp_id*Employee ID*11195
jidJob Id10
tidTask ID10
start_date *Event Start date & time2018-07-20 09:00:00
end_date *Event End date & time2018-07-20 11:00:00

* required fields

API

https://admin.timesheetmobile.com/TBA/APIs/schedule.php?key=qRkJaaQMqgYctmTN&action=update&schedule_id=1724&emp_id=11195&jid=10&tid=4&start_date=2018-07-20%2009:00:00&end_date=2018-07-20%2011:00:00

output:

{
	 
  "status":"success",
  "message":"Event Updated"

}

Action : Delete

Request ParametersDescriptionExample
schedule_id*ID of Schedule1724
emp_id*Employee ID*11195

* required fields

API

https://admin.timesheetmobile.com/TBA/APIs/schedule.php?key=qRkJaaQMqgYctmTN&action=delete&schedule_id=1724&emp_id=11195

output:

{
	 
  "status":"success"

}

If Schedule Id not provided

https://admin.timesheetmobile.com/TBA/APIs/schedule.php?key=qRkJaaQMqgYctmTN&action=delete&schedule_id=&emp_id=11195

output:

{
	 
  "status":"fail",
  "message":"'schedule_id' required "

}

If Employee Id not provided

https://admin.timesheetmobile.com/TBA/APIs/schedule.php?key=qRkJaaQMqgYctmTN&action=delete&schedule_id=1724&emp_id=

output:

{
	 
    "status":"fail",
  "message":"'emp_id' required "


}

If Either of Schedule or Employee Id does not match

https://admin.timesheetmobile.com/TBA/APIs/schedule.php?key=qRkJaaQMqgYctmTN&action=delete&schedule_id=768678&emp_id=1195

output:

{
	
  "status":"fail",
  "message":"No record found with schedule_id : 56456 & emp_id : 11195"

}