Partager via


BillingAccountResource.DownloadDocumentsByBillingAccountInvoiceAsync Method

Definition

Gets a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip file. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/downloadDocuments
  • Operation Id: Invoices_DownloadDocumentsByBillingAccount
  • Default Api Version: 2024-04-01
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Billing.Models.BillingDocumentDownloadResult>> DownloadDocumentsByBillingAccountInvoiceAsync (Azure.WaitUntil waitUntil, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Billing.Models.BillingDocumentDownloadRequestContent> arrayOfDocumentDownloadRequest, System.Threading.CancellationToken cancellationToken = default);
abstract member DownloadDocumentsByBillingAccountInvoiceAsync : Azure.WaitUntil * seq<Azure.ResourceManager.Billing.Models.BillingDocumentDownloadRequestContent> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Billing.Models.BillingDocumentDownloadResult>>
override this.DownloadDocumentsByBillingAccountInvoiceAsync : Azure.WaitUntil * seq<Azure.ResourceManager.Billing.Models.BillingDocumentDownloadRequestContent> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Billing.Models.BillingDocumentDownloadResult>>
Public Overridable Function DownloadDocumentsByBillingAccountInvoiceAsync (waitUntil As WaitUntil, arrayOfDocumentDownloadRequest As IEnumerable(Of BillingDocumentDownloadRequestContent), Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of BillingDocumentDownloadResult))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

arrayOfDocumentDownloadRequest
IEnumerable<BillingDocumentDownloadRequestContent>

A list of download details for individual documents.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

arrayOfDocumentDownloadRequest is null.

Applies to