API:editOrderDraft - Edit Order Draft

Change draft options.

Required parameters

id
Draft ID

Optional parameters

module
Payment module ID
scenario_id
Order Scenario ID
discount_coupon
Promotion code ID
discount_value
Discount value
discount_type
Discount type: fixed, percent
client_id
Client ID
confirm
Send Confirm Email - use 1 or 0
invoice_generate
Generate invoice - use 1 or 0
invoice_info
Send Invoice Info To Client - use 1 or 0

Request

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

Response

   {
      "success": true,
      "draft": { ... },
      "call": "editOrderDraft",
      "server_time": 1344000642,
      "info": [
         "upgrade_order_success"
      ]
   }