ETASCOM CRM V3 - Documentation API
    Preparing search index...
    UpdateInvoiceSchema: ZodObject<
        {
            id: ZodString;
            number: ZodEffects<
                ZodOptional<ZodString>,
                string | undefined,
                string | undefined,
            >;
            clientId: ZodEffects<
                ZodOptional<ZodString>,
                string | undefined,
                string | undefined,
            >;
            salesOrderId: ZodEffects<
                ZodOptional<ZodString>,
                string | undefined,
                string | undefined,
            >;
            invoiceDate: ZodEffects<
                ZodOptional<ZodString>,
                string | undefined,
                string | undefined,
            >;
            dueDate: ZodEffects<
                ZodOptional<ZodString>,
                string | undefined,
                string | undefined,
            >;
            status: ZodOptional<
                ZodEnum<
                    [
                        "DRAFT",
                        "SENT",
                        "UNPAID",
                        "PARTIALLY_PAID",
                        "PAID",
                        "OVERDUE",
                        "CREDIT_NOTE",
                        "CANCELLED",
                    ],
                >,
            >;
            subtotal: ZodOptional<ZodNumber>;
            taxRate: ZodOptional<ZodNumber>;
            taxAmount: ZodOptional<ZodNumber>;
            totalAmount: ZodOptional<ZodNumber>;
            currencyId: ZodEffects<
                ZodOptional<ZodString>,
                string | undefined,
                string | undefined,
            >;
            globalTaxId: ZodEffects<
                ZodOptional<ZodString>,
                string | undefined,
                string | undefined,
            >;
            notes: ZodEffects<
                ZodOptional<ZodString>,
                string | undefined,
                string | undefined,
            >;
            lines: ZodOptional<
                ZodArray<
                    ZodObject<
                        {
                            id: ZodEffects<
                                ZodOptional<ZodString>,
                                string | undefined,
                                string | undefined,
                            >;
                            description: ZodString;
                            quantity: ZodNumber;
                            unitPrice: ZodNumber;
                            totalPrice: ZodNumber;
                            taxId: ZodEffects<
                                ZodOptional<ZodString>,
                                string | undefined,
                                string | undefined,
                            >;
                            taxRate: ZodNumber;
                            taxAmount: ZodNumber;
                            notes: ZodEffects<
                                ZodOptional<ZodString>,
                                string | undefined,
                                string | undefined,
                            >;
                            finishedProductId: ZodEffects<
                                ZodOptional<ZodString>,
                                string | undefined,
                                string | undefined,
                            >;
                        },
                        "strip",
                        ZodTypeAny,
                        {
                            id?: string;
                            description: string;
                            quantity: number;
                            unitPrice: number;
                            totalPrice: number;
                            taxId?: string;
                            taxRate: number;
                            taxAmount: number;
                            notes?: string;
                            finishedProductId?: string;
                        },
                        {
                            id?: string;
                            description: string;
                            quantity: number;
                            unitPrice: number;
                            totalPrice: number;
                            taxId?: string;
                            taxRate: number;
                            taxAmount: number;
                            notes?: string;
                            finishedProductId?: string;
                        },
                    >,
                    "many",
                >,
            >;
        },
        "strip",
        ZodTypeAny,
        {
            id: string;
            number?: string;
            clientId?: string;
            salesOrderId?: string;
            invoiceDate?: string;
            dueDate?: string;
            status?: | "DRAFT"
            | "SENT"
            | "CANCELLED"
            | "PAID"
            | "PARTIALLY_PAID"
            | "UNPAID"
            | "OVERDUE"
            | "CREDIT_NOTE";
            subtotal?: number;
            taxRate?: number;
            taxAmount?: number;
            totalAmount?: number;
            currencyId?: string;
            globalTaxId?: string;
            notes?: string;
            lines?: {
                id?: string;
                description: string;
                quantity: number;
                unitPrice: number;
                totalPrice: number;
                taxId?: string;
                taxRate: number;
                taxAmount: number;
                notes?: string;
                finishedProductId?: string;
            }[];
        },
        {
            id: string;
            number?: string;
            clientId?: string;
            salesOrderId?: string;
            invoiceDate?: string;
            dueDate?: string;
            status?: | "DRAFT"
            | "SENT"
            | "CANCELLED"
            | "PAID"
            | "PARTIALLY_PAID"
            | "UNPAID"
            | "OVERDUE"
            | "CREDIT_NOTE";
            subtotal?: number;
            taxRate?: number;
            taxAmount?: number;
            totalAmount?: number;
            currencyId?: string;
            globalTaxId?: string;
            notes?: string;
            lines?: {
                id?: string;
                description: string;
                quantity: number;
                unitPrice: number;
                totalPrice: number;
                taxId?: string;
                taxRate: number;
                taxAmount: number;
                notes?: string;
                finishedProductId?: string;
            }[];
        },
    > = ...