Transaction Line Item
Server-side response object returned directly or within a successful result object from the following requests:
Attributes
commodity_code
StringCode 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) is frequently used. Maximum 12 characters. This Braintree line-item field is not used by PayPal.
description
StringItem description. Maximum 127 characters.
discount_amount
BigDecimalDiscount amount for the line item. Can include up to 2 decimal places. This value can't be negative or zero. This Braintree line-item field is not used by PayPal.
kind
StringIndicates whether the line item is a debit (sale) or credit (refund or discount) to the customer. Accepted values:
"debit"
"credit"
name
StringItem name. Maximum 35 characters, or 127 characters for PayPal transactions.
product_code
StringProduct code for the item. Maximum 12 characters, or 127 characters for PayPal transactions.
quantity
BigDecimalNumber of units of the item purchased. Can include up to 4 decimal places. This value can't be negative or zero.
tax_amount
BigDecimalTax amount for the line item. Can include up to 2 decimal places. This value can't be negative or zero.
total_amount
BigDecimalQuantity x unit amount. Can include up to 2 decimal places.
unit_amount
BigDecimalPer-unit price of the item. Maximum 4 decimal places, or 2 decimal places for PayPal transactions. This value can't be negative or zero. Zero is allowed for PayPal transactions.
The unit of measure or the unit of measure code. Maximum 12 characters. This Braintree line-item field is not used by PayPal.
unit_tax_amount
BigDecimalPer-unit tax price of the item. Can include up to 2 decimal places. This value can't be negative.
upc_code
StringUPC code for the item. Maximum 17 characters.
upc_type
StringUPC type for the item. Accepted values:
"UPC-A"
"UPC-B"
"UPC-C"
"UPC-D"
"UPC-E"
"UPC-2"
"UPC-5"
url
StringThe URL to product information.