Creator Help

Create Expense


The Deluge task zoho.invoice.createExpense() will create an expense in your Zoho Invoice account with the required values.

Deluge syntax

<Inv Response> = zoho.invoice.createExpense(<key:value>

<Key> refers to the name to be specified as the map key for each key:value pair. The key names must be the same name as given below.
<value> is the value specified for a given key.
<Inv Response> is the map variable returned by Zoho Invoice as response.

Key names to create a customer

  • CategoryName - Mandatory
  • ExpenseDate - If not specified, current date is taken as expense date
  • ExpenseAmount - Mandatory
  • ExpenseDescription
  • Tax1Name
  • IsInclusiveTax - If not specified, default value is false
  • IsBillable - If not specified, default value is false
  • Reference
  • CustomerID - Mandatory, if IsBillable is true
  • CurrencyCode - If not specified, base currency is taken
  • Exchange Rate - If not specified, default value is 1.


expenseInfo = { "CategoryName" : "Marketing", "ExpenseDate" : zoho.currentdate, "ExpenseAmount" : 1000, "ExpenseDescription" : "Online Marketing related expense",
"IsInclusiveTax" : true, "IsBillable" : true, "Reference" : "Ref-1", "CustomerID" : "141995000000022001", "CurrencyCode" : "USD", "ExchangeRate" : 10 };

resp = zoho.invoice.createExpense(expenseInfo);

Response format

"10.000000","ExpenseDate":"2012-03-14","ExpenseDescription":"Online Marketing related expense","CustomerID":
"141995000000022001","Reference":"Ref-1","LastModifiedTime":"2012-03-14 16:07:22IST","IsBillable":"1","Total":

Related Links