API:meteredAddUsage - Metered Billing: Add usage

Add usage for metered billing variable

Required parameters

account_id
HostBill account ID that usage is being added
variable
Name of variable that usage of is being added. I.e: bandwidth
qty
Quantity of usage to record

Optional parameters

output
Comment, additional information about current usage
rawoutput
Additional comments, raw data output to use in custom scripts
charge
Amount to charge for usage - if not present HostBill will calculate it automatically, using related variable scheme
date_created
Date (PHP format: Y-m-d H:i:s) when entry was added, default is current date

Request

GET http://url_to_your_hostbill.com/admin/api.php?api_id=API_ID&api_key=API_KEY&call=meteredAddUsage&account_id=ACCOUNT_ID&variable=VARIABLE&qty=QTY

Response

   {
      "success": true,
      "usage_id": "109",
      "call": "meteredAddUsage",
      "server_time": 1323788439
   }