# API: Place new order

# addOrder

Create new order on customer behalf

# Required parameters

Parameter Description
client_id Client ID
product Service ID to purchase
cycle Billing cycle for product, allowed values: 'm','q','s','a','b','t','d','w','h' or 'Free' or 'Once' where m-monthly, q-quarterly etc.
confirm Set to 1 if you wish to notify client about this order
invoice_generate Set to 1 if you wish to generate invoice for this order
invoice_info Set to 1 if you wish to send invoice generated for this order

# Optional parameters

Parameter Description
module Payment module ID invoice should be generated with

# Request

GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=addOrder&client_id=CLIENT_ID&product=PRODUCT&cycle=CYCLE&confirm=CONFIRM&invoice_generate=INVOICE_GENERATE&invoice_info=INVOICE_INFO

# PHP Samples

# Response

{
    "success": true,
    "order_id": "171",
    "call": "addOrder",
    "server_time": 1317726282,
    "info": [
        "New Order created"
    ]
}
Last Updated: 5/12/2023, 3:22:14 PM