Alokai
You are reading the documentation for SDK v2, which is no longer the latest version. Switch to current

CustomLineItem

A custom line item is a generic item that can be added to the cart but is not bound to a product. You can use it for discounts (negative money), vouchers, complex cart rules, additional services or fees. You control the lifecycle of this item.

export type CustomLineItem = {
    __typename?: 'CustomLineItem';
    id: Scalars['String'];
    name?: Maybe<Scalars['String']>;
    nameAllLocales: Array<LocalizedString>;
    money: BaseMoney;
    totalPrice: Money;
    slug: Scalars['String'];
    quantity: Scalars['Long'];
    state: Array<ItemState>;
    taxCategory?: Maybe<TaxCategory>;
    taxCategoryRef?: Maybe<Reference>;
    taxRate?: Maybe<TaxRate>;
    taxedPrice?: Maybe<TaxedItemPrice>;
    discountedPricePerQuantity: Array<DiscountedLineItemPriceForQuantity>;
    custom?: Maybe<CustomFieldsType>;
    shippingDetails?: Maybe<ItemShippingDetails>;
};

Referenced Types

On this page