API:addOrderDraftItem - Add Order Draft Item

Add new domain or service to existing draft.

Required parameters

id
Draft ID
prod_type
Type of item: domain, service

Optional parameters

product
Product ID for service
cycle
Billing cycle for service
host
Hostname for service
domain_sld
SLD name for domain
domain_tld
TLD ID for domain
domain_period
Period for domain
domain_action
Action type for domain: Register or Transfer
domain_eppcode
EPP Code for domain in case of Transfer
custom
Form component values for domains and services (see php example for details)
addons
Addons details for services

Request

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

Response

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