API:getInvoiceDetails - Get invoice details

Return invoice details

Required parameters

id
Invoice ID

Request

GET http://url_to_your_hostbill.com/admin/api.php?api_id=API_ID&api_key=API_KEY&call=getInvoiceDetails&id=ID

Response

   {
      "success": true,
      "invoice": {
         "id": "58",
         "paid_id": "",
         "recurring_id": "0",
         "status": "Unpaid",
         "client_id": "6",
         "date": "2011-11-22",
         "duedate": "2011-11-22",
         "datepaid": "0000-00-00 00:00:00",
         "subtotal": "9.95",
         "credit": "0.00",
         "tax": "1.99",
         "taxrate": "20.00",
         "tax2": "0.00",
         "taxrate2": "0.00",
         "total": "11.94",
         "payment_module": "22",
         "currency_id": "0",
         "rate": "1.0000",
         "notes": "",
         "items": [
            {
               "id": "118",
               "invoice_id": "58",
               "type": "Domain Register",
               "item_id": "10",
               "description": "Domain Registration: hbappreseller.co.uk Period: 1 Year\/s",
               "amount": "9.95",
               "taxed": "1",
               "qty": "1",
               "linetotal": 9.95
            }
         ],
         "client": {
            "id": "6",
            "email": "admin@eml.com",
            "password": "474bf122c92de249ace867a003cb7196",
            "lastlogin": "0000-00-00 00:00:00",
            "ip": "213.114.11.12",
            "host": "randomhost.com",
            "status": "Active",
            "parent_id": "0",
            "firstname": "Mike",
            "lastname": "Blue",
            "companyname": "",
            "address1": "addr1",
            "address2": "",
            "city": "cit1",
            "state": "Aberdeen City",
            "postcode": "CR2 6XH",
            "country": "GB",
            "phonenumber": "+48 73912654",
            "datecreated": "2011-11-12",
            "notes": "",
            "language": "english",
            "company": "0",
            "credit": "0.00",
            "taxexempt": "0",
            "latefeeoveride": "0",
            "overideduenotices": "0",
            "client_id": "6",
            "cardnum": "",
            "currency_id": "0",
            "privileges": null
         },
         "gateway": "AlertPay"
      },
      "transactions": [
         
      ],
      "call": "getInvoiceDetails",
      "server_time": 1323445047
   }