# API: Add invoice line

# addInvoiceItem

Add new line/item to invoice

# Required parameters

Parameter Description
id Invoice ID
line Description of new invoice item
price Price per one item
qty Item QTY, default:1
tax Indicates whether item is taxed (1) or not (0)

# Request

GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=addInvoiceItem&id=ID&line=LINE&price=PRICE&qty=QTY&tax=TAX

# PHP Samples

# Response

{
    "success": true,
    "newline": {
        "id": "67",
        "invoice_id": "219",
        "type": "Other",
        "item_id": "0",
        "description": "Invoice Item Description",
        "amount": "5.50",
        "taxed": "0",
        "qty": "1",
        "linetotal": 1.3
    },
    "call": "addInvoiceItem",
    "server_time": 1317723134
}
Last Updated: 10/7/2024, 2:36:43 PM