Transactions - List By Invoice

請求書のトランザクションを一覧表示します。 トランザクションには、購入、払い戻し、Azure の使用料金が含まれます。

GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/{invoiceName}/transactions?api-version=2024-04-01
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/{invoiceName}/transactions?api-version=2024-04-01&filter={filter}&orderBy={orderBy}&top={top}&skip={skip}&count={count}&search={search}

URI パラメーター

名前 / 必須 説明
billingAccountName
path True

string

課金アカウントを一意に識別する ID。

正規表現パターン: ^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$

invoiceName
path True

string

請求書を一意に識別する ID。

正規表現パターン: ^(H[0-9]-[A-Z0-9]+)$|^(?:([GHT]|HT){1}[A-Z0-9]{9})$|^(?:[D]{1}[A-Z0-9]{9})$|^(?:E{1}[B-Z0-9]{1}[A-Z0-9]{8})$|^(?:EA[A-Z0-9]{8})$

api-version
query True

string

クライアント要求で使用する API のバージョン。 現在のバージョンは 2024-04-01 です。

count
query

boolean

カウント クエリ オプションを使用すると、クライアントは、応答のリソースに含まれる一致するリソースの数を要求できます。

filter
query

string

フィルター クエリ オプションを使用すると、クライアントは要求 URL でアドレス指定されたリソースのコレクションをフィルター処理できます。

orderBy
query

string

orderby クエリ オプションを使用すると、クライアントは特定の順序でリソースを要求できます。

search
query

string

検索クエリ オプションを使用すると、クライアントは自由テキスト検索式に一致するコレクション内の項目を要求できます。 検索は、文字列フィールドでのみサポートされています。

skip
query

integer

int64

skip クエリ オプションは、クエリ対象のコレクション内でスキップされ、結果に含まれない項目の数を要求します。

top
query

integer

int64

上位のクエリ オプションは、クエリされたコレクション内のアイテムの数を結果に含めるよう要求します。 top でサポートされる最大値は 50 です。

応答

名前 説明
200 OK

TransactionListResult

トランザクションの一覧。

Other Status Codes

ErrorResponse

操作が失敗した理由を説明するエラー応答。

TransactionsListByInvoice

要求のサンプル

GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/invoices/G123456789/transactions?api-version=2024-04-01

応答のサンプル

{
  "value": [
    {
      "id": "/providers/Microsoft.Billing/BillingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/BillingProfiles/xxxx-xxxx-xxx-xxx/transactions/41000000-0000-0000-0000-000000000000",
      "name": "41000000-0000-0000-0000-000000000000",
      "properties": {
        "azureCreditApplied": {
          "currency": "USD",
          "value": 2000
        },
        "billingCurrency": "USD",
        "billingProfileDisplayName": "Contoso operations billing",
        "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/xxxx-xxxx-xxx-xxx",
        "consumptionCommitmentDecremented": {
          "currency": "USD",
          "value": 100
        },
        "date": "2023-05-01T00:00:00Z",
        "discount": 0.1,
        "effectivePrice": {
          "currency": "USD",
          "value": 10
        },
        "exchangeRate": 1,
        "invoice": "G123456789",
        "invoiceId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/invoices/G123456789",
        "invoiceSectionDisplayName": "Contoso operations invoiceSection",
        "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/xxxx-xxxx-xxx-xxx/invoiceSections/22000000-0000-0000-0000-000000000000",
        "marketPrice": {
          "currency": "USD",
          "value": 20
        },
        "partNumber": "0001",
        "pricingCurrency": "USD",
        "productDescription": "Standard D1, US West 3",
        "productFamily": "Storage",
        "productTypeId": "A12345",
        "productType": "VM Instance",
        "quantity": 1,
        "servicePeriodStartDate": "2023-05-01T00:00:00Z",
        "servicePeriodEndDate": "2023-09-30T00:00:00Z",
        "subTotal": {
          "currency": "USD",
          "value": 4500
        },
        "tax": {
          "currency": "USD",
          "value": 500
        },
        "transactionAmount": {
          "currency": "USD",
          "value": 5000
        },
        "transactionType": "Purchase",
        "units": 11.25,
        "unitOfMeasure": "1 Minute",
        "unitType": "1 Runtime Minute"
      },
      "type": "Microsoft.Billing/billingAccounts/billingProfiles/transactions"
    },
    {
      "id": "/providers/Microsoft.Billing/BillingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/BillingProfiles/xxxx-xxxx-xxx-xxx/transactions/51000000-0000-0000-0000-000000000000",
      "name": "51000000-0000-0000-0000-000000000000",
      "properties": {
        "azureCreditApplied": {
          "currency": "USD",
          "value": 20
        },
        "billingCurrency": "USD",
        "billingProfileDisplayName": "Contoso operations billing",
        "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/xxxx-xxxx-xxx-xxx",
        "consumptionCommitmentDecremented": {
          "currency": "USD",
          "value": 50
        },
        "date": "2024-04-01T00:00:00Z",
        "discount": 0.1,
        "effectivePrice": {
          "currency": "USD",
          "value": 10
        },
        "exchangeRate": 1,
        "invoice": "pending",
        "invoiceSectionDisplayName": "Contoso operations invoiceSection",
        "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/xxxx-xxxx-xxx-xxx/invoiceSections/22000000-0000-0000-0000-000000000000",
        "marketPrice": {
          "currency": "USD",
          "value": 20
        },
        "partNumber": "0002",
        "pricingCurrency": "USD",
        "productDescription": "Standard Support",
        "productFamily": "Storage",
        "productTypeId": "A12345",
        "productType": "VM Instance",
        "quantity": 1,
        "servicePeriodStartDate": "2023-05-01T00:00:00Z",
        "servicePeriodEndDate": "2023-09-30T00:00:00Z",
        "subTotal": {
          "currency": "USD",
          "value": 45
        },
        "tax": {
          "currency": "USD",
          "value": 5
        },
        "transactionAmount": {
          "currency": "USD",
          "value": 50
        },
        "transactionType": "Cancel",
        "units": 1.25,
        "unitOfMeasure": "1 Minute",
        "unitType": "1 Runtime Minute"
      },
      "type": "Microsoft.Billing/billingAccounts/billingProfiles/transactions"
    }
  ]
}

定義

名前 説明
AmountRefunded

払い戻しされた金額。

AmountRequested

要求された払い戻しの金額。

AzureCreditApplied

このトランザクションに自動的に適用される Azure クレジットの量。

ConsumptionCommitmentDecremented

トランザクションによる Microsoft Azure 従量課金コミットメント (MACC) のデクリメントの量。

createdByType

リソースを作成した ID の種類。

CreditType

トランザクションのクレジットの種類。 与信トランザクションにのみ適用されます。

EffectivePrice

割引を適用した後の製品の価格。

ErrorAdditionalInfo

リソース管理エラーの追加情報。

ErrorDetail

エラーの詳細。

ErrorResponse

エラー応答

MarketPrice

製品の小売価格。

RefundTransactionDetails

トランザクションの払い戻しの詳細。

SpecialTaxationType

請求書に使用される税計算の種類を識別します。 このフィールドは、特別な税計算ロジックを持つ請求書にのみ適用されます。

SubTotal

トランザクションの税引き前請求額。

systemData

リソースの作成と最後の変更に関連するメタデータ。

Tax

トランザクションに適用される税額。

Transaction

トランザクション。

TransactionAmount

トランザクションに関連付けられている料金。

TransactionKind

課金済みまたは未請求のトランザクションの種類。

TransactionListResult

リソースの一覧のコンテナー

TransactionProperties

トランザクション。

AmountRefunded

払い戻しされた金額。

名前 説明
currency

string

金額値の通貨。

value

number

金額の値。 たとえば、通貨が USD の場合、値 600 は $600.00 になります。

AmountRequested

要求された払い戻しの金額。

名前 説明
currency

string

金額値の通貨。

value

number

金額の値。 たとえば、通貨が USD の場合、値 600 は $600.00 になります。

AzureCreditApplied

このトランザクションに自動的に適用される Azure クレジットの量。

名前 説明
currency

string

金額値の通貨。

value

number

金額の値。 たとえば、通貨が USD の場合、値 600 は $600.00 になります。

ConsumptionCommitmentDecremented

トランザクションによる Microsoft Azure 従量課金コミットメント (MACC) のデクリメントの量。

名前 説明
currency

string

金額値の通貨。

value

number

金額の値。 たとえば、通貨が USD の場合、値 600 は $600.00 になります。

createdByType

リソースを作成した ID の種類。

名前 説明
Application

string

Key

string

ManagedIdentity

string

User

string

CreditType

トランザクションのクレジットの種類。 与信トランザクションにのみ適用されます。

名前 説明
AzureCreditOffer

string

AzureFreeCredit

string

Other

string

Refund

string

ServiceInterruption

string

EffectivePrice

割引を適用した後の製品の価格。

名前 説明
currency

string

金額値の通貨。

value

number

金額の値。 たとえば、通貨が USD の場合、値 600 は $600.00 になります。

ErrorAdditionalInfo

リソース管理エラーの追加情報。

名前 説明
info

object

追加情報。

type

string

追加情報の種類。

ErrorDetail

エラーの詳細。

名前 説明
additionalInfo

ErrorAdditionalInfo[]

エラーの追加情報。

code

string

エラー コード。

details

ErrorDetail[]

エラーの詳細。

message

string

エラー メッセージ。

target

string

エラーターゲット。

ErrorResponse

エラー応答

名前 説明
error

ErrorDetail

エラー オブジェクト。

MarketPrice

製品の小売価格。

名前 説明
currency

string

金額値の通貨。

value

number

金額の値。 たとえば、通貨が USD の場合、値 600 は $600.00 になります。

RefundTransactionDetails

トランザクションの払い戻しの詳細。

名前 説明
amountRefunded

AmountRefunded

払い戻しされた金額。

amountRequested

AmountRequested

要求された払い戻しの金額。

refundOperationId

string

払い戻し操作の ID。

SpecialTaxationType

請求書に使用される税計算の種類を識別します。 このフィールドは、特別な税計算ロジックを持つ請求書にのみ適用されます。

名前 説明
InvoiceLevel

string

SubtotalLevel

string

SubTotal

トランザクションの税引き前請求額。

名前 説明
currency

string

金額値の通貨。

value

number

金額の値。 たとえば、通貨が USD の場合、値 600 は $600.00 になります。

systemData

リソースの作成と最後の変更に関連するメタデータ。

名前 説明
createdAt

string

リソース作成のタイムスタンプ (UTC)。

createdBy

string

リソースを作成した ID。

createdByType

createdByType

リソースを作成した ID の種類。

lastModifiedAt

string

リソースの最終変更のタイムスタンプ (UTC)

lastModifiedBy

string

リソースを最後に変更した ID。

lastModifiedByType

createdByType

リソースを最後に変更した ID の種類。

Tax

トランザクションに適用される税額。

名前 説明
currency

string

金額値の通貨。

value

number

金額の値。 たとえば、通貨が USD の場合、値 600 は $600.00 になります。

Transaction

トランザクション。

名前 説明
id

string

リソースの完全修飾リソース ID。 例: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"

name

string

リソースの名前

properties

TransactionProperties

トランザクション。

systemData

systemData

createdBy と modifiedBy 情報を含む Azure Resource Manager メタデータ。

tags

object

リソースに関連付けられているメタデータのディクショナリ。 リソースの種類によっては設定されない場合があります。 キー/値の最大長は 256 文字でサポートされます。 キー/値は、値を空にしたり、null にしたりしないでください。 キーは <> % &\ を含むできませんか? /

type

string

リソースの種類。 例: "Microsoft.Compute/virtualMachines" または "Microsoft.Storage/storageAccounts"

TransactionAmount

トランザクションに関連付けられている料金。

名前 説明
currency

string

金額値の通貨。

value

number

金額の値。 たとえば、通貨が USD の場合、値 600 は $600.00 になります。

TransactionKind

課金済みまたは未請求のトランザクションの種類。

名前 説明
All

string

Other

string

Reservation

string

TransactionListResult

リソースの一覧のコンテナー

名前 説明
nextLink

string

結果の次のページへのリンク (URL)。

value

Transaction[]

リソースの一覧。

TransactionProperties

トランザクション。

名前 説明
azureCreditApplied

AzureCreditApplied

このトランザクションに自動的に適用される Azure クレジットの量。

azurePlan

string

Azure プランの詳細。

billingCurrency

string

このトランザクションが請求される通貨の ISO 4217 コード。

billingProfileDisplayName

課金プロファイルの名前。

billingProfileId

string

課金プロファイルを一意に識別する完全修飾 ID。

consumptionCommitmentDecremented

ConsumptionCommitmentDecremented

トランザクションによる Microsoft Azure 従量課金コミットメント (MACC) のデクリメントの量。

creditType

CreditType

トランザクションのクレジットの種類。 与信トランザクションにのみ適用されます。

customerDisplayName

string

顧客の名前。

customerId

string

顧客を一意に識別する完全修飾 ID。

date

string

トランザクションの日付。

discount

number

このトランザクションに適用される割引率 (存在する場合)。

effectivePrice

EffectivePrice

割引を適用した後の製品の価格。

exchangeRate

number

請求金額を請求通貨に変換するために使用される為替レート (該当する場合)。

invoice

string

トランザクションが課金された請求書名。トランザクションが課金されない場合は "保留中" です。

invoiceId

string

トランザクションが請求された請求書の完全修飾 ID。 このフィールドは、課金されるトランザクションにのみ適用されます。

invoiceSectionDisplayName

string

請求書セクションの名前。

invoiceSectionId

string

請求書セクションを一意に識別する完全修飾 ID。

isThirdParty

boolean

トランザクションがサード パーティであるかどうか。

kind

TransactionKind

課金済みまたは未請求のトランザクションの種類。

marketPrice

MarketPrice

製品の小売価格。

partNumber

string

トランザクションが発生した製品の部品番号。 このフィールドは、エンタープライズ契約の請求書にのみ適用されます。

pricingCurrency

string

製品の価格が設定されている通貨の ISO 4217 コード。

productDescription

string

トランザクションが発生した製品の説明。

productFamily

string

トランザクションが発生した製品のファミリ。

productType

string

トランザクションが発生した製品の種類。

productTypeId

string

トランザクションが発生した製品の種類の ID。

quantity

integer

トランザクションで購入された数量。

reasonCode

string

トランザクションには理由コードがあります。

refundTransactionDetails

RefundTransactionDetails

トランザクションの払い戻しの詳細。

servicePeriodEndDate

string

製品の用語の終了日、または使用が終了した月の終了日。

servicePeriodStartDate

string

製品の購入日、または使用が開始された月の開始日。

specialTaxationType

SpecialTaxationType

請求書に使用される税計算の種類を識別します。 このフィールドは、特別な税計算ロジックを持つ請求書にのみ適用されます。

subTotal

SubTotal

トランザクションの税引き前請求額。

tax

Tax

トランザクションに適用される税額。

transactionAmount

TransactionAmount

トランザクションに関連付けられている料金。

transactionType

string

トランザクションの種類。

unitOfMeasure

string

製品の請求に使用される測定単位。 たとえば、コンピューティング サービスは 1 時間あたりに課金されます。

unitType

string

特定の製品の測定単位の説明。

units

number

特定の製品に使用される単位の数。