Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

New-OfficeInvoice

Module PSWriteOffice
Inputs
None
Outputs
OfficeIMO.Invoicing.Invoice

Creates an editable invoice without serializing or declaring standards compliance.

Syntax

New-OfficeInvoice -Buyer <InvoiceParty> [-Currency <String>] -IssueDate <DateTime> [-Number] <String> -Seller <InvoiceParty> [<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Authored help example

Creates an editable invoice without serializing or declaring standards compliance.

$invoice = New-OfficeInvoice -Number INV-001 -IssueDate 2026-10-20 -Seller $seller -Buyer $buyer -Currency EUR

Parameters

-Buyer InvoiceParty required
Buyer party, created with New-OfficeInvoiceParty or a property hashtable.
-Currency String optional
ISO currency code.
-IssueDate DateTime required
Explicit issue date.
-Number String requiredposition: 0
Seller-assigned document number.
-Seller InvoiceParty required
Seller party, created with New-OfficeInvoiceParty or a property hashtable.

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.