API:getClientOrders - Get client orders

Get list of client's orders.

Required parameters

id
Client ID

Optional parameters

page
Which page to return

Request

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

Response

   {
      "success": true,
      "orders": [
         {
            "id": "71",
            "date_created": "2011-12-09 03:26:29",
            "number": "2070437339",
            "total": "178.00",
            "status": "Active",
            "firstname": "Jack",
            "lastname": "Black",
            "module": "AlertPay",
            "client_id": "8",
            "invtotal": "178.00",
            "invstatus": "Paid",
            "currency_id": "0",
            "balance": "Completed"
         },
         {
            "id": "70",
            "date_created": "2011-12-07 00:31:31",
            "number": "104792403",
            "total": "295.00",
            "status": "Pending",
            "firstname": "Jack",
            "lastname": "Black",
            "module": "AlertPay",
            "client_id": "8",
            "invtotal": "295.00",
            "invstatus": "Unpaid",
            "currency_id": "0",
            "balance": "Incomplete"
         }
      ],
      "call": "getClientOrders",
      "server_time": 1323444240
   }