# PayPalLineItemInput

Input · GraphQL API

Line items for a PayPal payment.

## Fields

- `name` (`String!`) — required: Item name. Maximum 127 characters.
- `quantity` (`Int!`) — required: Number of units of the item purchased. This value can't be negative or zero.
- `unitAmount` (`Amount!`) — required: Per-unit price of the item. Can include up to 2 decimal places. This value can't be negative or zero.
- `type` (`TransactionLineItemType!`) — required: Indicates whether the line item is a debit (sale) or credit (refund or discount) to the customer.
- `description` (`String`): Item description. Maximum 127 characters.
- `productCode` (`String`): Product or UPC code for the item. Maximum 127 characters.
- `unitTaxAmount` (`Amount!`) — required: Per-unit tax price of the item. Can include up to 2 decimal places. This value can't be negative or zero. If this is a line item for a Venmo transaction, this value can be zero.
- `url` (`URL`): The URL to product information.
- `imageUrl` (`URL`): URL to an image that represents the product. Max 1024 characters.
- `upc` (`LineItemUpcInput`): UPC of the line item.

## Used by

- [CreatePayPalOneTimePaymentInput](/braintree/graphql/reference/types/create-pay-pal-one-time-payment-input) — Input; lineItems
- [UpdatePayPalOneTimePaymentInput](/braintree/graphql/reference/types/update-pay-pal-one-time-payment-input) — Input; lineItems
- [VenmoPaysheetTransactionDetailsInput](/braintree/graphql/reference/types/venmo-paysheet-transaction-details-input) — Input; lineItems

## GraphQL definition

```graphql
input PayPalLineItemInput {
  name: String!
  quantity: Int!
  unitAmount: Amount!
  type: TransactionLineItemType!
  description: String
  productCode: String
  unitTaxAmount: Amount!
  url: URL
  imageUrl: URL
  upc: LineItemUpcInput
}
```

---

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