Create a new expense. If successful, returns the expense_id of the newly created expense.
<?xml version="1.0" encoding="utf-8"?> <request method="createExpense"> <project_id>2054</project_id> <client_id>14542</client_id> <expense_category_id>1660</expense_category_id> <amount>1641</amount> <vendor>SANDY</vendor> <date>2011-08-22</date> <tax1></tax1> <tax2></tax2> <notes>this is test notes.</notes> <recurring_frequency >28</recurring_frequency> <recurring_end_date></recurring_end_date> </request>
<?xml version="1.0" encoding="utf-8"?>866
Update an existing expense with the given expense_id.
<?xml version="1.0" encoding="utf-8"?> <request method="updateExpense"> <expense_id>3928</expense_id> <project_id>2054</project_id> <client_id></client_id> <expense_category_id>1660</expense_category_id> <amount>12.07</amount> <vendor>Dummy </vendor> <date>2011-05-23</date> <tax1></tax1> <tax2></tax2> <notes>this is test notes.</notes> <recurring_frequency ></recurring_frequency> <recurring_end_date></recurring_end_date> </request>
<?xml version="1.0" encoding="utf-8"?>866
Delete an existing expense.
<?xml version="1.0" encoding="utf-8"?> <request method="deleteExpense"> <expense_id></expense_id> <!-- This is expense unique id at Invoicera database. You can use more than one row for delete --> </request>
<?xml version="1.0" encoding="utf-8"?>
Returns a list of expense summaries. Results are ordered by descending expense number.
<?xml version="1.0" encoding="utf-8"?> <request method="listExpense"> <filter> <!-- Pass search parameters here --> <client_id></client_id> <!-- This is client unique id at Invoicera database --> <expense_category_id></expense_category_id> <!-- This is expense-category unique id at Invoicera database --> <amount></amount> <!-- This is expence amount --> <status></status> <!-- Status are Active, Archived, deleted. Only Active records will be displayed if no value defined --> <is_expense_invoiced></is_expense_invoiced> <!-- Options are Yes/No --> <page>1</page> <!-- This is page number --> <per_page_record>10</per_page_record> <!-- This is number of records per page --> </filter> <!-- search parameters ends here --> </request>
<?xml version="1.0" encoding="utf-8"?>. . . 984 2820 845 Sandeep Kumar 0000-00-00 00:00:00 700.00 This is test notes. 458 459 1 28 0000-00-00 00:00:00 Active
Return the complete expense details associated with the given expense_id.
<?xml version="1.0" encoding="utf-8"?> <request method="getExpense"> <expense_id>56</expense_id> <!-- This is expense unique id at Invoicera database. Only one ID can be pass at a time. --> </request>
<?xml version="1.0" encoding="utf-8"?>984 2820 845 Sandeep Kumar 0000-00-00 00:00:00 700.00 This is test notes. 458 459 1 28 0000-00-00 00:00:00 Active