API:setInvoiceStatus - Set invoice status

Change invoice status.

Required parameters

id
Invoice ID
status
New invoice status, possible values: Paid, Unpaid, Cancelled

Request

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

Response

   {
      "success": true,
      "call": "setInvoiceStatus",
      "server_time": 1323785748,
      "info": [
         "Invoice #65 marked Paid"
      ]
   }