Log in
Interface

InvoiceItemInterface

Magento\Sales\Api\Data\InvoiceItemInterface

What it does

This interface defines the contract for invoice item data objects in Magento 2's Sales module.

Developers use it when working with invoice items programmatically, such as retrieving or setting product details, prices, taxes, and discounts for items included in customer invoices.

It provides a standardized way to access invoice line item data through API or custom code.

Public Methods

  • getAdditionalData()
  • getBaseCost()
  • getBaseDiscountAmount()
  • getBaseDiscountTaxCompensationAmount()
  • getBasePrice()
  • getBasePriceInclTax()
  • getBaseRowTotal()
  • getBaseRowTotalInclTax()
  • getBaseTaxAmount()
  • getDescription()
  • getDiscountAmount()
  • getEntityId()
  • setEntityId()
  • getDiscountTaxCompensationAmount()
  • getName()
  • getParentId()
  • getPrice()
  • getPriceInclTax()
  • getProductId()
  • getRowTotal()
  • getRowTotalInclTax()
  • getSku()
  • getTaxAmount()
  • setParentId()
  • setBasePrice()
  • setTaxAmount()
  • setBaseRowTotal()
  • setDiscountAmount()
  • setRowTotal()
  • setBaseDiscountAmount()
  • setPriceInclTax()
  • setBaseTaxAmount()
  • setBasePriceInclTax()
  • setBaseCost()
  • setPrice()
  • setBaseRowTotalInclTax()
  • setRowTotalInclTax()
  • setProductId()
  • setAdditionalData()
  • setDescription()
  • setSku()
  • setName()
  • setDiscountTaxCompensationAmount()
  • setBaseDiscountTaxCompensationAmount()
  • getExtensionAttributes()
  • setExtensionAttributes()