====== Creating Invoices ====== invoice.create Create a new invoice complete with line items. If successful, returns the invoice_id of the newly created invoice. ===== Request ===== 1001 //If not present, the next invoice number is used 2007-09-28 //mandatory 12345 1 //mandatory USD //mandatory 8.75% //percent 3.45 NET 60 //mandatory possible values: NET 15, NET 30, NET 45, NET 60, or date: e.g. 2007-09-28 1.5% //mandatory possible values: 1%, 1.5%, 2% or amount: e.g. 1.45 tag1 tag2 tag3 //invoice must have at least 1 line 2 Hours //mandatory possible values: Hours, Days, Product, Expense description1 1 //possible values: 1 (have tax) or 0 1.00 //must be numeric value 2 Days description2 0 2.00 2 Product descr3 1 3.00 test notes ===== Response ===== 1 ====== Update Inovices ====== invoice.update Update an existing invoice with the given invoice_id. Any invoice fields left out of the request will remain unchanged. If you do not specify a element, the existing lines will remain unchanged. ===== Request ===== 1 # Invoice to update # Remaining arguments same as invoice.create ===== Response ===== ====== Get Invoices ====== invoice.get Return the complete invoice details associated with the given invoice_id. ===== Request ===== 1 ===== Response ===== 1 open 1001 2007-09-28 2007-09-28 2007-10-28 12345 1 USD 8.75% 3.45 NET 60 1.5% tag1 tag2 tag3 2 Hours description1 1 1.00 2 Days description2 0 2.00 2 Product descr3 1 3.00 test notes ====== Delete Invoices ====== invoice.delete Delete an existing invoice. ===== Request ===== 1 ===== Response ===== ====== List Invoices ====== invoice.list Returns a list of invoice summaries. ===== Request ===== 1 # Filter by client (Optional) 2007-01-01 # Return invoices dated after this arg (Optional) 2007-09-28 # Return invoices dated before this arg (Optional) 2007-01-01 # Return invoices updated after this arg (Optional) 2008-01-01 # Return invoices updated before this arg (Optional) 2007-01-01 # Return invoices created after this arg (Optional) 2008-01-01 # Return invoices created before this arg (Optional) draft # Filter by status - draft, open, closed, pastdue (Optional) id # Order by id, invoice_number, invoice_date. Default is id. (Optional) DESC # Sort - ASC, DESC. Default is DESC. (Optional) 1 # Page number to return, default is 1 (Optional) 10 # Number of results per page, default is 25 (Optional) ===== Response ===== 1 open 1001 2007-09-28 2007-09-28 2007-10-28 12345 1 USD 8.75% 3.45 NET 60 1.5% tag1 tag2 tag3 2 Hours description1 1 1.00 2 Days description2 0 2.00 2 Product descr3 1 3.00 test notes ====== Send Invoice ====== invoice.send Send an existing invoice. ===== Request ===== 1 # mandatory 2 paypal google This is your invoice. 1 # 1 - send me a copy, 0 - do not send me a copy ===== Response =====