API:addInvoiceItem - Add invoice line

Add new line/item to invoice

Required parameters

id
Invoice ID
line
Description of new invoice item
price
Price per one item
qty
Item QTY, default:1
tax
Indicates whether item is taxed (1) or not (0)

Request

GET http://url_to_your_hostbill.com/admin/api.php?api_id=API_ID&api_key=API_KEY&call=addInvoiceItem&id=ID&line=LINE&price=PRICE&qty=QTY&tax=TAX

Response

   {
      "success": true,
      "newline": {
         "id": "67",
         "invoice_id": "219",
         "type": "Other",
         "item_id": "0",
         "description": "Invoice Item Description",
         "amount": "5.50",
         "taxed": "0",
         "qty": "1",
         "linetotal": 1.3
      },
      "call": "addInvoiceItem",
      "server_time": 1317723134
   }