# API: Add estimate line

# addEstimateLine

Add estimate line

# Required parameters

Parameter Description
id Estimate ID
description Description of new invoice item
amount Price per one item

# Optional parameters

Parameter Description
qty Item QTY, default:1
taxed Indicates whether item is taxed (1) or not (0)
tax_rate Tax 1 rate (%, eg 10)

# Request

GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=addEstimateLine&id=ID&description=DESCRIPTION&amount=AMOUNT

# PHP Samples

# Response

{
    "success": true,
    "estimate": {
        "id": "113",
        "status": "Draft",
        "subject": "Estimate",
        "client_id": "1",
        "date_created": "2019-09-11",
        "date_expires": "2019-09-18",
        "subtotal": "10.000",
        "credit": "0.000",
        "tax": "0.900",
        "taxrate": "30.000",
        "tax2": "0.000",
        "taxrate2": "0.000",
        "total": "10.900",
        "currency_id": "0",
        "rate": "1.0000000000",
        "notes": "",
        "notes_private": "",
        "hash": "fe709c654eac84d5239d1a12a4f71877",
        "invoice_id": "0",
        "options": "0",
        "grandtotal": "10.900",
        "client": {
            "id": "1",
            "group_id": "2",
            "email": "[email protected]",
            "lastlogin": "2020-06-22 14:56:51",
            "ip": "192.168.56.1",
            "host": "192.168.56.1",
            "status": "Active",
            "loginattempts": "0",
            "parent_id": "0",
            "firstname": "John",
            "lastname": "Doe",
            "companyname": "",
            "address1": "1485 Valley Lane",
            "address2": "",
            "city": "Austin",
            "state": "Texas",
            "postcode": "78701",
            "country": "US",
            "phonenumber": "+1 7981555555",
            "datecreated": "2017-11-08",
            "notes": "",
            "language": "english",
            "company": "0",
            "credit": "0.000",
            "taxexempt": "0",
            "cardnum": "",
            "currency_id": "0",
            "privileges": null,
            "taxrateoverride": "0",
            "taxrate": "0"
        },
        "items": [
            {
                "id": "345",
                "estimate_id": "113",
                "item_id": "0",
                "type": "Other",
                "description": "Product",
                "amount": "10.000",
                "taxed": "1",
                "tax_rate": "9.000",
                "tax": "0.900",
                "qty": "1",
                "linetotal": 10
            }
        ],
        "taxes": {
            "0": {
                "subtotal": 0,
                "name": "0%",
                "rate": 0,
                "total": 0,
                "tax": 0
            },
            "9.000": {
                "subtotal": "10.00",
                "name": "9.000%",
                "rate": 9,
                "total": "10.90",
                "tax": "0.90"
            }
        }
    },
    "call": "addEstimateLine",
    "server_time": 1611568519
}
Last Updated: 5/15/2023, 2:26:43 PM