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
| Name | Type | Description |
|---|---|---|
_id | ID! | Internal database identifier. |
listing | ListingCopy! | Listing information at the time of purchase (snapshot). |
item | LineItemItem! | Item information including identifier, description, and metadata. |
quantity | Int! | Quantity of items in this line item. |
price | LinePrice! | Price breakdown for this line item including taxes and discounts. |
unavailable | Boolean | Whether this item is currently unavailable. |
added | Date | Date when this item was added to the order or checkout. |
giftCard ⚠️ | LineItemGiftCard | Single gift card associated with this line item. Use giftCards instead. ⚠️ Deprecated: No longer supported |
giftCards | [LineItemGiftCard!] | Gift cards associated with this line item. |