@bates-solutions/clover API Reference - v1.3.0
    Preparing search index...

    Interface LineItem

    A line item on a Clover order.

    interface LineItem {
        alternateName?: string;
        createdTime?: number;
        discountAmount?: number;
        discounts?: CloverObject[];
        exchanged?: boolean;
        id?: string;
        isRevenue?: boolean;
        item?: { id: string };
        itemCode?: string;
        modifications?: CloverObject[];
        name?: string;
        note?: string;
        orderClientCreatedTime?: number;
        price?: number;
        priceWithModifiers?: number;
        printed?: boolean;
        refunded?: boolean;
        unitName?: string;
        unitQty?: number;
    }
    Index
    alternateName?: string
    createdTime?: number

    Created, in milliseconds since the epoch

    discountAmount?: number

    Fixed discount in cents

    discounts?: CloverObject[]

    With expand: ['lineItems.discounts']. Always an array (envelope unwrapped).

    exchanged?: boolean
    id?: string
    isRevenue?: boolean
    item?: { id: string }

    The inventory item this line was rung up from. Absent for custom items.

    itemCode?: string
    modifications?: CloverObject[]

    With expand: ['lineItems.modifications']. Always an array (envelope unwrapped).

    name?: string
    note?: string
    orderClientCreatedTime?: number
    price?: number

    Unit price in cents

    priceWithModifiers?: number

    Price in cents including modifiers (reporting only)

    printed?: boolean
    refunded?: boolean
    unitName?: string

    Unit name (e.g. oz, lb) for PER_UNIT items

    unitQty?: number

    Quantity for PER_UNIT items as a fixed-point integer scaled by 1000 (2500 is 2.5 unitName). Absent for other items: Clover adds one line item per unit sold, so count the lines instead.