Type alias CreateInvoicePayload

CreateInvoicePayload: {
    clientId: string;
    currency: string;
    date: string;
    lineItems?: LineItem[];
    metadata?: Record<string, any>;
    prefix?: string;
}

Type declaration

  • clientId: string

    Client against whom the invoice needs to be generated

  • currency: string

    Valid ISO 4217 currency code for the invoice

  • date: string

    The date of the invoice

  • Optional lineItems?: LineItem[]

    The line items of the invoice

  • Optional metadata?: Record<string, any>

    Any metadata attached to the invoice. Metadata is searchable

  • Optional prefix?: string

    Custom prefix for this invoice. All invoices for a prefix series are guaranteed to have separate counters