# API: Remove All Order Draft Items

# clearOrderDraftItems

Remove all items from draft.

# Required parameters

Parameter Description
id Draft ID

# Request

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

# PHP Samples

# PHP Samples: Remove all items from draft

# Response

{
    "success": true,
    "draft": {
        "services": [],
        "addons": [],
        "domains": [],
        "customizations": [],
        "dom_customizations": [],
        "id": 292,
        "client_id": 14,
        "module": 0,
        "date": "2025-05-01 23:05:25",
        "discount": "",
        "scenario_id": 0,
        "staff_member_id": 0,
        "contract_id": "",
        "commitment_date": "",
        "affiliate_id": 0,
        "metadata": false,
        "estimate_id": "0",
        "options": {
            "confirm_email": true,
            "generate_invoice": true,
            "send_invoice": true,
            "override_recipients": false
        },
        "available_recipients": [
            {
                "id": "14",
                "group_id": "0",
                "email": "[email protected]",
                "password": "$2a$08$0Nm7F4BbQPReTjPT\/bbR5.4l4hbgAOW6aDuE1l.YFOwDPi\/hvRbQa",
                "lastlogin": "2025-04-30 08:12:47",
                "ip": "192.168.65.1",
                "host": "192.168.65.1",
                "status": "Active",
                "loginattempts": "0",
                "mfamodule": "56",
                "brand_id": "1",
                "browser": {
                    "userAgent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/134.0.0.0 Safari\/537.36",
                    "name": "Google Chrome",
                    "code": "Chrome",
                    "platform": "Win"
                },
                "parent_id": "0",
                "firstname": "Ara",
                "lastname": "Hauck",
                "companyname": "",
                "address1": "786 Feil Ports",
                "address2": "184 Hills View",
                "city": "Fond du Lac",
                "state": "12341",
                "postcode": "123",
                "country": "NL",
                "phonenumber": "+31 111111111",
                "datecreated": "2024-04-01",
                "notes": "0",
                "language": "english",
                "company": "0",
                "credit": "0.000",
                "taxexempt": "0",
                "latefeeoveride": 0,
                "overideautosusp": "0",
                "taxrateoverride": "0",
                "taxrate": "0",
                "cardtype": "Visa",
                "cardnum": "",
                "expdate": "",
                "overideduenotices": false,
                "disableemails": "0",
                "client_id": "14",
                "currency_id": "7",
                "affiliate_id": "1",
                "group_name": "None",
                "group_color": "#000000",
                "billing_contact_id": "0",
                "cardcreated": "2025-04-04 02:44:28",
                "cardupdated": "2025-04-04 02:44:41",
                "file": "9",
                "crpoints": "30000",
                "pushoveruserkey": "",
                "telegramnotifications": [
                    ""
                ],
                "mobilephone": "+48792 745 243",
                "mollieid": "cst_xjQxrAMJuT",
                "brand": "Default",
                "invoicedeliverymethod": "Paper + PDF",
                "supportpackage": "Advanced",
                "nexphoneclientid": "125696",
                "newsletter": [
                    "Subscribe"
                ],
                "countryname": "Netherlands"
            }
        ],
        "price": {
            "total": "0.00",
            "recurring": [],
            "discount": "0.00",
            "recurring_discount": [],
            "discount_details": [],
            "cost": "0.00",
            "setup": 0,
            "total_cost": 0
        },
        "currency": {
            "id": "7",
            "code": "USD",
            "sign": "$",
            "iso": "USD",
            "rate": "1.1374009539",
            "last_changes": "2025-05-01 22:45:04",
            "update": "1",
            "enable": "1",
            "format": "1,234.56",
            "decimal": "2",
            "rounding": "2",
            "rounding_mode": "HALF_UP"
        }
    },
    "call": "clearOrderDraftItems",
    "server_time": 174616666
}
Last Updated: 5/12/2025, 5:25:37 PM