open-nav
    Preparing search index...

    Interface BuildInvoiceInput

    interface BuildInvoiceInput {
        additionalData?: AdditionalDataType[];
        appearance?: "PAPER" | "ELECTRONIC" | "EDI" | "UNKNOWN";
        currency?: string;
        customer: BuildParty & {
            vatStatus?: "OTHER" | "DOMESTIC" | "PRIVATE_PERSON";
        };
        deliveryDate?: string;
        deliveryPeriod?: { end: string; start: string };
        exchangeRate?: string | number;
        invoiceNumber: string;
        issueDate: string;
        lines: BuildLine[];
        orderNumbers?: string[];
        paymentDate?: string;
        paymentMethod?: "TRANSFER" | "CASH" | "CARD" | "VOUCHER" | "OTHER";
        priceMode?: "net" | "gross";
        supplier: BuildParty & { bankAccount?: string };
    }
    Index
    additionalData?: AdditionalDataType[]

    Conventionally named extra data for the invoice (additionalInvoiceData). NAV has no free-text invoice note; an invoice-level "Megjegyzés" must be a structured field whose dataName follows NAV's [A-Z][0-9]{5}_... convention. Validated by validateInvoice.

    appearance?: "PAPER" | "ELECTRONIC" | "EDI" | "UNKNOWN"

    Defaults to PAPER.

    currency?: string

    ISO 4217. Defaults to HUF.

    customer: BuildParty & { vatStatus?: "OTHER" | "DOMESTIC" | "PRIVATE_PERSON" }

    Type Declaration

    • OptionalvatStatus?: "OTHER" | "DOMESTIC" | "PRIVATE_PERSON"

      Defaults to DOMESTIC when a tax number is given, else PRIVATE_PERSON.

    deliveryDate?: string

    Fulfilment date, yyyy-mm-dd. Defaults to the issue date.

    deliveryPeriod?: { end: string; start: string }

    Periodic (continuous) settlement — "folyamatos teljesítés". Sets the delivery period on the invoice and marks periodicalSettlement.

    exchangeRate?: string | number

    Rate to HUF. Required for a non-HUF invoice; defaults to 1.

    invoiceNumber: string
    issueDate: string

    Issue date, yyyy-mm-dd.

    lines: BuildLine[]
    orderNumbers?: string[]

    Order numbers — "rendelésszám(ok)" (conventionalInvoiceInfo.orderNumbers).

    paymentDate?: string

    Payment due date, yyyy-mm-dd.

    paymentMethod?: "TRANSFER" | "CASH" | "CARD" | "VOUCHER" | "OTHER"
    priceMode?: "net" | "gross"

    How each line's unitPrice is entered. net (the default) takes it as the net unit price. gross takes it as the gross (VAT-inclusive) unit price and derives the net one from the line's VAT rate — the common "bruttó árból" data-entry mode. Because NAV is net-based, the reported gross line total may differ from quantity × grossUnitPrice by a rounding unit.

    supplier: BuildParty & { bankAccount?: string }