> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tesouro.com/llms.txt
> Use this file to discover all available pages before exploring further.

# LineItemInput

> Line-item details about what was purchased with a given order. It includes items, quantity, price, product codes, and other pertinent details.

`INPUT_OBJECT`

Line-item details about what was purchased with a given order. It includes items, quantity, price, product codes, and other pertinent details.

## Fields

<ResponseField name="description" type="String!" required>
  Description of the goods or services.
</ResponseField>

<ResponseField name="commodityCode" type="String!" required>
  A specific code used to classify and categorize the type of goods and services being purchased.
</ResponseField>

<ResponseField name="productCode" type="String!" required>
  The supplier's unique product identifier, inventory number, or UPC code used to identity a
  specific product.
</ResponseField>

<ResponseField name="discount" type="LineItemDiscountInput">
  Details regarding any discounts applied to the line item.

  <Expandable title="child attributes">
    <ResponseField name="amount" type="Decimal!" required>
      An amount discounted at the individual line item level.
    </ResponseField>

    <ResponseField name="rate" type="Decimal">
      The rate of the discount, formatted as a decimal. e.g., 5.00% will be formatted as 0.05
    </ResponseField>

    <ResponseField name="taxCalculation" type="TaxCalculation">
      If taxes were calculated, you can specify if they were calculated before or after the discount was applied.

      See [TaxCalculation](/acquiring/reference/graphql/types/tax-calculation)
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="taxes" type="LineItemTaxesInput">
  Tax details applicable to the individual line item. If the item is not taxable, these fields should be set to null.

  <Expandable title="child attributes">
    <ResponseField name="localTax" type="LineItemTaxInput">
      See [LineItemTaxInput](/acquiring/reference/graphql/types/line-item-tax-input)
    </ResponseField>

    <ResponseField name="nationalTax" type="LineItemTaxInput">
      See [LineItemTaxInput](/acquiring/reference/graphql/types/line-item-tax-input)
    </ResponseField>

    <ResponseField name="totalAmount" type="Decimal!" required />
  </Expandable>
</ResponseField>

<ResponseField name="lineItemAmount" type="Decimal!" required>
  The total amount of the item. Calculated as \[Unit price \* Unit quantity]
</ResponseField>

<ResponseField name="productSku" type="String!" required>
  A SKU, or Stock Keeping Unit, is a unique alphanumeric code assigned by a retailer to identify and
  track each distinct product or product variation within their inventory.
</ResponseField>

<ResponseField name="unitPrice" type="Decimal!" required>
  The "per unit" price of the line item.
</ResponseField>

<ResponseField name="unitQuantity" type="Int!" required>
  The number of units included in the line item.
</ResponseField>

<ResponseField name="unitOfMeasure" type="String!" required>
  The metric used for understanding the quantity of a given line item. e.g., for quantities, use
  "each" or "piece" for length, use "meter" or "inch" for volume, use "liter" or "gallon" and for
  weight, use "gram" or "pound", etc.
</ResponseField>
