Skip to main content

invoices

Creates, updates, deletes, gets or lists a invoices resource.

Overview

Nameinvoices
TypeResource
Idazure.billing.invoices

Fields

NameDatatypeDescription
propertiesobjectAn invoice.
tagsobjectDictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /

Methods

NameAccessible byRequired ParamsDescription
getSELECTinvoiceNameGets an invoice by ID. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
get_by_billing_accountSELECTbillingAccountName, invoiceNameGets an invoice by billing account name and ID. The operation is supported for all billing account types.
get_by_billing_subscriptionSELECTinvoiceName, subscriptionIdGets 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.
list_by_billing_accountSELECTbillingAccountNameLists the invoices for a billing account for a given start date and end date. The operation is supported for all billing account types.
list_by_billing_profileSELECTbillingAccountName, billingProfileNameLists 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.
list_by_billing_subscriptionSELECTsubscriptionIdLists the invoices for a subscription. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
amendEXECbillingAccountName, invoiceNameRegenerate an invoice by billing account name and invoice name. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
download_by_billing_accountEXECbillingAccountName, invoiceNameGets 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.
download_by_billing_subscriptionEXECinvoiceName, subscriptionIdGets 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.
download_documents_by_billing_accountEXECbillingAccountNameGets 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.
download_documents_by_billing_subscriptionEXECsubscriptionIdGets 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.
download_summary_by_billing_accountEXECbillingAccountName, invoiceNameGets a URL to download the summary document for an invoice. The operation is supported for billing accounts with agreement type Enterprise Agreement.

SELECT examples

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

SELECT
properties,
tags
FROM azure.billing.invoices
WHERE invoiceName = '{{ invoiceName }}';