FreshBooks

Search


API Calls

Resources

Time Entries

Staff have access to the API calls listed below if the Time Tracking tab is enabled for staff. Each staff member can only create time entries against projects to which he or she is assigned.

time_entry.create

Create a new timesheet entry.

Request

<?xml version="1.0" encoding="utf-8"?>

  
    1        
    1              
    4.5                
    Phone consultation 
    2007-01-01           
  

Response

<?xml version="1.0" encoding="utf-8"?>

  211

time_entry.update

Update an existing time_entry.

Request

<?xml version="1.0" encoding="utf-8"?>

  
    211

    # Remaining params are same as time_entry.create
  

Response

<?xml version="1.0" encoding="utf-8"?>
	

time_entry.get

Retrieve a single time_entry record.

Request

<?xml version="1.0" encoding="utf-8"?>

  211

Response

<?xml version="1.0" encoding="utf-8"?>

  
      211
      1
      1
      1
      2
      2009-03-13
      Sample Notes
  
	

time_entry.delete

Delete an existing time_entry. This action is not recoverable.

Request

<?xml version="1.0" encoding="utf-8"?>

  211

Response

<?xml version="1.0" encoding="utf-8"?>

time_entry.list

Returns a list of timesheet entries in ordered according to date.

Filters
  • project_id
  • task_id
  • date_from
  • date_to

Request

<?xml version="1.0" encoding="utf-8"?>

  1                        
  15               

Response

<?xml version="1.0" encoding="utf-8"?>

  
    
      211
      1
      1
      1
      2
      2009-03-13
      Sample Notes
    
    
    ...
    
    ...