0

Closed

Support expense.list

description

http://developers.freshbooks.com/docs/expenses/
 
expense.list
 
Returns a list of expense summaries. You can filter by client_id, category_id, project_id, date_from, date_to or vendor optionally.
Note: This method uses pagination.
 
Request
 
view plaincopy to clipboardprint?
 
  • <?xml version="1.0" encoding="utf-8"?> 
  • <request method="expense.list"> 
  •  
  •   <!--Filter by client (Optional) --> 
  •   <client_id>3</client_id> 
  •   <!--Filter by date range (Optional) --> 
  •   <date_from>2009-10-31</date_from> 
  •   <date_to>2010-2-28</date_to> 
  •   <!--One of 'active', 'archived', 'deleted' (Optional) --> 
  •   <folder>active</folder> 
  • </request> 
     
    Response
     
    view plaincopy to clipboardprint?
     
  • <?xml version="1.0" encoding="utf-8"?> 
  • <response xmlns="http://www.freshbooks.com/api/" status="ok"> 
  •   <expenses page="1" per_page="10" pages="4" total="47"> 
  •  
  •     <expense> 
  •  
  •       <expense_id>430</expense_id> 
  •       <staff_id>1</staff_id> 
  •       <category_id>5</category_id> 
  •       <project_id>10</project_id> 
  •       <client_id>10</client_id> 
  •       <amount>29.95</amount> 
  •       <date>2008-11-01</date> 
  •       <notes>Hardware.</notes> 
  •       <vendor>FreshBooks</vendor> 
  •       <status>1</status> <!-- Can be 0 (not assigned), 1 (unbilled) or 2 (invoiced)--> 
  •       <folder>active</folder> 
  •       <tax1_name></tax1_name> 
  •       <tax1_percent></tax1_percent> 
  •       <tax1_amount></tax1_amount> 
  •       <tax2_name></tax2_name> 
  •       <tax2_percent></tax2_percent> 
  •       <tax2_amount></tax2_amount> 
  •  
  •     </expense> 
  •     <expense> 
  •  
  •       <expense_id>433</expense_id> 
  •       <staff_id>2</staff_id> 
  •       <category_id>5</category_id> 
  •       <project_id>10</project_id> 
  •       <client_id>10</client_id> 
  •       <amount>29.95</amount> 
  •       <date>2008-11-01</date> 
  •       <notes>Software package.</notes> 
  •       <status>1</status> 
  •       <folder>active</folder> 
  •       <tax1_name></tax1_name> 
  •       <tax1_percent></tax1_percent> 
  •       <tax1_amount></tax1_amount> 
  •       <tax2_name></tax2_name> 
  •       <tax2_percent></tax2_percent> 
  •       <tax2_amount></tax2_amount> 
  •  
  •     </expense> 
  •     ... 
  •   </expenses> 
  • </response>
Closed Jul 23, 2012 at 5:18 PM by stemarie

comments

wrote Jul 23, 2012 at 5:18 PM

Resolved with changeset 94086.

wrote Jan 31, 2013 at 11:24 PM

wrote May 13, 2013 at 6:24 PM