# TransactionLineItem

Object · GraphQL API

Data for individual line items on a transaction.

## Fields

- `name` (`String`): Item name.
- `kind` (`TransactionLineItemType`): Indicates whether the line item is a sale or refund.
- `quantity` (`String`): Number of units of the item purchased.
- `unitAmount` (`String`): Per-unit price of the item.
- `totalAmount` (`String`): Total price amount for the line item, i.e. quantity multiplied by unit amount.
- `unitTaxAmount` (`String`): Per-unit tax price of the item.
- `taxAmount` (`String`): Tax amount for the line item.
- `discountAmount` (`String`): The discount amount of the line item.
- `unitOfMeasure` (`String`): The unit of measure or the unit of measure code.
- `productCode` (`String`): Product or UPC code for the item.
- `commodityCode` (`String`): Code used to classify items purchased and track the total amount spent across various categories of products and services. Different corporate purchasing organizations may use different standards, but the [United Nations Standard Products and Services Code (UNSPSC)](https://www.unspsc.org/) is frequently used.
- `description` (`String`): Item description.
- `url` (`String`): The URL to product information.
- `itemType` (`String`): The type of the line item, i.e., physical, digital etc.
- `imageUrl` (`String`): URL to an image that represents the product. Max 1024 characters.
- `upc` (`LineItemUpc`): UPC of the line item.

## Used by

- [Refund](/braintree/graphql/reference/types/refund) — Object; lineItems
- [Transaction](/braintree/graphql/reference/types/transaction) — Object; lineItems

## GraphQL definition

```graphql
type TransactionLineItem {
  name: String
  kind: TransactionLineItemType
  quantity: String
  unitAmount: String
  totalAmount: String
  unitTaxAmount: String
  taxAmount: String
  discountAmount: String
  unitOfMeasure: String
  productCode: String
  commodityCode: String
  description: String
  url: String
  itemType: String
  imageUrl: String
  upc: LineItemUpc
}
```

---

[View the complete GraphQL schema on GitHub](https://raw.githubusercontent.com/braintree/graphql-api/refs/heads/master/schema.graphql)