Type alias LineItem

LineItem: {
    description?: string;
    id?: string;
    metadata?: Record<string, any>;
    price: number;
    quantity: number;
    sortOrder?: number;
    title: string;
}

Type declaration

  • Optional description?: string

    Short item description

  • Optional id?: string

    ID of the product or service being invoiced

  • Optional metadata?: Record<string, any>

    Any metadata attached to this line item.

  • price: number

    Price of the line item. Must be indicated in lowest denomination of invoice currency.

  • quantity: number

    Quantity of the item being invoiced.

  • Optional sortOrder?: number

    Order in which the item will appear in the rendered invoice. If not specified, the sort order will be inferred based on its position in the array of line items

  • title: string

    Title of the item