API:addInvoice - Create invoice

Creates new invoice. Note: New invoice status will be set to DRAFT, so customer wont be able to see it, after finishing work with invoice you can make it viewable by using Convert Invoice option

Required parameters

client_id
Client id to create invoice for

Request

GET http://url_to_your_hostbill.com/admin/api.php?token=:TOKEN&call=addInvoice&client_id=:CLIENT_ID

Response

   {
      "success": true,
      "invoice_id": "167",
      "call": "addInvoice",
      "server_time": 1460989585
   }