@bates-solutions/stripe API Reference - v2.2.1
    Preparing search index...

    Interface AddInvoiceItemOptions

    Options for adding an invoice item.

    Provide either amount (+ currency) for an ad-hoc charge, or priceId to bill an existing Price.

    interface AddInvoiceItemOptions {
        amount?: number;
        currency?: string;
        customerId: string;
        description?: string;
        idempotencyKey?: string;
        invoiceId?: string;
        metadata?: Record<string, string>;
        priceId?: string;
        quantity?: number;
    }
    Index
    amount?: number

    Amount in the smallest currency unit (e.g. cents). Mutually exclusive with priceId.

    currency?: string

    ISO currency code (required with amount)

    customerId: string

    Customer the item is billed to

    description?: string

    Arbitrary description shown on the line item

    idempotencyKey?: string

    Idempotency key (defaults to a generated UUID)

    invoiceId?: string

    Attach to a specific draft invoice. When omitted, the item is pending and is drawn onto the customer's next invoice.

    metadata?: Record<string, string>

    Key/value metadata attached to the invoice item

    priceId?: string

    Existing Price to bill. Mutually exclusive with amount.

    quantity?: number

    Quantity (used with priceId)