Type alias Invoice

Invoice: {
    client: Record<string, any>;
    clientId: string;
    company: Record<string, any>;
    companyId: string;
    createdAt: string;
    currency: string;
    date: string;
    financialYear: string;
    id: string;
    lineItems: InvoiceLineItem[];
    metadata: Record<string, any>;
    number: number;
    prefix: string;
    status: string;
}

Type declaration

  • client: Record<string, any>

    Client to whom the invoice is raised

  • clientId: string

    ID of the client the invoice is raised against

  • company: Record<string, any>

    The company from which this invoice was raised

  • companyId: string

    ID of the company the invoice belongs to

  • createdAt: string

    Timestamp of invoice creation

  • currency: string

    Currency of the invoice

  • date: string

    Date of the invoice

  • financialYear: string

    The financial year this invoice belongs to

  • id: string

    ID of the created invoice

  • lineItems: InvoiceLineItem[]

    Line items of this invoice

  • metadata: Record<string, any>

    Any metadata attached with this invoice

  • number: number

    Invoice number

  • prefix: string

    Prefix of the invoice series

  • status: string

    The current status of the invoice