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

    Interface CreateInvoiceOptions

    Options for creating an invoice.

    interface CreateInvoiceOptions {
        autoAdvance?: boolean;
        collectionMethod?: CollectionMethod;
        customerId: string;
        daysUntilDue?: number;
        description?: string;
        idempotencyKey?: string;
        metadata?: Record<string, string>;
        subscriptionId?: string;
    }
    Index
    autoAdvance?: boolean

    Let Stripe automatically finalize and (for charge_automatically) pay the invoice. Leave false to keep it a draft you finalize yourself.

    false
    
    collectionMethod?: CollectionMethod

    How the invoice is collected.

    'charge_automatically'
    
    customerId: string

    Customer the invoice is billed to

    daysUntilDue?: number

    Days until due — only valid with collectionMethod: 'send_invoice'

    description?: string

    Arbitrary description shown on the invoice

    idempotencyKey?: string

    Idempotency key (defaults to a generated UUID)

    metadata?: Record<string, string>

    Key/value metadata attached to the invoice

    subscriptionId?: string

    Attach the invoice to an existing subscription