Skip to main content

LineItem Object

Description

Line item representing a single product in an order or checkout.

Declaration

type LineItem {
_id: ID!
listing: ListingCopy!
item: LineItemItem!
quantity: Int!
price: LinePrice!
unavailable: Boolean
added: Date
giftCard: LineItemGiftCard
giftCards: [LineItemGiftCard!]
}

Fields

NameTypeDescription
_idID!Internal database identifier.
listingListingCopy!Listing information at the time of purchase (snapshot).
itemLineItemItem!Item information including identifier, description, and metadata.
quantityInt!Quantity of items in this line item.
priceLinePrice!Price breakdown for this line item including taxes and discounts.
unavailableBooleanWhether this item is currently unavailable.
addedDateDate when this item was added to the order or checkout.
giftCard ⚠️LineItemGiftCardSingle gift card associated with this line item. Use giftCards instead. ⚠️ Deprecated: No longer supported
giftCards[LineItemGiftCard!]Gift cards associated with this line item.