Share via


Get-PartnerInvoiceStatement

Gets an invoice statement using the invoice identifier.

Syntax

Get-PartnerInvoiceStatement
   -InvoiceId <String>
   [-OutputPath <String>]
   [-Overwrite]
   [<CommonParameters>]

Description

Gets an invoice statement using the invoice identifier and writes it to the specified path.

Examples

Example 1

PS C:\> Get-PartnerInvoiceStatement -InvoiceId G000024135 -OutputPath 'C:\Invoices\'

Downloads the invoice statement associated with the invoice with the identifier of G000024135.

Parameters

-InvoiceId

The invoice id of the statement to retrieve.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-OutputPath

The output path of the PDF statement file.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Overwrite

A flag indicating whether or to overwrite the file if it exists.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

System.Object