Invoices interface

Interface representing a Invoices.

Methods

beginAmend(string, string, InvoicesAmendOptionalParams)

Regenerate an invoice by billing account name and invoice name. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.

beginAmendAndWait(string, string, InvoicesAmendOptionalParams)

Regenerate an invoice by billing account name and invoice name. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.

beginDownloadByBillingAccount(string, string, InvoicesDownloadByBillingAccountOptionalParams)

Gets a URL to download an invoice document. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.

beginDownloadByBillingAccountAndWait(string, string, InvoicesDownloadByBillingAccountOptionalParams)

Gets a URL to download an invoice document. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.

beginDownloadByBillingSubscription(string, InvoicesDownloadByBillingSubscriptionOptionalParams)

Gets a URL to download an invoice by billing subscription. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.

beginDownloadByBillingSubscriptionAndWait(string, InvoicesDownloadByBillingSubscriptionOptionalParams)

Gets a URL to download an invoice by billing subscription. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.

beginDownloadDocumentsByBillingAccount(string, DocumentDownloadRequest[], InvoicesDownloadDocumentsByBillingAccountOptionalParams)

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.

beginDownloadDocumentsByBillingAccountAndWait(string, DocumentDownloadRequest[], InvoicesDownloadDocumentsByBillingAccountOptionalParams)

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.

beginDownloadDocumentsByBillingSubscription(DocumentDownloadRequest[], InvoicesDownloadDocumentsByBillingSubscriptionOptionalParams)

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.

beginDownloadDocumentsByBillingSubscriptionAndWait(DocumentDownloadRequest[], InvoicesDownloadDocumentsByBillingSubscriptionOptionalParams)

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.

beginDownloadSummaryByBillingAccount(string, string, InvoicesDownloadSummaryByBillingAccountOptionalParams)

Gets a URL to download the summary document for an invoice. The operation is supported for billing accounts with agreement type Enterprise Agreement.

beginDownloadSummaryByBillingAccountAndWait(string, string, InvoicesDownloadSummaryByBillingAccountOptionalParams)

Gets a URL to download the summary document for an invoice. The operation is supported for billing accounts with agreement type Enterprise Agreement.

get(string, InvoicesGetOptionalParams)

Gets an invoice by ID. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.

getByBillingAccount(string, string, InvoicesGetByBillingAccountOptionalParams)

Gets an invoice by billing account name and ID. The operation is supported for all billing account types.

getByBillingSubscription(string, InvoicesGetByBillingSubscriptionOptionalParams)

Gets an invoice by subscription ID and invoice ID. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.

listByBillingAccount(string, InvoicesListByBillingAccountOptionalParams)

Lists the invoices for a billing account for a given start date and end date. The operation is supported for all billing account types.

listByBillingProfile(string, string, InvoicesListByBillingProfileOptionalParams)

Lists the invoices for a billing profile for a given start date and end date. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.

listByBillingSubscription(InvoicesListByBillingSubscriptionOptionalParams)

Lists the invoices for a subscription. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.

Method Details

beginAmend(string, string, InvoicesAmendOptionalParams)

Regenerate an invoice by billing account name and invoice name. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.

function beginAmend(billingAccountName: string, invoiceName: string, options?: InvoicesAmendOptionalParams): Promise<SimplePollerLike<OperationState<InvoicesAmendHeaders>, InvoicesAmendHeaders>>

Parameters

billingAccountName

string

The ID that uniquely identifies a billing account.

invoiceName

string

The ID that uniquely identifies an invoice.

options
InvoicesAmendOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<InvoicesAmendHeaders>, InvoicesAmendHeaders>>

beginAmendAndWait(string, string, InvoicesAmendOptionalParams)

Regenerate an invoice by billing account name and invoice name. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.

function beginAmendAndWait(billingAccountName: string, invoiceName: string, options?: InvoicesAmendOptionalParams): Promise<InvoicesAmendHeaders>

Parameters

billingAccountName

string

The ID that uniquely identifies a billing account.

invoiceName

string

The ID that uniquely identifies an invoice.

options
InvoicesAmendOptionalParams

The options parameters.

Returns

beginDownloadByBillingAccount(string, string, InvoicesDownloadByBillingAccountOptionalParams)

Gets a URL to download an invoice document. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.

function beginDownloadByBillingAccount(billingAccountName: string, invoiceName: string, options?: InvoicesDownloadByBillingAccountOptionalParams): Promise<SimplePollerLike<OperationState<DocumentDownloadResult>, DocumentDownloadResult>>

Parameters

billingAccountName

string

The ID that uniquely identifies a billing account.

invoiceName

string

The ID that uniquely identifies an invoice.

options
InvoicesDownloadByBillingAccountOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<DocumentDownloadResult>, DocumentDownloadResult>>

beginDownloadByBillingAccountAndWait(string, string, InvoicesDownloadByBillingAccountOptionalParams)

Gets a URL to download an invoice document. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.

function beginDownloadByBillingAccountAndWait(billingAccountName: string, invoiceName: string, options?: InvoicesDownloadByBillingAccountOptionalParams): Promise<DocumentDownloadResult>

Parameters

billingAccountName

string

The ID that uniquely identifies a billing account.

invoiceName

string

The ID that uniquely identifies an invoice.

options
InvoicesDownloadByBillingAccountOptionalParams

The options parameters.

Returns

beginDownloadByBillingSubscription(string, InvoicesDownloadByBillingSubscriptionOptionalParams)

Gets a URL to download an invoice by billing subscription. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.

function beginDownloadByBillingSubscription(invoiceName: string, options?: InvoicesDownloadByBillingSubscriptionOptionalParams): Promise<SimplePollerLike<OperationState<DocumentDownloadResult>, DocumentDownloadResult>>

Parameters

invoiceName

string

The ID that uniquely identifies an invoice.

options
InvoicesDownloadByBillingSubscriptionOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<DocumentDownloadResult>, DocumentDownloadResult>>

beginDownloadByBillingSubscriptionAndWait(string, InvoicesDownloadByBillingSubscriptionOptionalParams)

Gets a URL to download an invoice by billing subscription. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.

function beginDownloadByBillingSubscriptionAndWait(invoiceName: string, options?: InvoicesDownloadByBillingSubscriptionOptionalParams): Promise<DocumentDownloadResult>

Parameters

invoiceName

string

The ID that uniquely identifies an invoice.

options
InvoicesDownloadByBillingSubscriptionOptionalParams

The options parameters.

Returns

beginDownloadDocumentsByBillingAccount(string, DocumentDownloadRequest[], InvoicesDownloadDocumentsByBillingAccountOptionalParams)

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.

function beginDownloadDocumentsByBillingAccount(billingAccountName: string, parameters: DocumentDownloadRequest[], options?: InvoicesDownloadDocumentsByBillingAccountOptionalParams): Promise<SimplePollerLike<OperationState<DocumentDownloadResult>, DocumentDownloadResult>>

Parameters

billingAccountName

string

The ID that uniquely identifies a billing account.

parameters

DocumentDownloadRequest[]

A list of download details for individual documents.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<DocumentDownloadResult>, DocumentDownloadResult>>

beginDownloadDocumentsByBillingAccountAndWait(string, DocumentDownloadRequest[], InvoicesDownloadDocumentsByBillingAccountOptionalParams)

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.

function beginDownloadDocumentsByBillingAccountAndWait(billingAccountName: string, parameters: DocumentDownloadRequest[], options?: InvoicesDownloadDocumentsByBillingAccountOptionalParams): Promise<DocumentDownloadResult>

Parameters

billingAccountName

string

The ID that uniquely identifies a billing account.

parameters

DocumentDownloadRequest[]

A list of download details for individual documents.

Returns

beginDownloadDocumentsByBillingSubscription(DocumentDownloadRequest[], InvoicesDownloadDocumentsByBillingSubscriptionOptionalParams)

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.

function beginDownloadDocumentsByBillingSubscription(parameters: DocumentDownloadRequest[], options?: InvoicesDownloadDocumentsByBillingSubscriptionOptionalParams): Promise<SimplePollerLike<OperationState<DocumentDownloadResult>, DocumentDownloadResult>>

Parameters

parameters

DocumentDownloadRequest[]

A list of download details for individual documents.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<DocumentDownloadResult>, DocumentDownloadResult>>

beginDownloadDocumentsByBillingSubscriptionAndWait(DocumentDownloadRequest[], InvoicesDownloadDocumentsByBillingSubscriptionOptionalParams)

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.

function beginDownloadDocumentsByBillingSubscriptionAndWait(parameters: DocumentDownloadRequest[], options?: InvoicesDownloadDocumentsByBillingSubscriptionOptionalParams): Promise<DocumentDownloadResult>

Parameters

parameters

DocumentDownloadRequest[]

A list of download details for individual documents.

Returns

beginDownloadSummaryByBillingAccount(string, string, InvoicesDownloadSummaryByBillingAccountOptionalParams)

Gets a URL to download the summary document for an invoice. The operation is supported for billing accounts with agreement type Enterprise Agreement.

function beginDownloadSummaryByBillingAccount(billingAccountName: string, invoiceName: string, options?: InvoicesDownloadSummaryByBillingAccountOptionalParams): Promise<SimplePollerLike<OperationState<DocumentDownloadResult>, DocumentDownloadResult>>

Parameters

billingAccountName

string

The ID that uniquely identifies a billing account.

invoiceName

string

The ID that uniquely identifies an invoice.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<DocumentDownloadResult>, DocumentDownloadResult>>

beginDownloadSummaryByBillingAccountAndWait(string, string, InvoicesDownloadSummaryByBillingAccountOptionalParams)

Gets a URL to download the summary document for an invoice. The operation is supported for billing accounts with agreement type Enterprise Agreement.

function beginDownloadSummaryByBillingAccountAndWait(billingAccountName: string, invoiceName: string, options?: InvoicesDownloadSummaryByBillingAccountOptionalParams): Promise<DocumentDownloadResult>

Parameters

billingAccountName

string

The ID that uniquely identifies a billing account.

invoiceName

string

The ID that uniquely identifies an invoice.

Returns

get(string, InvoicesGetOptionalParams)

Gets an invoice by ID. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.

function get(invoiceName: string, options?: InvoicesGetOptionalParams): Promise<Invoice>

Parameters

invoiceName

string

The ID that uniquely identifies an invoice.

options
InvoicesGetOptionalParams

The options parameters.

Returns

Promise<Invoice>

getByBillingAccount(string, string, InvoicesGetByBillingAccountOptionalParams)

Gets an invoice by billing account name and ID. The operation is supported for all billing account types.

function getByBillingAccount(billingAccountName: string, invoiceName: string, options?: InvoicesGetByBillingAccountOptionalParams): Promise<Invoice>

Parameters

billingAccountName

string

The ID that uniquely identifies a billing account.

invoiceName

string

The ID that uniquely identifies an invoice.

options
InvoicesGetByBillingAccountOptionalParams

The options parameters.

Returns

Promise<Invoice>

getByBillingSubscription(string, InvoicesGetByBillingSubscriptionOptionalParams)

Gets an invoice by subscription ID and invoice ID. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.

function getByBillingSubscription(invoiceName: string, options?: InvoicesGetByBillingSubscriptionOptionalParams): Promise<Invoice>

Parameters

invoiceName

string

The ID that uniquely identifies an invoice.

options
InvoicesGetByBillingSubscriptionOptionalParams

The options parameters.

Returns

Promise<Invoice>

listByBillingAccount(string, InvoicesListByBillingAccountOptionalParams)

Lists the invoices for a billing account for a given start date and end date. The operation is supported for all billing account types.

function listByBillingAccount(billingAccountName: string, options?: InvoicesListByBillingAccountOptionalParams): PagedAsyncIterableIterator<Invoice, Invoice[], PageSettings>

Parameters

billingAccountName

string

The ID that uniquely identifies a billing account.

options
InvoicesListByBillingAccountOptionalParams

The options parameters.

Returns

listByBillingProfile(string, string, InvoicesListByBillingProfileOptionalParams)

Lists the invoices for a billing profile for a given start date and end date. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.

function listByBillingProfile(billingAccountName: string, billingProfileName: string, options?: InvoicesListByBillingProfileOptionalParams): PagedAsyncIterableIterator<Invoice, Invoice[], PageSettings>

Parameters

billingAccountName

string

The ID that uniquely identifies a billing account.

billingProfileName

string

The ID that uniquely identifies a billing profile.

options
InvoicesListByBillingProfileOptionalParams

The options parameters.

Returns

listByBillingSubscription(InvoicesListByBillingSubscriptionOptionalParams)

Lists the invoices for a subscription. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.

function listByBillingSubscription(options?: InvoicesListByBillingSubscriptionOptionalParams): PagedAsyncIterableIterator<Invoice, Invoice[], PageSettings>

Parameters

options
InvoicesListByBillingSubscriptionOptionalParams

The options parameters.

Returns