Microsoft.Consumption (preview:2018-11-01)

2025/10/30 • 9 new, 9 deleted methods

Operations_List (new)
Description :  Lists all of the available consumption REST API operations.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.Consumption/operations
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
name: string ,
display:
{
provider: string ,
resource: string ,
operation: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CreditSummaryByBillingProfile_Get (new)
Description :  The credit summary by billingAccountId and billingProfileId for given start and end date.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.Consumption/credits/balanceSummary
{
billingAccountId: string ,
billingProfileId: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
balanceSummary:
{
estimatedBalance:
{
currency: string ,
value: number ,
}
,
currentBalance:
{
currency: string ,
value: number ,
}
,
}
,
pendingCreditAdjustments:
{
currency: string ,
value: number ,
}
,
expiredCredit:
{
currency: string ,
value: number ,
}
,
pendingEligibleCharges:
{
currency: string ,
value: number ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
EventsByBillingProfile_List (new)
Description :  Lists the events by billingAccountId and billingProfileId for given start and end date.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.Consumption/events
{
billingAccountId: string ,
billingProfileId: string ,
api-version: string ,
startDate: string ,
endDate: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
transactionDate: string ,
description: string ,
newCredit:
{
currency: string ,
value: number ,
}
,
adjustments:
{
currency: string ,
value: number ,
}
,
creditExpired:
{
currency: string ,
value: number ,
}
,
charges:
{
currency: string ,
value: number ,
}
,
closedBalance:
{
currency: string ,
value: number ,
}
,
eventType: enum ,
invoiceNumber: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
LotsByBillingProfile_List (new)
Description :  Lists the lots by billingAccountId and billingProfileId for given start and end date.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.Consumption/lots
{
billingAccountId: string ,
billingProfileId: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
originalAmount:
{
currency: string ,
value: number ,
}
,
closedBalance:
{
currency: string ,
value: number ,
}
,
source: enum ,
startDate: string ,
expirationDate: string ,
poNumber: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
InvoicePricesheet_Download (new)
Description :  Get pricesheet data for invoice id (invoiceName).
Reference :  Link ¶

⚼ Request

POST:  /providers/Microsoft.Consumption/billingAccounts/{billingAccountId}/invoices/{invoiceName}/pricesheet/default/download
{
api-version: string ,
billingAccountId: string ,
invoiceName: string ,
}

⚐ Response (200)

{
properties:
{
downloadUrl: string ,
expiryTime: string ,
}
,
}

⚐ Response (202)

{
location: string ,
retry-after: string ,
azure-asyncoperation: string ,
odata-entityid: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
BillingProfilePricesheet_Download (new)
Description :  Get pricesheet data for invoice id (invoiceName).
Reference :  Link ¶

⚼ Request

POST:  /providers/Microsoft.Consumption/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/pricesheet/default/download
{
api-version: string ,
billingAccountId: string ,
billingProfileId: string ,
}

⚐ Response (200)

{
properties:
{
downloadUrl: string ,
expiryTime: string ,
}
,
}

⚐ Response (202)

{
location: string ,
retry-after: string ,
azure-asyncoperation: string ,
odata-entityid: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
ChargesByBillingAccount_List (new)
Description :  Lists the charges by billingAccountId for given start and end date. Start and end date are used to determine the billing period. For current month, the data will be provided from month to date. If there are no charges for a month then that month will show all zeroes.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Consumption/charges
{
billingAccountId: string ,
api-version: string ,
startDate: string ,
endDate: string ,
$apply: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
billingPeriodId: string ,
usageStart: string ,
usageEnd: string ,
azureCharges:
{
currency: string ,
value: number ,
}
,
chargesBilledSeparately:
{
currency: string ,
value: number ,
}
,
marketplaceCharges:
{
currency: string ,
value: number ,
}
,
billingAccountId: string ,
billingProfileId: string ,
invoiceSectionId: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
ChargesByBillingProfile_List (new)
Description :  Lists the charges by billing profile id for given start and end date. Start and end date are used to determine the billing period. For current month, the data will be provided from month to date. If there are no charges for a month then that month will show all zeroes.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.Consumption/charges
{
billingAccountId: string ,
billingProfileId: string ,
api-version: string ,
startDate: string ,
endDate: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
billingPeriodId: string ,
usageStart: string ,
usageEnd: string ,
azureCharges:
{
currency: string ,
value: number ,
}
,
chargesBilledSeparately:
{
currency: string ,
value: number ,
}
,
marketplaceCharges:
{
currency: string ,
value: number ,
}
,
billingAccountId: string ,
billingProfileId: string ,
invoiceSectionId: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
ChargesByInvoiceSection_List (new)
Description :  Lists the charges by invoice section id for given start and end date. Start and end date are used to determine the billing period. For current month, the data will be provided from month to date. If there are no charges for a month then that month will show all zeroes.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}/providers/Microsoft.Consumption/charges
{
billingAccountId: string ,
invoiceSectionId: string ,
api-version: string ,
startDate: string ,
endDate: string ,
$apply: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
billingPeriodId: string ,
usageStart: string ,
usageEnd: string ,
azureCharges:
{
currency: string ,
value: number ,
}
,
chargesBilledSeparately:
{
currency: string ,
value: number ,
}
,
marketplaceCharges:
{
currency: string ,
value: number ,
}
,
billingAccountId: string ,
billingProfileId: string ,
invoiceSectionId: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Operations_List (removed)
Description :  Lists all of the available consumption REST API operations.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.Consumption/operations
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
name: string ,
display:
{
provider: string ,
resource: string ,
operation: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CreditSummaryByBillingProfile_Get (removed)
Description :  The credit summary by billingAccountId and billingProfileId for given start and end date.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.Consumption/credits/balanceSummary
{
billingAccountId: string ,
billingProfileId: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
balanceSummary:
{
estimatedBalance:
{
currency: string ,
value: number ,
}
,
currentBalance:
{
currency: string ,
value: number ,
}
,
}
,
pendingCreditAdjustments:
{
currency: string ,
value: number ,
}
,
expiredCredit:
{
currency: string ,
value: number ,
}
,
pendingEligibleCharges:
{
currency: string ,
value: number ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
EventsByBillingProfile_List (removed)
Description :  Lists the events by billingAccountId and billingProfileId for given start and end date.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.Consumption/events
{
billingAccountId: string ,
billingProfileId: string ,
api-version: string ,
startDate: string ,
endDate: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
transactionDate: string ,
description: string ,
newCredit:
{
currency: string ,
value: number ,
}
,
adjustments:
{
currency: string ,
value: number ,
}
,
creditExpired:
{
currency: string ,
value: number ,
}
,
charges:
{
currency: string ,
value: number ,
}
,
closedBalance:
{
currency: string ,
value: number ,
}
,
eventType: enum ,
invoiceNumber: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
LotsByBillingProfile_List (removed)
Description :  Lists the lots by billingAccountId and billingProfileId for given start and end date.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.Consumption/lots
{
billingAccountId: string ,
billingProfileId: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
originalAmount:
{
currency: string ,
value: number ,
}
,
closedBalance:
{
currency: string ,
value: number ,
}
,
source: enum ,
startDate: string ,
expirationDate: string ,
poNumber: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
InvoicePricesheet_Download (removed)
Description :  Get pricesheet data for invoice id (invoiceName).
Reference :  Link ¶

⚼ Request

POST:  /providers/Microsoft.Consumption/billingAccounts/{billingAccountId}/invoices/{invoiceName}/pricesheet/default/download
{
api-version: string ,
billingAccountId: string ,
invoiceName: string ,
}

⚐ Response (200)

{
properties:
{
downloadUrl: string ,
expiryTime: string ,
}
,
}

⚐ Response (202)

{
location: string ,
retry-after: string ,
azure-asyncoperation: string ,
odata-entityid: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
BillingProfilePricesheet_Download (removed)
Description :  Get pricesheet data for invoice id (invoiceName).
Reference :  Link ¶

⚼ Request

POST:  /providers/Microsoft.Consumption/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/pricesheet/default/download
{
api-version: string ,
billingAccountId: string ,
billingProfileId: string ,
}

⚐ Response (200)

{
properties:
{
downloadUrl: string ,
expiryTime: string ,
}
,
}

⚐ Response (202)

{
location: string ,
retry-after: string ,
azure-asyncoperation: string ,
odata-entityid: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
ChargesByBillingAccount_List (removed)
Description :  Lists the charges by billingAccountId for given start and end date. Start and end date are used to determine the billing period. For current month, the data will be provided from month to date. If there are no charges for a month then that month will show all zeroes.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Consumption/charges
{
billingAccountId: string ,
api-version: string ,
startDate: string ,
endDate: string ,
$apply: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
billingPeriodId: string ,
usageStart: string ,
usageEnd: string ,
azureCharges:
{
currency: string ,
value: number ,
}
,
chargesBilledSeparately:
{
currency: string ,
value: number ,
}
,
marketplaceCharges:
{
currency: string ,
value: number ,
}
,
billingAccountId: string ,
billingProfileId: string ,
invoiceSectionId: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
ChargesByBillingProfile_List (removed)
Description :  Lists the charges by billing profile id for given start and end date. Start and end date are used to determine the billing period. For current month, the data will be provided from month to date. If there are no charges for a month then that month will show all zeroes.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.Consumption/charges
{
billingAccountId: string ,
billingProfileId: string ,
api-version: string ,
startDate: string ,
endDate: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
billingPeriodId: string ,
usageStart: string ,
usageEnd: string ,
azureCharges:
{
currency: string ,
value: number ,
}
,
chargesBilledSeparately:
{
currency: string ,
value: number ,
}
,
marketplaceCharges:
{
currency: string ,
value: number ,
}
,
billingAccountId: string ,
billingProfileId: string ,
invoiceSectionId: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
ChargesByInvoiceSection_List (removed)
Description :  Lists the charges by invoice section id for given start and end date. Start and end date are used to determine the billing period. For current month, the data will be provided from month to date. If there are no charges for a month then that month will show all zeroes.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}/providers/Microsoft.Consumption/charges
{
billingAccountId: string ,
invoiceSectionId: string ,
api-version: string ,
startDate: string ,
endDate: string ,
$apply: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
billingPeriodId: string ,
usageStart: string ,
usageEnd: string ,
azureCharges:
{
currency: string ,
value: number ,
}
,
chargesBilledSeparately:
{
currency: string ,
value: number ,
}
,
marketplaceCharges:
{
currency: string ,
value: number ,
}
,
billingAccountId: string ,
billingProfileId: string ,
invoiceSectionId: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}