# API: Get product form

# getProductForm

Get full details of a single product form component including all items and their pricing. Use item id values from this response when calling editProductForm to update pricing.

# Required parameters

Parameter Description
id Form field ID
product_id Product ID

# Request

GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=getProductForm&id=ID&product_id=PRODUCT_ID

# PHP Samples

# Response

{
    "success": true,
    "field": {
        "id": "47",
        "type": {
            "type": "select",
            "group": "select",
            "langid": "select"
        },
        "name": "Control Panel",
        "key": "control_panel",
        "variable": "cpanel",
        "description": "Choose your control panel",
        "options": "0",
        "config": {
            "defaultvalue": ""
        },
        "product_id": "10",
        "product_paytype": "Regular",
        "items": [
            {
                "id": "101",
                "name": "cPanel",
                "variable_id": "cpanel",
                "paytype": "Regular",
                "sort_order": "0",
                "m": "5.00",
                "q": "15.00",
                "s": "27.50",
                "a": "50.00",
                "b": "95.00",
                "m_setup": "0.00",
                "a_setup": "0.00"
            },
            {
                "id": "102",
                "name": "Plesk",
                "variable_id": "plesk",
                "paytype": "Regular",
                "sort_order": "1",
                "m": "7.00",
                "q": "21.00",
                "s": "38.50",
                "a": "70.00",
                "b": "133.00",
                "m_setup": "0.00",
                "a_setup": "0.00"
            },
            {
                "id": "103",
                "name": "No control panel",
                "variable_id": "none",
                "paytype": "Free",
                "sort_order": "2",
                "m": "0.00",
                "a": "0.00"
            }
        ]
    },
    "call": "getProductForm",
    "server_time": 1706614584
}
Last Updated: 5/11/2026, 2:17:28 PM