# API: Add Addon to Account

# addAddonToAccount

Add an addon to existing account.

# Required parameters

Parameter Description
account_id Account ID
addon_id ID of addon from hb_addons table to add

# Optional parameters

Parameter Description
invoice Set to "true" if invoice for adding this addon should be generated
cycle Billing cycle for addon, allowed values: 'm','q','s','a','b','t','d','w','h' or 'Free' or 'Once' where m-monthly, q-quarterly etc.
payment_module If you choose to generate invoice, you can provide ID of payment gateway to use
prorata Set to '1' to pro-rate invoice and match due date of newly created addon to account one

# Request

GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=addAddonToAccount&account_id=ACCOUNT_ID&addon_id=ADDON_ID

# PHP Samples

# Response

{
    "success": true,
    "newaddon": true,
    "call": "addAddonToAccount",
    "server_time": 1366103631,
    "info": [
        "Addon added"
    ]
}
Last Updated: 10/7/2024, 2:36:43 PM