Skip to main content

transactions

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

Overview

Nametransactions
TypeResource
Idazure.billing.transactions

Fields

NameDatatypeDescription
propertiesobjectA transaction.
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
list_by_billing_profileSELECTbillingAccountName, billingProfileName, periodEndDate, periodStartDate, typeLists the billed or unbilled transactions by billing profile name for given start and end date. Transactions include purchases, refunds and Azure usage charges. Unbilled transactions are listed under pending invoice Id and do not include tax. Tax is added to the amount once an invoice is generated.
list_by_customerSELECTbillingAccountName, billingProfileName, customerName, periodEndDate, periodStartDate, typeLists the billed or unbilled transactions by customer id for given start date and end date. Transactions include purchases, refunds and Azure usage charges. Unbilled transactions are listed under pending invoice Id and do not include tax. Tax is added to the amount once an invoice is generated.
transactions_download_by_invoiceEXECbillingAccountName, invoiceNameGets a URL to download the transactions document for an invoice. The operation is supported for billing accounts with agreement type Enterprise Agreement.

SELECT examples

Lists the billed or unbilled transactions by billing profile name for given start and end date. Transactions include purchases, refunds and Azure usage charges. Unbilled transactions are listed under pending invoice Id and do not include tax. Tax is added to the amount once an invoice is generated.

SELECT
properties,
tags
FROM azure.billing.transactions
WHERE billingAccountName = '{{ billingAccountName }}'
AND billingProfileName = '{{ billingProfileName }}'
AND periodEndDate = '{{ periodEndDate }}'
AND periodStartDate = '{{ periodStartDate }}'
AND type = '{{ type }}';