@bates-solutions/squareup API Reference - v3.2.0
    Preparing search index...

    Interface LineItemInput

    Line item for orders

    interface LineItemInput {
        amount?: number;
        appliedDiscounts?: { discountUid: string }[];
        appliedTaxes?: { taxUid: string }[];
        basePriceMoney?: {
            amount: number | bigint;
            currency: "USD" | "CAD" | "GBP" | "EUR" | "AUD" | "JPY";
        };
        catalogObjectId?: string;
        name?: string;
        note?: string;
        quantity?: number;
    }
    Index
    amount?: number
    appliedDiscounts?: { discountUid: string }[]

    References to order-level discounts (by their uid) that apply to this line item. Required for LINE_ITEM-scoped discounts — Square only applies a line-item discount to a line that lists it here.

    appliedTaxes?: { taxUid: string }[]

    References to order-level taxes (by their uid) that apply to this line item. Required for LINE_ITEM-scoped taxes: Square only applies a line-item tax to a line that lists it here. Each referenced tax must set scope: 'LINE_ITEM'; an ORDER tax applies to every line regardless.

    basePriceMoney?: {
        amount: number | bigint;
        currency: "USD" | "CAD" | "GBP" | "EUR" | "AUD" | "JPY";
    }

    Explicit money override. When set, takes precedence over amount + the builder's default currency. Useful for order templates where the base price must include an explicit currency.

    catalogObjectId?: string
    name?: string
    note?: string
    quantity?: number