Skip to content
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -2723,6 +2723,51 @@
}
}
},
"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoices/{invoiceName}/transactions": {
"get": {
Comment thread
asarkar84 marked this conversation as resolved.
"tags": [
"Transactions"
],
"operationId": "Transactions_ListByInvoice",
"description": "Lists the transactions by invoice.",
"externalDocs": {
"url": "https://docs.microsoft.com/en-us/rest/api/billing/"
},
"x-ms-examples": {
"TransactionsListByInvoice": {
"$ref": "./examples/TransactionsListByInvoice.json"
}
},
"parameters": [
{
"$ref": "#/parameters/billingAccountNameParameter"
},
{
"$ref": "#/parameters/billingProfileNameParameter"
},
{
"$ref": "#/parameters/invoiceNameParameter"
},
{
"$ref": "#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
"$ref": "#/definitions/TransactionListResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
}
},
"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/transactions/{transactionName}": {
"get": {
"tags": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
{
"parameters": {
"api-version": "2019-10-01-preview",
"billingAccountName": "{billingAccountName}",
"billingProfileName": "{billingProfileName}",
"invoiceName": "{invoiceName}"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/BillingProfiles/{billingProfileName}/transactions/41000000-0000-0000-0000-000000000000",
"name": "41000000-0000-0000-0000-000000000000",
"type": "Microsoft.Billing/billingAccounts/billingProfiles/transactions",
"properties": {
"kind": "all",
"date": "2018-05-01T00:00:00Z",
"invoice": "2344233",
"productFamily": "Storage",
"productTypeId": "A12345",
"productType": "VM Instance",
"productDescription": "Standard D1, US West 3",
"transactionType": "Purchase",
"transactionAmount": {
"currency": "USD",
"value": 5000.00
},
"invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000",
"invoiceSectionDisplayName": "Contoso operations invoiceSection",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}",
"billingProfileDisplayName": "Contoso operations billing",
"azureCreditApplied": {
"currency": "USD",
"value": 2000.00
},
"billingCurrency": "USD",
"discount": 0.1,
"effectivePrice": {
"currency": "USD",
"value": 10.00
},
"exchangeRate": 1,
"marketPrice": {
"currency": "USD",
"value": 20.00
},
"pricingCurrency": "USD",
"quantity": 1,
"servicePeriodStartDate": "2018-05-01T00:00:00Z",
"servicePeriodEndDate": "2018-09-30T00:00:00Z",
"subTotal": {
"currency": "USD",
"value": 4500.00
},
"tax": {
"currency": "USD",
"value": 500.00
},
"unitOfMeasure": "1 Minute",
"units": 11.25,
"unitType": "1 Runtime Minute"
}
},
{
"id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/BillingProfiles/{billingProfileName}/transactions/51000000-0000-0000-0000-000000000000",
"name": "51000000-0000-0000-0000-000000000000",
"type": "Microsoft.Billing/billingAccounts/billingProfiles/transactions",
"properties": {
"kind": "all",
"date": "2018-04-01T00:00:00Z",
"invoice": "pending",
"productFamily": "Storage",
"productTypeId": "A12345",
"productType": "VM Instance",
"productDescription": "Standard Support",
"transactionType": "Cancel",
"transactionAmount": {
"currency": "USD",
"value": 50.00
},
"invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000",
"invoiceSectionDisplayName": "Contoso operations invoiceSection",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}",
"billingProfileDisplayName": "Contoso operations billing",
"azureCreditApplied": {
"currency": "USD",
"value": 20.00
},
"billingCurrency": "USD",
"discount": 0.1,
"effectivePrice": {
"currency": "USD",
"value": 10.00
},
"exchangeRate": 1,
"marketPrice": {
"currency": "USD",
"value": 20.00
},
"pricingCurrency": "USD",
"quantity": 1,
"servicePeriodStartDate": "2018-05-01T00:00:00Z",
"servicePeriodEndDate": "2018-09-30T00:00:00Z",
"subTotal": {
"currency": "USD",
"value": 45.00
},
"tax": {
"currency": "USD",
"value": 5.00
},
"unitOfMeasure": "1 Minute",
"units": 1.25,
"unitType": "1 Runtime Minute"
}
}
]
}
}
}
}